projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix indention with spaces in powerpc asm
[oweals/musl.git]
/
src
/
stdio
/
rewind.c
diff --git
a/src/stdio/rewind.c
b/src/stdio/rewind.c
index 7944b434d8174ff32789ce4e00bd0bb4271a09f4..6f4b58b5468900cab60ca6e28c494ac2eea1c645 100644
(file)
--- a/
src/stdio/rewind.c
+++ b/
src/stdio/rewind.c
@@
-1,6
+1,9
@@
-#include
<stdio.h>
+#include
"stdio_impl.h"
void rewind(FILE *f)
{
- fseek(f, 0, SEEK_SET);
+ FLOCK(f);
+ __fseeko_unlocked(f, 0, SEEK_SET);
+ f->flags &= ~F_ERR;
+ FUNLOCK(f);
}