summaryrefslogtreecommitdiff
path: root/src/init/stdlib.h
diff options
context:
space:
mode:
authordzwdz2022-06-29 21:52:15 +0200
committerdzwdz2022-06-29 21:52:15 +0200
commitbf4cbc830d78774ac00d9501c45e8b84d0ae9ae7 (patch)
treef302f92badf74dade9e724e37f85d1ee2dd99833 /src/init/stdlib.h
parent43de6a4d8ead1e609828ef34ad1957d34c94ee6a (diff)
kernel/vfs: add the OPEN_CREATE flag
Diffstat (limited to 'src/init/stdlib.h')
-rw-r--r--src/init/stdlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init/stdlib.h b/src/init/stdlib.h
index b1709e0..3dc1c81 100644
--- a/src/init/stdlib.h
+++ b/src/init/stdlib.h
@@ -11,7 +11,7 @@ typedef struct {
int pos;
bool eof;
} libc_file;
-int file_open(libc_file*, const char *path); // TODO return a libc_file*
+int file_open(libc_file*, const char *path, int flags); // TODO return a libc_file*
int file_read(libc_file*, char *buf, size_t len);
int file_write(libc_file*, const char *buf, size_t len);
void file_close(libc_file*);