summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/waitpid.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/waitpid.c')
-rw-r--r--libc/sysdeps/linux/common/waitpid.c9
1 files changed, 9 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..255a3c84e
--- /dev/null
+++ b/libc/sysdeps/linux/common/waitpid.c
@@ -0,0 +1,9 @@
+#include <syscall.h>
+#include <sys/types.h>
+#include <sys/wait.h>
+#include <sys/resource.h>
+
+__pid_t waitpid(__pid_t pid, int *wait_stat, int options)
+{
+ return wait4(pid, wait_stat, options, NULL);
+}