| The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame^] | 1 | /* autogenerated by gensyscalls.py */ | 
| 2 | #include <sys/linux-syscalls.h> | ||||
| 3 | |||||
| 4 | .text | ||||
| 5 | .type __wait4, @function | ||||
| 6 | .globl __wait4 | ||||
| 7 | .align 4 | ||||
| 8 | |||||
| 9 | __wait4: | ||||
| 10 | pushl %ebx | ||||
| 11 | pushl %ecx | ||||
| 12 | pushl %edx | ||||
| 13 | pushl %esi | ||||
| 14 | mov 20(%esp), %ebx | ||||
| 15 | mov 24(%esp), %ecx | ||||
| 16 | mov 28(%esp), %edx | ||||
| 17 | mov 32(%esp), %esi | ||||
| 18 | movl $__NR_wait4, %eax | ||||
| 19 | int $0x80 | ||||
| 20 | cmpl $-129, %eax | ||||
| 21 | jb 1f | ||||
| 22 | negl %eax | ||||
| 23 | pushl %eax | ||||
| 24 | call __set_errno | ||||
| 25 | addl $4, %esp | ||||
| 26 | orl $-1, %eax | ||||
| 27 | 1: | ||||
| 28 | popl %esi | ||||
| 29 | popl %edx | ||||
| 30 | popl %ecx | ||||
| 31 | popl %ebx | ||||
| 32 | ret | ||||