diff options
author | Elliott Hughes <enh@google.com> | 2014-07-30 15:05:09 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-07-30 16:18:03 -0700 |
commit | 4f76469e88e255bab1f8264e9ff8b95bff84365f (patch) | |
tree | 543b18b330d907c8b949ba4d4d5640ffb8b8331d /libc/arch-x86 | |
parent | cd54195262ac5531fff892255849925ebbbd303e (diff) | |
download | bionic-4f76469e88e255bab1f8264e9ff8b95bff84365f.zip bionic-4f76469e88e255bab1f8264e9ff8b95bff84365f.tar.gz bionic-4f76469e88e255bab1f8264e9ff8b95bff84365f.tar.bz2 |
Implement <sys/fsuid.h>.
(cherry picked from commit 79310994d2b3826a10598f7e7795acb5edb42a20)
Change-Id: I47688273691e5c95e5e9302eba254ccaaaad40ca
Diffstat (limited to 'libc/arch-x86')
-rw-r--r-- | libc/arch-x86/syscalls/setfsgid.S | 21 | ||||
-rw-r--r-- | libc/arch-x86/syscalls/setfsuid.S | 21 |
2 files changed, 42 insertions, 0 deletions
diff --git a/libc/arch-x86/syscalls/setfsgid.S b/libc/arch-x86/syscalls/setfsgid.S new file mode 100644 index 0000000..fa7a5c5 --- /dev/null +++ b/libc/arch-x86/syscalls/setfsgid.S @@ -0,0 +1,21 @@ +/* Generated by gensyscalls.py. Do not edit. */ + +#include <private/bionic_asm.h> + +ENTRY(setfsgid) + pushl %ebx + .cfi_def_cfa_offset 8 + .cfi_rel_offset ebx, 0 + mov 8(%esp), %ebx + movl $__NR_setfsgid, %eax + int $0x80 + cmpl $-MAX_ERRNO, %eax + jb 1f + negl %eax + pushl %eax + call __set_errno + addl $4, %esp +1: + popl %ebx + ret +END(setfsgid) diff --git a/libc/arch-x86/syscalls/setfsuid.S b/libc/arch-x86/syscalls/setfsuid.S new file mode 100644 index 0000000..5856a16 --- /dev/null +++ b/libc/arch-x86/syscalls/setfsuid.S @@ -0,0 +1,21 @@ +/* Generated by gensyscalls.py. Do not edit. */ + +#include <private/bionic_asm.h> + +ENTRY(setfsuid) + pushl %ebx + .cfi_def_cfa_offset 8 + .cfi_rel_offset ebx, 0 + mov 8(%esp), %ebx + movl $__NR_setfsuid, %eax + int $0x80 + cmpl $-MAX_ERRNO, %eax + jb 1f + negl %eax + pushl %eax + call __set_errno + addl $4, %esp +1: + popl %ebx + ret +END(setfsuid) |