From 4e972a7c8455207a9aeec8055a5ee260817e8d8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pali=20Roh=C3=A1r?= Date: Sun, 8 Aug 2021 10:41:25 +0200 Subject: [PATCH] termios.3: Add information how to set baud rate to any other value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pali Rohár Signed-off-by: Alejandro Colomar Signed-off-by: Michael Kerrisk --- man3/termios.3 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/man3/termios.3 b/man3/termios.3 index b7cdec507..7023025e7 100644 --- a/man3/termios.3 +++ b/man3/termios.3 @@ -968,6 +968,13 @@ Normally, this will disconnect the line. for the speeds beyond those defined in POSIX.1 (57600 and above). Thus, \fBB57600\fP & \fBCBAUDEX\fP is nonzero. .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 () returns the input baud rate stored in the \fItermios\fP structure. .PP