summaryrefslogtreecommitdiff
path: root/src/user/lib/include/stdio.h
diff options
context:
space:
mode:
authordzwdz2022-07-26 22:10:20 +0200
committerdzwdz2022-07-26 22:10:20 +0200
commit8af714e59d16f186fd9173edba4fb2699690947a (patch)
treea7df70cd7a6170ff95a9b85fe84c467a648c1be3 /src/user/lib/include/stdio.h
parent137dcb3e207b264c467f4b2b13df2316b8b0a67c (diff)
user/libc: make FILE an opaque type
Diffstat (limited to 'src/user/lib/include/stdio.h')
-rw-r--r--src/user/lib/include/stdio.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/user/lib/include/stdio.h b/src/user/lib/include/stdio.h
index 2f0746f..b8de85d 100644
--- a/src/user/lib/include/stdio.h
+++ b/src/user/lib/include/stdio.h
@@ -16,6 +16,10 @@ FILE *fopen(const char *path, const char *mode);
FILE *freopen(const char *path, const char *mode, FILE *);
FILE *fdopen(int fd, const char *mode);
FILE *file_clone(const FILE *);
+int fclose(FILE *);
+
size_t fread(void *restrict ptr, size_t size, size_t nitems, FILE *restrict);
size_t fwrite(const void *restrict ptr, size_t size, size_t nitems, FILE *restrict);
-int fclose(FILE *);
+
+int feof(FILE *);
+int ferror(FILE *);