Technical data
termio(7I) Ioctl Requests SunOS 5.5
TCSETSW The argument is a pointer to a termios structure. The current terminal
parameters are set from the values stored in that structure. The change
occurs after all characters queued for output have been transmitted.
This form should be used when changingparameters that affect output.
TCSETSF The argument is a pointer to a termios structure. The current terminal
parameters are set from the values stored in that structure. The change
occurs after all characters queued for output have been transmitted; all
characters queued for input are discarded and then the change occurs.
TCGETA The argument is a pointer to a termio structure. The current terminal
parameters are fetched, and those parameters that can be stored in a ter-
mio structure are stored into that structure.
TCSETA The argument is a pointer to a termio structure. Those terminal parame-
ters that can be stored in a termio structure are set from the values
stored in that structure. The change is immediate.
TCSETAW The argument is a pointer to a termio structure. Those terminal parame-
ters that can be stored in a termio structure are set from the values
stored in that structure. The change occurs after all characters queued
for output have been transmitted. This form should be used when
changing parameters that affect output.
TCSETAF The argument is a pointer to a termio structure. Those terminal parame-
ters that can be stored in a termio structure are set from the values
stored in that structure. The change occurs after all characters queued
for output have been transmitted; all characters queued for input are
discarded and then the change occurs.
TCSBRK The argument is an int value. Wait for the output to drain. If the argu-
ment is 0, then send a break (zero valued bits for 0.25 seconds).
TCXONC Start/stop control. The argument is an int value. If the argument is 0,
suspend output; if 1, restart suspended output; if 2, suspend input; if 3,
restart suspended input.
TCFLSH The argument is an int value. If the argument is 0, flush the input
queue; if 1, flush the output queue; if 2, flush both the input and output
queues.
TIOCGPGRP The argument is a pointer to a pid_t. Set the value of that pid_t to the
process group ID of the foreground process group associated with the
terminal. See termios(3) for a description or TCGETPGRP.
TIOCSPGRP The argument is a pointer to a pid_t. Associate the process group
whose process group ID is specified by the value of that pid_t with the
terminal. The new process group value must be in the range of valid
process group ID values. Otherwise, the error EPERM is returned. See
termios(3) for a description of TCSETPGRP.
TIOCGSID The argument is a pointer to a pid_t. The session ID of the terminal is
fetched and stored in the pid_t.
7I-362 modified 30 May 1995










