summaryrefslogtreecommitdiff
path: root/src/shared/syscalls.h
diff options
context:
space:
mode:
authordzwdz2021-09-20 18:54:40 +0200
committerdzwdz2021-09-20 18:54:40 +0200
commit29bcaabe450e1bbd906111c5c83407d80abd584d (patch)
treee898b1f3994c67c157c834ee8bcd2e7bb7176b63 /src/shared/syscalls.h
parent7ba8059015fd08a952d48ab71bf91202ea4f06eb (diff)
use a single struct for all fs_wait return values
Diffstat (limited to 'src/shared/syscalls.h')
-rw-r--r--src/shared/syscalls.h7
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);