glibc/locale
Wilco Dijkstra ae65d4f3c3 Remove the str(n)dup inlines from string/bits/string2.h. Although inlining
calls with constant strings shows a small (~10%) performance gain, strdup is
typically used in error reporting code, so not performance critical.
Remove the now unused __need_malloc_and_calloc related defines from stdlib.h.

Rename existing uses of str(n)dup to __str(n)dup so it no longer needs to be
redirected to a builtin.  Also building GLIBC with -Os now no longer shows
localplt or linkname space failures (partial fix for BZ #15105 and BZ #19463).

        [BZ #15105]
        [BZ #19463]
        * elf/dl-cache.c (_dl_load_cache_lookup): Use __strdup.
        * inet/rcmd.c (rcmd_af): Likewise.
        * inet/rexec.c   (rexec_af): Likewise.
        * intl/dcigettext.c (_LIBC): Likewise.
        * intl/finddomain.c (_nl_find_domain): Use strdup expansion.
        * locale/loadarchive.c (_nl_load_locale_from_archive): Use __strdup.
        * locale/setlocale.c (setlocale): Likewise.
        * posix/spawn_faction_addopen.c
        (posix_spawn_file_actions_addopen): Likewise.
        * stdlib/putenv.c (putenv): Use __strndup.
        * sunrpc/svc_simple.c (__registerrpc): Use __strdup.
        * sysdeps/posix/getaddrinfo.c (gaih_inet): Use __strdup/__strndup.
        * include/stdlib.h (__need_malloc_and_calloc): Remove uses.
        (__Need_M_And_C) Remove define/undef.
        * stdlib/stdlib.h (__need_malloc_and_calloc): Remove uses.
        (__malloc_and_calloc_defined): Remove define.
        * string/bits/string2.h (__strdup): Remove define.
        (strdup): Likewise.
        (__strndup): Likewise.
        (strndup): Likewise.
2017-03-13 18:45:42 +00:00
..
bits Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
programs Narrowing the visibility of libc-internal.h even further. 2017-03-01 20:33:46 -05:00
broken_cur_max.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C_name.c Update. 2001-04-06 17:49:18 +00:00
C-address.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C-collate.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C-ctype.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C-identification.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C-measurement.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C-messages.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C-monetary.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C-name.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C-numeric.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C-paper.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C-telephone.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C-time.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
C-translit.h Regenerate locale/C-translit.h. 2015-12-09 22:24:26 -05:00
C-translit.h.in Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
categories.def Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
coll-lookup.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
coll-lookup.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
duplocale.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
elem-hash.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
findlocale.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
freelocale.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
gen-translit.pl Make shebang interpreter directives consistent 2016-01-07 04:03:21 -05:00
global-locale.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
hashval.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
indigits.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
indigitswc.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
iso-639.def localedata: sgs_LT: new locale [BZ #12450] 2016-05-01 15:18:04 -04:00
iso-3166.def Fix typos in 3166.def. 2013-10-04 18:51:42 -04:00
iso-4217.def localedata: CLDRv29: update LC_MONETARY int_curr_symbol & currency_symbol 2016-04-15 13:42:29 -04:00
langinfo.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lc-address.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lc-collate.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lc-ctype.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lc-identification.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lc-measurement.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lc-messages.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lc-monetary.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lc-name.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lc-numeric.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lc-paper.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lc-telephone.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lc-time.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
loadarchive.c Remove the str(n)dup inlines from string/bits/string2.h. Although inlining 2017-03-13 18:45:42 +00:00
loadlocale.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
locale.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
localeconv.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
localeinfo.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
localename.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
locarchive.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
Makefile Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mb_cur_max.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
newlocale.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
nl_langinfo_l.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
nl_langinfo.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
outdigits.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
outdigitswc.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
setlocale.c Remove the str(n)dup inlines from string/bits/string2.h. Although inlining 2017-03-13 18:45:42 +00:00
strlen-hash.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
SYS_libc.c [BZ #284, BZ #721] 2005-02-17 01:19:55 +00:00
tst-C-locale.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tst-duplocale.c Add missing test files. 2009-11-17 16:23:57 -08:00
tst-locname.c Add missing test files. 2009-11-17 16:23:57 -08:00
uselocale.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
Versions * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change. 2003-03-03 09:45:25 +00:00
weight.h Narrowing the visibility of libc-internal.h even further. 2017-03-01 20:33:46 -05:00
weightwc.h Narrowing the visibility of libc-internal.h even further. 2017-03-01 20:33:46 -05:00
xlocale.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
xlocale.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00