diff options
author | dzwdz | 2023-06-11 19:17:39 +0200 |
---|---|---|
committer | dzwdz | 2023-06-11 19:17:39 +0200 |
commit | 84fa0102c6906252999967925f32098ab6d5a259 (patch) | |
tree | 00bd8c98a68e4882e2f42510c9c55932ef855ba3 /src/user/lib/syscall.c | |
parent | ff154205e1671e11ed8566740c1cefaad79c2512 (diff) |
kernel: replace await with wait2, roughly compatible with POSIX
dash works now :^)))
Diffstat (limited to 'src/user/lib/syscall.c')
-rw-r--r-- | src/user/lib/syscall.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/user/lib/syscall.c b/src/user/lib/syscall.c index 3e8473c..5196683 100644 --- a/src/user/lib/syscall.c +++ b/src/user/lib/syscall.c @@ -90,6 +90,10 @@ uint32_t _sys_getppid(void) { return (uint32_t)_syscall(_SYS_GETPPID, 0, 0, 0, 0, 0); } +int _sys_wait2(int pid, int flags, struct sys_wait2 __user *out) { + return (int)_syscall(_SYS_WAIT2, (long)pid, (long)flags, (long)out, 0, 0); +} + long _sys_execbuf(void __user *buf, size_t len) { return _syscall(_SYS_EXECBUF, (long)buf, (long)len, 0, 0, 0); } |