From d54dcb2efc4be344900a7721ac4b65b47840c5d2 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 26 Jul 2022 22:21:52 +0200 Subject: user/libc: exit() What an interesting commit. --- src/user/lib/fs/misc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/user/lib/fs') diff --git a/src/user/lib/fs/misc.c b/src/user/lib/fs/misc.c index 3a248ec..3a732af 100644 --- a/src/user/lib/fs/misc.c +++ b/src/user/lib/fs/misc.c @@ -23,7 +23,7 @@ void fs_passthru(const char *prefix) { const size_t buf_len = 1024; char *buf = malloc(buf_len); int prefix_len = prefix ? strlen(prefix) : 0; - if (!buf) _syscall_exit(1); + if (!buf) exit(1); while (!_syscall_fs_wait(buf, buf_len, &res)) { switch (res.op) { @@ -49,7 +49,7 @@ void fs_passthru(const char *prefix) { break; } } - _syscall_exit(0); + exit(0); } void fs_whitelist(const char **list) { @@ -57,7 +57,7 @@ void fs_whitelist(const char **list) { const size_t buf_len = 1024; char *buf = malloc(buf_len); bool allow; - if (!buf) _syscall_exit(1); + if (!buf) exit(1); while (!_syscall_fs_wait(buf, buf_len, &res)) { switch (res.op) { @@ -79,7 +79,7 @@ void fs_whitelist(const char **list) { break; } } - _syscall_exit(0); + exit(0); } @@ -96,7 +96,7 @@ void fs_dir_inject(const char *path) { char *buf = malloc(buf_len); int ret, inject_len; - if (!buf) _syscall_exit(1); + if (!buf) exit(1); while (!_syscall_fs_wait(buf, buf_len, &res)) { data = res.id; @@ -162,5 +162,5 @@ void fs_dir_inject(const char *path) { break; } } - _syscall_exit(0); + exit(0); } -- cgit v1.2.3