glibc/nscd
Ulrich Drepper ffb1b88282 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
when the lookup call failed.

	* nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
	Add prune_cond and wakeup_time.
	(CACHE_PRUNE_INTERNAL): Define.
	Update declarations of prune_cache and setup_thread.
	* nscd/connections.c (dbs): Update initializers.
	(CACHE_PRUNE_INTERNAL): Moved to nscd.h.
	(nscd_init): Default number of threads is now 4.
	(invalidate_cache): Take lock before calling prune_cache.
	(handle_request): If SELinux forbids the request, say so.
	(readylist_cond): Use static initializer.
	(nscd_run_prune): New function.  Used only by pruning threads.
	(nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
	here.
	(fd_ready): Update nscd_run reference.
	(start_threads): No need to initialize readylist_cond.
	Start pruning threads separately.
	* nscd/nscd_setup_thread.c: Change return value type to int and always
	return 0.
	* sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
	to int and return nonzero value if we can use the TID address hack.
	* nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
	the database is later than the new entry's timeout, update the
	wakeup time and wake the cleanup thread.
	(prune_cache): Return seconds the next entry in the database is still
	valid.  Remove locking for pruning here.
	* nscd/nscd.conf: Document default number of threads.
2007-11-06 00:45:40 +00:00
..
aicache.c * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only 2007-11-06 00:45:40 +00:00
cache.c * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only 2007-11-06 00:45:40 +00:00
connections.c * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only 2007-11-06 00:45:40 +00:00
dbg_log.c * elf/ldconfig.c: Allow GPLv2 or any later version. 2007-07-16 00:56:07 +00:00
dbg_log.h [BZ #18] 2004-02-17 05:16:49 +00:00
Depend
gai.c * nscd/servicescache.c: Include kernel-features.h. 2007-08-13 18:33:31 +00:00
getgrgid_r.c * elf/ldconfig.c: Allow GPLv2 or any later version. 2007-07-16 00:56:07 +00:00
getgrnam_r.c * elf/ldconfig.c: Allow GPLv2 or any later version. 2007-07-16 00:56:07 +00:00
gethstbyad_r.c * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with 2007-10-30 00:48:09 +00:00
gethstbynm3_r.c * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with 2007-10-30 00:48:09 +00:00
getpwnam_r.c * elf/ldconfig.c: Allow GPLv2 or any later version. 2007-07-16 00:56:07 +00:00
getpwuid_r.c * elf/ldconfig.c: Allow GPLv2 or any later version. 2007-07-16 00:56:07 +00:00
getsrvbynm_r.c * elf/ldconfig.c: Allow GPLv2 or any later version. 2007-07-16 00:56:07 +00:00
getsrvbypt_r.c * elf/ldconfig.c: Allow GPLv2 or any later version. 2007-07-16 00:56:07 +00:00
grpcache.c * elf/ldconfig.c: Allow GPLv2 or any later version. 2007-07-16 00:56:07 +00:00
hstcache.c * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with 2007-10-30 00:48:09 +00:00
initgrcache.c * elf/ldconfig.c: Allow GPLv2 or any later version. 2007-07-16 00:56:07 +00:00
Makefile * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with 2007-10-30 00:48:09 +00:00
mem.c * elf/ldconfig.c: Allow GPLv2 or any later version. 2007-07-16 00:56:07 +00:00
nscd_conf.c * elf/ldconfig.c: Allow GPLv2 or any later version. 2007-07-16 00:56:07 +00:00
nscd_getai.c [BZ #3195] 2007-10-13 23:04:40 +00:00
nscd_getgr_r.c * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful 2007-10-15 03:19:44 +00:00
nscd_gethst_r.c [BZ #3195] 2007-10-13 23:04:40 +00:00
nscd_getpw_r.c [BZ #3195] 2007-10-13 23:04:40 +00:00
nscd_getserv_r.c [BZ #3195] 2007-10-13 23:04:40 +00:00
nscd_helper.c [BZ #3195] 2007-10-13 23:04:40 +00:00
nscd_initgroups.c * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier 2007-01-31 09:14:21 +00:00
nscd_proto.h * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct 2007-01-14 05:26:04 +00:00
nscd_setup_thread.c * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only 2007-11-06 00:45:40 +00:00
nscd_stat.c 2005-11-18 Paul Brook <paul@codesourcery.com> 2005-11-18 22:42:21 +00:00
nscd-client.h Define MAXKEYLEN. 2007-01-31 23:16:14 +00:00
nscd.c * elf/ldconfig.c: Allow GPLv2 or any later version. 2007-07-16 00:56:07 +00:00
nscd.conf * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only 2007-11-06 00:45:40 +00:00
nscd.h * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only 2007-11-06 00:45:40 +00:00
nscd.init . 2007-07-31 13:33:18 +00:00
pwdcache.c * elf/ldconfig.c: Allow GPLv2 or any later version. 2007-07-16 00:56:07 +00:00
res_hconf.c [BZ #4814] 2007-08-22 03:14:29 +00:00
selinux.c * nscd/selinux.c (preserve_capabilities): Initialize new_caps 2007-07-28 20:44:03 +00:00
selinux.h * scripts/check-local-headers.sh: Filter out sys/capability.h. 2007-03-26 20:41:09 +00:00
servicescache.c * nscd/servicescache.c: Include kernel-features.h. 2007-08-13 18:33:31 +00:00