aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/libc/unistd/wait.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/userspace/libc/unistd/wait.c')
-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