Technical data

ttcompat(7M) STREAMS Modules SunOS 5.5
TIOCEXCL Set ‘‘exclusive-use’’ mode; no further opens are permitted untilthe file has
been closed.
TIOCNXCL Turn off ‘‘exclusive-use’’ mode.
TIOCSETP The argument is a pointer to an sgttyb structure. The appropriate charac-
ters and input and output speeds in the terminal state are set from the
values in that structure, and the flags in the terminal state are set to match
the values of the flags in the sg_flags field of that structure. The state is
changed with aTCSETSF ioctl so that the interface delays until output is
quiescent, then throws away any unread characters, before changing the
modes.
TIOCSETN The argument is a pointer to an sgttyb structure. The terminal state is
changed asTIOCSETP would change it, but a TCSETS ioctl is used, so that
the interface neither delays nor discards input.
TIOCHPCL The argument is ignored. TheHUPCL flag is set in the c_cflag word of the
terminal state.
TIOCFLUSH The argument is a pointer to an int variable. If its value is zero, all charac-
ters waiting in input or output queues are flushed. Otherwise, the value of
the int is treated as the logicalOR of the FREAD andFWRITE flags defined
by <sys/file.h>. If the FREAD bit is set, all characters waiting in input
queues are flushed, and if theFWRITE bit is set, all characters waiting in
output queues are flushed.
TIOCBRK The argument is ignored. The break bit is set for the device.
TIOCCBRK The argument is ignored. The break bit is cleared for the device.
TIOCSDTR The argument is ignored. The Data Terminal Ready bit is set for the device.
TIOCCDTR The argument is ignored. The Data Terminal Ready bit is cleared for the
device.
TIOCSTOP The argument is ignored. Output is stopped as if theSTOP character had
been typed.
TIOCSTART The argument is ignored. Output is restarted as if the START character had
been typed.
TIOCGETC The argument is a pointer to a tchars structure. The current terminal state
is fetched, and the appropriate characters in the terminal state are stored in
that structure.
TIOCSETC The argument is a pointer to a tchars structure. The values of the appropri-
ate characters in the terminal state are set from the characters in that struc-
ture.
TIOCLGET The argument is a pointer to an int. The current terminal state is fetched,
and the values of the local flags are derived from the flags in the terminal
state and stored in the int pointed to by the argument.
7M-388 modified 2 Jun 1995