public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: "Pali Rohár" <pali@kernel.org>
To: linux-man@vger.kernel.org,
	Alejandro Colomar <alx.manpages@gmail.com>,
	Michael Kerrisk <mtk.manpages@gmail.com>
Subject: [PATCH] termios.3: Add information how to set baudrate to any other value
Date: Fri, 30 Jul 2021 17:30:44 +0200	[thread overview]
Message-ID: <20210730153044.23673-1-pali@kernel.org> (raw)

Signed-off-by: Pali Rohár <pali@kernel.org>
---
 man3/termios.3 | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/man3/termios.3 b/man3/termios.3
index b7cdec507524..4d4593a33c32 100644
--- a/man3/termios.3
+++ b/man3/termios.3
@@ -967,6 +967,12 @@ Normally, this will disconnect the line.
 \fBCBAUDEX\fP is a mask
 for the speeds beyond those defined in POSIX.1 (57600 and above).
 Thus, \fBB57600\fP & \fBCBAUDEX\fP is nonzero.
+Setting baudrate to other value than defined by
+.B Bnnn
+constants is possible via
+.B TCSETS2
+ioctl, see
+.BR ioctl_tty (2).
 .PP
 .BR cfgetispeed ()
 returns the input baud rate stored in the \fItermios\fP structure.
-- 
2.20.1


             reply	other threads:[~2021-07-30 15:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-30 15:30 Pali Rohár [this message]
2021-07-30 18:29 ` [PATCH] termios.3: Add information how to set baudrate to any other value Alejandro Colomar (man-pages)
2021-07-31  1:50   ` G. Branden Robinson
2021-07-31 11:24     ` Alejandro Colomar (man-pages)
2021-07-30 18:45 ` [PATCH v2] termios.3: Add information how to set baud rate " Pali Rohár
2021-07-30 18:59   ` Alejandro Colomar (man-pages)
2021-07-31  0:19   ` G. Branden Robinson
2021-07-31 11:04     ` Alejandro Colomar (man-pages)
2021-07-31 11:06       ` Pali Rohár
2021-08-01 11:07         ` Alejandro Colomar (man-pages)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210730153044.23673-1-pali@kernel.org \
    --to=pali@kernel.org \
    --cc=alx.manpages@gmail.com \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox