1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

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>
This commit is contained in:
H. Peter Anvin (Intel)
2025-06-11 18:35:42 -07:00
committed by Adhemerval Zanella
parent 98aeca349a
commit 5f138519eb
45 changed files with 400 additions and 27 deletions

View File

@ -2752,9 +2752,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -3099,9 +3099,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -2513,9 +2513,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -2805,9 +2805,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -2802,9 +2802,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -31,6 +31,7 @@ __cfsetspeed (struct termios *termios_p, speed_t speed)
return 0;
}
libc_hidden_def (__cfsetspeed)
versioned_symbol (libc, __cfsetspeed, cfsetspeed, GLIBC_2_42);
#if _TERMIOS_OLD_COMPAT

View File

@ -2789,9 +2789,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -2826,9 +2826,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -3009,9 +3009,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -2273,9 +2273,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -2785,9 +2785,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -2952,9 +2952,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -2838,9 +2838,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -2835,9 +2835,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -2913,9 +2913,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -2911,9 +2911,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -2919,9 +2919,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -2821,9 +2821,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -2263,9 +2263,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -3142,9 +3142,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -3187,9 +3187,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -2896,9 +2896,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -2972,9 +2972,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -2516,9 +2516,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -2716,9 +2716,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -3140,9 +3140,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -2933,9 +2933,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -2832,9 +2832,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -2829,9 +2829,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -3161,9 +3161,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -2797,9 +2797,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -263,6 +263,7 @@ __cfgetospeed (const struct termios *termios_p)
{
return termios_p->c_ospeed;
}
libc_hidden_def (__cfgetospeed)
versioned_symbol (libc, __cfgetospeed, cfgetospeed, GLIBC_2_42);
/* Return the input baud rate stored in *TERMIOS_P. */
@ -271,6 +272,7 @@ __cfgetispeed (const struct termios *termios_p)
{
return termios_p->c_ispeed;
}
libc_hidden_def (__cfgetispeed)
versioned_symbol (libc, __cfgetispeed, cfgetispeed, GLIBC_2_42);
/* Set the output baud rate stored in *TERMIOS_P to SPEED. */
@ -285,6 +287,7 @@ __cfsetospeed (struct termios *termios_p, speed_t speed)
return 0;
}
libc_hidden_def (__cfsetospeed)
versioned_symbol (libc, __cfsetospeed, cfsetospeed, GLIBC_2_42);
/* Set the input baud rate stored in *TERMIOS_P to SPEED. */
@ -299,6 +302,7 @@ __cfsetispeed (struct termios *termios_p, speed_t speed)
return 0;
}
libc_hidden_def (__cfsetispeed)
versioned_symbol (libc, __cfsetispeed, cfsetispeed, GLIBC_2_42);
#if _TERMIOS_OLD_COMPAT

View File

@ -2748,9 +2748,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F

View File

@ -2767,9 +2767,14 @@ GLIBC_2.41 sched_getattr F
GLIBC_2.41 sched_setattr F
GLIBC_2.42 __inet_ntop_chk F
GLIBC_2.42 __inet_pton_chk F
GLIBC_2.42 cfgetibaud F
GLIBC_2.42 cfgetispeed F
GLIBC_2.42 cfgetobaud F
GLIBC_2.42 cfgetospeed F
GLIBC_2.42 cfsetbaud F
GLIBC_2.42 cfsetibaud F
GLIBC_2.42 cfsetispeed F
GLIBC_2.42 cfsetobaud F
GLIBC_2.42 cfsetospeed F
GLIBC_2.42 cfsetspeed F
GLIBC_2.42 pthread_gettid_np F