getppid.S revision 7582a9c119a4e4d0c306996b2513205889a9fb6c
1/* autogenerated by gensyscalls.py */
2#include <machine/asm.h>
3#include <sys/linux-syscalls.h>
4
5ENTRY(getppid)
6    movl    $__NR_getppid, %eax
7    int     $0x80
8    cmpl    $-129, %eax
9    jb      1f
10    negl    %eax
11    pushl   %eax
12    call    __set_errno
13    addl    $4, %esp
14    orl     $-1, %eax
151:
16    ret
17END(getppid)
18