glibc/inet
Joseph Myers ec999b8e5e Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
It was noted in
<https://sourceware.org/ml/libc-alpha/2012-09/msg00305.html> that the
bits/*.h naming scheme should only be used for installed headers.
This patch renames bits/libc-lock.h to plain libc-lock.h and
bits/libc-lockP.h to plain libc-lockP.h to follow that convention.

Note that I don't know where libc-lockP.h comes from for Hurd (the
Hurd libc-lock.h includes libc-lockP.h, but the only libc-lockP.h in
the glibc source tree is for NPTL) - some unmerged patch? - but I
updated the #include in the Hurd libc-lock.h anyway.

Tested for x86_64 (testsuite, and that installed stripped shared
libraries are unchanged by the patch).

	[BZ #14912]
	* bits/libc-lock.h: Move to ...
	* sysdeps/generic/libc-lock.h: ...here.
	(_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
	* sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
	* sysdeps/mach/hurd/libc-lock.h: ...here.
	(_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
	[_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
	* sysdeps/mach/bits/libc-lock.h: Move to ...
	* sysdeps/mach/libc-lock.h: ...here.
	(_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
	* sysdeps/nptl/bits/libc-lock.h: Move to ...
	* sysdeps/nptl/libc-lock.h: ...here.
	(_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
	* sysdeps/nptl/bits/libc-lockP.h: Move to ...
	* sysdeps/nptl/libc-lockP.h: ...here.
	(_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
	* crypt/crypt_util.c: Include <libc-lock.h> instead of
	<bits/libc-lock.h>.
	* dirent/scandir-tail.c: Likewise.
	* dlfcn/dlerror.c: Likewise.
	* elf/dl-close.c: Likewise.
	* elf/dl-iteratephdr.c: Likewise.
	* elf/dl-lookup.c: Likewise.
	* elf/dl-open.c: Likewise.
	* elf/dl-support.c: Likewise.
	* elf/dl-writev.h: Likewise.
	* elf/rtld.c: Likewise.
	* grp/fgetgrent.c: Likewise.
	* gshadow/fgetsgent.c: Likewise.
	* gshadow/sgetsgent.c: Likewise.
	* iconv/gconv_conf.c: Likewise.
	* iconv/gconv_db.c: Likewise.
	* iconv/gconv_dl.c: Likewise.
	* iconv/gconv_int.h: Likewise.
	* iconv/gconv_trans.c: Likewise.
	* include/link.h: Likewise.
	* inet/getnameinfo.c: Likewise.
	* inet/getnetgrent.c: Likewise.
	* inet/getnetgrent_r.c: Likewise.
	* intl/bindtextdom.c: Likewise.
	* intl/dcigettext.c: Likewise.
	* intl/finddomain.c: Likewise.
	* intl/gettextP.h: Likewise.
	* intl/loadmsgcat.c: Likewise.
	* intl/localealias.c: Likewise.
	* intl/textdomain.c: Likewise.
	* libidn/idn-stub.c: Likewise.
	* libio/libioP.h: Likewise.
	* locale/duplocale.c: Likewise.
	* locale/freelocale.c: Likewise.
	* locale/newlocale.c: Likewise.
	* locale/setlocale.c: Likewise.
	* login/getutent_r.c: Likewise.
	* login/getutid_r.c: Likewise.
	* login/getutline_r.c: Likewise.
	* login/utmp-private.h: Likewise.
	* login/utmpname.c: Likewise.
	* malloc/mtrace.c: Likewise.
	* misc/efgcvt.c: Likewise.
	* misc/error.c: Likewise.
	* misc/fstab.c: Likewise.
	* misc/getpass.c: Likewise.
	* misc/mntent.c: Likewise.
	* misc/syslog.c: Likewise.
	* nis/nis_call.c: Likewise.
	* nis/nis_callback.c: Likewise.
	* nis/nss-default.c: Likewise.
	* nis/nss_compat/compat-grp.c: Likewise.
	* nis/nss_compat/compat-initgroups.c: Likewise.
	* nis/nss_compat/compat-pwd.c: Likewise.
	* nis/nss_compat/compat-spwd.c: Likewise.
	* nis/nss_nis/nis-alias.c: Likewise.
	* nis/nss_nis/nis-ethers.c: Likewise.
	* nis/nss_nis/nis-grp.c: Likewise.
	* nis/nss_nis/nis-hosts.c: Likewise.
	* nis/nss_nis/nis-network.c: Likewise.
	* nis/nss_nis/nis-proto.c: Likewise.
	* nis/nss_nis/nis-pwd.c: Likewise.
	* nis/nss_nis/nis-rpc.c: Likewise.
	* nis/nss_nis/nis-service.c: Likewise.
	* nis/nss_nis/nis-spwd.c: Likewise.
	* nis/nss_nisplus/nisplus-alias.c: Likewise.
	* nis/nss_nisplus/nisplus-ethers.c: Likewise.
	* nis/nss_nisplus/nisplus-grp.c: Likewise.
	* nis/nss_nisplus/nisplus-hosts.c: Likewise.
	* nis/nss_nisplus/nisplus-initgroups.c: Likewise.
	* nis/nss_nisplus/nisplus-network.c: Likewise.
	* nis/nss_nisplus/nisplus-proto.c: Likewise.
	* nis/nss_nisplus/nisplus-pwd.c: Likewise.
	* nis/nss_nisplus/nisplus-rpc.c: Likewise.
	* nis/nss_nisplus/nisplus-service.c: Likewise.
	* nis/nss_nisplus/nisplus-spwd.c: Likewise.
	* nis/ypclnt.c: Likewise.
	* nptl/libc_pthread_init.c: Likewise.
	* nss/getXXbyYY.c: Likewise.
	* nss/getXXent.c: Likewise.
	* nss/getXXent_r.c: Likewise.
	* nss/nss_db/db-XXX.c: Likewise.
	* nss/nss_db/db-netgrp.c: Likewise.
	* nss/nss_db/nss_db.h: Likewise.
	* nss/nss_files/files-XXX.c: Likewise.
	* nss/nss_files/files-alias.c: Likewise.
	* nss/nsswitch.c: Likewise.
	* posix/regex_internal.h: Likewise.
	* posix/wordexp.c: Likewise.
	* pwd/fgetpwent.c: Likewise.
	* resolv/res_hconf.c: Likewise.
	* resolv/res_libc.c: Likewise.
	* shadow/fgetspent.c: Likewise.
	* shadow/lckpwdf.c: Likewise.
	* shadow/sgetspent.c: Likewise.
	* socket/opensock.c: Likewise.
	* stdio-common/reg-modifier.c: Likewise.
	* stdio-common/reg-printf.c: Likewise.
	* stdio-common/reg-type.c: Likewise.
	* stdio-common/vfprintf.c: Likewise.
	* stdio-common/vfscanf.c: Likewise.
	* stdlib/abort.c: Likewise.
	* stdlib/cxa_atexit.c: Likewise.
	* stdlib/fmtmsg.c: Likewise.
	* stdlib/random.c: Likewise.
	* stdlib/setenv.c: Likewise.
	* string/strsignal.c: Likewise.
	* sunrpc/auth_none.c: Likewise.
	* sunrpc/bindrsvprt.c: Likewise.
	* sunrpc/create_xid.c: Likewise.
	* sunrpc/key_call.c: Likewise.
	* sunrpc/rpc_thread.c: Likewise.
	* sysdeps/arm/backtrace.c: Likewise.
	* sysdeps/generic/ldsodefs.h: Likewise.
	* sysdeps/generic/stdio-lock.h: Likewise.
	* sysdeps/generic/unwind-dw2-fde.c: Likewise.
	* sysdeps/i386/backtrace.c: Likewise.
	* sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
	* sysdeps/m68k/backtrace.c: Likewise.
	* sysdeps/mach/hurd/cthreads.c: Likewise.
	* sysdeps/mach/hurd/dirstream.h: Likewise.
	* sysdeps/mach/hurd/malloc-machine.h: Likewise.
	* sysdeps/nptl/malloc-machine.h: Likewise.
	* sysdeps/nptl/stdio-lock.h: Likewise.
	* sysdeps/posix/dirstream.h: Likewise.
	* sysdeps/posix/getaddrinfo.c: Likewise.
	* sysdeps/posix/system.c: Likewise.
	* sysdeps/pthread/aio_suspend.c: Likewise.
	* sysdeps/s390/s390-32/backtrace.c: Likewise.
	* sysdeps/s390/s390-64/backtrace.c: Likewise.
	* sysdeps/unix/sysv/linux/check_pf.c: Likewise.
	* sysdeps/unix/sysv/linux/if_index.c: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
	* sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
	* sysdeps/unix/sysv/linux/system.c: Likewise.
	* sysdeps/x86_64/backtrace.c: Likewise.
	* time/alt_digit.c: Likewise.
	* time/era.c: Likewise.
	* time/tzset.c: Likewise.
	* wcsmbs/wcsmbsload.c: Likewise.
	* nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
	instead of <bits/libc-lock.h> in comment.
2015-09-08 21:11:03 +00:00
..
arpa Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
netinet Add netinet/in.h values from Linux 4.2. 2015-09-01 13:47:25 +00:00
protocols
aliases.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-if1.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
check_native.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
check_pf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ether_aton_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ether_aton.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ether_hton.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ether_line.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ether_ntoa_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ether_ntoa.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ether_ntoh.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getaliasent_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getaliasent.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getaliasname_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getaliasname.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
gethstbyad_r.c Fix gethostbyaddr in6addr_any, in6addr_loopback namespace (bug 18532). 2015-06-17 20:08:22 +00:00
gethstbyad.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
gethstbynm2_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
gethstbynm2.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
gethstbynm_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
gethstbynm.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
gethstent_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
gethstent.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getipv4sourcefilter.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getnameinfo.c Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912). 2015-09-08 21:11:03 +00:00
getnetbyad_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getnetbyad.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getnetbynm_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getnetbynm.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getnetent_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getnetent.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getnetgrent_r.c Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912). 2015-09-08 21:11:03 +00:00
getnetgrent.c Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912). 2015-09-08 21:11:03 +00:00
getproto_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getproto.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getprtent_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getprtent.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getprtname_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getprtname.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getservent_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getservent.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getsourcefilter.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getsrvbynm_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getsrvbynm.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getsrvbypt_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getsrvbypt.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
herrno-loc.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
herrno.c Fix h_errno namespace (bug 18520). 2015-06-12 10:10:18 +00:00
htonl.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
htons.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
htontest.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
if_index.c Add missing libc_hidden_weak to stub if_nameindex, if_freenameindex. 2015-01-23 11:29:02 -08:00
ifaddrs.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ifaddrs.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ifreq.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
in6_addr.c Fix gethostbyaddr in6addr_any, in6addr_loopback namespace (bug 18532). 2015-06-17 20:08:22 +00:00
inet6_opt.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
inet6_option.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
inet6_rth.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
inet_lnaof.c Avoid use of "register" as optimization hint. 2013-06-07 22:24:35 +00:00
inet_mkadr.c Fix resolver inet_* namespace (bug 17722). 2014-12-17 18:09:11 +00:00
inet_net.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
inet_netof.c Avoid use of "register" as optimization hint. 2013-06-07 22:24:35 +00:00
inet_ntoa.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Makefile Exclude rpcent functions and NSS backends for rpc, key when excluding sunrpc. 2015-02-06 10:43:19 -08:00
netgroup.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
rcmd.c Fix ruserok scalability with large ~/.rhosts file. 2015-07-08 02:42:11 -04:00
rexec.c
ruserpass.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
setipv4sourcefilter.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
setsourcefilter.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
test_ifindex.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
test-ifaddrs.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
test-inet6_opt.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-checks.c Fix more warnings 2011-12-03 21:49:35 -05:00
tst-ether_aton.c Modify several tests to use test-skeleton.c 2015-08-06 02:59:04 -04:00
tst-ether_line.c
tst-gethnm.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-getni1.c Remove trailing whitespace. 2013-06-05 20:44:03 +00:00
tst-getni2.c Remove trailing whitespace. 2013-06-05 20:44:03 +00:00
tst-inet6_rth.c Fix a strict-alias warning in tst-inet6_rth. 2012-11-29 13:35:14 -08:00
tst-network.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-ntoa.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
Versions Exclude rpcent functions and NSS backends for rpc, key when excluding sunrpc. 2015-02-06 10:43:19 -08:00