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
715b91e92a0bb4a15b4f2258bea332f4a67fa94d7Christopher Ferris    .cfi_def_cfa_offset 8
8e4bc7561219ddb7cfb7b33f731caa92a7766b9caChristopher Ferris    .cfi_rel_offset ebx, 0
91dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project    mov     8(%esp), %ebx
101dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project    movl    $__NR_setuid32, %eax
111dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project    int     $0x80
129aceab50155b17741faded1fb22e2daa51a07fb1Elliott Hughes    cmpl    $-MAX_ERRNO, %eax
131dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project    jb      1f
141dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project    negl    %eax
151dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project    pushl   %eax
167efad83d430f4d824f2aaa75edea5106f6ff8aaeElliott Hughes    call    __set_errno_internal
171dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project    addl    $4, %esp
181dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project1:
191dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project    popl    %ebx
201dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project    ret
21232163cf70712fe00436b70dd495f4cf405e9eabElliott HughesEND(setuid)
22