From a957c8f0c6b35171378522e03b4360cfc5527832 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 2 Nov 2021 19:51:04 +0100 Subject: fork2 refactor: every process now has (only) a single controlled vfs_backend --- src/init/syscalls.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/init/syscalls.c') diff --git a/src/init/syscalls.c b/src/init/syscalls.c index 57a7344..e14dfe8 100644 --- a/src/init/syscalls.c +++ b/src/init/syscalls.c @@ -34,13 +34,12 @@ int _syscall_close(handle_t handle) { return _syscall(_SYSCALL_CLOSE, handle, 0, 0, 0); } -handle_t _syscall_fs_create(handle_t __user *back) { - return _syscall(_SYSCALL_FS_CREATE, (int)back, 0, 0, 0); +handle_t _syscall_fs_create(void) { + return _syscall(_SYSCALL_FS_CREATE, 0, 0, 0, 0); } -int _syscall_fs_wait(handle_t back, char __user *buf, int max_len, - struct fs_wait_response __user *res) { - return _syscall(_SYSCALL_FS_WAIT, back, (int)buf, max_len, (int)res); +int _syscall_fs_wait(char __user *buf, int max_len, struct fs_wait_response __user *res) { + return _syscall(_SYSCALL_FS_WAIT, (int)buf, max_len, (int)res, 0); } int _syscall_fs_respond(char __user *buf, int ret) { -- cgit v1.2.3