Skip to content
Tcl Source Code Check-in [b62235d0e5]
Login

Check-in [b62235d0e5]

Overview
Comment: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.
Timelines: family | ancestors | descendants | both | jenglish-termios-cleanup
Files: files | file ages | folders
SHA1: b62235d0e5a87bea62c417902ff501a3fa0d0ba5
User & Date: jenglish on 2013-03-01 21:13:45.018
Other Links: branch diff | manifest | tags
Context
2013-03-01
23:53
Replace broken SC_SERIAL_PORT macro with plain AC_CHECK_HEADERS tests. check-in: 686239894b user: jenglish tags: jenglish-termios-cleanup
21:13
ifdef shuffling: TIOCMC[GS]ET ioctls are not specified by POSIX, so we can't assume they are present... check-in: b62235d0e5 user: jenglish tags: jenglish-termios-cleanup
2013-02-28
21:52
TtyGetOptionProc: remove inoperative comment "The string returned by this function is in static sto... check-in: e62e3d1877 user: jenglish tags: jenglish-termios-cleanup
Changes