2011-05-28 13:43:20 +08:00
|
|
|
#include <kernel-features.h>
|
|
|
|
#include <sys/syscall.h>
|
2014-02-21 01:55:35 +08:00
|
|
|
|
|
|
|
/* Do not use the sendmmsg syscall on socketcall architectures unless
|
|
|
|
it was added at the same time as the socketcall support or can be
|
|
|
|
assumed to be present. */
|
|
|
|
#if defined __ASSUME_SOCKETCALL \
|
|
|
|
&& !defined __ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL \
|
|
|
|
&& !defined __ASSUME_SENDMMSG_SYSCALL
|
|
|
|
# undef __NR_sendmmsg
|
|
|
|
#endif
|
|
|
|
|
2011-05-28 13:43:20 +08:00
|
|
|
#if !defined __NR_sendmmsg && defined __NR_socketcall
|
|
|
|
# define socket sendmmsg
|
2014-02-21 01:55:35 +08:00
|
|
|
# ifndef __ASSUME_SENDMMSG_SOCKETCALL
|
2011-05-28 13:43:20 +08:00
|
|
|
# define __socket __internal_sendmmsg
|
2012-11-04 01:29:46 +08:00
|
|
|
# define NO_WEAK_ALIAS
|
2011-05-28 13:43:20 +08:00
|
|
|
# endif
|
|
|
|
# define NARGS 4
|
|
|
|
# define NEED_CANCELLATION
|
|
|
|
# include <socket.S>
|
2014-02-21 01:55:35 +08:00
|
|
|
# ifdef __ASSUME_SENDMMSG_SOCKETCALL
|
2012-11-04 01:29:46 +08:00
|
|
|
libc_hidden_def (__sendmmsg)
|
|
|
|
# endif
|
2011-05-28 13:43:20 +08:00
|
|
|
#endif
|