summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86_64
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-07-30 15:05:09 -0700
committerElliott Hughes <enh@google.com>2014-07-30 15:19:29 -0700
commit79310994d2b3826a10598f7e7795acb5edb42a20 (patch)
tree34a7eec7841aaf4dc12eb33fe6309d078f672819 /libc/arch-x86_64
parentc7706a02ad90ab73f3a056040d2c4a3464ab1ab1 (diff)
downloadbionic-79310994d2b3826a10598f7e7795acb5edb42a20.zip
bionic-79310994d2b3826a10598f7e7795acb5edb42a20.tar.gz
bionic-79310994d2b3826a10598f7e7795acb5edb42a20.tar.bz2
Implement <sys/fsuid.h>.
Change-Id: I1e5e50444a1b5a430ba5b5d9b8b1d91219af5e92
Diffstat (limited to 'libc/arch-x86_64')
-rw-r--r--libc/arch-x86_64/syscalls/setfsgid.S15
-rw-r--r--libc/arch-x86_64/syscalls/setfsuid.S15
2 files changed, 30 insertions, 0 deletions
diff --git a/libc/arch-x86_64/syscalls/setfsgid.S b/libc/arch-x86_64/syscalls/setfsgid.S
new file mode 100644
index 0000000..e9f50b8
--- /dev/null
+++ b/libc/arch-x86_64/syscalls/setfsgid.S
@@ -0,0 +1,15 @@
+/* Generated by gensyscalls.py. Do not edit. */
+
+#include <private/bionic_asm.h>
+
+ENTRY(setfsgid)
+ movl $__NR_setfsgid, %eax
+ syscall
+ cmpq $-MAX_ERRNO, %rax
+ jb 1f
+ negl %eax
+ movl %eax, %edi
+ call __set_errno
+1:
+ ret
+END(setfsgid)
diff --git a/libc/arch-x86_64/syscalls/setfsuid.S b/libc/arch-x86_64/syscalls/setfsuid.S
new file mode 100644
index 0000000..cfdb86c
--- /dev/null
+++ b/libc/arch-x86_64/syscalls/setfsuid.S
@@ -0,0 +1,15 @@
+/* Generated by gensyscalls.py. Do not edit. */
+
+#include <private/bionic_asm.h>
+
+ENTRY(setfsuid)
+ movl $__NR_setfsuid, %eax
+ syscall
+ cmpq $-MAX_ERRNO, %rax
+ jb 1f
+ negl %eax
+ movl %eax, %edi
+ call __set_errno
+1:
+ ret
+END(setfsuid)