summaryrefslogtreecommitdiff
path: root/src/user/lib/include/stdio.h
diff options
context:
space:
mode:
authordzwdz2022-07-26 20:40:29 +0200
committerdzwdz2022-07-26 20:44:29 +0200
commit599c916d4cdd06765e0869b0a4d685820384f500 (patch)
tree7355c35189a4b6e92249f59c76e6d89d5b432f29 /src/user/lib/include/stdio.h
parent350124fb4cfefc90c8f4a60de3da3c5d7da44f01 (diff)
user: posix-compatible FILE* opening
Diffstat (limited to 'src/user/lib/include/stdio.h')
-rw-r--r--src/user/lib/include/stdio.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/user/lib/include/stdio.h b/src/user/lib/include/stdio.h
index 291a194..2b1d8ed 100644
--- a/src/user/lib/include/stdio.h
+++ b/src/user/lib/include/stdio.h
@@ -8,11 +8,11 @@ int snprintf(char *str, size_t len, const char *fmt, ...);
int _klogf(const char *fmt, ...); // for kernel debugging only
-extern libc_file *const stdin, *const stdout;
+extern FILE *const stdin, *const stdout;
-libc_file *file_open(const char *path, int flags);
-libc_file *file_reopen(libc_file*, const char *path, int flags);
-libc_file *file_clone(const 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*);
+FILE *fopen(const char *path, const char *mode);
+FILE *freopen(const char *path, const char *mode, FILE*);
+FILE *file_clone(const FILE*);
+int file_read(FILE*, char *buf, size_t len);
+int file_write(FILE*, const char *buf, size_t len);
+void file_close(FILE*);