platform_bionic/libc/stdio
Ryan Prichard c485cdb024 Revert fwalk/sfp locking to fix concurrent reads
The locking can fail in a couple of ways:

 - A concurrent fread from an unbuffered or line-buffered file flushes
   the output of other line-buffered files, and if _fwalk locks every
   file, then the fread blocks until other file reads have completed.

 - __sfp can initialize a file lock while _fwalk is locking/unlocking it.

For now, revert to the behavior Bionic had in previous releases. This
commit reverts the file locking parts of commit
468efc80da.

Bug: http://b/131251441
Bug: http://b/130189834
Test: bionic unit tests
Change-Id: I9e20b9cd8ccd14e7962f7308e174f08af72b56c6
2019-05-04 00:28:00 -07:00
..
fmemopen.cpp Avoid writing to a zero-capacity buffer. 2019-02-05 15:00:13 -08:00
glue.h Rename LIBC64_HIDDEN to LIBC32_LEGACY_PUBLIC. 2015-10-23 12:32:52 -07:00
local.h Revert fwalk/sfp locking to fix concurrent reads 2019-05-04 00:28:00 -07:00
parsefloat.c Start de-duplicating the regular and wide printf implementations. 2017-11-01 18:13:36 -07:00
printf_common.h libc: enable -Wimplicit-fallthrough 2018-08-15 10:11:08 -07:00
refill.c Revert fwalk/sfp locking to fix concurrent reads 2019-05-04 00:28:00 -07:00
stdio.cpp Revert fwalk/sfp locking to fix concurrent reads 2019-05-04 00:28:00 -07:00
stdio_ext.cpp Modernize codebase by replacing NULL with nullptr 2018-08-02 18:09:44 -07:00
vfprintf.cpp Use strerror_r(3) for the printf family %m. 2018-09-06 10:42:40 -07:00
vfscanf.cpp libc: enable -Wimplicit-fallthrough 2018-08-15 10:11:08 -07:00
vfwprintf.cpp Use strerror_r(3) for the printf family %m. 2018-09-06 10:42:40 -07:00
vfwscanf.c More scanf cleanup. 2017-12-12 17:10:51 -08:00