platform_bionic/libc/stdio
Elliott Hughes d3915c7b53 Make fd overflow an abort.
On LP32, just abort if we're asked to handle an fd that's too big for
the `short` field in `struct FILE`. This is unreachable anyway because
the ulimit is 32Ki, and this will make issues far more noticeable if we
ever do increase that limit (which seems unlikely for LP32 devices).

Also rename __finit() to __FILE_init() to match __FILE_close().

Test: treehugger
Change-Id: I5db4d6c4529a1f558aff135b4dea071d73666be5
2021-02-09 17:13:09 -08: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 Cleanup for #inclusivefixit. 2020-07-23 13:43:23 -07:00
parsefloat.c Start de-duplicating the regular and wide printf implementations. 2017-11-01 18:13:36 -07:00
printf_common.h Move bionic_macros.h from private to platform. 2020-01-02 14:09:50 -08:00
refill.c Revert fwalk/sfp locking to fix concurrent reads 2019-05-04 00:28:00 -07:00
stdio.cpp Make fd overflow an abort. 2021-02-09 17:13:09 -08: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 Remove bionic's internal ctype-like inlines. 2020-02-05 11:39:35 -08: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