2011-05-28 05:43:20 +00:00
|
|
|
#include <kernel-features.h>
|
|
|
|
#include <sys/syscall.h>
|
2014-02-20 17:55:35 +00: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 05:43:20 +00:00
|
|
|
#if !defined __NR_sendmmsg && defined __NR_socketcall
|
|
|
|
# define socket sendmmsg
|
2014-02-20 17:55:35 +00:00
|
|
|
# ifndef __ASSUME_SENDMMSG_SOCKETCALL
|
2011-05-28 05:43:20 +00:00
|
|
|
# define __socket __internal_sendmmsg
|
2012-11-03 17:29:46 +00:00
|
|
|
# define NO_WEAK_ALIAS
|
2011-05-28 05:43:20 +00:00
|
|
|
# endif
|
|
|
|
# define NARGS 4
|
|
|
|
# define NEED_CANCELLATION
|
|
|
|
# include <socket.S>
|
2014-02-20 17:55:35 +00:00
|
|
|
# ifdef __ASSUME_SENDMMSG_SOCKETCALL
|
2012-11-03 17:29:46 +00:00
|
|
|
libc_hidden_def (__sendmmsg)
|
|
|
|
# endif
|
2011-05-28 05:43:20 +00:00
|
|
|
#endif
|