summaryrefslogtreecommitdiff
path: root/src/user/lib/fs
diff options
context:
space:
mode:
authordzwdz2022-07-26 22:21:52 +0200
committerdzwdz2022-07-26 22:34:22 +0200
commitd54dcb2efc4be344900a7721ac4b65b47840c5d2 (patch)
tree8d0b2a5158809fe64a40e3b362c01f1b2f22772e /src/user/lib/fs
parent059ef013683e780a6603b228cd1fd8391d11494e (diff)
user/libc: exit()
What an interesting commit.
Diffstat (limited to 'src/user/lib/fs')
-rw-r--r--src/user/lib/fs/misc.c12
1 files changed, 6 insertions, 6 deletions
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);
}