diff options
author | Elliott Hughes <enh@google.com> | 2021-02-08 16:24:46 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2021-02-09 17:13:09 -0800 |
commit | d3915c7b53b745c521046b0af2455b4db3251c54 (patch) | |
tree | e7696b302bdabb3896d808101376cb5337a1fc88 /tests/stdio_test.cpp | |
parent | 6d5662d22a38ca6200d6b6dd919204bc93dbaba8 (diff) |
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
Diffstat (limited to 'tests/stdio_test.cpp')
0 files changed, 0 insertions, 0 deletions