ensure that the compiler doesn't try to reorder around atomic ops
[oweals/musl.git] / src / process / waitpid.c
1 #include <sys/wait.h>
2 #include "syscall.h"
3
4 pid_t waitpid(pid_t pid, int *status, int options)
5 {
6         return syscall4(__NR_wait4, pid, (long)status, options, 0);
7 }