termios.3: SPARC architecture has 4 different Bnnn constants

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@kernel.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Pali Rohár 2021-08-08 10:41:28 +02:00 committed by Michael Kerrisk
parent a53fba5e42
commit 19ddd96b52
1 changed files with 23 additions and 0 deletions

View File

@ -953,6 +953,24 @@ to by \fItermios_p\fP to \fIspeed\fP, which must be one of these constants:
B1152000
B1500000
B2000000
.ft P
.fi
.PP
These constants are additionally supported on the SPARC architecture:
.PP
.nf
.ft B
B76800
B153600
B307200
B614400
.ft P
.fi
.PP
These constants are additionally supported on non-SPARC architectures:
.PP
.nf
.ft B
B2500000
B3000000
B3500000
@ -960,6 +978,11 @@ to by \fItermios_p\fP to \fIspeed\fP, which must be one of these constants:
.ft P
.fi
.PP
Due to differences between architectures, portable applications should check
if a particular
.BI B nnn
constant is defined prior to using it.
.PP
The zero baud rate,
.BR B0 ,
is used to terminate the connection.