summaryrefslogtreecommitdiffstats
path: root/libc/arch-arm/syscalls
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2010-09-26 22:29:14 +0200
committerDavid 'Digit' Turner <digit@google.com>2010-09-28 09:20:37 +0200
commitdefd162212de3789d2268a1f3339c2a6097fa825 (patch)
tree35242a10fe8453224718e9da6db3b44f58d8aa15 /libc/arch-arm/syscalls
parent9973a564222b842eb7497fd6e659fe8c8c49e2b3 (diff)
downloadbionic-defd162212de3789d2268a1f3339c2a6097fa825.zip
bionic-defd162212de3789d2268a1f3339c2a6097fa825.tar.gz
bionic-defd162212de3789d2268a1f3339c2a6097fa825.tar.bz2
libc: add <sys/eventfd.h> and corresponding implementations.
Change-Id: Ide040884c456190226e580513099fdb8377e015b
Diffstat (limited to 'libc/arch-arm/syscalls')
-rw-r--r--libc/arch-arm/syscalls/eventfd.S19
1 files changed, 19 insertions, 0 deletions
diff --git a/libc/arch-arm/syscalls/eventfd.S b/libc/arch-arm/syscalls/eventfd.S
new file mode 100644
index 0000000..8d2cce9
--- /dev/null
+++ b/libc/arch-arm/syscalls/eventfd.S
@@ -0,0 +1,19 @@
+/* autogenerated by gensyscalls.py */
+#include <sys/linux-syscalls.h>
+
+ .text
+ .type eventfd, #function
+ .globl eventfd
+ .align 4
+ .fnstart
+
+eventfd:
+ .save {r4, r7}
+ stmfd sp!, {r4, r7}
+ ldr r7, =__NR_eventfd2
+ swi #0
+ ldmfd sp!, {r4, r7}
+ movs r0, r0
+ bxpl lr
+ b __set_syscall_errno
+ .fnend