platform_bionic/libc/include
Nick Kralevich 8df49ad246 FORTIFY_SOURCE: add strlcpy / strlcat support
Add strlcpy / strlcat support to FORTIFY_SOURCE. This allows
us to do consistency checks on to ensure we don't overflow buffers
when the compiler is able to tell us the size of the buffer we're
dealing with.

Unlike previous changes, this change DOES NOT use the compiler's
builtin support. Instead, we do everything the compiler would
normally do.

Change-Id: I47c099a911382452eafd711f8e9bfe7c2d0a0d22
2012-06-14 12:52:42 -07:00
..
android libc: Add <android/api-level.h> 2010-12-06 12:05:11 +01:00
arpa Import include/arpa/telnet.h from BSD 2010-01-15 15:15:52 -08:00
net Remove the meaningless on Linux if_dl.h header. 2012-06-11 15:01:10 -07:00
netinet am b127b1f2: Merge "libc: enable IPTOS_MINCOST, fixup gethostbyaddr() proto." 2011-06-07 13:24:04 -07:00
netpacket auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
sys _FORTIFY_SOURCE: add memset / bzero support 2012-06-07 14:19:52 -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 auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08: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 Import change from ctype.h revision 1.20 from openbsd 2010-01-15 15:57:02 -08:00
dirent.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
dlfcn.h fix prototype of dladdr 2011-09-28 12:17:34 -07:00
elf.h Eliminate duplicate constants 2012-02-29 18:43:51 -08:00
endian.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
err.h Add fts, err, and sys/queue for grep 2010-01-15 15:57:02 -08:00
errno.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
fcntl.h libc: add missing O_CLOEXEC from <fcntl.h> 2010-09-27 17:33:40 +02:00
features.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08: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
getopt.h libc: tag missing functions in system headers. 2010-10-09 17:56:55 +02:00
grp.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
inttypes.h Remove compiler warnings when building Bionic. 2010-06-22 17:51:41 -07:00
lastlog.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
libgen.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
limits.h Remove compiler warnings when building Bionic. 2010-06-22 17:51:41 -07:00
locale.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
malloc.h Don't mark realloc with __attribute__((malloc)) 2012-06-13 15:43:14 -07:00
memory.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
mntent.h mntent.h requires stdio.h 2010-01-15 15:57:02 -08:00
netdb.h libc: enable IPTOS_MINCOST, fixup gethostbyaddr() proto. 2011-06-02 15:28:16 -07:00
nsswitch.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08: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 auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
pthread.h libc: speed-up flockfile()/funlockfile() 2011-11-15 13:16:42 +01:00
pwd.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
regex.h Import regex from OpenBSD 2010-01-15 15:01:44 -08:00
resolv.h libc: remove private declarations from <time.h> and <resolv.h> 2012-01-13 14:24:08 +01:00
sched.h <sched.h>: Add sched_getcpu() and cpu_set_t 2010-12-06 13:42:54 +01:00
search.h New additions/bug fixes required/found when porting perf. 2012-03-20 12:54:55 -07:00
semaphore.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
setjmp.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
sgtty.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
sha1.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
signal.h libc: Fix the definition of SIGRTMAX 2010-12-20 15:58:06 +01:00
stdint.h libc: <stdint.h>: Don't make __STD_CONSTANT_MACROS available if only __STD_LIMIT_MACROS is defined. 2011-03-11 14:39:05 +01:00
stdio.h FORTIFY_SOURCE: add sprintf / vsprintf support 2012-06-13 09:14:30 -07:00
stdlib.h Add the posix_memalign(3) function to bionic 2012-04-27 09:34:53 -07:00
string.h FORTIFY_SOURCE: add strlcpy / strlcat support 2012-06-14 12:52:42 -07:00
strings.h _FORTIFY_SOURCE: add memset / bzero support 2012-06-07 14:19:52 -07:00
syslog.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
termio.h libc: Add missing <termio.h> header 2010-06-11 14:39:39 -07:00
termios.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
time.h libc: remove private declarations from <time.h> and <resolv.h> 2012-01-13 14:24:08 +01:00
time64.h libc: allow usage of time64.h from cpp code 2009-11-23 16:25:32 -05:00
unistd.h Add faccessat to syscall list 2012-04-13 15:45:42 -07:00
util.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
utime.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
utmp.h libc: remove C++ comments from public headers. 2010-09-27 17:35:26 +02:00
wchar.h Add wcscasecmp() and wcsncasecmp() prototypes to wchar.h. 2010-11-29 13:15:07 -08:00
wctype.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00