From 93af95b3419edfc127c6ea4245753540190c520e Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 11 Jul 2022 22:21:57 +0200 Subject: user: add shorthand close() and fork() wrappers for those syscalls --- src/user/fs/misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/user/fs/misc.c') diff --git a/src/user/fs/misc.c b/src/user/fs/misc.c index bf09718..b3e1a2c 100644 --- a/src/user/fs/misc.c +++ b/src/user/fs/misc.c @@ -9,7 +9,7 @@ bool fork2_n_mount(const char *path) { handle_t h; if (_syscall_fork(FORK_NEWFS, &h) > 0) { /* parent */ _syscall_mount(h, path, strlen(path)); - _syscall_close(h); + close(h); return true; } return false; @@ -129,7 +129,7 @@ void fs_dir_inject(const char *path) { case VFSOP_CLOSE: if (data->delegate >= 0) - _syscall_close(data->delegate); + close(data->delegate); _syscall_fs_respond(NULL, 0, 0); break; -- cgit v1.2.3