diff options
author | dzwdz | 2022-07-11 22:21:57 +0200 |
---|---|---|
committer | dzwdz | 2022-07-11 22:21:57 +0200 |
commit | 93af95b3419edfc127c6ea4245753540190c520e (patch) | |
tree | afacc32ba93239f2cde81efd35aacb015647cf99 /src/user/fs | |
parent | 2e79a2e5af3affa7a6a3becdffb1c91d89af90af (diff) |
user: add shorthand close() and fork() wrappers for those syscalls
Diffstat (limited to 'src/user/fs')
-rw-r--r-- | src/user/fs/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |