Rich Felker | cc2a822 | 2011-02-19 02:28:42 -0500 | [diff] [blame] | 1 | #define _GNU_SOURCE |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 2 | #include <sys/wait.h> |
| 3 | #include <sys/resource.h> |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 4 | #include "syscall.h" |
| 5 | |
| 6 | pid_t wait4(pid_t pid, int *status, int options, struct rusage *usage) |
| 7 | { |
Rich Felker | aa398f5 | 2011-03-20 00:16:43 -0400 | [diff] [blame] | 8 | return syscall(SYS_wait4, pid, status, options, usage); |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 9 | } |