X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fstdio%2Ffeof.c;h=56da6b917c0af7913ec18f51288eccef822d763c;hp=f2b739b5c89507291c101ed6e237d8ad719666c7;hb=c8cb6bcdf009e94c12c6e256b8e24a9bc5fdaf05;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01 diff --git a/src/stdio/feof.c b/src/stdio/feof.c index f2b739b5..56da6b91 100644 --- a/src/stdio/feof.c +++ b/src/stdio/feof.c @@ -4,7 +4,11 @@ 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, _IO_feof_unlocked);