summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86/syscalls
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2012-04-16 13:12:46 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-04-16 13:12:46 -0700
commit6b8fd05414decfbbe46c8ce8e45ab8384594805e (patch)
tree5d6f3f3a937a047b9423015a9e1c2e122644d25f /libc/arch-x86/syscalls
parentff219e57c0ffe5ac2816f79677ce4f1afa677277 (diff)
parent7b8666e683e56549091b86fd7b9c421fd0124dbc (diff)
downloadbionic-6b8fd05414decfbbe46c8ce8e45ab8384594805e.zip
bionic-6b8fd05414decfbbe46c8ce8e45ab8384594805e.tar.gz
bionic-6b8fd05414decfbbe46c8ce8e45ab8384594805e.tar.bz2
am 7b8666e6: Merge "bionic: Fix wrong prototype of system call getresuid/getresgid"
* commit '7b8666e683e56549091b86fd7b9c421fd0124dbc': bionic: Fix wrong prototype of system call getresuid/getresgid
Diffstat (limited to 'libc/arch-x86/syscalls')
-rw-r--r--libc/arch-x86/syscalls/getresgid.S9
-rw-r--r--libc/arch-x86/syscalls/getresuid.S9
2 files changed, 18 insertions, 0 deletions
diff --git a/libc/arch-x86/syscalls/getresgid.S b/libc/arch-x86/syscalls/getresgid.S
index 454d32b..d43aec4 100644
--- a/libc/arch-x86/syscalls/getresgid.S
+++ b/libc/arch-x86/syscalls/getresgid.S
@@ -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
diff --git a/libc/arch-x86/syscalls/getresuid.S b/libc/arch-x86/syscalls/getresuid.S
index f07b5c5..f489d40 100644
--- a/libc/arch-x86/syscalls/getresuid.S
+++ b/libc/arch-x86/syscalls/getresuid.S
@@ -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