aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2025-07-12 22:19:44 -0700
committerAndreas K. Hüttel <dilfridge@gentoo.org>2025-07-20 17:17:44 +0200
commitc744519bad81067697600bd01e90b90ae338bf08 (patch)
treeeac938d7561dba45b179324af21f7dec42b920c5
parent12126f86f2526da325cd17a6463ec4c0c3db981e (diff)
downloadglibc-c744519bad81067697600bd01e90b90ae338bf08.zip
glibc-c744519bad81067697600bd01e90b90ae338bf08.tar.gz
glibc-c744519bad81067697600bd01e90b90ae338bf08.tar.bz2
termios: manual: document the SPEED_MAX and BAUD_MAX constants
Add the SPEED_MAX and BAUD_MAX constants to the manual. [ v3: drop leading underscores ] Signed-off-by: "H. Peter Anvin" (Intel) <hpa@zytor.com> Reviewed-by: Collin Funk <collin.funk1@gmail.com>
-rw-r--r--manual/terminal.texi18
1 files changed, 18 insertions, 0 deletions
diff --git a/manual/terminal.texi b/manual/terminal.texi
index b43231b..805b408 100644
--- a/manual/terminal.texi
+++ b/manual/terminal.texi
@@ -1264,6 +1264,17 @@ BSD defines two additional speed symbols as aliases: @code{EXTA} is an
alias for @code{B19200} and @code{EXTB} is an alias for @code{B38400}.
These aliases are obsolete.
+@deftypevr Macro speed_t SPEED_MAX
+@standards{GNU, termios.h}
+
+@theglibc{} defines the constant @code{SPEED_MAX} for the largest valid
+value of type @code{speed_t}. This value may be smaller than the
+underlying C type can store.
+
+For compatiblity with some other platforms the alias @code{__MAX_BAUD}
+is defined for this constant.
+@end deftypevr
+
@deftypefun speed_t cfgetospeed (const struct termios *@var{termios-p})
@standards{POSIX.1, termios.h}
@safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}}
@@ -1347,6 +1358,13 @@ may not be the case in future versions or on other implementations; it
is specifically not guaranteed to be an integer type.
@end deftp
+@deftypevr Macro baud_t BAUD_MAX
+@standards{GNU, termios.h}
+The constant @code{BAUD_MAX} is defined to the maximum valid value of
+type @code{baud_t}. This value may be smaller than the underlying C
+type can store.
+@end deftypevr
+
@deftypefun baud_t cfgetobaud (const struct termios *@var{termios-p})
@standards{GNU, termios.h}
@safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}}