summaryrefslogtreecommitdiff
path: root/src/stdio/fsetpos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/fsetpos.c')
-rw-r--r--src/stdio/fsetpos.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/stdio/fsetpos.c b/src/stdio/fsetpos.c
new file mode 100644
index 00000000..5d76c8cd
--- /dev/null
+++ b/src/stdio/fsetpos.c
@@ -0,0 +1,8 @@
+#include "stdio_impl.h"
+
+int fsetpos(FILE *f, const fpos_t *pos)
+{
+ return __fseeko(f, *(const off_t *)pos, SEEK_SET);
+}
+
+LFS64(fsetpos);