1
0
mirror of https://sourceware.org/git/glibc.git synced 2026-01-06 11:51:29 +03:00

Revert "Linux: Keep termios ioctl constants strictly internal"

This reverts commit 3d3572f590.

Reason for revert: TCGETS etc. work to some extent on at least
a subset of architectures, so there is no pressing need to force
applications off them.  Removal of the macros breaks building
the sanitizers, impacting both GCC and LLVM.

Reviewed-by: Sam James <sam@gentoo.org>
This commit is contained in:
Florian Weimer
2025-07-21 15:12:44 +02:00
parent c744519bad
commit 0f93d54cde
18 changed files with 260 additions and 116 deletions

View File

@@ -22,7 +22,7 @@ int
__tcgetattr (int fd, struct termios *termios_p)
{
struct termios2 k_termios;
long int retval = INLINE_SYSCALL_CALL (ioctl, fd, ARCH_TCGETS, &k_termios);
long int retval = INLINE_SYSCALL_CALL (ioctl, fd, TCGETS2, &k_termios);
if (__glibc_likely (retval != -1))
{