diff options
author | dzwdz | 2023-08-29 23:35:03 +0200 |
---|---|---|
committer | dzwdz | 2023-08-29 23:35:03 +0200 |
commit | f71af249cfb9ca9eb0832cc46437b2c5cb7bb217 (patch) | |
tree | dcc5403d304547da397644b9d43e2bf8c67a0b3e /src/libc/compat.c | |
parent | dd385a413c92d53a1f792011e1029d7d68e19c6c (diff) |
kernel: remove _sys_await, emulate it in libc
Diffstat (limited to 'src/libc/compat.c')
-rw-r--r-- | src/libc/compat.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libc/compat.c b/src/libc/compat.c index 3ec47f9..fdf24bb 100644 --- a/src/libc/compat.c +++ b/src/libc/compat.c @@ -18,3 +18,12 @@ long c0_fs_respond(void *buf, long ret, int flags) { h = -1; return ret; } + +/* old syscall */ +long _sys_await(void) { + struct sys_wait2 res; + if (_sys_wait2(-1, 0, &res) < 0) { + return ~0; + } + return res.status; +} |