glibc/inet
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
..
arpa
netinet
protocols
Makefile
Versions
aliases.h
bug-if1.c
check_native.c
check_pf.c
deadline.c
ether_aton.c
ether_aton_r.c
ether_hton.c
ether_line.c
ether_ntoa.c
ether_ntoa_r.c
ether_ntoh.c
getaliasent.c
getaliasent_r.c
getaliasname.c
getaliasname_r.c
gethstbyad.c
gethstbyad_r.c
gethstbynm.c
gethstbynm2.c
gethstbynm2_r.c
gethstbynm_r.c
gethstent.c
gethstent_r.c
getipv4sourcefilter.c
getnameinfo.c
getnetbyad.c
getnetbyad_r.c
getnetbynm.c
getnetbynm_r.c
getnetent.c
getnetent_r.c
getnetgrent.c
getnetgrent_r.c
getproto.c
getproto_r.c
getprtent.c
getprtent_r.c
getprtname.c
getprtname_r.c
getservent.c
getservent_r.c
getsourcefilter.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
getsrvbynm.c
getsrvbynm_r.c
getsrvbypt.c
getsrvbypt_r.c
herrno-loc.c
herrno.c
htonl.c
htons.c
htontest.c
if_index.c
ifaddrs.c
ifaddrs.h
ifreq.c
in6_addr.c
inet6_opt.c
inet6_option.c
inet6_rth.c
inet6_scopeid_pton.c
inet_lnaof.c
inet_mkadr.c
inet_net.c
inet_netof.c
inet_ntoa.c
net-internal.h
netgroup.h
rcmd.c
rexec.c
ruserpass.c
setipv4sourcefilter.c
setsourcefilter.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-hnto-types.c
test-ifaddrs.c
test-inet6_opt.c
test_ifindex.c
tst-checks-posix.c
tst-checks.c
tst-deadline.c
tst-ether_aton.c
tst-ether_line.c
tst-gethnm.c
tst-getni1.c
tst-getni2.c
tst-inet6_rth.c
tst-inet6_scopeid_pton.c
tst-network.c
tst-ntoa.c
tst-sockaddr.c