mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
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>
This commit is contained in:
@ -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
|
||||
@ -44,6 +39,7 @@
|
||||
# undef __ASSUME_LISTEN_SYSCALL
|
||||
# undef __ASSUME_SHUTDOWN_SYSCALL
|
||||
# undef __ASSUME_GETSOCKNAME_SYSCALL
|
||||
# undef __ASSUME_GETPEERNAME_SYSCALL
|
||||
#endif
|
||||
|
||||
/* s390 only supports ipc syscall before 5.1. */
|
||||
|
Reference in New Issue
Block a user