Technical data
SunOS 5.5 Ioctl Requests termio(7I)
The calls that use the termio structure only affect the flags and control characters that can
be stored in the termio structure; all other flags and control characters are unaffected.
Modem lines On special files representingserial ports, the modem control lines supported by the
hardware can be read, and the modem status lines supported by the hardware can be
changed. The following modem control and status lines may be supported by a device;
they are defined by <sys/termios.h>:
TIOCM_LE line enable
TIOCM_DTR data terminal ready
TIOCM_RTS request to send
TIOCM_ST secondary transmit
TIOCM_SR secondary receive
TIOCM_CTS clear to send
TIOCM_CAR carrier detect
TIOCM_RNG ring
TIOCM_DSR data set ready
TIOCM_CD is a synonym for TIOCM_CAR, and TIOCM_RI is a synonym for
TIOCM_RNG. Not all of these are necessarily supported by any particular device; check
the manual page for the device in question.
Default values The initial termios values upon driver open is configurable. This is accomplished by set-
ting the “ttymodes” property in the file /kernel/drv/options.conf. Note: This property is
assigned during system initialization, therefore any change to the “ttymodes” property
will not take effect until the next reboot. The string value assigned to this property
should be in the same format as the output of the stty command with the -g option. See
stty(1).
If this property is undefined, the following termios modes are in effect. The initial input
control value is BRKINT, ICRNL, IXON, IMAXBEL. The initial output control value is
OPOST, ONLCR, TAB3. The initial hardware control value is B9600, CS8, CREAD. The
initial line-disciplinecontrol value is ISIG, ICANON, IEXTEN, ECHO, ECHOK,
ECHOE, ECHOKE, ECHOCTL.
IOCTLS The ioctls supported by devices and STREAMS modules providing the termios interface
are listed below. Some calls may not be supported by all devices or modules. The func-
tionality provided by these calls is also available through the preferred function call inter-
face specified on termios(3).
TCGETS The argument is a pointer to a termios structure. The current terminal
parameters are fetched and stored into that structure.
TCSETS The argument is a pointer to a termios structure. The current terminal
parameters are set from the values stored in that structure. The change
is immediate.
modified 30 May 1995 7I-361










