mirror of https://github.com/mkerrisk/man-pages
termios.3: Add information how to set baud rate to any other value
Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
69452aadaf
commit
4e972a7c84
|
@ -968,6 +968,13 @@ Normally, this will disconnect the line.
|
||||||
for the speeds beyond those defined in POSIX.1 (57600 and above).
|
for the speeds beyond those defined in POSIX.1 (57600 and above).
|
||||||
Thus, \fBB57600\fP & \fBCBAUDEX\fP is nonzero.
|
Thus, \fBB57600\fP & \fBCBAUDEX\fP is nonzero.
|
||||||
.PP
|
.PP
|
||||||
|
Setting the baud rate to a value other than those defined by
|
||||||
|
.B Bnnn
|
||||||
|
constants is possible via the
|
||||||
|
.B TCSETS2
|
||||||
|
ioctl; see
|
||||||
|
.BR ioctl_tty (2).
|
||||||
|
.PP
|
||||||
.BR cfgetispeed ()
|
.BR cfgetispeed ()
|
||||||
returns the input baud rate stored in the \fItermios\fP structure.
|
returns the input baud rate stored in the \fItermios\fP structure.
|
||||||
.PP
|
.PP
|
||||||
|
|
Loading…
Reference in New Issue