From f71af249cfb9ca9eb0832cc46437b2c5cb7bb217 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 29 Aug 2023 23:35:03 +0200 Subject: kernel: remove _sys_await, emulate it in libc --- src/libc/compat.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/libc/compat.c') 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; +} -- cgit v1.2.3