mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
20e498bdb0
2009-02-13 Ulrich Drepper <drepper@redhat.com> [BZ #5381] * nscd/nscd.h: Remove definitions and declarations for mem_in_flight. Change mempool_alloc prototype. * nscd/mem.c (gc): Don't handle mem_in_flight. (mempool_alloc): Third parameter now only indicates whether this is the first call (to allocate data) or not. If it is, get db rdlock. Release it on error. Don't handle mem_in_flight. * nscd/aicache.c (addhstaiX): Mark he parameter as const. Adjust third parameter of mempool_alloc calls. Nothing to do here in case mempool_alloc fails. Avoid local variable shadowing parameter. No need to get db rdlock before calling cache_add. * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is no mem_in_flight array anymore. * nscd/connections.c: Remove definition and handling of mem_in_flight. * nscd/grpcache.c (cache_addgr): Adjust third parameter of mempool_alloc calls. Mark he parameter as const. Nothing to do here in case mempool_alloc fails. No need to get db rdlock before calling cache_add. * nscd/hstcache.c (cache_addhst): Likewise. * nscd/initgrcache.c (addinitgroupsX): Likewise. * nscd/servicescache.c (cache_addserv): Likewise. * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code. |
||
---|---|---|
.. | ||
aicache.c | ||
cache.c | ||
connections.c | ||
dbg_log.c | ||
dbg_log.h | ||
Depend | ||
gai.c | ||
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 | ||
Makefile | ||
mem.c | ||
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_proto.h | ||
nscd_setup_thread.c | ||
nscd_stat.c | ||
nscd-client.h | ||
nscd.c | ||
nscd.conf | ||
nscd.h | ||
nscd.init | ||
pwdcache.c | ||
res_hconf.c | ||
selinux.c | ||
selinux.h | ||
servicescache.c |