HP-UX Reference (11i v2 07/12) - 7 Device (Special) Files, 9 General Information, Index (vol 10)
t
termio(7) termio(7)
any delay.
Backspace delay lasts about 0.05 seconds. If OFILL
is set, one fill character is transmitted.
The actual delays depend on line speed and system load.
The initial output control value is all bits clear.
Control Modes
The
c_cflag field describes the hardware control of the terminal:
CBAUD Baud rate: CSIZE Character size:
B0 Hang up CS5 5 bits
B50 50 baud CS6 6 bits
B75 75 baud CS7 7 bits
B110 110 baud CS8 8 bits
B134 134.5 baud
B150 150 baud CSTOPB Send two stop bits, else one.
B200 200 baud CREAD Enable receiver.
B300 300 baud PARENB Parity enable.
B600 600 baud PARODD Odd parity, else even.
B900 900 baud HUPCL Hang up on last close.
B1200 1200 baud CLOCAL Local line, else dial-up.
B1800 1800 baud LOBLK Reserved for use by shl(1).
B2400 2400 baud
B3600 3600 baud
B4800 4800 baud
B7200 7200 baud
B9600 9600 baud
B19200 19200 baud
B38400 38400 baud
EXTA External A
EXTB External B
The CBAUD bits specify the baud rate. The zero baud rate, B0, is used to hang up the connection. If
B0
is specified, the modem control lines (see modem(7)) cease to be asserted. Normally, this disconnects the
line. For any particular hardware, impossible speed changes are ignored. CBAUD is provided for use with
the termio structure. When the termios structure is used, several routines are available for setting
and getting the input and output baud rates (see termios Structure Related Functions).
The
CSIZE bits specify the character size in bits for both transmission and reception. This size does not
include the parity bit, if any. If CSTOPB is set, two stop bits are used; otherwise one stop bit. For exam-
ple, at 110 baud, many devices require two stop bits.
If PARENB is set, parity generation is enabled (a parity bit is added to each output character). Further-
more, parity detection is enabled (incoming characters are checked for the correct parity). If PARENB is
set,
PARODD specifies odd parity if set; otherwise even parity is used. If PARENB
is clear, both parity
generation and parity checking are disabled.
If
CREAD is set, the receiver is enabled. Otherwise no characters can be received.
The specific effects of the HUPCL and CLOCAL bits depend on the mode and type of the modem control in
effect. See modem(7) for the details.
If HUPCL is set, the modem control lines for the port are lowered (disconnected) when the last process
using the open port closes it or terminates.
If CLOCAL is set, a connection does not depend on the state of the modem status lines. If CLOCAL is
clear, the modem status lines are monitored.
Under normal circumstances, a call to read() waits for a modem connection to complete. However, if
either the O_NDELAY or the O_NONBLOCK flags are set or CLOCAL is set, the open() returns
immediately without waiting for the connection. If CLOCAL is set, see Modem Disconnect for the effects of
read() and write() for those files for which the connection has not been established or has been lost.
LOBLK is used by the shell layers facility (see shl(1)). The shell layers facility is not part of the general ter-
minal interface, and the LOBLK bit is not examined by the general terminal interface.
HP-UX 11i Version 2: December 2007 Update − 10 − Hewlett-Packard Company 201