X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Ffeof.c;h=56da6b917c0af7913ec18f51288eccef822d763c;hb=41d7c77d6a2e74294807d35062e4cd1d48ab72d3;hp=f2b739b5c89507291c101ed6e237d8ad719666c7;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl 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);