diff options
Diffstat (limited to 'src/init/stdlib.c')
-rw-r--r-- | src/init/stdlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init/stdlib.c b/src/init/stdlib.c index f59635e..9b7a329 100644 --- a/src/init/stdlib.c +++ b/src/init/stdlib.c @@ -18,10 +18,10 @@ int printf(const char *fmt, ...) { return ret; } -int file_open(libc_file *f, const char *path) { +int file_open(libc_file *f, const char *path, int flags) { f->pos = 0; f->eof = false; - f->fd = _syscall_open(path, strlen(path)); + f->fd = _syscall_open(path, strlen(path), flags); if (f->fd < 0) return f->fd; return 0; } |