summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/stdio/__stdio_seek.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libc-top-half/musl/src/stdio/__stdio_seek.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/stdio/__stdio_seek.c b/libc-top-half/musl/src/stdio/__stdio_seek.c
new file mode 100644
index 0000000..782c678
--- /dev/null
+++ b/libc-top-half/musl/src/stdio/__stdio_seek.c
@@ -0,0 +1,11 @@
+#ifdef __wasilibc_unmodified_upstream // WASI has no syscall
+#else
+#include <unistd.h>
+#endif
+#include "stdio_impl.h"
+#include "stdio_impl.h"
+
+off_t __stdio_seek(FILE *f, off_t off, int whence)
+{
+ return __lseek(f->fd, off, whence);
+}