From bf4cbc830d78774ac00d9501c45e8b84d0ae9ae7 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 29 Jun 2022 21:52:15 +0200 Subject: kernel/vfs: add the OPEN_CREATE flag --- src/init/stdlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/init/stdlib.h') 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*); -- cgit v1.2.3