From a658e1068eb2f849736931d2b99bcb6290c7ec0a Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 29 Jul 2022 18:45:47 +0200 Subject: syscall: up the max argument count to 5; make write accept flags --- src/user/lib/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/user/lib/file.c') 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; -- cgit v1.2.3