diff options
author | Florian Weimer <fweimer@redhat.com> | 2025-07-21 15:12:44 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2025-07-21 15:13:08 +0200 |
commit | 0f93d54cde08d1da321493b999d6833779995a86 (patch) | |
tree | 951f763307c756d5a3f4dacff68c514f8d3ef8ea /sysdeps/unix/sysv/linux/alpha/bits | |
parent | c744519bad81067697600bd01e90b90ae338bf08 (diff) | |
download | glibc-0f93d54cde08d1da321493b999d6833779995a86.zip glibc-0f93d54cde08d1da321493b999d6833779995a86.tar.gz glibc-0f93d54cde08d1da321493b999d6833779995a86.tar.bz2 |
Revert "Linux: Keep termios ioctl constants strictly internal"
This reverts commit 3d3572f59059e2b19b8541ea648a6172136ec42e.
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>
Diffstat (limited to 'sysdeps/unix/sysv/linux/alpha/bits')
-rw-r--r-- | sysdeps/unix/sysv/linux/alpha/bits/ioctls.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/alpha/bits/ioctls.h b/sysdeps/unix/sysv/linux/alpha/bits/ioctls.h new file mode 100644 index 0000000..77dc0c1 --- /dev/null +++ b/sysdeps/unix/sysv/linux/alpha/bits/ioctls.h @@ -0,0 +1,36 @@ +/* Copyright (C) 1996-2025 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library. If not, see + <https://www.gnu.org/licenses/>. */ + +#ifndef _SYS_IOCTL_H +# error "Never use <bits/ioctls.h> directly; include <sys/ioctl.h> instead." +#endif + +/* Use the definitions from the kernel header files. */ +#include <asm/ioctls.h> + +/* Oh well, this is necessary since the kernel data structure is + different from the user-level version. */ +#undef TCGETS +#undef TCSETS +#undef TCSETSW +#undef TCSETSF +#define TCGETS _IOR ('t', 19, char[44]) +#define TCSETS _IOW ('t', 20, char[44]) +#define TCSETSW _IOW ('t', 21, char[44]) +#define TCSETSF _IOW ('t', 22, char[44]) + +#include <linux/sockios.h> |