blob: 1a7f7ecad9b87f8d2bcac903f2069abe5056fe02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <syscall.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/resource.h>
static inline
_syscall4(__pid_t,wait4,__pid_t,pid,__WAIT_STATUS,status,int,options,struct rusage *,ru)
__pid_t
waitpid(__pid_t pid, int *wait_stat, int options)
{
return wait4(pid, (__WAIT_STATUS) wait_stat, options, NULL);
}
|