summaryrefslogtreecommitdiffstats
path: root/usr/klibc/stdio/feof.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/klibc/stdio/feof.c')
-rw-r--r--usr/klibc/stdio/feof.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/klibc/stdio/feof.c b/usr/klibc/stdio/feof.c
new file mode 100644
index 0000000..4215c11
--- /dev/null
+++ b/usr/klibc/stdio/feof.c
@@ -0,0 +1,8 @@
+#define __NO_STDIO_INLINES
+#include "stdioint.h"
+
+int feof(FILE *__f)
+{
+ return __f->_IO_eof;
+}
+__ALIAS(int, feof_unlocked, (FILE *), feof)