1 #include "stdio_impl.h"
3 static off_t retneg1(FILE *f, off_t off, int whence)
9 off_t __stdio_seek(FILE *f, off_t off, int whence)
13 if (syscall(SYS__llseek, f->fd, off>>32, off, &ret, whence)<0)
16 ret = syscall(SYS_lseek, f->fd, off, whence);
18 /* Detect unseekable files and optimize future failures out */
19 if (ret < 0 && errno == ESPIPE) f->seek = retneg1;