1 /* Generated by gensyscalls.py. Do not edit. */ 2 3 #include <private/bionic_asm.h> 4 5 ENTRY(__getpid) 6 7 call __kernel_syscall 8 pushl %eax 9 .cfi_adjust_cfa_offset 4 10 .cfi_rel_offset eax, 0 11 12 movl $__NR_getpid, %eax 13 call *(%esp) 14 addl $4, %esp 15 16 cmpl $-MAX_ERRNO, %eax 17 jb 1f 18 negl %eax 19 pushl %eax 20 call __set_errno_internal 21 addl $4, %esp 22 1: 23 ret 24 END(__getpid) 25