Thread (4 messages) 4 messages, 3 authors, 2021-08-31
STALE1735d

[PATCH] termios.3: Clarify zero argument for cfsetispeed()

From: Pali Rohár <pali@kernel.org>
Date: 2021-08-30 11:26:41
Subsystem: the rest · Maintainer: Linus Torvalds

Zero in this case refers to literal constant 0 and not symbolic constant B0.

Signed-off-by: Pali Rohár <pali@kernel.org>
---
 man3/termios.3 | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/man3/termios.3 b/man3/termios.3
index c96a5c15ec87..f888c15d754c 100644
--- a/man3/termios.3
+++ b/man3/termios.3
@@ -1017,7 +1017,11 @@ 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
+If the input baud rate is set to literal constant
+.B 0
+(not the symbolic constant
+.BR B0 ),
+the input baud rate will be
 equal to the output baud rate.
 .PP
 .BR cfsetspeed ()
-- 
2.20.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help