mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Linux: Assume and consolidate listen 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>
This commit is contained in:
committed by
Adhemerval Zanella
parent
d00783653a
commit
377a14a22a
@ -19,7 +19,6 @@
|
||||
|
||||
/* Direct socketcalls available with kernel 4.3. */
|
||||
#if __LINUX_KERNEL_VERSION >= 0x040300
|
||||
# define __ASSUME_LISTEN_SYSCALL 1
|
||||
# define __ASSUME_GETSOCKNAME_SYSCALL 1
|
||||
# define __ASSUME_GETPEERNAME_SYSCALL 1
|
||||
# define __ASSUME_SHUTDOWN_SYSCALL 1
|
||||
@ -43,6 +42,7 @@
|
||||
# undef __ASSUME_BIND_SYSCALL
|
||||
# undef __ASSUME_SOCKET_SYSCALL
|
||||
# undef __ASSUME_SOCKETPAIR_SYSCALL
|
||||
# undef __ASSUME_LISTEN_SYSCALL
|
||||
#endif
|
||||
|
||||
/* No support for PI futexes or robust mutexes before 3.10 for m68k. */
|
||||
|
Reference in New Issue
Block a user