summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86_64/syscalls/poll.S
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-10-01 13:29:43 -0700
committerElliott Hughes <enh@google.com>2013-10-01 13:29:43 -0700
commite4ffd9f2341f42c9281b4a93df76768580535edd (patch)
treeef4a32ac4a578caae3a1b909df84f508f2bf07d0 /libc/arch-x86_64/syscalls/poll.S
parent475e8dde178f05f91626a22ade795244efe69a3e (diff)
downloadbionic-e4ffd9f2341f42c9281b4a93df76768580535edd.zip
bionic-e4ffd9f2341f42c9281b4a93df76768580535edd.tar.gz
bionic-e4ffd9f2341f42c9281b4a93df76768580535edd.tar.bz2
Regenerate the system call stubs (to get x86_64).
This touches the x86 stubs too because arm, x86, and x86_64 now all share the same header (at a source level), which causes a reordering of the #include lines. Change-Id: If9a1e2b2718bd41d8399fea748bce672c513ef84
Diffstat (limited to 'libc/arch-x86_64/syscalls/poll.S')
-rw-r--r--libc/arch-x86_64/syscalls/poll.S17
1 files changed, 17 insertions, 0 deletions
diff --git a/libc/arch-x86_64/syscalls/poll.S b/libc/arch-x86_64/syscalls/poll.S
new file mode 100644
index 0000000..48462bd
--- /dev/null
+++ b/libc/arch-x86_64/syscalls/poll.S
@@ -0,0 +1,17 @@
+/* autogenerated by gensyscalls.py */
+#include <asm/unistd.h>
+#include <linux/err.h>
+#include <machine/asm.h>
+
+ENTRY(poll)
+ movl $__NR_poll, %eax
+ syscall
+ cmpq $-MAX_ERRNO, %rax
+ jb 1f
+ negl %eax
+ movl %eax, %edi
+ call __set_errno
+ orq $-1, %rax
+1:
+ ret
+END(poll)