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