Implement <sys/fsuid.h>.
(cherry picked from commit 79310994d2)
Change-Id: I47688273691e5c95e5e9302eba254ccaaaad40ca
This commit is contained in:
21
libc/arch-x86/syscalls/setfsgid.S
Normal file
21
libc/arch-x86/syscalls/setfsgid.S
Normal file
@@ -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)
|
||||
21
libc/arch-x86/syscalls/setfsuid.S
Normal file
21
libc/arch-x86/syscalls/setfsuid.S
Normal file
@@ -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)
|
||||
Reference in New Issue
Block a user