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/process/system.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018年08月28日 18:40:15 -0400
committerRich Felker <dalias@aerifal.cx>2018年08月28日 18:41:12 -0400
commitb39b47bac8ee5505cfc595000a140c35460e1cac (patch)
tree4541df8890654a784bdb40b9f5fe94dc028ea2e8 /src/process/system.c
parentbaf95a5aefe885ef8a675759c63d43649d312ec6 (diff)
downloadmusl-b39b47bac8ee5505cfc595000a140c35460e1cac.tar.gz
set errno when fileno is called on a FILE with no underlying fd
this is a POSIX requirement. also remove the gratuitous locking shenanigans and simply access f->fd under control of the lock. there is no advantage to not doing so, and it made the correctness non-obvious at best.
Diffstat (limited to 'src/process/system.c')
0 files changed, 0 insertions, 0 deletions
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月18日 07:26:05 +0000

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