summaryrefslogtreecommitdiff
path: root/klibc/klibc/waitpid.c
diff options
context:
space:
mode:
Diffstat (limited to 'klibc/klibc/waitpid.c')
-rw-r--r--klibc/klibc/waitpid.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/klibc/klibc/waitpid.c b/klibc/klibc/waitpid.c
new file mode 100644
index 0000000000..f7c5cbfbc0
--- /dev/null
+++ b/klibc/klibc/waitpid.c
@@ -0,0 +1,12 @@
+/*
+ * waitpid.c
+ */
+
+#include <sys/types.h>
+#include <sys/resource.h>
+#include <sys/wait.h>
+
+pid_t waitpid(pid_t pid, int *status, int options)
+{
+ return wait4(pid, status, options, NULL);
+}