1 #include <kernel-features.h>
2 #include <sys/syscall.h>
4 /* Do not use the sendmmsg syscall on socketcall architectures unless
5 it was added at the same time as the socketcall support or can be
6 assumed to be present. */
7 #if defined __ASSUME_SOCKETCALL \
8 && !defined __ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL \
9 && !defined __ASSUME_SENDMMSG_SYSCALL
13 #if !defined __NR_sendmmsg && defined __NR_socketcall
14 # define socket sendmmsg
15 # ifndef __ASSUME_SENDMMSG_SOCKETCALL
16 # define __socket __internal_sendmmsg
17 # define NO_WEAK_ALIAS
20 # define NEED_CANCELLATION
22 # ifdef __ASSUME_SENDMMSG_SOCKETCALL
23 libc_hidden_def (__sendmmsg)