summaryrefslogtreecommitdiff
path: root/src/user/lib/stdlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/lib/stdlib.c')
-rw-r--r--src/user/lib/stdlib.c9
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);