X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fstdio%2Ffeof.c;h=56da6b917c0af7913ec18f51288eccef822d763c;hb=9cb6e6ea120cfaf1df9016883012d22fb57d43e1;hp=5d7f4b02332b8825f01dd6745ed08bf4ffa66602;hpb=6a4b9472fb0a85e55030b37ec3017ba0319e03f9;p=musl 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);