Technical data

SunOS 5.5 STREAMS Modules ldterm(7M)
TCSETS/TCSETSW/TCSETSF/TCSETA/TCSETAW/TCSETAF
The parameters that control the behavior of the ldterm module are changed. If a
mode change requires options at the stream head to be changed, an
M_SETOPTS message is sent upstream. If the ICANON flag is turned on or off,
the read mode at the stream head is changed to message-nondiscard or byte-
stream mode, respectively. If the TOSTOP flag is turned on or off, the tostop
mode at the stream head is turned on or off, respectively. In any case, ldterm
passes the ioctl on downstream for possible additional processing.
TCFLSH
If the argument is 0, an M_FLUSH message with a flag byte of FLUSHR is sent
downstream and placed on the read queue. If the argument is 1, the write queue
is flushed of all its data messages and an M_FLUSH message with a flag byte of
FLUSHW is sent upstream and downstream. If the argument is 2, the write
queue is flushed of all its data messages and an M_FLUSH message with a flag
byte of FLUSHRW is sent downstream and placed on the read queue.
TCXONC
If the argument is 0 and output is not already stopped, an M_STOP message is
sent downstream. If the argument is 1 and output is stopped, an M_START
message is sent downstream. If the argument is 2 and input is not already
stopped, an M_STOPI message is sent downstream. If the argument is 3 and
input is stopped, an M_STARTI message is sent downstream.
TCSBRK
The message is passed downstream, so the driver has a chance to drain the data
and then send and an M_IOCACK message upstream.
EUC_WSET
This call takes a pointer to an eucioc structure, and uses it to set theEUC line
discipline’s local definitionfor the code set widths to be used for subsequent
operations. Within the stream, the line discipline may optionally notify other
modules of this setting usingM_CTL messages.
EUC_WGET
This call takes a pointer to an eucioc structure, and returns in it theEUC code set
widths currently in use by the EUC line discipline.
SEE ALSO termios(3), console(7D), termio(7I)
STREAMS Programming Guide
modified 3 Jul 1990 7M-185