setuid.S revision ed74484dcbc2e156a6e5fa861a62425b12e55128
1103ccde8fe2f2c8abde914a8ba736b2e9cb8d20bElliott Hughes/* Generated by gensyscalls.py. Do not edit. */
2103ccde8fe2f2c8abde914a8ba736b2e9cb8d20bElliott Hughes
3ed74484dcbc2e156a6e5fa861a62425b12e55128Elliott Hughes#include <private/bionic_asm.h>
41dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
5232163cf70712fe00436b70dd495f4cf405e9eabElliott HughesENTRY(setuid)
61dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project    pushl   %ebx
71dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project    mov     8(%esp), %ebx
81dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project    movl    $__NR_setuid32, %eax
91dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project    int     $0x80
109aceab50155b17741faded1fb22e2daa51a07fb1Elliott Hughes    cmpl    $-MAX_ERRNO, %eax
111dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project    jb      1f
121dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project    negl    %eax
131dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project    pushl   %eax
141dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project    call    __set_errno
151dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project    addl    $4, %esp
161dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project    orl     $-1, %eax
171dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project1:
181dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project    popl    %ebx
191dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project    ret
20232163cf70712fe00436b70dd495f4cf405e9eabElliott HughesEND(setuid)
21