diff options
author | H. Peter Anvin <hpa@zytor.com> | 2025-07-12 22:19:43 -0700 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2025-07-20 17:17:41 +0200 |
commit | 12126f86f2526da325cd17a6463ec4c0c3db981e (patch) | |
tree | c42b8fd56f6b5517eca9510cd50d995b875f8424 /sysdeps/unix/sysv/linux/alpha/bits | |
parent | 0332959dd27e8be7e488862211327eab3531e520 (diff) | |
download | glibc-12126f86f2526da325cd17a6463ec4c0c3db981e.zip glibc-12126f86f2526da325cd17a6463ec4c0c3db981e.tar.gz glibc-12126f86f2526da325cd17a6463ec4c0c3db981e.tar.bz2 |
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>
Diffstat (limited to 'sysdeps/unix/sysv/linux/alpha/bits')
0 files changed, 0 insertions, 0 deletions