diff options
author | dzwdz | 2022-07-26 22:10:20 +0200 |
---|---|---|
committer | dzwdz | 2022-07-26 22:10:20 +0200 |
commit | 8af714e59d16f186fd9173edba4fb2699690947a (patch) | |
tree | a7df70cd7a6170ff95a9b85fe84c467a648c1be3 /src/user/lib/stdlib.c | |
parent | 137dcb3e207b264c467f4b2b13df2316b8b0a67c (diff) |
user/libc: make FILE an opaque type
Diffstat (limited to 'src/user/lib/stdlib.c')
-rw-r--r-- | src/user/lib/stdlib.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/user/lib/stdlib.c b/src/user/lib/stdlib.c index cd2ec90..0f49ccb 100644 --- a/src/user/lib/stdlib.c +++ b/src/user/lib/stdlib.c @@ -1,3 +1,4 @@ +#include "file.h" #include <camellia/syscalls.h> #include <errno.h> #include <shared/printf.h> @@ -200,6 +201,14 @@ int fclose(FILE *f) { return 0; } +int feof(FILE *f) { + return f->eof; +} + +int ferror(FILE *f) { + return f->error; +} + int fork(void) { return _syscall_fork(0, NULL); |