author | Rich Felker <dalias@aerifal.cx> | 2012年10月24日 23:16:41 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012年10月24日 23:16:41 -0400 |
commit | c8cb6bcdf009e94c12c6e256b8e24a9bc5fdaf05 (patch) | |
tree | 28d9441f99c5449267c987cb46b6610dc244a991 /src/stdio/feof.c | |
parent | 892cafff665b44d238e3b664f61ca38dd965cba6 (diff) | |
download | musl-c8cb6bcdf009e94c12c6e256b8e24a9bc5fdaf05.tar.gz |
-rw-r--r-- | src/stdio/feof.c | 5 |
diff --git a/src/stdio/feof.c b/src/stdio/feof.c index 5d7f4b02..56da6b91 100644 --- a/src/stdio/feof.c +++ b/src/stdio/feof.c @@ -4,7 +4,10 @@ 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); |