about summary refs log tree commit diff
path: root/nscd
Commit message (Collapse)AuthorAgeFilesLines
* (nscd_getpw_r): Remove incorrectly C&Ped free call in code handling ↵Ulrich Drepper2005-09-221-2/+0
| | | | detection of GC runs.
* * nscd/dbg_log.c (init_logfile): Use fopen64 rather than fopen.Roland McGrath2005-09-201-1/+1
|
* * nscd/nscd.c (main): Use error while process isn't running in the cvs/fedora-glibc-20050829T1854 cvs/fedora-glibc-20050824T0705Ulrich Drepper2005-08-242-91/+71
| | | | | | | | background, not dbg_log. * nscd/nscd_conf.c (nscd_parse_file): Likewise. Mark messages with _(). Unify testing for database name. * sysdeps/unix/sysv/linux/Versions: Export inotify_* syscalls.
* * nscd/connection.c (DEFAULT_DATASIZE_PER_BUCKET): Move to nscd.h.Ulrich Drepper2005-08-2312-26/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (dbs): Initialize max_db_size fields. (nscd_init): When mapping the database, use max_db_size as the mapping size even if it is bigger than the file size. * nscd/mem.c (mempool_alloc): When resizing the file make sure the limit in max_db_size is not exceeded. Don't use mremap, just posix_fallocate is enough (according to Linus). Use posix_fallocate correctly. * nscd/nscd.conf: Add max-db-size parameters. * nscd/nscd.h (struct database_dyn): Add max_db_size field. Define DEFAULT_MAX_DB_SIZE and DEFAULT_DATASIZE_PER_BUCKET. Temporarily define TEMP_FAILURE_RETRY_VAL here. * nscd/nscd_conf.c (nscd_parse_file): Parse max-db-size parameter and add sanity checks for it. * nscd/aicache.c (addhstaiX): Use send with MSG_NOSIGNAL not write to send reply. * nscd/connection.c (writeall): Likewise. (handle_request): Likewise. * nscd/grpcache.c (cache_addgr): Likewise. * nscd/hstcache.c (cache_addhst): Likewise. * nscd/initgrcache.c (addinitgroupsX): Likewise. * nscd/nscd.c (parse_opt): Likewise. * nscd/nscd_stat.c (send_stats): Likewise. (receive_print_stats): Likewise. * nscd/pwdcache.c (cache_addpw): Likewise.
* * nscd/cache.c (prune_cache): Add more debug output. Only forUlrich Drepper2005-08-161-3/+27
| | | | debug level 3 and higher and very verbose.
* * nscd/cache.c (prune_cache): Use stat64 not stat.Ulrich Drepper2005-08-162-4/+4
| | | | * nscd/connections.c (nscd_init): Likewise.
* * nscd/connections.c (main_loop_epoll): Pass NULL as eventUlrich Drepper2005-08-091-5/+3
| | | | argument for epoll_ctl(EPOLL_CTL_DEL) calls.
* * nscd/nscd_stat.c (receive_print_stats): Really print values ofUlrich Drepper2005-08-091-2/+11
| | | | thread number, paranoia, and restart interval the server is using.
* (cache_add): Comment hash table and header to disk.Ulrich Drepper2005-08-081-1/+7
|
* * nscd/mem.c (mempool_alloc): Use posix_fallocate instead of ftruncate.Ulrich Drepper2005-08-082-2/+4
| | | | * nscd/connections.c (nscd_init): Likewise.
* * posix/bits/unistd.h (confstr, getgroups, ttyname_r, gethostname,Ulrich Drepper2005-08-083-13/+225
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | getdomainname): Add __NTH. * stdlib/bits/stdlib.h (ptsname_r, wctomb, mbstowcs, wcstombs): Likewise. (realpath): Likewise. Use __const instead of const. Add __restrict keywords. * socket/bits/socket2.h (recvfrom): Add __restrict keyword to __buf. * wcsmbs/bits/wchar2.h (wmemcpy, wmemmove, wmempcpy, wmemset, wcscpy, wcpcpy, wcsncpy, wcpncpy, wcscat, wcsncat, vswprintf, wcrtomb, mbsrtowcs, wcsrtombs, mbsnrtowcs, wcsnrtombs): Add __NTH. * string/bits/string3.h (__memset_ichk): Likewise. (__memcpy_ichk, __memmove_ichk, __mempcpy_ichk, __strcpy_ichk, __stpcpy_ichk, __strncpy_ichk, stpncpy, __strcat_ichk, __strncat_ichk): Likewise. Use __const instead of const. (__stpncpy_chk): Use __const instead of const. (__stpncpy_alias): Use __REDIRECT_NTH instead of __REDIRECT. 2005-08-08 Ulrich Drepper <drepper@redhat.com> Jakub Jelinek <jakub@redhat.com> * nscd/mem.c (BLOCK_ALIGN_LOG, BLOCK_ALIGN, BLOCK_ALIGN_M1): Move definitions to... * nscd/nscd.h (BLOCK_ALIGN_LOG, BLOCK_ALIGN, BLOCK_ALIGN_M1): ...here. * nscd/connections.c (usekey): New enum. (check_use, verify_persistent_db): New functions. (nscd_init): If persistent database is corrupted, unlink it and recreate rather than falling back to non-persistent database. Call verify_persistent_db. Avoid overflows in total computation. 2005-08-08 Ulrich Drepper <drepper@redhat.com> * iconvdata/utf-16.c (PREPARE_LOOP): Minor cleanups to make code better readable. Avoid passing var to loop function, it's not necessary at all.
* * nscd/Makefile ($(objpfx)nscd): Pass $(nscd-cflags) to $(LINK.o).Roland McGrath2005-07-221-1/+1
|
* * configure.in: Check for -fstack-protector gcc option.Ulrich Drepper2005-07-191-0/+3
| | | | | | | * config.make.in (have-ssp): Add template. * nscd/Makefile (nscd-cflags): Add -fstack-protector if supported. * nscd/nscd.c (main): Don't ignore result of chdir call.
* (main): Don't ignore result of chdir call.Ulrich Drepper2005-07-191-1/+3
|
* * nscd/Makefile (nscd-cflags): Add _FORTIFY_SOURCE.Ulrich Drepper2005-07-182-6/+12
| | | | * nscd/connections.c: Fix a few wur warnings.
* * nscd/grpcache.c (cache_addgr): Use correct maximum for group IDUlrich Drepper2005-07-181-1/+1
| | | | | | | | | | | | | | | | | | | length. Patch by Ivan Gyurdiev <ivg2@cornell.edu>. * debug/confstr_chk.c: New file. * debug/getdomainname_chk.c: New file. * debug/getgroups_chk.c: New file. * debug/gethostname_chk.c: New file. * debug/getlogin_r_chk.c: New file. * debug/ttyname_r_chk.c: New file. * posix/bits/unistd.h: Add definitions for new debug versions. * debug/tst-chk1.c: Add tests for new functions. * debug/Versions: Export new functions. * debug/Makefile (routines): Add new files. * stdlib/bits/stdlib.h: Fix typo. * manual/Makefile (libc/index.html): Depend on dir-add.texi.
* * nscd/nscd_helper.c: Add a few __builtin_expect.Ulrich Drepper2005-07-141-14/+20
|
* * nscd/connections.c (send_ro_fd): Make sure BUF is aligned correctly.Ulrich Drepper2005-07-141-2/+7
|
* * nscd/nscd_helper.c (wait_on_socket): New function.Ulrich Drepper2005-07-131-23/+49
| | | | | | | | (get_mapping): Use wait_on_socket instead of poll. The former handles EINTR of poll correctly. (__nscd_open_socket): Likewise. (get_mapping): Make sure BUF is aligned correctly. (get_mapping): Use munmap on correct pointer.
* * nscd/nscd_stat.c (receive_print_stats): Replace YESSTR/NOSTRUlrich Drepper2005-06-261-3/+3
| | | | | | | | | with own translation. * sunrpc/xdr.c (xdr_hyper, xdr_u_hyper): When decoding, cast t2 to uint32_t instead of ulong. * sunrpc/Makefile (tests): Add tst-xdrmem. * sunrpc/tst-xdrmem.c: New test.
* * nscd/nscd.init: Get more in line with lsb3. cvs/fedora-glibc-20050620T1530 cvs/fedora-glibc-20050620T1522Ulrich Drepper2005-06-204-14/+24
| | | | | * nscd/nscd.c: Adjust some error codes to fit in better with lsb3. * nscd/connections.c: Likewise.
* * configure.in: Add test for availability of libaudit.Ulrich Drepper2005-06-142-1/+48
| | | | | | | | * config.h.in: Define HAVE_LIBAUDIT. * config.make.in: Define have-libaudit. * nscd/Makefile: If libaudit is available, link nscd with it. * nscd/selinux.c: If HAVE_LIBAUDIT is defined, log using libaudit. Patch by Steve Grubb <sgrubb@redhat.com>.
* Help losers who use --with-headers.Ulrich Drepper2005-04-291-0/+8
|
* * nscd/connections.c (nscd_run): Use time() value in prune_cache cvs/fedora-glibc-20050428T0846Ulrich Drepper2005-04-281-2/+1
| | | | call, not timeout value, since the latter might be from another clock.
* [BZ #253] cvs/fedora-glibc-20050415T0909Roland McGrath2005-04-151-1/+2
| | | | | | | | | | | | | | 2005-04-14 Roland McGrath <roland@redhat.com> * MakeTAGS ($P/$(domain).pot): Depend on distinfo file as well. (extract): Filter-out distinfo file name. [BZ #253] * MakeTAGS (text-srcs): Match %.bash.in files too. [BZ #253] * nscd/Makefile (all-nscd-modules): New variable, include selinux module regardless of configuration. (distribute): Use that instead of $(nscd-modules).
* * nscd/aicache.c (addhstaiX): Tweak type to avoid warning.Roland McGrath2005-03-171-1/+1
|
* * nscd/nscd-client.h: Include sys/uio.h.Ulrich Drepper2005-02-2212-28/+97
| | | | | | | | | | | | | | | | | (__readall, __readvall, writeall): New prototypes. * nscd/connections.c (writeall): New function. (handle_request): Use it. * nscd/aicache.c (addhstaiX): Likewise. * nscd/initgrcache.c (addinitgroupsX): Likewise. * nscd/hstcache.c (cache_addhst): Likewise. * nscd/grpcache.c (cache_addgr): Likewise. * nscd/pwdcache.c (cache_addpw): Likewise. * nscd/nscd_helper.c (__readall, __readvall): New functions. * nscd/nscd_getai.c (__nscd_getai): Use them. * nscd/nscd_getpw_r.c (__nscd_getpw_r): Likewise. * nscd/nscd_getgr_r.c (__nscd_getgr_r): Likewise. * nscd/nscd_gethst_r.c (__nscd_gethst_r): Likewise. * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
* Include sys/uio.h. (__readall, __readvall, writeall): New prototypes.Ulrich Drepper2005-02-221-1/+12
|
* * nscd/nscd_gethst_r.c (nscd_gethst_r): Set *h_errnop toUlrich Drepper2005-02-214-13/+11
| | | | | | | | | NETDB_INTERNAL if buffer is too small. * nscd/hstcache.c (INCR): Remove. (addhstbyX): Double buflen in each iteration rather than add INCR. * nscd/grpcache.c: Likewise. * nscd/pwdcache.c: Likewise.
* [BZ #677]Ulrich Drepper2005-02-073-5/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * nscd/nscd.c (termination_handler): Avoid segfault if some database is not enabled. * nscd/nscd_getai.c (__nscd_getai): If ai_resp->found == -1, set __nss_not_use_nscd_hosts and return -1. * nscd/nscd_initgroups.c (__nscd_getgrouplist): If initgr_resp->found == -1, set __nss_not_use_nscd_group and return -1. Avoid leaking sockets. 2005-01-28 Andreas Schwab <schwab@suse.de> H.J. Lu <hongjiu.lu@intel.com> [BZ #677] * elf/dl-runtime.c (fixup): Change return type to DL_FIXUP_VALUE_TYPE. Use DL_FIXUP_VALUE_TYPE, DL_FIXUP_MAKE_VALUE and DL_FIXUP_VALUE_CODE_ADDR for relocation values. Use DL_FIXUP_VALUE_ADDR and DL_FIXUP_ADDR_VALUE to store and retrieve relocation values. (profile_fixup): Likewise. * include/link.h (link_map): Use DL_FIXUP_VALUE_TYPE for l_reloc_result. * sysdeps/generic/dl-fptr.h (link_map): Forward declaration. * sysdeps/generic/dl-lookupcfg.h (DL_FIXUP_VALUE_TYPE): New. (DL_FIXUP_MAKE_VALUE): Likewise. (DL_FIXUP_VALUE_CODE_ADDR): Likewise. (DL_FIXUP_VALUE_ADDR): Likewise. (DL_FIXUP_ADDR_VALUE): Likewise. * sysdeps/ia64/dl-lookupcfg.h: Include <dl-fptr.h> for "struct fdesc". (DL_FIXUP_VALUE_TYPE): New. (DL_FIXUP_MAKE_VALUE): Likewise. (DL_FIXUP_VALUE_CODE_ADDR): Likewise. (DL_FIXUP_VALUE_ADDR): Likewise. (DL_FIXUP_ADDR_VALUE): Likewise. * sysdeps/ia64/dl-machine.h (elf_machine_profile_fixup_plt): Removed. (elf_machine_profile_plt): Removed. (elf_machine_fixup_plt): Change return type and type of value parameter to struct fdesc. (elf_machine_plt_value): Likewise. (elf_machine_rela): Use DL_FIXUP_MAKE_VALUE to construct argument for elf_machine_fixup_plt. 2005-02-07 Jakub Jelinek <jakub@redhat.com>
* * nscd/nscd.init (reload): Print Reloading nscd: before and a newlineRoland McGrath2005-02-071-4/+6
| | | | after the status string printed by killproc.
* Update.Ulrich Drepper2005-01-302-4/+10
| | | | | | | 2005-01-30 Ulrich Drepper <drepper@redhat.com> * nscd/nscd_helper.c (get_mapping): Use MSG_NOSIGNAL if available. * nscd/connections.c (send_ro_fd): Likewise.
* 2005-01-17 Roland McGrath <roland@redhat.com>Roland McGrath2005-01-181-2/+4
| | | | | * nscd/Makefile (LDLIBS-nscd): New variable. ($(objpfx)nscd): Use that instead of selinux-LIBS.
* * posix/getconf.c: Update copyright year.Ulrich Drepper2005-01-122-4/+4
| | | | | | | | | | | | | | | | | | | * nss/getent.c: Likewise. * nscd/nscd_nischeck.c: Likewise. * iconv/iconvconfig.c: Likewise. * iconv/iconv_prog.c: Likewise. * elf/ldconfig.c: Likewise. * catgets/gencat.c: Likewise. * csu/version.c: Likewise. * elf/ldd.bash.in: Likewise. * elf/sprof.c (print_version): Likewise. * locale/programs/locale.c: Likewise. * locale/programs/localedef.c: Likewise. * nscd/nscd.c (print_version): Likewise. * debug/xtrace.sh: Likewise. * malloc/memusage.sh: Likewise. * malloc/mtrace.pl: Likewise. * debug/catchsegv.sh: Likewise.
* (CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.Ulrich Drepper2004-12-2234-1873/+907
|
* 2.5-18.1Jakub Jelinek2007-07-1234-907/+1873
|
* 2004-12-16 Roland McGrath <roland@redhat.com>Roland McGrath2004-12-161-2/+2
| | | | | * nscd/Makefile ($(objpfx)nscd): Don't depend on $(selinux-LIBS), which is usually a -lselinux that make will resolve wrongly.
* (__nscd_getai): Avoid memory and file descriptor leaks.Ulrich Drepper2004-11-221-2/+6
|
* Update. cvs/fedora-glibc-20041110T0839Ulrich Drepper2004-11-104-29/+26
| | | | | | | 2004-11-10 Jakub Jelinek <jakub@redhat.com> * Makefile (tests): Add tst-exit3. * tst-exit3.c: New test.
* (libc_locked_map_ptr): Add new first parameter, used as class for definition.Ulrich Drepper2004-11-105-5/+52
| | | | | | | | | | | * nscd/nscd-client.h (libc_locked_map_ptr): Add new first parameter, used as class for definition. * nscd/nscd_getpw_r.c: Adjust for libc_locked_map_ptr change. (pw_map_free): Ensure no crash after memory is freed. * nscd/nscd_getgr.c: Likewise. Make map externally visible. * nscd/nscd_gethst.c: Likewise. * nscd/nscd_getai.c: Use map from nscd_gethost.c. * nscd/nscd_initgroups.c: Use map from nscd_getgr.c.
* Update.Ulrich Drepper2004-10-152-3/+7
| | | | | | | | | | | | 2004-10-15 Ulrich Drepper <drepper@redhat.com> * nscd/nscd.h (_PATH_NSCD_PASSWD_DB): Move to /var/db. (_PATH_NSCD_GROUP_DB): Likewise. (_PATH_NSCD_HOSTS_DB): Likewise. (_PATH_NSCD_XYZ_DB_TMP): New #define, point to /var/run. * nscd/connections.c (nscd_init): Non-persistent database files are created with the _PATH_NSCD_XYZ_DB_TMP path. * nscd/nscd.init: Create /var/db/nscd if necessary.
* (nscd_init): Non-persistent database files are created with the ↵Ulrich Drepper2004-10-151-4/+1
| | | | _PATH_NSCD_XYZ_DB_TMP path.
* Update.Ulrich Drepper2004-10-141-2/+2
| | | | | | * nscd/Makefile: When using compilers without -fpie support, also link with -lselinux if necessary. Patch by Arkadiusz Miskiewicz <arekm@pld-linux.org>.
* Update.Ulrich Drepper2004-10-141-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | 2004-10-14 Ulrich Drepper <drepper@redhat.com> * nscd/connections.c (nscd_init): Remove file if not persistent and not shared. Patch by Jerome Borsboom <j.borsboom@erasmusmc.nl>. * sysdeps/unix/sysv/linux/i386/setresuid.c: Handle defined __NR_setresuid32 && !defined __NR_setresuid. * sysdeps/unix/sysv/linux/i386/setresgid.c: Handle defined __NR_setresgid32 && !defined __NR_setresgid. * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit, __signbitl, sqrtf, sqrt, sqrtl, fdim, fdimf): Use __NTH macro. * sysdeps/generic/errno-loc.c: Don't undef #errno if RTLD_PRIVATE_ERRNO. * include/errno.h (__errno_location): If RTLD_PRIVATE_ERRNO, add attribute_hidden. * dlfcn/dlinfo.c (dlinfo_doit): Replace iteration over GL(dl_loaded) chain with iteration over all namespaces' _ns_loaded chains. * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_preferred_address): Likewise. * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise.
* Update.Ulrich Drepper2004-10-051-0/+16
| | | | | | | | 2004-10-05 Ulrich Drepper <drepper@redhat.com> * grp/initgroups.c: Remove duplicate group IDs. * grp/compat-initgroups.c: Likewise. * nscd/initgrcache.c: Likewise.
* Update.Ulrich Drepper2004-10-052-28/+34
| | | | | | | | | | | | | | | | | | | | | | | 2004-10-05 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/x86_64/sysconf.c (__sysconf): Return 200112L for _SC_CPUTIME or _SC_THREAD_CPUTIME. * nscd/Makefile (nscd-cflags): Set to -DIS_IN_nscd=1, plus -fpie if building PIE. (CFLAGS-*.c): Use it. * nscd/Makefile (relro-LDFLAGS): Add -Wl,-z,now if have-z-relro. ($(objpfx)nscd): Add $(relro-LDFLAGS). * sysdeps/unix/sysv/linux/i386/sysconf.c: Include hp-timing.h. (__sysconf): Return -1 for _SC_CPUTIME or _SC_THREAD_CPUTIME if !HP_TIMING_AVAIL. 2004-10-05 Ulrich Drepper <drepper@redhat.com> * nscd/Makefile (distribute): Remove TODO. * nscd/TODO: Removed.
* Update. cvs/fedora-glibc-20041005T0745Ulrich Drepper2004-10-041-0/+4
| | | | | | | * nscd/gai.c: Define __no_netlink_support if NEED_NETLINK is defined and __ASSUME_NETLINK_SUPPORT is zero. * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gai.c): Add -DNEED_NETLINK.
* Update.Ulrich Drepper2004-10-041-0/+1
| | | | | | | | | 2004-10-04 Ulrich Drepper <drepper@redhat.com> * malloc/mtrace.pl: Avoid calling location unless it is needed for output. Patch by Edward Bishop <binutils@gmail.com>. * nscd/Makefile (CFLAGS-gai.c): Add -fpie.
* Update.Ulrich Drepper2004-10-041-6/+5
| | | | | | | | | | * sysdeps/unix/sysv/linux/ia64/sysconf.c: New file. * sysdeps/unix/sysv/linux/ia64/Dist: Add has_cpuclock.c. * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: Move actual testing code to... * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: ...here. New file. * sysdeps/unix/sysv/linux/i386/sysconf.c: Add dynamic check for _SC_CPUTIME and _SC_THREAD_CPUTIME.
* Update.Ulrich Drepper2004-10-042-15/+10
| | | | | | | * nscd/connections.c (start_threads): Use sysconf in case _POSIX_CLOCK_SELECTION or _POSIX_MONOTONIC_CLOCK is not greater zero. * nscd/nscd.c: Remove getaddrinfo stub definition.