diff options
Diffstat (limited to 'libc/sysdeps/linux/common/waitpid.c')
-rw-r--r-- | libc/sysdeps/linux/common/waitpid.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/waitpid.c b/libc/sysdeps/linux/common/waitpid.c new file mode 100644 index 000000000..1a7f7ecad --- /dev/null +++ b/libc/sysdeps/linux/common/waitpid.c @@ -0,0 +1,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); +} |