platform_bionic/libc
Nick Kralevich cf870199d5 FORTIFY_SOURCE: strcat / strncat optimize
__strcat_chk and __strncat_chk are slightly inefficient,
because they end up traversing over the same memory region
two times.

This change optimizes __strcat_chk / __strncat_chk so they
only access the memory once. Although I haven't benchmarked these
changes, it should improve the performance of these functions.

__strlen_chk - expose this function, even if -D_FORTIFY_SOURCE
isn't defined. This is needed to compile libc itself without
-D_FORTIFY_SOURCE.

Change-Id: Id2c70dff55a276b47c59db27a03734d659f84b74
2013-05-31 09:07:46 -07:00
..
arch-arm libc/arm: add cortex-a8 cpu variant 2013-05-15 20:13:28 -07:00
arch-mips libc: add timerfd calls 2013-05-14 14:45:02 -07:00
arch-x86 libc x86: Remove strcat.S 2013-05-30 11:15:40 -07:00
bionic FORTIFY_SOURCE: strcat / strncat optimize 2013-05-31 09:07:46 -07:00
include FORTIFY_SOURCE: strcat / strncat optimize 2013-05-31 09:07:46 -07:00
kernel libc: add timerfd calls 2013-05-14 14:45:02 -07:00
netbsd Fix all printf warnings in res_send.c. 2013-05-14 10:09:23 -07:00
private FORTIFY_SOURCE: strcat / strncat optimize 2013-05-31 09:07:46 -07:00
stdio Start moving to current FreeBSD stdio. 2013-04-11 13:55:01 -07:00
stdlib Switch to current FreeBSD qsort. 2013-04-11 18:08:34 -07:00
string libc: cleanup strchr 2013-05-02 13:58:03 -07:00
tools Don't avoid IPv6 when looking for new tzdata. 2013-04-24 10:50:45 -07:00
tzcode Improve diagnostics in the face of bad tzdata. 2013-04-25 14:02:59 -07:00
unistd Upgrade to current NetBSD popen/pclose. 2013-03-06 16:20:55 -08:00
upstream-dlmalloc Fix build warning of initialization but no use. 2012-09-06 09:59:13 -07:00
upstream-freebsd Pull upstream FreeBSD revision 249810. 2013-05-14 15:02:16 -07:00
upstream-netbsd Add more __restricts, clean up __format__ attributes. 2013-05-14 16:08:43 -07:00
wchar Switch to upstream-freebsd for the unmolested wchar code. 2013-03-01 18:35:56 -08:00
zoneinfo Upgrade to tzdata2013c. 2013-04-22 11:33:14 -07:00
Android.mk libc: cleanup strchr 2013-05-02 13:58:03 -07:00
CAVEATS
MODULE_LICENSE_BSD
NOTICE Pull upstream FreeBSD revision 249810. 2013-05-14 15:02:16 -07:00
SYSCALLS.TXT libc: add timerfd calls 2013-05-14 14:45:02 -07:00