Skip to content
Tcl Source Code Artifact [43c7466ca9]
Login

Artifact [43c7466ca9]

Artifact 43c7466ca94e5c3efa99d1f77111d5cc944990b8:

Ticket change [43c7466ca9] - New ticket [219405ffffffffff|219405ffff] <i>detection of the system&#39;s tty API is bad.</i>. by nobody on 2000-10-26 05:12:31.
D 2000-10-26T05:12:31
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s6316\sBug\nVersion:\s8.3.1\nSubmitDate:\s'2000-09-27'\nLastModified:\s'2000-10-25'\nSeverity:\sLOW\nStatus:\sUnAssn\nSubmitter:\stechsupp\nOS:\sLinux-SuSE\nOSVersion:\s7.0\nMachine:\sPII/400\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-10-25'\n\n\nName:\nReinhard\sMax\n\nComments:\nI\sassume\sthat\sit\sis\ssufficient\sto\slook,\sif\sthe\srespective\sheader\sfiles\n\s\s\s\sexist\sinstead\sof\stesting,\sif\sthe\sAPIs\sactually\swork\sat\sconfiguration\n\s\s\s\stime.\sThis\sseems\sto\sbe\sright\sfor\sLinux,\sbut\sI\sdon't\sknow\sif\sit\sis\salso\n\s\s\s\strue\sfor\sother\ssystems.\n\nReproducibleScript:\nunix\s$\s./configure\n[...]\nchecking\stermios\svs.\stermio\svs.\ssgtty...\stermios\n[...]\nunix\s$./configure\s</dev/null\n[...]\nchecking\stermios\svs.\stermio\svs.\ssgtty...\snone\n[...]\n\nObservedBehavior:\nWhen\sunix/configure\sis\scalled\swith\sstdin\snot\sbeing\sa\stty\sthe\stest\swheather\stermios,\stermio\sor\ssgtty\sis\savailible\sfails\sand\sthe\s"-mode"\soption\sto\s"fconfigure"\sisn't\scompiled\sin.\n\nDesiredBehavior:\nunix\s$\s./configure\s</dev/null\n[...]\nchecking\stermios\svs.\stermio\svs.\ssgtty...\stermios\n[...]\n\nPatch:\n---\sunix/tcl.m4\n+++\sunix/tcl.m4\s2000/09/13\s09:53:43\n@@\s-1215,60\s+1215,23\s@@\n\s#--------------------------------------------------------------------\n\n\sAC_DEFUN(SC_SERIAL_PORT,\s[\n-\s\s\s\sAC_MSG_CHECKING([termios\svs.\stermio\svs.\ssgtty])\n\n-\s\s\s\sAC_TRY_RUN([\n-#include\s<termios.h>\n-\n-main()\n-{\n-\s\s\s\sstruct\stermios\st;\n-\s\s\s\sif\s(tcgetattr(0,\s&t)\s==\s0)\s{\n-\s\s\s\s\s\s\scfsetospeed(&t,\s0);\n-\s\s\s\s\s\s\st.c_cflag\s|=\sPARENB\s|\sPARODD\s|\sCSIZE\s|\sCSTOPB;\n-\s\s\s\s\s\s\sreturn\s0;\n-\s\s\s\s}\n-\s\s\s\sreturn\s1;\n-}],\stk_ok=termios,\stk_ok=no,\stk_ok=no)\n+\s\s\s\sAC_CHECK_HEADER(termios.h,\stk_ok=termios,\stk_ok=no)\n\n\s\s\s\s\sif\stest\s$tk_ok\s=\stermios;\sthen\n\s\s\s\s\s\s\s\sAC_DEFINE(USE_TERMIOS)\n\s\s\s\s\selse\n-\s\s\s\s\s\s\sAC_TRY_RUN([\n-#include\s<termio.h>\n-\n-main()\n-{\n-\s\s\s\sstruct\stermio\st;\n-\s\s\s\sif\s(ioctl(0,\sTCGETA,\s&t)\s==\s0)\s{\n-\s\s\s\s\s\s\st.c_cflag\s|=\sCBAUD\s|\sPARENB\s|\sPARODD\s|\sCSIZE\s|\sCSTOPB;\n-\s\s\s\s\s\s\sreturn\s0;\n-\s\s\s\s}\n-\s\s\s\sreturn\s1;\n-\s\s\s\s}],\stk_ok=termio,\stk_ok=no,\stk_ok=no)\n+\s\s\s\s\s\s\sAC_CHECK_HEADER(termio.h,\stk_ok=termio,\stk_ok=no)\n\n\s\s\s\s\sif\stest\s$tk_ok\s=\stermio;\sthen\n\s\s\s\s\s\s\s\sAC_DEFINE(USE_TERMIO)\n\s\s\s\s\selse\n-\s\s\s\s\s\s\sAC_TRY_RUN([\n-#include\s<sgtty.h>\n-\n-main()\n-{\n-\s\s\s\sstruct\ssgttyb\st;\n-\s\s\s\sif\s(ioctl(0,\sTIOCGETP,\s&t)\s==\s0)\s{\n-\s\s\s\s\s\s\st.sg_ospeed\s=\s0;\n-\s\s\s\s\s\s\st.sg_flags\s|=\sODDP\s|\sEVENP\s|\sRAW;\n-\s\s\s\s\s\s\sreturn\s0;\n-\s\s\s\s}\n-\s\s\s\sreturn\s1;\n-}],\stk_ok=sgtty,\stk_ok=none,\stk_ok=none)\n+\s\s\s\s\s\s\sAC_CHECK_HEADER(sgtty.h,\stk_ok=sgtty,\stk_ok=none)\n\s\s\s\s\sif\stest\s$tk_ok\s=\ssgtty;\sthen\n\s\s\s\s\s\s\s\sAC_DEFINE(USE_SGTTY)\n\s\s\s\s\sfi\n\s\s\s\s\sfi\n\s\s\s\s\sfi\n-\s\s\s\sAC_MSG_RESULT($tk_ok)\n\s])\n\nPatchFiles:\nunix/tcl.m4\n\n\n\n
J foundin obsolete:\s8.3.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title detection\sof\sthe\ssystem's\stty\sAPI\sis\sbad.
J type Bug
K 219405ffffffffffffffffffffffffffffffffff
U nobody
Z d94f7d9561d2184b9b7034963531e1c1