aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/libc/unistd
diff options
context:
space:
mode:
authorMarvin Borner2020-05-07 14:29:28 +0200
committerMarvin Borner2020-05-07 14:29:28 +0200
commit130121dd61a9adf70d1800ceb03007275bfb589d (patch)
tree5b00d9046c5f5a5678479b0ddf1bdbe72bc74158 /src/userspace/libc/unistd
parent31767b532e69c5a63df0106fa08e137e3106a449 (diff)
Added wait syscall
Diffstat (limited to 'src/userspace/libc/unistd')
-rw-r--r--src/userspace/libc/unistd/wait.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/userspace/libc/unistd/wait.c b/src/userspace/libc/unistd/wait.c
new file mode 100644
index 0000000..7c0a6fb
--- /dev/null
+++ b/src/userspace/libc/unistd/wait.c
@@ -0,0 +1,12 @@
+#include <stdint.h>
+#include <syscall.h>
+
+u32 wait_pid(u32 pid, u32 *status, u32 options)
+{
+ return syscall_wait(pid, status, options);
+}
+
+u32 wait(u32 *status)
+{
+ return wait_pid(-1, status, 0);
+} \ No newline at end of file