about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/internal_recvmmsg.S
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2010-05-21 12:11:28 -0700
committerUlrich Drepper <drepper@redhat.com>2010-05-21 12:11:28 -0700
commit3d04ff3a5d3ce3616837e1d15e03b6e1b360cf26 (patch)
tree3a4d850566e9c44f47e166ee0c05053888aff764 /sysdeps/unix/sysv/linux/internal_recvmmsg.S
parentf0ccf6ea41931f325df4699a4c7fdf81888563ee (diff)
downloadglibc-3d04ff3a5d3ce3616837e1d15e03b6e1b360cf26.tar.gz
glibc-3d04ff3a5d3ce3616837e1d15e03b6e1b360cf26.tar.xz
glibc-3d04ff3a5d3ce3616837e1d15e03b6e1b360cf26.zip
Implement recvmmsg also as socketcall
Diffstat (limited to 'sysdeps/unix/sysv/linux/internal_recvmmsg.S')
-rw-r--r--sysdeps/unix/sysv/linux/internal_recvmmsg.S14
1 files changed, 14 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/internal_recvmmsg.S b/sysdeps/unix/sysv/linux/internal_recvmmsg.S
new file mode 100644
index 0000000000..66c1357940
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/internal_recvmmsg.S
@@ -0,0 +1,14 @@
+#include <kernel-features.h>
+#include <sys/syscall.h>
+#if !defined __NR_recvmmsg && defined __NR_socketcall
+# define socket	recvmmsg
+# ifdef __ASSUME_RECVMMSG
+#  define __socket recvmmsg
+# else
+#  define __socket __internal_recvmmsg
+# endif
+# define NARGS 5
+# define NEED_CANCELLATION
+# define NO_WEAK_ALIAS
+# include <socket.S>
+#endif