aboutsummaryrefslogtreecommitdiffstats
path: root/man3
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2021-08-08 10:41:27 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-08-09 02:32:37 +0200
commita53fba5e42816559ff24600cffeb255a079f15d2 (patch)
tree11a8b30a8d78eab98d27eca8fc3d59a242291d9f /man3
parent4e972a7c8455207a9aeec8055a5ee260817e8d8d (diff)
downloadman-pages-a53fba5e42816559ff24600cffeb255a079f15d2.tar.gz
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>
Diffstat (limited to 'man3')
-rw-r--r--man3/termios.324
1 files changed, 17 insertions, 7 deletions
diff --git a/man3/termios.3 b/man3/termios.3
index 7023025e78..4fbd34a525 100644
--- a/man3/termios.3
+++ b/man3/termios.3
@@ -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.