summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/i386
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-10-18 16:29:48 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-02-20 10:20:44 -0300
commit48d256dee780e6e637a9d34b4232005e779786c2 (patch)
tree6c59a50bfd4b242e0c0c931a6b80cff97d46f1d1 /sysdeps/unix/sysv/linux/i386
parenta7bf5f4e699a77529171a5fd3eccd842c5c29827 (diff)
downloadglibc-48d256dee780e6e637a9d34b4232005e779786c2.tar.gz
glibc-48d256dee780e6e637a9d34b4232005e779786c2.tar.xz
glibc-48d256dee780e6e637a9d34b4232005e779786c2.zip
Linux: Assume and consolidate getpeername wire-up syscall
And disable if kernel does not support it.

Checked on x86_64-linux-gnu and i686-linux-gnu.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386')
-rw-r--r--sysdeps/unix/sysv/linux/i386/kernel-features.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/kernel-features.h b/sysdeps/unix/sysv/linux/i386/kernel-features.h
index 1c5cbd3351..ed7efa3097 100644
--- a/sysdeps/unix/sysv/linux/i386/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/i386/kernel-features.h
@@ -17,11 +17,6 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
-/* Direct socketcalls available with kernel 4.3.  */
-#if __LINUX_KERNEL_VERSION >= 0x040300
-# define __ASSUME_GETPEERNAME_SYSCALL        1
-#endif
-
 #include_next <kernel-features.h>
 
 #undef __ASSUME_ACCEPT_SYSCALL
@@ -42,6 +37,7 @@
 # undef __ASSUME_LISTEN_SYSCALL
 # undef __ASSUME_SHUTDOWN_SYSCALL
 # undef __ASSUME_GETSOCKNAME_SYSCALL
+# undef __ASSUME_GETPEERNAME_SYSCALL
 #endif
 
 /* i686 only supports ipc syscall before 5.1.  */