setgid.S revision 15b91e92a0bb4a15b4f2258bea332f4a67fa94d7
1/* Generated by gensyscalls.py. Do not edit. */
2
3#include <private/bionic_asm.h>
4
5ENTRY(setgid)
6    pushl   %ebx
7    .cfi_def_cfa_offset 8
8    .cfi_rel_offset ebx, 0
9    mov     8(%esp), %ebx
10    movl    $__NR_setgid32, %eax
11    int     $0x80
12    cmpl    $-MAX_ERRNO, %eax
13    jb      1f
14    negl    %eax
15    pushl   %eax
16    call    __set_errno
17    addl    $4, %esp
18    orl     $-1, %eax
191:
20    popl    %ebx
21    ret
22END(setgid)
23