Technical data

SunOS 5.5 STREAMS Modules ttcompat(7M)
Delay type 0 is always mapped into the equivalent delay type 0 in the c_oflag field of the
termios structure. Other delay mappings are performed as follows:
sg_flags c_oflag
BS1 BS1
FF1 VT1
CR1 CR2
CR2 CR3
CR3
not supported
TAB1 TAB1
TAB2 TAB2
XTABS TAB3
NL1 ONLRET|CR1
NL2 NL1
If previous TIOCLSET or TIOCLBIS ioctl calls have not selected LITOUT or PASS8 mode,
and if RAW mode is not selected, then the ISTRIP flag is set in the c_iflag field of the ter-
mios structure, and the EVENP andODDP flags control the parity of characters sent to the
terminal and accepted from the terminal.
Parity is not to be generated on output or checked on input. The character size is set to
CS8 and the flag is cleared in the c_cflag field of the termios structure.
Even parity characters are to be generated on output and accepted on input. The flag is
set in the c_iflag field of the termios structure, the character size is set toCS7 and the flag
is set in the c_cflag field of the termios structure.
Odd parity characters are to be generated on output and accepted on input. The flag is
set in the c_iflag field, the character size is set to CS7 and the flags are set in the c_cflag
field of the termios structure.
Even parity characters are to be generated on output and characters of either parity are to
be accepted on input. The flag is cleared in the c_iflag field, the character size is set to
CS7 and the flag is set in the c_cflag field of the termios structure.
The RAW flag disables all output processing (the OPOST flag in the c_oflag field, and the
XCASE flag in the c_lflag field, are cleared in the termios structure) and input processing
(all flags in the c_iflag field other than the IXOFF and IXANY flags are cleared in the ter-
mios structure). 8 bits of data, with no parity bit, are accepted on input and generatedon
output; the character size is set toCS8 and the PARENB and PARODD flags are cleared in
the c_cflag field of the termios structure. The signal-generating and line-editing control
characters are disabled by clearing theISIG and ICANON flags in the c_lflag field of the
termios structure.
The CRMOD flag turns inputRETURN characters into NEWLINE characters, and output
and echoed NEWLINE characters to be output as a RETURN followed by aLINEFEED. The
ICRNL flag in the c_iflag field, and theOPOST and ONLCR flags in the c_oflag field, are
set in the termios structure.
modified 2 Jun 1995 7M-385