diff options
author | Elliott Hughes <enh@google.com> | 2013-10-01 13:29:43 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-10-01 13:29:43 -0700 |
commit | e4ffd9f2341f42c9281b4a93df76768580535edd (patch) | |
tree | ef4a32ac4a578caae3a1b909df84f508f2bf07d0 /libc/arch-x86_64/syscalls/setregid.S | |
parent | 475e8dde178f05f91626a22ade795244efe69a3e (diff) | |
download | bionic-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/setregid.S')
-rw-r--r-- | libc/arch-x86_64/syscalls/setregid.S | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libc/arch-x86_64/syscalls/setregid.S b/libc/arch-x86_64/syscalls/setregid.S new file mode 100644 index 0000000..713dd68 --- /dev/null +++ b/libc/arch-x86_64/syscalls/setregid.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> +#include <linux/err.h> +#include <machine/asm.h> + +ENTRY(setregid) + movl $__NR_setregid, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(setregid) |