termios.3: ffix

Format variable parts of words referring to a group of identifiers
in italics, following groff_man(7) recommendations.

Also srcfix surrounding uses of \f escape sequences to use macros

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2021-08-08 10:41:27 +02:00 committed by Michael Kerrisk
parent 4e972a7c84
commit a53fba5e42
1 changed files with 17 additions and 7 deletions

View File

@ -960,28 +960,38 @@ to by \fItermios_p\fP to \fIspeed\fP, which must be one of these constants:
.ft P
.fi
.PP
The zero baud rate, \fBB0\fP,
The zero baud rate,
.BR B0 ,
is used to terminate the connection.
If B0 is specified, the modem control lines shall no longer be asserted.
Normally, this will disconnect the line.
\fBCBAUDEX\fP is a mask
.B CBAUDEX
is a mask
for the speeds beyond those defined in POSIX.1 (57600 and above).
Thus, \fBB57600\fP & \fBCBAUDEX\fP is nonzero.
Thus,
.BR B57600 " & " CBAUDEX
is nonzero.
.PP
Setting the baud rate to a value other than those defined by
.B Bnnn
.BI B nnn
constants is possible via the
.B TCSETS2
ioctl; see
.BR ioctl_tty (2).
.PP
.BR cfgetispeed ()
returns the input baud rate stored in the \fItermios\fP structure.
returns the input baud rate stored in the
.I termios
structure.
.PP
.BR cfsetispeed ()
sets the input baud rate stored in the \fItermios\fP structure to
sets the input baud rate stored in the
.I termios
structure to
.IR speed ,
which must be specified as one of the \fBBnnn\fP constants listed above for
which must be specified as one of the
.BI B nnn
constants listed above for
.BR cfsetospeed ().
If the input baud rate is set to zero, the input baud rate will be
equal to the output baud rate.