summaryrefslogtreecommitdiff
path: root/src/stdio/fwide.c
AgeCommit message (Collapse)AuthorFilesLines
2014-07-01fix incorrect return value for fwide functionRich Felker1-1/+2
when the orientation of the stream was already set, fwide was incorrectly returning its argument (the requested orientation) rather than the actual orientation of the stream.
2013-12-12include cleanups: remove unused headers and add feature test macrosSzabolcs Nagy1-0/+1
2012-10-24correct locking in stdio functions that tried to be lock-freeRich Felker1-2/+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.
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker1-0/+10