Index: fusl/src/stdio/ext2.c |
diff --git a/fusl/src/stdio/ext2.c b/fusl/src/stdio/ext2.c |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f359be9af7622dbcadc42b2372839136970732a9 |
--- /dev/null |
+++ b/fusl/src/stdio/ext2.c |
@@ -0,0 +1,24 @@ |
+#include "stdio_impl.h" |
+ |
+size_t __freadahead(FILE *f) |
+{ |
+ return f->rend - f->rpos; |
+} |
+ |
+const char *__freadptr(FILE *f, size_t *sizep) |
+{ |
+ size_t size = f->rend - f->rpos; |
+ if (!size) return 0; |
+ *sizep = size; |
+ return (const char *)f->rpos; |
+} |
+ |
+void __freadptrinc(FILE *f, size_t inc) |
+{ |
+ f->rpos += inc; |
+} |
+ |
+void __fseterr(FILE *f) |
+{ |
+ f->flags |= F_ERR; |
+} |