Technical data

SunOS 5.5 Ioctl Requests termio(7I)
special function is done.
Modem disconnect When a modem disconnect is detected, aSIGHUP signal is sent to the terminal’s control-
ling process. Unless other arrangements have been made, these signals cause the process
to terminate. If SIGHUP is ignored or caught, any subsequent read returns with an end-
of-file indication until the terminal is closed.
If the controlling process is not in the foreground process group of the terminal, a
SIGTSTP is sent to the terminal’s foreground process group. Unless other arrangements
have been made, these signals cause the processes to stop.
Processes in background process groups that attempt to access the controlling terminal
after modem disconnect while the terminal is still allocated to the session will receive
appropriate SIGTTOU and SIGTTIN signals. Unless other arrangements have beenmade,
this signal causes the processes to stop.
The controlling terminal will remain in this state untilit is reinitialized with a successful
open by the controlling process, or deallocated by the controlling process.
Terminal parameters The parameters that control the behavior of devices and modules providing the termios
interface are specified by the termios structure defined by <termios.h>. Several ioctl(2)
system calls that fetch or change these parameters use this structure that contains the fol-
lowing members:
tcflag_t c_iflag; /input modes /
tcflag_t c_oflag; /output modes /
tcflag_t c_cflag; /control modes /
tcflag_t c_lflag; /local modes /
cc_t c_cc[NCCS]; /control chars /
The special control characters are defined by the array c_cc. The symbolic name NCCS is
the size of the control-character array and is also defined by <termios.h>. The relative
positions, subscript names, and typical default values for each function are as follows:
0 VINTR ETX
1 VQUIT FS
2 VERASE DEL
3 VKILL NAK
4 VEOF EOT
5 VEOL NUL
6 VEOL2 NUL
7 VSWTCH NUL
8 VSTART DC1
9 VSTOP DC3
10 VSUSP SUB
11 VDSUSP EM
12 VREPRINT DC2
13 VDISCARD SI
14 VWERASE ETB
15 VLNEXT SYN
modified 30 May 1995 7I-351