Manual Page Result
0
Command: tty | Section: 4 | Source: UNIX v10 | File: tty.4
TTY(4) Kernel Interfaces Manual TTY(4)
NAME
tty - serial line interface drivers
SYNOPSIS
#include <sys/ttyio.h>
DESCRIPTION
The files refer to serial line devices such as the DZ11. They are nor-
mally used in conjunction with the terminal line discipline, ttyld(4).
Certain device-related parameters, such as parity and line speed, may
be set by ioctl(2) calls:
TIOCGDEV
The argument points to a ttydevb structure to be filled in with
current settings.
TIOCSDEV
The argument points to a ttydevb structure from which the para-
meters are set.
The ttydevb structure, as defined in <sys/ttyio.h>, is
struct ttydevb {
char ispeed; /* input speed */
char ospeed; /* output speed */
short flags; /* mode flags */
};
The speeds are encoded as follows. Impossible speeds are ignored.
B0 0 (hang up device)
B50 1 50 baud
B75 2 75 baud
B110 3 110 baud
B134 4 134.5 baud
B150 5 150 baud
B200 6 200 baud
B300 7 300 baud
B600 8 600 baud
B1200 9 1200 baud
B1800 10 1800 baud
B2400 11 2400 baud
B4800 12 4800 baud
B9600 13 9600 baud
EXTA 14 External A
EXTB 15 External B
The flags are:
F8BIT 040 eight-bit input and output
ODDP 0100 odd parity
EVENP 0200 even parity
If is set, all eight bits of each output character are transmitted
without imposing parity, and all eight bits of each input character are
passed back without parity checking or stripping. Otherwise, requests
that even parity be accepted and generated, odd parity. If both and
are set, or if both are clear, even parity is generated and any parity
is accepted.
For DZ11 lines, 1200 baud and 8-bit mode are the defaults. The trans-
mit and receive speeds are the same; ospeed is ignored.
SEE ALSO
ioctl(2), ttyld(4)
BUGS
Every hardware interface doesn't support every operation.
TTY(4)