summaryrefslogtreecommitdiff
path: root/src/libc/compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libc/compat.c')
-rw-r--r--src/libc/compat.c9
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;
+}