diff options
author | Elliott Hughes <enh@google.com> | 2018-05-07 16:44:13 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2018-05-08 15:20:07 -0700 |
commit | 70a8f2272e4998aa37db89232ea9a4264432f0aa (patch) | |
tree | 0adb6da4f1475b3b7afe513d84e31811c58da751 /libc/malloc_hooks/malloc_hooks.cpp | |
parent | cf4b4706be4ba1eeb027a148453ebb86f9f840ef (diff) |
Fix various ftw/nftw "shall fail"s from POSIX.
POSIX says ftw/nftw "shall fail" in various cases where BSD's fts_open
doesn't. Since our ftw/nftw are written in terms of fts_open, add a back
door so we can hint to ourselves when we should have the POSIX semantics.
Also pull several O_CLOEXEC and don't-null-check-before-free cleanups
from upstream, and add a couple of tests.
Bug: http://b/31152735
Test: ran bionic tests and LTP "nftw01" test
Change-Id: Ib05facacc1da4c8b2ab48e9ecce88f11a5406630
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions