Logo
Explore Help
Sign In
generic-library/bionic
1
0
Fork 0
You've already forked bionic
Code Issues Pull Requests Releases Wiki Activity
bionic/libc/arch-x86/syscalls/__setreuid.S

27 lines
487 B
ArmAsm
Raw Normal View History

auto import from //depot/cupcake/@135843
2009-03-03 19:28:35 -08:00
/* autogenerated by gensyscalls.py */
#include <sys/linux-syscalls.h>
.text
bonic: libc: cpuacct support for setuid functions Any of the setuid functions now updates /acct/uid/ with its own tid before changing users. This is so we can properly account for cpu time per uid. Change-Id: I34186cf4d5228cac8439e582a9e26c01ef3011e4 Signed-off-by: Mike Chan <mike@android.com>
2010-03-02 10:55:58 -08:00
.type __setreuid, @function
.globl __setreuid
auto import from //depot/cupcake/@135843
2009-03-03 19:28:35 -08:00
.align 4
bonic: libc: cpuacct support for setuid functions Any of the setuid functions now updates /acct/uid/ with its own tid before changing users. This is so we can properly account for cpu time per uid. Change-Id: I34186cf4d5228cac8439e582a9e26c01ef3011e4 Signed-off-by: Mike Chan <mike@android.com>
2010-03-02 10:55:58 -08:00
__setreuid:
auto import from //depot/cupcake/@135843
2009-03-03 19:28:35 -08:00
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
mov 16(%esp), %ecx
movl $__NR_setreuid32, %eax
int $0x80
cmpl $-129, %eax
jb 1f
negl %eax
pushl %eax
call __set_errno
addl $4, %esp
orl $-1, %eax
1:
popl %ecx
popl %ebx
ret
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 47ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API