musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/stdio/feof.c
AgeCommit message (Collapse)AuthorLines
2012年10月24日correct locking in stdio functions that tried to be lock-free Rich Felker-1/+4
these functions must behave as if they obtain the lock via flockfile to satisfy POSIX requirements. since another thread can provably hold the lock when they are called, they must wait to obtain the lock before they can return, even if the correct return value could be obtained without locking. in the case of fclose and freopen, failure to do so could cause correct (albeit obscure) programs to crash or otherwise misbehave; in the case of feof, ferror, and fwide, failure to obtain the lock could sometimes return incorrect results. in any case, having these functions proceed and return while another thread held the lock was wrong.
2012年06月02日add some ugly aliases for LSB ABI compatibility Rich Felker-0/+1
for some nonsensical reason, glibc's headers use inline functions that redirect some of the standard functions to ugly nonstandard names (and likewise for some of their nonstandard functions).
2011年02月12日initial check-in, version 0.5.0 v0.5.0 Rich Felker-0/+10
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月14日 18:31:12 +0000

AltStyle によって変換されたページ (->オリジナル) /