diff options
author | dzwdz | 2022-06-29 21:52:15 +0200 |
---|---|---|
committer | dzwdz | 2022-06-29 21:52:15 +0200 |
commit | bf4cbc830d78774ac00d9501c45e8b84d0ae9ae7 (patch) | |
tree | f302f92badf74dade9e724e37f85d1ee2dd99833 /src/init/stdlib.c | |
parent | 43de6a4d8ead1e609828ef34ad1957d34c94ee6a (diff) |
kernel/vfs: add the OPEN_CREATE flag
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; } |