1/* autogenerated by gensyscalls.py */ 2#include <linux/err.h> 3#include <machine/asm.h> 4#include <asm/unistd.h> 5 6ENTRY(getppid) 7 movl $__NR_getppid, %eax 8 int $0x80 9 cmpl $-MAX_ERRNO, %eax 10 jb 1f 11 negl %eax 12 pushl %eax 13 call __set_errno 14 addl $4, %esp 15 orl $-1, %eax 161: 17 ret 18END(getppid) 19