Home | History | Annotate | Download | only in syscalls
      1 /* autogenerated by gensyscalls.py */
      2 #include <linux/err.h>
      3 #include <machine/asm.h>
      4 #include <asm/unistd.h>
      5 
      6 ENTRY(getpid)
      7     movl    $__NR_getpid, %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
     16 1:
     17     ret
     18 END(getpid)
     19