Elliott Hughes 432f645887 Fix flockfile(3) and friends for stdin/stdout/stderr too.
stdin/stdout/stderr are special; their mutexes are initialized by
__sinit. There's no unit test for this, because __sinit has already
been called by the time the first unit test runs, but you could
reproduce this failure with a trivial main() that calls flockfile
or ftrylockfile on one of the standard streams before otherwise
using stdio.

Bug: 18208568

(cherry picked from commit c48c3e4bb3d1665f3e9fa2785daafa72dfe59399)

Change-Id: Ia0c43ed4ac69daea8152aee9516415a6e3f8a042
2014-11-19 15:49:09 -08:00
..
2014-10-29 11:07:03 -07:00
2014-10-07 11:40:09 -07:00
2014-11-14 15:37:49 -08:00
2014-10-27 13:38:21 -07:00
2014-11-11 19:56:09 -08:00
2014-07-24 15:14:06 -07:00