From 8af714e59d16f186fd9173edba4fb2699690947a Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 26 Jul 2022 22:10:20 +0200 Subject: user/libc: make FILE an opaque type --- src/user/lib/include/stdio.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/user/lib/include/stdio.h') 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 *); -- cgit v1.2.3