bionic/libc/include
Hans Boehm 00aaea3645 Fix, generalize stdatomic.h; improve test.
We seem to use this stdatomic.h sometimes, and slightly different prebuilts
at other times, making them all difficult to test, and making it unclear
which one we're testing.  This generalizes the bionic header so that it
can be used directly as the prebuilt header as well.  So long as they
don't diverge again, that should somewhat improve test coverage.

Use the correct builtin for atomic_is_lock_free.

Fix atomic_flag_init.

Turn on atomic tests even with __GLIBC__, since they now appear to pass.

Include uchar.h in stdatomic.h where needed.

Add a basic memory ordering test.

Fix bit-rotted comments in bionic tests makefile.

Change-Id: If6a14c1075b379395ba5d93357d56025c0ffab68
2014-08-22 15:50:17 -07:00
..
android Missing #include <sys/cdefs.h>. 2014-08-19 11:08:02 -07:00
arpa Add in_port_t and move it and in_addr_t to the correct header file. 2014-08-19 12:43:50 -07:00
machine Fix WCHAR_MAX, WCHAR_MIN, WINT_MAX, and WINT_MIN. 2014-04-21 18:09:46 -07:00
net Update the kernel headers to match external/kernel-headers. 2012-09-12 12:30:22 -07:00
netinet Add in_port_t and move it and in_addr_t to the correct header file. 2014-08-19 12:43:50 -07:00
netpacket auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
sys Move the meat of <features.h> into <sys/cdefs.h>. 2014-08-19 11:18:20 -07:00
alloca.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
ar.h New additions/bug fixes required/found when porting perf. 2012-03-20 12:54:55 -07:00
assert.h Add "__noreturn" to assert and assert2 2014-01-15 07:32:52 +00:00
byteswap.h Fixes for the ARM-specific bswap_16, bswap_32, and bswap_64. 2010-09-26 11:26:53 -07:00
ctype.h Remove isascii_l(3). 2014-07-14 15:48:02 -07:00
dirent.h Remove getdents from bionic. 2014-06-06 15:05:58 -07:00
dlfcn.h Add RTLD_NOLOAD support and some related changes. 2014-05-20 12:02:24 -07:00
elf.h Added test for ifunc support in dynamic linker. 2014-08-08 11:29:35 -07:00
endian.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
err.h The err family allow null format strings. 2014-07-11 02:53:27 +00:00
errno.h Add __pure2 to a few more functions, most notably gettid and pthread_self. 2014-06-11 16:32:10 -07:00
fcntl.h Improve <sys/cdefs.h>. 2014-08-18 14:45:42 -07:00
features.h Move the meat of <features.h> into <sys/cdefs.h>. 2014-08-19 11:18:20 -07:00
fnmatch.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
fts.h Add fts, err, and sys/queue for grep 2010-01-15 15:57:02 -08:00
ftw.h Added ftw64, nftw64 2014-02-24 20:22:11 +00:00
getopt.h Switch to current upstream getopt_long. 2013-06-25 14:56:17 -07:00
grp.h Remove declarations for things that don't exist. 2014-07-29 16:57:47 -07:00
inttypes.h Switch to the OpenBSD implementations of the wide scanf functions. 2014-04-29 16:28:56 -07:00
lastlog.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
libgen.h Implement the GNU basename(3) in addition to the POSIX one. 2014-08-19 14:30:30 -07:00
limits.h Fix the printf family for non-ASCII. 2014-06-05 23:19:15 -07:00
link.h Fix <link.h>. 2014-02-10 13:31:13 -08:00
locale.h Brings LC_* defs into line with POSIX 2014-04-18 21:48:57 +00:00
malloc.h Revert "Backing this one out since the counterpart needs to be sent upstream." 2014-06-14 01:04:31 +00: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 Add getmntent_r to our collection of <mntent.h> compatibility stubs. 2014-05-13 10:44:07 -07:00
netdb.h Use default hidden visibility to build libc_dns. 2014-06-12 13:35:41 -07:00
nsswitch.h Restore <nsswitch.h> which is BSD API, not private. 2014-06-30 14:15:34 -07:00
pathconf.h libc: Add missing C++ guards to <pathconf.h> 2010-09-27 17:27:14 +02:00
paths.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
poll.h Remove dependencies on obsolete __ARCH_WANT_SYSCALL_DEPRECATED system calls. 2013-10-24 15:48:32 -07:00
pthread.h Add __pure2 to a few more functions, most notably gettid and pthread_self. 2014-06-11 16:32:10 -07:00
pwd.h Align struct passwd definition with other variations of libc 2014-05-09 22:29:23 +01:00
regex.h Import regex from OpenBSD 2010-01-15 15:01:44 -08:00
resolv.h Use default hidden visibility to build libc_dns. 2014-06-12 13:35:41 -07:00
sched.h Move the meat of <features.h> into <sys/cdefs.h>. 2014-08-19 11:18:20 -07:00
search.h Implement twalk(3), add unit tests. 2014-07-24 14:55:29 -07:00
semaphore.h Reserve some space in sem_t for the future. 2014-05-06 16:24:27 +01:00
setjmp.h Rewrite and hide longjmperror. 2014-06-06 16:49:39 -07:00
sgidefs.h Add <sgidefs.h>. 2014-01-09 13:54:49 -08:00
sgtty.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
signal.h asm/sigcontext.h is required to build unwind-dw2.c in gcc-4.9. 2014-06-25 18:03:41 -07:00
stdatomic.h Fix, generalize stdatomic.h; improve test. 2014-08-22 15:50:17 -07:00
stdint.h There is no _MIN for unsigned types. 2014-07-21 17:16:30 -07:00
stdio_ext.h Add <stdio_ext.h> for elfutils. 2014-08-20 10:23:52 -07:00
stdio.h Add <stdio_ext.h> for elfutils. 2014-08-20 10:23:52 -07:00
stdlib.h Change name of MB_CUR_MAX implementation function. 2014-08-14 13:56:51 -07:00
string.h Implement the GNU basename(3) in addition to the POSIX one. 2014-08-19 14:30:30 -07:00
strings.h Use __builtin_*_chk for bcopy/bzero. 2014-06-23 08:30:40 -07:00
syslog.h Fix belated review comments on syslog change. 2014-07-23 11:38:38 -07:00
termio.h libc: Add missing <termio.h> header 2010-06-11 14:39:39 -07:00
termios.h Clean up our termios implementation. 2014-03-11 19:13:25 -07:00
time64.h Remove the non-standard time64 stuff for LP64. 2014-05-05 17:14:02 -07:00
time.h Revert "Revert "Add locale aware APIs."" 2014-07-11 16:21:31 +00:00
uchar.h Adds functionality specified by uchar.h 2014-06-04 08:39:24 -07:00
ucontext.h Add x86_64 ucontext.h for better compatibility 2014-01-29 15:35:33 -08:00
unistd.h Move the meat of <features.h> into <sys/cdefs.h>. 2014-08-19 11:18:20 -07:00
util.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
utime.h Fix utime/utimes when passed a NULL pointer. 2013-10-28 13:21:06 -07:00
utmp.h Allow for better utmp logging. 2014-05-06 15:44:14 +01:00
wchar.h Revert "Revert "Add locale aware APIs."" 2014-07-11 16:21:31 +00:00
wctype.h Revert "Revert "Add locale aware APIs."" 2014-07-11 16:21:31 +00:00
xlocale.h Flesh out <locale.h>. 2014-04-08 19:37:38 -07:00