summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/wait3.c
blob: df9ab5f3a59984799db77f75a31dc95155b1d42b (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 wait3(__WAIT_STATUS wait_stat, int options, struct rusage *reserved)
{
	return wait4((-1) /* WAIT_ANY*/, wait_stat, options, reserved);
}