aboutsummaryrefslogtreecommitdiff
path: root/system/__waitpid.c
diff options
context:
space:
mode:
Diffstat (limited to 'system/__waitpid.c')
-rw-r--r--system/__waitpid.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/__waitpid.c b/system/__waitpid.c
new file mode 100644
index 0000000..06f44c1
--- /dev/null
+++ b/system/__waitpid.c
@@ -0,0 +1,11 @@
+#include <asm/unistd.h>
+
+#ifndef __NR_waitpid
+
+#include <sys/types.h>
+#include <sys/wait.h>
+
+pid_t waitpid(pid_t pid, int *status, int options) {
+ return wait4(pid, status, options, 0);
+}
+#endif