summaryrefslogtreecommitdiffstats
path: root/libc/arch-mips/syscalls
diff options
context:
space:
mode:
authorGuillaume Ranquet <guillaumex.ranquet@intel.com>2014-02-10 13:11:29 +0100
committerElliott Hughes <enh@google.com>2014-02-27 14:29:01 -0800
commit6ff0c75c838e73d2aeccc0102ab58a7b865172ca (patch)
tree664bed83a31a736af22e3ac37ff36b14e809724c /libc/arch-mips/syscalls
parent000ffd8ab0b4112173ce319869f4111f08fbe975 (diff)
downloadbionic-6ff0c75c838e73d2aeccc0102ab58a7b865172ca.zip
bionic-6ff0c75c838e73d2aeccc0102ab58a7b865172ca.tar.gz
bionic-6ff0c75c838e73d2aeccc0102ab58a7b865172ca.tar.bz2
Add recvmmsg and sendmmsg syscalls.
Also add the corresponding constant, struct, and function declarations to <sys/socket.h>, and perfunctory tests so we know that the symbols actually exist. Signed-off-by: Guillaume Ranquet <guillaumex.ranquet@intel.com> Change-Id: Ib0d854239d3716be90ad70973c579aff4895a4f7
Diffstat (limited to 'libc/arch-mips/syscalls')
-rw-r--r--libc/arch-mips/syscalls/recvmmsg.S19
-rw-r--r--libc/arch-mips/syscalls/sendmmsg.S19
2 files changed, 38 insertions, 0 deletions
diff --git a/libc/arch-mips/syscalls/recvmmsg.S b/libc/arch-mips/syscalls/recvmmsg.S
new file mode 100644
index 0000000..23e511b
--- /dev/null
+++ b/libc/arch-mips/syscalls/recvmmsg.S
@@ -0,0 +1,19 @@
+/* Generated by gensyscalls.py. Do not edit. */
+
+#include <private/bionic_asm.h>
+
+ENTRY(recvmmsg)
+ .set noreorder
+ .cpload t9
+ li v0, __NR_recvmmsg
+ syscall
+ bnez a3, 1f
+ move a0, v0
+ j ra
+ nop
+1:
+ la t9,__set_errno
+ j t9
+ nop
+ .set reorder
+END(recvmmsg)
diff --git a/libc/arch-mips/syscalls/sendmmsg.S b/libc/arch-mips/syscalls/sendmmsg.S
new file mode 100644
index 0000000..d99ba93
--- /dev/null
+++ b/libc/arch-mips/syscalls/sendmmsg.S
@@ -0,0 +1,19 @@
+/* Generated by gensyscalls.py. Do not edit. */
+
+#include <private/bionic_asm.h>
+
+ENTRY(sendmmsg)
+ .set noreorder
+ .cpload t9
+ li v0, __NR_sendmmsg
+ syscall
+ bnez a3, 1f
+ move a0, v0
+ j ra
+ nop
+1:
+ la t9,__set_errno
+ j t9
+ nop
+ .set reorder
+END(sendmmsg)