Implement <sys/fsuid.h>.

(cherry picked from commit 79310994d2)

Change-Id: I47688273691e5c95e5e9302eba254ccaaaad40ca
This commit is contained in:
Elliott Hughes
2014-07-30 15:05:09 -07:00
parent cd54195262
commit 4f76469e88
14 changed files with 220 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
/* Generated by gensyscalls.py. Do not edit. */
#include <private/bionic_asm.h>
ENTRY(setfsgid)
.set push
.set noreorder
li v0, __NR_setfsgid
syscall
bnez a3, 1f
move a0, v0
j ra
nop
1:
move t0, ra
bal 2f
nop
2:
.cpsetup ra, t1, 2b
LA t9,__set_errno
.cpreturn
j t9
move ra, t0
.set pop
END(setfsgid)

View File

@@ -0,0 +1,25 @@
/* Generated by gensyscalls.py. Do not edit. */
#include <private/bionic_asm.h>
ENTRY(setfsuid)
.set push
.set noreorder
li v0, __NR_setfsuid
syscall
bnez a3, 1f
move a0, v0
j ra
nop
1:
move t0, ra
bal 2f
nop
2:
.cpsetup ra, t1, 2b
LA t9,__set_errno
.cpreturn
j t9
move ra, t0
.set pop
END(setfsuid)