Re: [PATCH 15/23] termios.3: Add information how to set baud rate to any other value

Michael Kerrisk (man-pages)
2021-08-08T20:34:14Z

Hello Pali and Alex,

On 8/8/21 10:41 AM, Alejandro Colomar wrote:
> From: Pali Rohár <pali@kernel.org>
>
> Signed-off-by: Pali Rohár <pali@kernel.org>
> Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>

Patch applied.

Thanks,

Michael

> ---
> 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
>

--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/