Manifest of check-in
[b62235d0e5]
- ifdef shuffling: TIOCMC[GS]ET ioctls are not specified by POSIX,
so we can't assume they are present just because we HAVE_TERMIOS_H.
Conversely, if they are present then the subsidiary flags
TIOCM_{DTR|RTS} are almost certainly there as well, so that
ifdeffery can be removed.
And lastly, ifdefs for TIOCSBRK/TIOCCBRK are still needed.
(Those are logically separate functions even though TIP#35
lumped them together with DTR and RTS in -ttycontrol.
POSIX provides tcsendbreak() for this purpose, but that
interface doesn't fit with the TIP#35 API.)
KNOWN DEFECT: if a hypothetical Unix system is missing TIOCMCGET
but has TIOCSBRK/TIOCCBRK, the latter function will nevertheless
be unavailable. Accounting for this possibility does not strike
me as being worth the ifdefs.
by
jenglish on
2013-03-01 21:13:45.
B 30b7b8d85847418d99d1266592b328b0fee6e88c
C ifdef\sshuffling:\sTIOCMC[GS]ET\sioctls\sare\snot\sspecified\sby\sPOSIX,\nso\swe\scan't\sassume\sthey\sare\spresent\sjust\sbecause\swe\sHAVE_TERMIOS_H.\nConversely,\sif\sthey\sare\spresent\sthen\sthe\ssubsidiary\sflags\nTIOCM_{DTR|RTS}\sare\salmost\scertainly\sthere\sas\swell,\sso\sthat\nifdeffery\scan\sbe\sremoved.\n\nAnd\slastly,\sifdefs\sfor\sTIOCSBRK/TIOCCBRK\sare\sstill\sneeded.\n(Those\sare\slogically\sseparate\sfunctions\seven\sthough\sTIP#35\nlumped\sthem\stogether\swith\sDTR\sand\sRTS\sin\s-ttycontrol.\nPOSIX\sprovides\stcsendbreak()\sfor\sthis\spurpose,\sbut\sthat\ninterface\sdoesn't\sfit\swith\sthe\sTIP#35\sAPI.)\n\nKNOWN\sDEFECT:\sif\sa\shypothetical\sUnix\ssystem\sis\smissing\sTIOCMCGET\nbut\shas\sTIOCSBRK/TIOCCBRK,\sthe\slatter\sfunction\swill\snevertheless\nbe\sunavailable.\s\sAccounting\sfor\sthis\spossibility\sdoes\snot\sstrike\nme\sas\sbeing\sworth\sthe\sifdefs.
D 2013-03-01T21:13:45.018
F ChangeLog cc82eca0d72decc6e60aa056edd0c6b4600eaa2b
F compat/fake-rfc2553.c b3264aac949d9fc7a81c2f89f3cfdfa27aef4a35
F generic/regcomp.c eb34bda4230863cdfc35dcb464096e76919ccb36
F generic/regguts.h a6664739fb9792dd60bab26106f7f27c2373f306
F generic/tcl.h 6fc30d55f80880da2608248d4b8298f66cac414d
F generic/tclAssembly.c 465e06d7af67a214ed1eadc6cd7ee9303dbecfb2
F generic/tclBinary.c 841d3a778e14ad899be564940e38d6c68afd1db8
F generic/tclCompile.c ca53be730522c0d8ec9c549ae0f20cd6375c147d
F generic/tclEvent.c 806f9537e4aac90471bfcf48be25f5725a9ab58a
F generic/tclIO.c 8395b525d14c1ddb189588d74b5c4ec58cf264c4
F generic/tclIO.h 38064af752253fe92c45d34246dce2099cfee7fe
F generic/tclInt.h 0bd3a345bfd900a9f5fb743a059f02f69723f96e
F generic/tclInterp.c a1af1c423041a860d8f6a0b8ad8d249462f87488
F generic/tclLink.c 7bcaf424192d7ea47fb5ba9e5c0ca0072f98293e
F generic/tclNamesp.c 1545ee8d13576886d7607f067465a4dfe8ccb5d4
F generic/tclObj.c d5f956f4b1ee55bc9590df47b7f4a87e7b313e58
F generic/tclTrace.c 6e92466ca5fa9527a3921a81ef15be00c56b4a9f
F generic/tclUtf.c 5ce9c3041c6f0f12c393e9b932bf6dc873700f14
F generic/tclVar.c 56f5df8f14edcd551116e1611b04f3c48e61d097
F tests/assocd.test 66b1f625ad38c2c7ef03f7b0e578425e7b18d9d5
F tests/basic.test 5f487a6e22d01465b0e5313470125a805a7fc17c
F tests/binary.test adbaacf86d19d4d93579bfbefb7db2effff0d05c
F tests/chanio.test 286670c8d5f8efd95b8c8691de1761722de02ce1
F tests/namespace.test 70e31f458c98ec35ca8b44c66a562911ce224089
F tests/regexp.test 045d9608ca09c6a39b58f9b18c0294431893b070
F unix/tclUnixChan.c 2bac3420891bfdbf2b51871a090949ef4e81f1a7
F win/tclWinDde.c a6fef2180bb2a0b547efc58e5d87b49b495d71a9
F win/tclWinReg.c e7ae6db38b926c62685cf099e58750aee24bebce
P e62e3d1877cb2fe1a635b493d1c97d9a702f95b0
R e6d92e0bae25ecb3f8a88cd54a7bcc9a
U jenglish
Z 5c61f0eb6719c3510998f5f5f9c784f9