glibc/nscd
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
..
aicache.c Consolidate code to initialize nscd dataset header 2014-04-30 11:57:09 +05:30
cache.c
connections.c Fix Wundef warning for SEPARATE_KEY 2014-06-26 22:30:35 +05:30
dbg_log.c
dbg_log.h
Depend Don't mention linuxthreads in Depend files. 2014-05-21 16:53:11 +00:00
gai.c Fix qsort_r namespace (bug 17571). 2014-11-12 22:33:41 +00:00
getgrgid_r.c
getgrnam_r.c
gethstbyad_r.c
gethstbynm3_r.c
getpwnam_r.c
getpwuid_r.c
getsrvbynm_r.c
getsrvbypt_r.c
grpcache.c Consolidate code to initialize nscd dataset header 2014-04-30 11:57:09 +05:30
hstcache.c Consolidate code to initialize nscd dataset header 2014-04-30 11:57:09 +05:30
initgrcache.c Consolidate code to initialize nscd dataset header 2014-04-30 11:57:09 +05:30
Makefile Add new macro IN_MODULE to identify module in which source is built 2014-11-19 12:13:54 +05:30
mem.c
netgroupcache.c Rework some nscd code not to use variable-length struct types. 2014-10-22 14:28:51 -07:00
nscd_conf.c BZ#17460: Fix buffer overrun in nscd --help. 2014-10-08 15:36:12 -07:00
nscd_getai.c
nscd_getgr_r.c
nscd_gethst_r.c
nscd_getpw_r.c
nscd_getserv_r.c
nscd_helper.c Rework some nscd code not to use variable-length struct types. 2014-10-22 14:28:51 -07:00
nscd_initgroups.c
nscd_netgroup.c
nscd_proto.h
nscd_setup_thread.c
nscd_stat.c
nscd-client.h Fix implicit declaration 2014-05-01 22:02:27 +02:00
nscd.c Rework some nscd code not to use variable-length struct types. 2014-10-22 14:28:51 -07:00
nscd.conf
nscd.h
nscd.init
nscd.service
nscd.tmpfiles
pwdcache.c Consolidate code to initialize nscd dataset header 2014-04-30 11:57:09 +05:30
res_hconf.c
selinux.c Fix typo in nscd/selinux.c 2014-05-07 14:09:24 +02:00
selinux.h
servicescache.c Consolidate code to initialize nscd dataset header 2014-04-30 11:57:09 +05:30