X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2F__stdio_seek.c;h=13e06a663eff8e4cb79cabf33c4ec08df20e570e;hb=a749ba3adc2f3b4abfc68b21d4c3741b20c8f657;hp=c205ab8206a36341fada87615b0af7706ed26dfd;hpb=aa398f56fa398f2202b04e82c67f822f3233786f;p=musl diff --git a/src/stdio/__stdio_seek.c b/src/stdio/__stdio_seek.c index c205ab82..13e06a66 100644 --- a/src/stdio/__stdio_seek.c +++ b/src/stdio/__stdio_seek.c @@ -1,10 +1,5 @@ #include "stdio_impl.h" -static off_t retneg1(FILE *f, off_t off, int whence) -{ - return -1; -} - off_t __stdio_seek(FILE *f, off_t off, int whence) { off_t ret; @@ -14,8 +9,5 @@ off_t __stdio_seek(FILE *f, off_t off, int whence) #else ret = syscall(SYS_lseek, f->fd, off, whence); #endif - /* Detect unseekable files and optimize future failures out */ - if (ret < 0 && off == 0 && whence == SEEK_CUR) - f->seek = retneg1; return ret; }