glibc/sysdeps/unix/sysv/linux/x86_64
H. Peter Anvin (Intel) 5f138519eb termios: add new baud_t interface, defined to be explicitly numeric
Add an explicitly numeric interface for baudrate setting. For glibc,
this only announces what is a fair accompli, but this is a plausible
way forward for standardization, and may be possible to infill on
non-compliant systems. The POSIX committee has stated:

[https://www.austingroupbugs.net/view.php?id=1916#c7135]

	A future version of this standard is expected to add at least
	the following symbolic constants for use as values of objects
	of type speed_t: B57600, B115200, B230400, B460800, and
	B921600.

	Implementations are encouraged to propose additional
	interfaces which will make it possible to set and query a
	wider range of speeds than just those enumerated by the
	constants beginning with B. If a set of common interfaces
	emerges between several implementations, a future version of
	this standard will likely add those interfaces.

This is exactly that interface.

The use of the term "baud" is due to the need to have a term
contrasting "speed", and it is already well established as a legacy
term -- including in the names of the legacy Bxxx
constants. Futhermore, it *is* valid from the point of view that the
termios interface fundamentally emulates an RS-232 serial port as far
as the application software is concerned.

The documentation states that for the current version of glibc,
speed_t == baud_t, but explicitly declares that this may not be the
case in the future.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2025-06-17 09:11:38 -03:00
..
64 termios: add new baud_t interface, defined to be explicitly numeric 2025-06-17 09:11:38 -03:00
include/asm
x32 termios: add new baud_t interface, defined to be explicitly numeric 2025-06-17 09:11:38 -03:00
Implies
Makefile
Versions
____longjmp_chk.S
__start_context.S
allocate-shadow-stack.c
allocate-shadow-stack.h
clone.S
clone3.S
configure
configure.ac
dl-cet.h
dl-plt-rewrite.h
dl-procinfo.c
get-cpuid-feature-leaf.c
getcontext.S
kernel-features.h
ldd-rewrite.sed
libc_sigaction.c sigaction: don't sign-extend sa_flags 2025-06-03 10:53:12 +02:00
libmvec.abilist
makecontext.c
pointer_guard.h
setcontext.S
sigaltstack-offsets.sym
sigcontextinfo.h
single-thread.h
swapcontext.S
syscall.S
syscall_cancel.S
syscalls.list
sysdep.S
sysdep.h
tst-cet-property-1.c
tst-cet-property-2.c
tst-cet-property-dep-2.S
tst-cet-setcontext-1.c
tst-cet-vfork-1.c
tst-glibc-hwcaps-2.c
tst-gnu2-tls2-amx-mod0.c
tst-gnu2-tls2-amx-mod1.c
tst-gnu2-tls2-amx-mod2.c
tst-gnu2-tls2-amx.c
tst-gnu2-tls2-amx.h
ucontext_i.sym
vfork.S
x86-64-isa-level-VALUE.c