summaryrefslogtreecommitdiff
path: root/lib/libc/wait/wait.c
blob: 8f703600c9cdb78bb58dd061f6aaa6136a6f99a1 (plain)
1
2
3
4
5
6
7
8
9
#include "signal.h" // for pid_t

#include <sys/wait.h> // for wait
#include <syscall.h>  // for __syscall_4, syscall

pid_t wait(int *stat_loc)
{
	return syscall(wait4, -1, stat_loc, 0, 0);
}