diff options
Diffstat (limited to 'src/stdio/feof.c')
-rw-r--r-- | src/stdio/feof.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); |