]> git.proxmox.com Git - wasi-libc.git/blobdiff - libc-top-half/musl/src/stdio/__stdio_seek.c
Update to musl 1.1.24.
[wasi-libc.git] / libc-top-half / musl / src / stdio / __stdio_seek.c
index 709904fa15b42cf0bbe10d88e50194a0c9a5358b..782c6784224b336fb7f2a75c632596ca92643636 100644 (file)
@@ -7,20 +7,5 @@
 
 off_t __stdio_seek(FILE *f, off_t off, int whence)
 {
-       off_t ret;
-#ifdef SYS__llseek
-#ifdef __wasilibc_unmodified_upstream // WASI has no syscall
-       if (syscall(SYS__llseek, f->fd, off>>32, off, &ret, whence)<0)
-#else
-       if (llseek(f->fd, off>>32, off, &ret, whence)<0)
-#endif
-               ret = -1;
-#else
-#ifdef __wasilibc_unmodified_upstream // WASI has no syscall
-       ret = syscall(SYS_lseek, f->fd, off, whence);
-#else
-       ret = lseek(f->fd, off, whence);
-#endif
-#endif
-       return ret;
+       return __lseek(f->fd, off, whence);
 }