Need Help Identifying U.C.B. 4.X Define's
gwyn at BRL-VLD.ARPA
gwyn at BRL-VLD.ARPA
Fri Aug 24 08:29:34 AEST 1984
From: Doug Gwyn (VLD/VMB) <gwyn at BRL-VLD.ARPA>
The missing defines are all related to terminal ioctls.
LPENDIN is another mode bit meaning "retype pending input at next read
or input character"; there is no equivalent in UNIX System V.
TIOCSETN sets the parameters according to the pointed-to sgttyb struct.
The mode change occurs immediately, without waiting for output to drain.
If the mode is being changed from or to RAW mode, unread input is
flushed. The nearest UNIX System V equivalent is TCSETA; if you really
need the input queue flushed, then an additional TCFLSH, 0 is required.
TIOCSTI pushes the pointed-to char onto the terminal input queue, as
though it had been typed on the keyboard; there is no equiavlent in
UNIX System V.
TIOCLBIS `ors' bits into the local mode flag word. This could be
simulated (assuming that the modes involved have equivalents) on UNIX
System V by a TCGETA followed by a TCSETA.
CBREAK turns off input canonicalization; the UNIX System V equivalent
is to turn off ICANON.
The above are documented in TTY(4) for 4.2BSD, and TERMIO(7) for UNIX
System V (the latter for some bogus reason is in the Administrator's
Manual instead of the Programmer's Manual where it belongs).
One general comment is that any program that makes essential use of
such things as LPENDIN and TIOCSTI is highly nonportable, and you
should suspect other Berkeleyisms in the source code.
More information about the Comp.unix
mailing list