diff options
author | Rich Felker <dalias@aerifal.cx> | 2018-08-28 18:40:15 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-08-28 18:41:12 -0400 |
commit | b39b47bac8ee5505cfc595000a140c35460e1cac (patch) | |
tree | 4541df8890654a784bdb40b9f5fe94dc028ea2e8 /src/stdio/vsprintf.c | |
parent | baf95a5aefe885ef8a675759c63d43649d312ec6 (diff) | |
download | musl-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/stdio/vsprintf.c')
0 files changed, 0 insertions, 0 deletions