platform_bionic/libc/include
Elliott Hughes 70a8f2272e 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
2018-05-08 15:20:07 -07:00
..
android Add dlext.h to the libdl doc group. 2018-04-13 14:32:37 -07:00
arpa Pad queries when EDNS0 is enabled. 2018-04-02 05:28:16 +00:00
bits Merge "Fortify ppoll64." 2018-03-22 23:49:40 +00:00
net Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
netinet Use in_addr in ip_mreq_source and ip_msfilter. 2017-12-14 10:07:27 -08:00
netpacket auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
sys Bionic: Always use fortified versions of FD_X macros 2018-04-13 17:57:21 -07:00
alloca.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
ar.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
assert.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
byteswap.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
complex.h Use __RENAME for long double functions. 2017-09-14 16:10:43 -07:00
cpio.h Add two missing POSIX constant-only headers. 2016-08-12 09:28:17 -07:00
ctype.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
dirent.h Deprecate readdir_r. 2018-01-22 17:15:25 -08:00
dlfcn.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
elf.h Reject .so files using ELF TLS. 2018-03-23 18:46:07 -07:00
endian.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
err.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
errno.h Remove volatile from the __errno declaration. 2017-06-13 16:02:07 -07:00
error.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
fcntl.h Remove __overloadable/__RENAME_CLANG 2018-02-06 13:35:56 -08:00
features.h Move the meat of <features.h> into <sys/cdefs.h>. 2014-08-19 11:18:20 -07:00
fenv.h Fix arm/arm64 <fenv.h> to match current reality. 2017-11-03 16:46:32 -07:00
fnmatch.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
fts.h Fix various ftw/nftw "shall fail"s from POSIX. 2018-05-08 15:20:07 -07:00
ftw.h Better backwards compatibility for stat64. 2018-02-12 15:48:01 -08:00
getopt.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
glob.h The future is now (2018 edition). 2018-01-30 08:54:12 -08:00
grp.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
iconv.h The future is now (2018 edition). 2018-01-30 08:54:12 -08:00
ifaddrs.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
inttypes.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
langinfo.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
lastlog.h Fix various empty .h files in bionic. 2016-04-29 22:30:19 -07:00
libgen.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
limits.h More <limits.h> fixes. 2017-10-18 13:27:01 -07:00
link.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
locale.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
malloc.h Implement malloc hooks. 2018-02-13 13:37:30 -08:00
math.h Remove some legacy declarations from <math.h>. 2017-10-19 14:15:31 -07:00
memory.h Fix <memory.h> to be a synonym for <string.h> like in glibc. 2013-02-22 11:11:48 -08:00
mntent.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
netdb.h The future is now (2018 edition). 2018-01-30 08:54:12 -08:00
nl_types.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
paths.h libc: add /odm/bin to the DEFPATH 2017-12-04 16:09:29 +01:00
poll.h Remove __overloadable/__RENAME_CLANG 2018-02-06 13:35:56 -08:00
pthread.h Create PTHREAD_COND_INITIALIZER_MONOTONIC_NP 2018-03-26 09:00:51 -07:00
pty.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
pwd.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
regex.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
resolv.h Name function arguments in libc headers for Studio. 2017-08-21 14:51:59 -07:00
sched.h Type of second __sched_cpucount should be "const cpu_set_t*". 2018-04-13 16:07:21 -07:00
search.h The future is now (2018 edition). 2018-01-30 08:54:12 -08:00
semaphore.h Add _monotonic_np versions of timed wait functions 2018-03-20 18:41:22 -07:00
setjmp.h Unified sysroot: kill arch-specific include dirs. 2017-10-12 13:19:51 -07:00
signal.h Add uc_sigmask64. 2018-02-13 19:09:04 -08:00
spawn.h Add sigset64_t and accompanying functions. 2018-01-30 18:47:16 -08:00
stdatomic.h Guard include of uchar.h in stdatomic.h 2016-08-04 18:22:12 +00:00
stdint.h Fix instances of '#if __LP64__'. 2016-09-15 14:21:28 -07:00
stdio.h Remove __overloadable/__RENAME_CLANG 2018-02-06 13:35:56 -08:00
stdio_ext.h Add __fseterr. 2018-02-14 15:25:21 -08:00
stdlib.h Fix posix_memalign introduced tag. 2018-04-20 10:46:16 -07:00
string.h Remove __overloadable/__RENAME_CLANG 2018-02-06 13:35:56 -08:00
strings.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
syscall.h Add all the glibc one-line "synonym" header files. 2015-07-17 13:59:36 -07:00
sysexits.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
syslog.h Name function arguments in libc headers for Studio. 2017-08-11 17:45:59 -07:00
tar.h Add two missing POSIX constant-only headers. 2016-08-12 09:28:17 -07:00
termio.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
termios.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
time.h Add remaining _l function stubs. 2018-02-13 23:14:12 -08:00
time64.h Remove the non-standard time64 stuff for LP64. 2014-05-05 17:14:02 -07:00
uchar.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
ucontext.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
unistd.h Remove __overloadable/__RENAME_CLANG 2018-02-06 13:35:56 -08:00
utime.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
utmp.h Name function arguments in libc headers for Studio. 2017-08-11 17:45:59 -07:00
wait.h Add all the glibc one-line "synonym" header files. 2015-07-17 13:59:36 -07:00
wchar.h Add remaining _l function stubs. 2018-02-13 23:14:12 -08:00
wctype.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
xlocale.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00