aboutsummaryrefslogtreecommitdiff
path: root/system/__waitpid.c
diff options
context:
space:
mode:
authorKlaatu <[email protected]>2015-05-17 15:33:21 +1200
committerKlaatu <[email protected]>2015-05-17 15:33:21 +1200
commitb0de699679e8f1e39af847ed172d1ba605b4370c (patch)
tree01dac00471d61f727394e508c613b29cff0ceae5 /system/__waitpid.c
bulk upload of source
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