Hi Pali!
On 7/31/21 4:55 PM, Pali Rohár wrote:
SPARC is special, it does not have Bnnn constants for baud rates above
2000000. Instead it defines 4 Bnnn constants with smaller baud rates.
This difference between SPARC and non-SPARC architectures is present in
both glibc API (termios.h) and also kernel ioctl API (asm/termbits.h).
Signed-off-by: Pali Rohár <pali@xxxxxxxxxx>
Except for some wording issues (see below), looks good to me.
Thanks,
Alex
---
man3/termios.3 | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/man3/termios.3 b/man3/termios.3
index 7b195c95912b..2ff8cc80e9eb 100644
--- a/man3/termios.3
+++ b/man3/termios.3
@@ -952,15 +952,38 @@ to by \fItermios_p\fP to \fIspeed\fP, which must be one of these constants:
B1000000
B1152000
B1500000
B2000000
+.ft P
+.fi
+.PP
+On SPARC architecture are additionally supported these constants:
On the SPARC architecture,
or
On SPARC,
these constants are additionally supported
Or, if you want to avoid the comma:
These constants are additionally supported on SPARC (or: on the SPARC
architecture):
+.PP
+.nf
+.ft B
+ B76800
+ B153600
+ B307200
+ B614400
+.ft P
+.fi
+.PP
+On non-SPARC architectures are additionally supported these constants:
Here you don't need "the"; "on non-SPARC architectures" is correct.
But for the second part of the sentence, the same fix as above applies.
+.PP
+.nf
+.ft B
B2500000
B3000000
B3500000
B4000000
.ft P
.fi
.PP
+Due to differences between architectures, portable applications should check
+if particular
if a particular
+.BI B nnn
+constant is defined prior using it.
s/prior/prior to/
+.PP
The zero baud rate, \fBB0\fP,
is used to terminate the connection.
If B0 is specified, the modem control lines shall no longer be asserted.
Normally, this will disconnect the line.
--
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/