summaryrefslogtreecommitdiffstats
path: root/libc/arch-arm64/syscalls/sendmmsg.S
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-arm64/syscalls/sendmmsg.S
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-arm64/syscalls/sendmmsg.S')
-rw-r--r--libc/arch-arm64/syscalls/sendmmsg.S21
1 files changed, 21 insertions, 0 deletions
diff --git a/libc/arch-arm64/syscalls/sendmmsg.S b/libc/arch-arm64/syscalls/sendmmsg.S
new file mode 100644
index 0000000..43b2fbf
--- /dev/null
+++ b/libc/arch-arm64/syscalls/sendmmsg.S
@@ -0,0 +1,21 @@
+/* Generated by gensyscalls.py. Do not edit. */
+
+#include <private/bionic_asm.h>
+
+ENTRY(sendmmsg)
+ stp x29, x30, [sp, #-16]!
+ mov x29, sp
+ str x8, [sp, #-16]!
+
+ mov x8, __NR_sendmmsg
+ svc #0
+
+ ldr x8, [sp], #16
+ ldp x29, x30, [sp], #16
+
+ cmn x0, #(MAX_ERRNO + 1)
+ cneg x0, x0, hi
+ b.hi __set_errno
+
+ ret
+END(sendmmsg)