wait4.S revision 17a8b0db63d54e9d79bf11112ace0c4fe9606289
1/* autogenerated by gensyscalls.py */
2#include <linux/err.h>
3#include <machine/asm.h>
4#include <sys/linux-syscalls.h>
5
6ENTRY(wait4)
7    pushl   %ebx
8    pushl   %ecx
9    pushl   %edx
10    pushl   %esi
11    mov     20(%esp), %ebx
12    mov     24(%esp), %ecx
13    mov     28(%esp), %edx
14    mov     32(%esp), %esi
15    movl    $__NR_wait4, %eax
16    int     $0x80
17    cmpl    $-MAX_ERRNO, %eax
18    jb      1f
19    negl    %eax
20    pushl   %eax
21    call    __set_errno
22    addl    $4, %esp
23    orl     $-1, %eax
241:
25    popl    %esi
26    popl    %edx
27    popl    %ecx
28    popl    %ebx
29    ret
30END(wait4)
31