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:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user