• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* autogenerated by gensyscalls.py */
2#include <linux/err.h>
3#include <machine/asm.h>
4#include <asm/unistd.h>
5
6ENTRY(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
161:
17    ret
18END(getpid)
19