glibc/nss
Siddhesh Poyarekar 9cd4747089 Add new macro IN_MODULE to identify module in which source is built
The current scheme to identify which module a translation unit is
built in depends on defining multiple macros IS_IN_* and also defining
NOT_IN_libc if we're building a non-libc module.  In addition, there
is an IN_LIB macro that does effectively the same thing, but for
different modules (notably the systemtap probes).  This macro scheme
unifies both ideas to use just one macro IN_MODULE and assign it a
value depending on the module it is being built into.  If the module
is not defined, it defaults to MODULE_libc.

Patches that follow will replace uses of IS_IN_* variables with the
IS_IN() macro.  libc-symbols.h has been converted already to give an
example of how such a transition will look.

Verified that there are no relevant binary changes.  One source change
that will crop up repeatedly is that of nscd_stat, since it uses the
build timestamp as a constant in its logic.

	* Makeconfig (in-module): Get value of libof set for the
	translation unit.
	(CPPFLAGS): Use $(in-module).
	* Makerules: Don't suffix routine names for nonlib.
	* include/libc-modules.h: New file.
	* include/libc-symbols.h: Include libc-modules.h
	(IS_IN): New macro to replace IS_IN_* macros.
	* elf/Makefile: Set libof-* for each routine.
	* elf/rtld-Rules: Likewise.
	* extra-modules.mk: Likewise.
	* iconv/Makefile: Likewise.
	* iconvdata/Makefile: Likewise.
	* locale/Makefile: Likewise.
	* malloc/Makefile: Likewise.
	* nss/Makefile: Likewise.
	* sysdeps/gnu/Makefile: Likewise.
	* sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
	* sysdeps/unix/sysv/linux/Makefile: Likewise.
	* sysdeps/s390/s390-64/Makefile: Likewise.
	* nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
	CPPFLAGS for nscd instead of nonlib.
2014-11-19 12:13:54 +05:30
..
nss_db Remove stray includes of kernel-features.h. 2014-06-25 18:09:01 +00:00
nss_files Don't ignore too long lines in nss_files (BZ #17079) 2014-06-23 12:29:51 +02:00
alias-lookup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-erange.c Update. 2002-09-29 18:25:48 +00:00
databases.def Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
db-Makefile Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
Depend Update. 2000-01-02 04:20:21 +00:00
digits_dots.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
ethers-lookup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
function.def Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getent.c Update remaining copyright dates 2014-01-01 22:02:55 +10:00
getnssent_r.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getnssent.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getXXbyYY_r.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getXXbyYY.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getXXent_r.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getXXent.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
grp-lookup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hosts-lookup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
key-lookup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
makedb.c Update remaining copyright dates 2014-01-01 22:02:55 +10:00
Makefile Add new macro IN_MODULE to identify module in which source is built 2014-11-19 12:13:54 +05:30
netgrp-lookup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
network-lookup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nss_test1.c Add self-contained test for NSS. 2010-08-11 07:25:02 -07:00
nss.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nsswitch.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nsswitch.conf More configurability for secondary group lookup 2011-05-10 00:36:29 -04:00
nsswitch.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
proto-lookup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
pwd-lookup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
rpc-lookup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
service-lookup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sgrp-lookup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
spwd-lookup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
test-digits-dots.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
test-netdb.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-nss-static.c 2012-04-06 Paul Pluzhnikov <ppluzhnikov@google.com> 2012-04-06 13:49:35 -07:00
tst-nss-test1.c Add self-contained test for NSS. 2010-08-11 07:25:02 -07:00
Versions Get canonical name in getaddrinfo from hosts file for AF_INET (fixes 16077) 2013-11-28 17:18:12 +05:30
XXX-lookup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00