mirror of git://sourceware.org/git/glibc.git
The nscd daemon caches hosts data from NSS modules verbatim, without
filtering protocol families or sorting them (otherwise separate caches
would be needed for certain ai_flags combinations). The cache
implementation is complete separate from the getaddrinfo code. This
means that rebuilding getaddrinfo is not needed. The only function
actually used is __bump_nl_timestamp from check_pf.c, and this change
moves it into nscd/connections.c.
Tested on x86_64-linux-gnu with -fexceptions, built with
build-many-glibcs.py. I also backported this patch into a distribution
that still supports nscd and verified manually that caching still works.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| Depend | ||
| Makefile | ||
| aicache.c | ||
| cache.c | ||
| cachedumper.c | ||
| connections.c | ||
| dbg_log.c | ||
| dbg_log.h | ||
| 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 | ||
| hstcache.c | ||
| initgrcache.c | ||
| mem.c | ||
| netgroupcache.c | ||
| nscd-client.h | ||
| nscd.c | ||
| nscd.conf | ||
| nscd.h | ||
| nscd.init | ||
| nscd.service | ||
| nscd.tmpfiles | ||
| nscd_conf.c | ||
| nscd_getai.c | ||
| nscd_getgr_r.c | ||
| nscd_gethst_r.c | ||
| nscd_getpw_r.c | ||
| nscd_getserv_r.c | ||
| nscd_helper.c | ||
| nscd_initgroups.c | ||
| nscd_netgroup.c | ||
| nscd_proto.h | ||
| nscd_setup_thread.c | ||
| nscd_stat.c | ||
| pwdcache.c | ||
| res_hconf.c | ||
| selinux.c | ||
| selinux.h | ||
| servicescache.c | ||