summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/wait.c
blob: ffcb9d26f85757d352f2fa36c86f6c2bbb5ac9cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#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 wait(__WAIT_STATUS wait_stat)
{
	return wait4((-1) /* WAIT_ANY */, wait_stat, 0, NULL);
}