glibc/termios
H. Peter Anvin 12126f86f2
termios: SPEED_MAX and BAUD_MAX constants
Add constants indicating the maximum values of speed_t and baud_t.
Hopefully if and when the baud_t interface is standardized then
BAUD_MAX will be included in the standardization from the start.

Historically, the __MAX_BAUD symbol has indicated the maximum speed_t
value on at least some platforms (including glibc).  However, this
name would be problematic for future standardization, because it
confusingly implies a reference to baud_t, not speed_t, and it is
inconsistent with other limit symbols, which are all of the form *_MAX
(e.g. SIZE_MAX for size_t.)

[ v3: dropped leading underscores, leave __MAX_BAUD outside
      #ifdef __USE_MISC since it is a legacy symbol, and
      namespace-protected with a double underscore.
      (Collin Funk, Adhermerval Zanella Netto) ]

[ v4: moved from __USE_MISC to __USE_GNU (Collin Funk) ]

Signed-off-by: "H. Peter Anvin" (Intel) <hpa@zytor.com>
Reviewed-by: Collin Funk <collin.funk1@gmail.com>
2025-07-20 17:17:41 +02:00
..
sys hurd/termios: remove USE_OLD_TTY 2025-06-17 09:11:38 -03:00
Makefile termios: Move isatty, __isatty_nostatus from io 2025-07-11 16:04:07 +02:00
Versions termios: Move isatty, __isatty_nostatus from io 2025-07-11 16:04:07 +02:00
baud.c termios: add new baud_t interface, defined to be explicitly numeric 2025-06-17 09:11:38 -03:00
cfmakeraw.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
cfsetbaud.c termios: add new baud_t interface, defined to be explicitly numeric 2025-06-17 09:11:38 -03:00
cfsetspeed.c termios: add new baud_t interface, defined to be explicitly numeric 2025-06-17 09:11:38 -03:00
isatty.c termios: Move isatty, __isatty_nostatus from io 2025-07-11 16:04:07 +02:00
isatty_nostatus.c termios: Move isatty, __isatty_nostatus from io 2025-07-11 16:04:07 +02:00
speed.c termios: add new baud_t interface, defined to be explicitly numeric 2025-06-17 09:11:38 -03:00
tcdrain.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tcflow.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tcflush.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tcgetattr.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tcgetpgrp.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tcgetsid.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tcsendbrk.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tcsetattr.c termios: make __tcsetattr() the internal interface 2025-06-17 09:11:38 -03:00
tcsetpgrp.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
termios.h termios: SPEED_MAX and BAUD_MAX constants 2025-07-20 17:17:41 +02:00