diff options
author | dzwdz | 2021-09-20 18:54:40 +0200 |
---|---|---|
committer | dzwdz | 2021-09-20 18:54:40 +0200 |
commit | 29bcaabe450e1bbd906111c5c83407d80abd584d (patch) | |
tree | e898b1f3994c67c157c834ee8bcd2e7bb7176b63 /src/shared/syscalls.h | |
parent | 7ba8059015fd08a952d48ab71bf91202ea4f06eb (diff) |
use a single struct for all fs_wait return values
Diffstat (limited to 'src/shared/syscalls.h')
-rw-r--r-- | src/shared/syscalls.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/shared/syscalls.h b/src/shared/syscalls.h index 0b856e6..f6ee44f 100644 --- a/src/shared/syscalls.h +++ b/src/shared/syscalls.h @@ -51,7 +51,12 @@ int _syscall_close(handle_t); * @param back a pointer to a handle_t which will store the back pointer */ handle_t _syscall_fs_create(handle_t __user *back); -int _syscall_fs_wait(handle_t back, char __user *buf, int __user *len, int __user *id); +struct fs_wait_response { + int len; // how much was put in *buf + int id; // file id (returned by the open handler, passed to other calls) +}; +int _syscall_fs_wait(handle_t back, char __user *buf, int max_len, + struct fs_wait_response __user *res); int _syscall_fs_respond(char __user *buf, int ret); int _syscall_memflag(void __user *addr, size_t len, int flags); |