projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sigtimedwait: add time64 syscall support, decouple 32-bit time_t
[musl]
/
src
/
stdio
/
__stdio_seek.c
diff --git
a/src/stdio/__stdio_seek.c
b/src/stdio/__stdio_seek.c
index
fdb9fe7
..
326ab9b
100644
(file)
--- a/
src/stdio/__stdio_seek.c
+++ b/
src/stdio/__stdio_seek.c
@@
-1,15
+1,7
@@
#include "stdio_impl.h"
#include "stdio_impl.h"
-
-static off_t retneg1(FILE *f, off_t off, int whence)
-{
- return -1;
-}
+#include <unistd.h>
off_t __stdio_seek(FILE *f, off_t off, int whence)
{
off_t __stdio_seek(FILE *f, off_t off, int whence)
{
- off_t ret = __syscall_lseek(f->fd, off, whence);
- /* Detect unseekable files and optimize future failures out */
- if (ret < 0 && off == 0 && whence == SEEK_CUR)
- f->seek = retneg1;
- return ret;
+ return __lseek(f->fd, off, whence);
}
}