summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/libstdio/ftello64.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/dietlibc/libstdio/ftello64.c')
-rw-r--r--mdk-stage1/dietlibc/libstdio/ftello64.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/libstdio/ftello64.c b/mdk-stage1/dietlibc/libstdio/ftello64.c
new file mode 100644
index 000000000..bda7a7de4
--- /dev/null
+++ b/mdk-stage1/dietlibc/libstdio/ftello64.c
@@ -0,0 +1,9 @@
+#include <dietstdio.h>
+#include <unistd.h>
+
+#ifndef __NO_STAT64
+off64_t ftello64(FILE *stream) {
+ fflush(stream);
+ return (lseek64(stream->fd,0ull,SEEK_CUR));
+}
+#endif