summaryrefslogtreecommitdiff
path: root/src/shared/syscalls.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/syscalls.h')
-rw-r--r--src/shared/syscalls.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/syscalls.h b/src/shared/syscalls.h
index 8ec1a41..b78246c 100644
--- a/src/shared/syscalls.h
+++ b/src/shared/syscalls.h
@@ -50,11 +50,14 @@ int _syscall_close(handle_t);
handle_t _syscall_fs_fork2(void);
struct fs_wait_response {
+ enum vfs_operation op;
int len; // how much was put in *buf
int capacity; // how much output can be accepted by the caller
int id; // file id (returned by the open handler, passed to other calls)
int offset;
};
+/** Blocks until an fs request is made.
+ * @return 0 if everything was successful */
int _syscall_fs_wait(char __user *buf, int max_len, struct fs_wait_response __user *res);
int _syscall_fs_respond(char __user *buf, int ret);