summary refs log tree commit diff
path: root/nscd
Commit message (Collapse)AuthorAgeFilesLines
* Update.Ulrich Drepper2004-09-133-16/+20
| | | | | | | | 2004-09-13 Thorsten Kukuk <kukuk@suse.de> * nscd/nscd_stat.c: Don't access dbs[cnt].head for disabled services. * nscd/nscd.init: Fix path to socket.
* UPdate.Ulrich Drepper2004-09-131-2/+4
| | | | | * nscd/nscd_helper.c (get_mapping): Correctly check cmsg length. Avoid file descriptor leak in case of size mismatch.
* Update.Ulrich Drepper2004-09-131-5/+6
| | | | * nscd/mem.c (gc): Add casts to avoid warnings.
* Update.Ulrich Drepper2004-09-131-28/+32
| | | | * nscd/nscd-client.h: Fix database structure layout for biarch.
* Update.Ulrich Drepper2004-09-122-1/+21
| | | | | | | | 2004-09-12 Ulrich Drepper <drepper@redhat.com> * nscd/pwdcache.c (cache_addpw): Sync also negative results to disk. * nscd/grpcache.c (cache_addgr): Likewise. * nscd/hstcache.c (cache_addhst): Likewise.
* (cache_addhst): Sync also negative results to disk.Ulrich Drepper2004-09-121-6/+15
|
* Update.Ulrich Drepper2004-09-111-1/+1
| | | | | * nscd/connections.c (nscd_run): Call setup_thread only for enabled databases.
* Update.Ulrich Drepper2004-09-105-6/+29
| | | | | | | | | | | 2004-09-10 Ulrich Drepper <drepper@redhat.com> * nscd/nscd.c (pagesize_m1): New variable. (main): Initialize it. * nscd/nscd.h: Declare pagesize_m1. * nscd/hstcache.c: Pass correctly aligned address to msync. * nscd/grpcache.c: Likewise. * nscd/pwdcache.c: Likewise.
* Update.Ulrich Drepper2004-09-102-9/+24
| | | | | | | | | 2004-09-10 Ulrich Drepper <drepper@redhat.com> * nscd/nscd_stat.c: Improve output by also printing .shared and .persistent. * nscd/connections.c: Allow cache sharing to be really disabled.
* (CFLAGS-nscd_setup_thread.c): Set to -fpie.Andreas Jaeger2004-09-091-0/+1
|
* Update.Ulrich Drepper2004-09-081-4/+8
| | | | * nscd/nscd-client.h: Add a few #includes.
* * sysdeps/generic/nscd_setup_thread.c: New file.Ulrich Drepper2004-09-082-4/+4
| | | | * sysdeps/unix/sysv/linux/nscd_setup_thread.c: New file.
* Update.Ulrich Drepper2004-09-085-6/+12
| | | | | | | | | | | | | | | Jakub Jelinek <jakub@redhat.com> * nscd/Makefile (nscd-modules): Add nscd_setup_thread. * nscd/connections.c (nscd_run): Call setup_thread for maintenance threads. * nscd/nscd-client.h (struct database_pers_head): Add nscd_certainly_running field. * nscd/nscd.h: Declare setup_thread. * nscd/nscd_helper.c (__nscd_get_map_ref): Avoid the time test if nscd_certainly_running is nonzero. 2004-09-08 Ulrich Drepper <drepper@redhat.com>
* Update.Ulrich Drepper2004-09-0812-424/+986
| | | | | | | | | | | | | | | | | | | | | | | | | | * nscd/connections.c: Implement r/o sharing of nscd's cache with client processes via shared memory. * nscd/nscd-client.h: Likewise. * nscd/nscd.h: Likewise. * nscd/nscd_conf.c: Likewise. * nscd/nscd_getgr_r.c: Likewise. * nscd/nscd_getpw_r.c: Likewise. * nscd/nscd_gethst_r.c: Likewise. * nscd/nscd.conf: Add new config parameters. * nscd/Makefile (aux): Add nscd_helper. * nscd/nscd_helper.c: New file. * nscd/mem.c (gc): Indicate beginning and end of the gc cycle. * nscd/hstcache.c: Simplify a lot. We cache only the request itself, no derived information. * connections.c (nscd_init): Fix bug in testing size of the persistent. * nis/Makefile (aux): Add nis_hash. * nis/nis_hash.c: New file. Split out from nis_util.c. * nis/nis_util.c: Move __nis_hash code in separate file. * csu/tst-atomic.c: Improve atomic_increment_val test which would not have found a ppc bug.
* Update.Ulrich Drepper2004-09-051-3/+13
| | | | | | | 2004-09-05 Ulrich Drepper <drepper@redhat.com> * nscd/cache.c (cache_add): Correctly log GETHOSTBYADDR and GETHOSTBYADDRv6 requests.
* Update.Ulrich Drepper2004-09-051-3/+3
| | | | | | | | 2004-09-04 Ulrich Drepper <drepper@redhat.com> * nscd/pwdcache.c (cache_addpw): Use correct key length in cache_add calls. * nscd/grpcache.c (cache_addgr): Likewise.
* (cache_addgr): Use correct key length in cache_add calls.Ulrich Drepper2004-09-051-3/+3
|
* Update.Ulrich Drepper2004-09-031-11/+13
| | | | | | | 2004-09-03 Ulrich Drepper <drepper@redhat.com> * nscd/nscd.c (parse_opt): Use writev instead of two write for invalidate command.
* (nscd_run): Check early for invalid request types.Ulrich Drepper2004-09-031-7/+9
|
* Update.Ulrich Drepper2004-08-2613-813/+2366
| | | | | | | | | | | | | | | | | | | | | 2004-08-26 Ulrich Drepper <drepper@redhat.com> * nscd/cache.c: Major rewrite. The data is now optionally kept in a mmaped memory region which is automatically mirrored on disk. This implements persistent data storage. The Memory handled needed to be completely revamped, it now uses a garbage collection mechanism instead of malloc. * nscd/connections.c: Likewise. * nscd/nscd.c: Likewise. * nscd/nscd.h: Likewise. * nscd/nscd_conf.c: Likewise. * nscd/nscd_stat.c: Likewise. * nscd/grpcache.c: Likewise. * nscd/hstcache.c:: Likewise. * nscd/pwdcache.c:: Likewise. * nscd/Makefile: Add rules to build mem.c. * nscd/mem.c: New file. * nscd/nscd.conf: Describe new configuration options.
* Update.Ulrich Drepper2004-08-261-1/+0
| | | | | | | | | | | | | | | | | 2004-08-26 Kaz Kojima <kkojima@rr.iij4u.or.jp> * sysdeps/unix/sysv/linux/mips/pread.c: Include sgidefs.h only if NO_SGIDEFS_H isn't defined. * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise. * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise. * sysdeps/unix/sysv/linux/sh/pread.c: Define NO_SGIDEFS_H and _MIPS_SIM. * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise. * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise. * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise. * nscd/connections.c (nscd_run): atomic_increment was not missing.
* Update.Ulrich Drepper2004-08-252-25/+41
| | | | | | | | | | | 2004-08-25 Ulrich Drepper <drepper@redhat.com> * nscd/connections.c: Make socket nonblocking so that threads don't get stuck on accept. Fix locking. * nscd/grpcache.c (cache_addgr): Use cope of original key in hash entry with alternative key. * nscd/pwdcache.c (cache_addpw): Likewise.
* (cache_addpw): Use cope of original key in hash entry with alternative key.Ulrich Drepper2004-08-251-4/+7
|
* (do_release_all): Add __libc_freeres_fn_section.Ulrich Drepper2004-08-041-1/+1
|
* (handle_request): Missing _() in last patch.Ulrich Drepper2004-08-041-1/+1
|
* Update.Ulrich Drepper2004-08-041-1/+3
| | | | | | | 2004-08-03 Ulrich Drepper <drepper@redhat.com> * nscd/connections.c (handle_request): Print more descriptive message for invalid request types.
* Update.Ulrich Drepper2004-07-271-3/+8
| | | | | | | | 2004-07-27 Ulrich Drepper <drepper@redhat.com> * nscd/grpcache.c (cache_addgr): If necessary, add entry also under the name the user provided. * nscd/pwdcache.c (cache_addpw): Likewise.
* (cache_addpw): If necessary, add entry also under the name the user provided.Ulrich Drepper2004-07-271-3/+8
|
* Update.Ulrich Drepper2004-07-271-10/+19
| | | | | * nscd/hstcache.c (cache_addhst): Fix two scenarios which lead to memory leaks.
* Update.Ulrich Drepper2004-07-231-13/+17
| | | | | | | 2004-07-22 Ulrich Drepper <drepper@redhat.com> * nscd/nscd_getgr_r.c (nscd_getgr_r): Avoid read call with NULL pointer and zero length.
* (prune_cache): Print correct list when debugging.Ulrich Drepper2004-07-221-2/+2
|
* Update.Ulrich Drepper2004-07-183-66/+45
| | | | | | | | | 2004-07-18 Ulrich Drepper <drepper@redhat.com> * nscd/pwdcache.c (cache_addpw): Optimize case of unsuccessful lookup a bit. * nscd/grpcache.c (cache_addgr): Likewise. * nscd/hstcache.c (cache_addhst): Likewise.
* Update.Ulrich Drepper2004-07-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-07-05 Jakub Jelinek <jakub@redhat.com> * sysdeps/powerpc/novmx-longjmp.c (__libc_longjmp, __libc_siglongjmp): Remove symbol_version. * sysdeps/powerpc/longjmp.c (__libc_longjmp, __libc_siglongjmp): Export @@GLIBC_PRIVATE, not @@GLIBC_2.3.4. * sysdeps/powerpc/sigjmp.c (__sigjmp_save): Use strong_alias unconditionally. * sysdeps/powerpc/novmx-sigjmp.c (__sigjmp_save): Remove. * sysdeps/powerpc/powerpc32/__longjmp.S (__longjmp): Use strong_alias instead of default_symbol_version, remove symbol_version. * sysdeps/powerpc/powerpc64/__longjmp.S (__longjmp): Likewise. * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__novmx__setjmp): Change into strong_alias to __novmxsetjmp. (__vmx__setjmp): Similarly with __vmxsetjmp. (__setjmp): Make it strong_alias to __vmx__setjmp, remove default_symbol_version and symbol_version. * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__novmx__setjmp): Change into strong_alias to __novmxsetjmp. (__vmx__setjmp): Similarly with __vmxsetjmp. (__setjmp): Make it strong_alias to __vmx__setjmp, remove default_symbol_version and symbol_version. * nscd/nscd_getgr_r.c: Include stdio-common/_itoa.h.
* Update.Ulrich Drepper2004-06-281-2/+8
| | | | | * nscd/connections.c (invalidate_cache): If the host cache has to be invalidated, re-read resolv.conf.
* Update.Ulrich Drepper2004-06-064-90/+60
| | | | | | | | | | | | | | 2004-06-05 Ulrich Drepper <drepper@redhat.com> * stdio-common/_itoa.h: Don't expand _itoa inline for libc. * stdio-common/_itoa.c: Add _itoa implementation. * nscd/nscd_gethst_r.c (__nscd_open_socket): Change implementation to also send request. Add parameter to allow this. Change callers. * nscd/nscd_getgr_r.c: Change __nscd_open_socket caller. * nscd/nscd_getpw_r.c: Likewise. * nscd/nscd-client.h: Change __nscd_open_socket prototype.
* Update.Ulrich Drepper2004-06-041-1/+1
| | | | | | | | 2004-06-04 Ulrich Drepper <drepper@redhat.com> * nscd/nscd_gethst_r.c (nscd_gethst_r): Use __nss_not_use_nscd_hosts in all places, not __nss_not_use_nscd_group. Reported by Philippe Gregoire.
* Update.Ulrich Drepper2004-03-012-0/+6
| | | | | | * nscd/nscd_getgr_r.c (nscd_getgr_r): Add missing initialization of return value. * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
* Update.Ulrich Drepper2004-02-274-47/+73
| | | | | | | | | | | | | | | | | | | | | | | | 2004-02-26 Ulrich Drepper <drepper@redhat.com> * nss/getXXbyYY_r.c: Pass result also to the nscd_* function. Don't set *result here. * nscd/nscd_proto.h: Add new argument for pointer to result pointer to all nscd_* functions. * nscd/nscd_getgr_r.c (nscd_getgr_r): Add new parameter. Store result pointer in the address provided by the new parameter if successful. Otherwise store NULL. Return zero if no entry found. (__nscd_getgrnam_r, __nscd_getgrgid_r): Add new parameter and pass it on. * nscd/nscd_gethst_r.c (nscd_gethst_r): Add new parameter. Store result pointer in the address provided by the new parameter if successful. Otherwise store NULL. Return zero if no entry found. (__nscd_gethostbyname_r, __nscd_gethostbyname2_r, __nscd_gethostbyaddr_r): Add new parameter and pass it on. * nscd/nscd_getpw_r.c (nscd_getpw_r): Add new parameter. Store result pointer in the address provided by the new parameter if successful. Otherwise store NULL. Return zero if no entry found. (__nscd_getpwnam_r, __nscd_getpwuid_r): Add new parameter and pass it on.
* Update.Ulrich Drepper2004-02-211-5/+11
| | | | | | | | 2004-02-20 Thorsten Kukuk <kukuk@suse.de> * nscd/nscd.c (termination_handler): Use _exit instead of exit * nscd/nscd.c (main): Report fork errors.
* Update.Ulrich Drepper2004-02-181-0/+1
| | | | | | 2004-02-18 Ulrich Drepper <drepper@redhat.com> * nscd/nscd_conf.c: Include <stdio_ext.h>.
* [BZ #18]Ulrich Drepper2004-02-174-12/+28
| | | | | | | | | | | | | | | | | | Update. * nscd/nscd_conf.c (nscd_parse_file): Little optimization. 2004-02-14 Thorsten Kukuk <kukuk@suse.de> * nscd/dbg_log.c (set_logfile): Only save name of logfile, don't open it. (init_logfile): New function, open logfile if requested. * nscd/dbg_log.h: Adjust protoype for set_logfile, add init_logfile. * nscd/nscd.c (main): Call init_logfile after forking in background. * nscd/nscd_conf.c (nscd_parse_file): Adjust for new set_logfile. 2004-02-16 Ulrich Drepper <drepper@redhat.com> ld.so.preload is not present [BZ #18].
* Update copyright year.Ulrich Drepper2004-01-012-4/+4
|
* Update.Ulrich Drepper2003-12-312-36/+62
| | | | | | | | | | | | | | * inet/rcmd.c: Provide better error message in case of unknown host. Remove USE_IN_LIBIO. * nscd/nscd.init: Updated version, more conforming with current init file standards. * nscd/nscd-client.h (_PATH_NSCDPID): Move the file into /var/run/nscd directory. (_PATH_NSCDSOCKET): Likewise. * test-skeleton.c (timeout_handler): Fix error message.
* Update.Ulrich Drepper2003-09-241-2/+3
| | | | | | 2003-09-24 Jakub Jelinek <jakub@redhat.com> * nscd/Makefile (others): Add nscd before including ../Rules.
* Update.Ulrich Drepper2003-09-241-1/+32
| | | | | | | | | | | | | | | * nscd/Makefile: Add rules to build nscd as a PIE. 2003-09-23 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/sys/alpha/sysmacros.h: Removed. * sysdeps/unix/sysv/linux/sys/sparc/sysmacros.h: Removed. * sysdeps/unix/sysv/linux/ustat.c (ustat): Adjust for 32-bit kernel dev_t. * sysdeps/unix/sysv/linux/alpha/ustat.c: Removed. * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise. * sysdeps/unix/sysv/linux/alpha/xmknod.c: Removed. Code by Alexander Viro <aviro@redhat.com>.
* Update.Ulrich Drepper2003-09-141-0/+4
| | | | | | | | | | | | | | | | | | | 2003-09-12 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New. (__SSIZE_T_TYPE): Define to __SWORD_TYPE for gcc 2.95.x and __SLONGWORD_TYPE otherwise. 2003-09-14 Ulrich Drepper <drepper@redhat.com> * io/Makefile (CFLAGS-ftw.c): Add -fexceptions. (CFLAGS-ftw64.c): Likewise. 2003-09-13 Ulrich Drepper <drepper@redhat.com> * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions. (CFLAGS-nscd_getgr_r.c): Likewise. (CFLAGS-nscd_gethst_r.c): Likewise.
* Update.Ulrich Drepper2003-05-047-49/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-05-03 Ulrich Drepper <drepper@redhat.com> * nscd/nscd.c (main): Parse config file right after parsing parameters. Then, if get_stats is true, call receive_print_stats. Drop parameter from nscd_init call. (get_stats): New variable. (parse_opt): Set get_stats, don't call receive_print_stats here. * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init prototype. * nscd/connections.c (stat_user, stat_uid): New variables. (dbs): Make global. (nscd_init): Don't read configuration file here. Drop parameter. (handle_request): Cleanup handling of non-database lookup requests. * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry. Get UID of the specified user. Use xstrdup instead of strdup. * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero, check stat_user. * nscd/Makefile (nscd-modules): Add xstrdup. * nscd/nscd.conf: Document stat-user entry. 2003-05-03 H.J. Lu <hongjiu.lu@intel.com> * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define if not defined.
* Update.Ulrich Drepper2003-04-283-74/+54
| | | | | | | | 2003-04-28 Ulrich Drepper <drepper@redhat.com> * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect. * nscd/nscd_getpw_r.c: Likewise. * nscd/nscd_gethst_r.c: Likewise.
* Update.Ulrich Drepper2003-04-283-0/+3
| | | | | | | | 2003-04-27 Ulrich Drepper <drepper@redhat.com> * nscd/pwdcache.c: Initialize .version element in result. * nscd/grpcache.c: Likewise. * nscd/pwdcache.c: Likewise.
* Update.Ulrich Drepper2003-04-282-0/+8
| | | | | | | | | * nscd/connections.c (client_queued): New variable. (nscd_run): Revamp the loop. Don't call poll except for cleanup threads. Keep track of the number of delays caused because of busy worker threads. * nscd/nscd.h: Declare client_queued. * nscd/nscd_stat.c: Transmit and print client_queued information.