summaryrefslogtreecommitdiff
path: root/src/user/lib/file.c
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/file.c
parentc6424fbc55298399f133ca1ede11e1f0b4a5c824 (diff)
syscall: up the max argument count to 5; make write accept flags
Diffstat (limited to 'src/user/lib/file.c')
-rw-r--r--src/user/lib/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/user/lib/file.c b/src/user/lib/file.c
index a26c8bb..b7e70e6 100644
--- a/src/user/lib/file.c
+++ b/src/user/lib/file.c
@@ -127,7 +127,7 @@ size_t fwrite(const void *restrict ptr, size_t size, size_t nitems, FILE *restri
return 0;
while (pos < total) {
- long res = _syscall_write(f->fd, buf + pos, total - pos, f->pos);
+ long res = _syscall_write(f->fd, buf + pos, total - pos, f->pos, 0);
if (res < 0) {
f->error = true;
errno = -res;