summaryrefslogtreecommitdiff
path: root/src/user/lib/fs
diff options
context:
space:
mode:
authordzwdz2022-07-29 18:45:47 +0200
committerdzwdz2022-07-29 18:45:47 +0200
commita658e1068eb2f849736931d2b99bcb6290c7ec0a (patch)
treefd2f6d31cf74799aa7318524bea7c707767e6b0e /src/user/lib/fs
parentc6424fbc55298399f133ca1ede11e1f0b4a5c824 (diff)
syscall: up the max argument count to 5; make write accept flags
Diffstat (limited to 'src/user/lib/fs')
-rw-r--r--src/user/lib/fs/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/user/lib/fs/misc.c b/src/user/lib/fs/misc.c
index 32464b3..55ba9a6 100644
--- a/src/user/lib/fs/misc.c
+++ b/src/user/lib/fs/misc.c
@@ -151,7 +151,7 @@ void fs_dir_inject(const char *path) {
case VFSOP_WRITE:
if (data->delegate >= 0)
- ret = _syscall_write(data->delegate, buf, res.len, res.offset);
+ ret = _syscall_write(data->delegate, buf, res.len, res.offset, res.flags);
else
ret = -1;
_syscall_fs_respond(NULL, ret, 0);