projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add MOD_TAI to sys/timex.h and update STA_RONLY
[musl]
/
src
/
stdio
/
feof.c
diff --git
a/src/stdio/feof.c
b/src/stdio/feof.c
index
f2b739b
..
56da6b9
100644
(file)
--- a/
src/stdio/feof.c
+++ b/
src/stdio/feof.c
@@
-4,7
+4,11
@@
int feof(FILE *f)
{
int feof(FILE *f)
{
- return !!(f->flags & F_EOF);
+ FLOCK(f);
+ int ret = !!(f->flags & F_EOF);
+ FUNLOCK(f);
+ return ret;
}
weak_alias(feof, feof_unlocked);
}
weak_alias(feof, feof_unlocked);
+weak_alias(feof, _IO_feof_unlocked);