am 7b8666e6: Merge "bionic: Fix wrong prototype of system call getresuid/getresgid"

* commit '7b8666e683e56549091b86fd7b9c421fd0124dbc':
  bionic: Fix wrong prototype of system call getresuid/getresgid
This commit is contained in:
Elliott Hughes 2012-04-16 13:12:46 -07:00 committed by Android Git Automerger
commit 6b8fd05414
4 changed files with 22 additions and 4 deletions

View File

@ -47,8 +47,8 @@ uid_t getuid:getuid32 () 199
gid_t getgid:getgid32 () 200
uid_t geteuid:geteuid32 () 201
gid_t getegid:getegid32 () 202
uid_t getresuid:getresuid32 () 209
gid_t getresgid:getresgid32 () 211
uid_t getresuid:getresuid32 (uid_t *ruid, uid_t *euid, uid_t *suid) 209
gid_t getresgid:getresgid32 (gid_t *rgid, gid_t *egid, gid_t *sgid) 211
pid_t gettid() 224
ssize_t readahead(int, off64_t, size_t) 225
int getgroups:getgroups32(int, gid_t *) 205

View File

@ -7,6 +7,12 @@
.align 4
getresgid:
pushl %ebx
pushl %ecx
pushl %edx
mov 16(%esp), %ebx
mov 20(%esp), %ecx
mov 24(%esp), %edx
movl $__NR_getresgid32, %eax
int $0x80
cmpl $-129, %eax
@ -17,4 +23,7 @@ getresgid:
addl $4, %esp
orl $-1, %eax
1:
popl %edx
popl %ecx
popl %ebx
ret

View File

@ -7,6 +7,12 @@
.align 4
getresuid:
pushl %ebx
pushl %ecx
pushl %edx
mov 16(%esp), %ebx
mov 20(%esp), %ecx
mov 24(%esp), %edx
movl $__NR_getresuid32, %eax
int $0x80
cmpl $-129, %eax
@ -17,4 +23,7 @@ getresuid:
addl $4, %esp
orl $-1, %eax
1:
popl %edx
popl %ecx
popl %ebx
ret

View File

@ -17,8 +17,8 @@ uid_t getuid (void);
gid_t getgid (void);
uid_t geteuid (void);
gid_t getegid (void);
uid_t getresuid (void);
gid_t getresgid (void);
uid_t getresuid (uid_t *ruid, uid_t *euid, uid_t *suid);
gid_t getresgid (gid_t *rgid, gid_t *egid, gid_t *sgid);
pid_t gettid (void);
ssize_t readahead (int, off64_t, size_t);
int getgroups (int, gid_t *);