Ulrich Drepper [Sun, 26 Sep 2004 05:07:13 +0000 (05:07 +0000)]
Update.
Ulrich Drepper [Sun, 26 Sep 2004 04:45:24 +0000 (04:45 +0000)]
[BZ #322]
Update.
* intl/dcigettext.c (DCIGETTEXT): Protect tfind/tsearch calls.
* intl/dcigettext.c (_nl_find_msg): Call _nl_load_domain also if
decided < 0.
* intl/finddomain.c (_nl_find_domain): Likewise.
* intl/l10nflist.c (_nl_make_l10nflist): Initialize lock.
* intl/loadinfo.h (struct loaded_l10nfile): Add lock element.
* intl/loadmsgcat.c (_nl_load_domain): Set decided to 1 only once we
are done. First set to -1 to signal initialization is ongoing.
Protect against concurrent callers with recursive lock.
duplicate address recognition does not copy junk. [BZ #322]
Ulrich Drepper [Sun, 26 Sep 2004 03:40:38 +0000 (03:40 +0000)]
Update.
* intl/finddomain.c (_nl_find_domain): Protect calls to
_nl_make_l10nflist.
Ulrich Drepper [Sat, 25 Sep 2004 15:07:23 +0000 (15:07 +0000)]
Update.
2004-09-25 Ulrich Drepper <drepper@redhat.com>
* sysdeps/posix/getaddrinfo.c (getaddrinfo): If determinination of
source address fails, initialized source_addr_len field so that
duplicate address recognition does not copy junk.
Ulrich Drepper [Sat, 25 Sep 2004 15:06:34 +0000 (15:06 +0000)]
(getaddrinfo): If determinination of source address fails, initialized source_addr_len field so that duplicate address recognition does not copy junk.
Roland McGrath [Sat, 25 Sep 2004 10:04:29 +0000 (10:04 +0000)]
[BZ #406]
2004-09-25 Roland McGrath <roland@redhat.com>
[BZ #406]
* sysdeps/i386/i686/pt-machine.h: Don't #include "../useldt.h" if
[_TLS_H], since sysdeps/i386/tls.h includes it after including us.
Roland McGrath [Sat, 25 Sep 2004 10:04:15 +0000 (10:04 +0000)]
[BZ #406]
2004-09-25 Roland McGrath <roland@redhat.com>
[BZ #406]
* sysdeps/i386/i686/pt-machine.h: Don't #include "../useldt.h" if
[_TLS_H], since sysdeps/i386/tls.h includes it after including us.
Ulrich Drepper [Sat, 25 Sep 2004 07:44:41 +0000 (07:44 +0000)]
Update.
2004-09-25 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/i386/setuid.c (__setuid): Remove second
result declaration.
2004-09-22 Andreas Schwab <schwab@suse.de>
* sysdeps/unix/sysv/linux/ia64/sysdep.h: Adjust whitespace.
Ulrich Drepper [Sat, 25 Sep 2004 06:49:33 +0000 (06:49 +0000)]
Update.
* misc/daemon.c (daemon): Don't succeed if /dev/null cannot be
opened.
Ulrich Drepper [Sat, 25 Sep 2004 05:55:20 +0000 (05:55 +0000)]
Update.
* nis/ypclnt.c (do_ypcall): Add one missing unlock. Simplify the
code a bit.
Ulrich Drepper [Sat, 25 Sep 2004 05:31:24 +0000 (05:31 +0000)]
Update.
* misc/daemon.c (daemon): Define errno in case /dev/null is not
the correct device.
Ulrich Drepper [Sat, 25 Sep 2004 05:30:41 +0000 (05:30 +0000)]
(daemon): Define errno in case /dev/null is not the correct device.
Roland McGrath [Sat, 25 Sep 2004 03:32:21 +0000 (03:32 +0000)]
[BZ #406]
2004-09-24 Roland McGrath <roland@redhat.com>
[BZ #406]
* sysdeps/i386/tls.h: Move #include "useldt.h" outside
of [__ASSUME_LDT_WORKS > 0] test.
Reported by Carlos Velasco <carlos.velasco@newipnet.com>.
Roland McGrath [Sat, 25 Sep 2004 03:32:13 +0000 (03:32 +0000)]
[BZ #406]
2004-09-24 Roland McGrath <roland@redhat.com>
[BZ #406]
* sysdeps/i386/tls.h: Move #include "useldt.h" outside
of [__ASSUME_LDT_WORKS > 0] test.
Reported by Carlos Velasco <carlos.velasco@newipnet.com>.
Ulrich Drepper [Sat, 25 Sep 2004 01:14:47 +0000 (01:14 +0000)]
Update.
2004-09-24 Ulrich Drepper <drepper@redhat.com>
* nis/ypclnt.c (yp_bind_file): Optimize a bit. Minimal cleanups.
Ulrich Drepper [Fri, 24 Sep 2004 18:22:04 +0000 (18:22 +0000)]
[BZ #405]
Update.
* pthread_create.c (__pthread_create_2_1): Remember whether thread
is created detached and if yes, do not try to free the stack in case
the thread creation failed.
* sysdeps/pthread/createthread.c (do_clone): Free stack here if clone
call fails. Don't depend on INTERNAL_SYSCALL_ERRNO return zero in
case there has been no error. [BZ #405]
Ulrich Drepper [Fri, 24 Sep 2004 18:20:01 +0000 (18:20 +0000)]
(__pthread_create_2_1): Remember whether thread is created detached and if yes, do not try to free the stack in case the thread creation failed.
Andreas Jaeger [Fri, 24 Sep 2004 17:09:40 +0000 (17:09 +0000)]
Update.
2004-09-23 Andreas Jaeger <aj@suse.de>
* locale/weight.h (findidx): Remove static, it's not supported
anymore with GCC 4.0 in a block scope.
* locale/weightwc.h (findidx): Likewise.
* posix/regcomp.c (seek_collating_symbol_entry): Likewise.
(lookup_collation_sequence_value): Likewise.
(build_range_exp): Likewise.
(build_collating_symbol): Likewise.
* iconv/iconvconfig.c (write_output): Likewise.
* elf/do-rel.h (elf_dynamic_do_rel): Likewise.
* sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Remove
static, add always_inline attribute.
(elf_machine_rela): Likewise.
(elf_machine_lazy_rel): Likewise.
* elf/dynamic-link.h (elf_get_dynamic_info): Make static dependend
on !RESOLVE so that it's not defined in local scope.
Andreas Jaeger [Fri, 24 Sep 2004 17:09:04 +0000 (17:09 +0000)]
* sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Remove
static, add always_inline attribute.
(elf_machine_rela): Likewise.
(elf_machine_lazy_rel): Likewise.
* elf/dynamic-link.h (elf_get_dynamic_info): Make static
dependend on !RESOLVE so that it's not defined in local
scope.
* locale/weight.h (findidx): Remove static, it's not supported
anymore with GCC 4.0 in a block scope.
* locale/weightwc.h (findidx): Likewise.
* posix/regcomp.c (seek_collating_symbol_entry): Likewise.
(lookup_collation_sequence_value): Likewise.
(build_range_exp): Likewise.
(build_collating_symbol): Likewise.
* iconv/iconvconfig.c (write_output): Likewise.
* elf/do-rel.h (elf_dynamic_do_rel): Likewise.
Ulrich Drepper [Fri, 24 Sep 2004 07:18:48 +0000 (07:18 +0000)]
Update.
2004-09-23 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL_NCS): Define.
Ulrich Drepper [Thu, 23 Sep 2004 14:07:48 +0000 (14:07 +0000)]
Update.
2004-09-23 Thorsten Kukuk <kukuk@suse.de>
* sysdeps/unix/sysv/linux/sys/mount.h: Sync MS_RMT_MASK flag
and BLK* ioctls with linux kernel headers.
Ulrich Drepper [Thu, 23 Sep 2004 07:45:38 +0000 (07:45 +0000)]
Update.
2004-09-23 Ulrich Drepper <drepper@redhat.com>
* sysdeps/generic/bits/dlfcn.h: Add RTLD_DEEPBIND.
* elf/dl-object.c (_dl_new_object): Add new parameter mode. If mode
has RTLD_DEEPBIND set add local searchlist before global scope.
* sysdeps/generic/ldsodefs.h (_dl_new_object): Adjust prototype.
* elf/rtld.c: Adjust callers of _dl_new_object.
* elf/dl-load.c: Likewise.
(_dl_map_object_from_fd): If RTLD_DEEPBIND is used, don't do anything
for DF_SYMBOLIC.
* elf/dl-open.c (dl_open_writer): Pass RTLD_DEEPBIND flag on to
_dl_map_object_deps.
* elf/tst-deep1.c: New file.
* elf/tst-deep1mod1.c: New file.
* elf/tst-deep1mod2.c: New file.
* elf/tst-deep1mod3.c: New file.
* elf/Makefile: Add rules to build and run new tests.
* elf/dl-deps.c: Pretty printing.
Ulrich Drepper [Thu, 23 Sep 2004 05:17:06 +0000 (05:17 +0000)]
Update.
2004-09-23 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/alpha/sysdep.h (inline_syscall[0-6]): Change name
argument to numbers from syscall names.
(INLINE_SYSCALL1): Pass __NR_##name to inline_syscall##nr.
(INTERNAL_SYSCALL_NCS): Renamed from...
(INTERNAL_SYSCALL_1): ... this. Use INTERNAL_SYSCALL_NCS.
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
(INTERNAL_SYSCALL_NCS): Define.
* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
(INTERNAL_SYSCALL_NCS): Likewise.
* sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall[0-6]):
Change name argument to numbers from syscall names.
(INLINE_SYSCALL, INTERNAL_SYSCALL): Adjust.
(INTERNAL_SYSCALL_NCS): Define.
Ulrich Drepper [Thu, 23 Sep 2004 04:45:09 +0000 (04:45 +0000)]
Update.
* malloc/malloc.c (malloc_printerr): Use syslog if writev failed.
Ulrich Drepper [Wed, 22 Sep 2004 08:20:57 +0000 (08:20 +0000)]
Update.
2004-09-22 Ulrich Drepper <drepper@redhat.com>
* string/string.h: Add __nonnull annotations.
* stdlib/stdlib.h: Likewise.
Ulrich Drepper [Wed, 22 Sep 2004 05:11:15 +0000 (05:11 +0000)]
Update.
2004-09-20 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/ia64/sysdep.h (DO_INLINE_SYSCALL):
Renamed to ...
(DO_INLINE_SYSCALL_NCS): This.
(DO_INLINE_SYSCALL): New.
(INLINE_SYSCALL): Updated.
(INTERNAL_SYSCALL_NCS): Updated.
Ulrich Drepper [Wed, 22 Sep 2004 02:19:00 +0000 (02:19 +0000)]
Update.
* elf/sprof.c (load_shobj): Add support for reading symbol table
from debuginfo file.
Ulrich Drepper [Wed, 22 Sep 2004 02:18:30 +0000 (02:18 +0000)]
(load_shobj): Add support for reading symbol table from debuginfo file.
Roland McGrath [Wed, 22 Sep 2004 00:21:26 +0000 (00:21 +0000)]
* Versions: Add comment about linuxthreads' frozen ABI.
Roland McGrath [Wed, 22 Sep 2004 00:21:20 +0000 (00:21 +0000)]
2004-09-21 Roland McGrath <roland@redhat.com>
* Versions: Add comment about linuxthreads' frozen ABI.
Ulrich Drepper [Tue, 21 Sep 2004 15:40:52 +0000 (15:40 +0000)]
Update.
2004-09-21 Ulrich Drepper <drepper@redhat.com>
* elf/ldd.bash.in: Fix syntax errors.
Ulrich Drepper [Tue, 21 Sep 2004 02:30:50 +0000 (02:30 +0000)]
Update.
* sysdeps/unix/sysv/linux/dl-execstack.c
(_dl_make_stack_executable): Remove some duplication.
Ulrich Drepper [Mon, 20 Sep 2004 23:16:22 +0000 (23:16 +0000)]
Update.
2004-09-20 Ulrich Drepper <drepper@redhat.com>
* nscd/nscd.c (options): Mark S option as hidden.
(parse_opt): When S option is used, print warning message.
* nscd/grpcache.c (adgrptbyX): Don't handle secure mode.
* nscd/hstcache.c (addhstbyX): Don't handle secure mode.
* nscd/aicache.c (addhstaiX): Don't handle secure mode.
* nscd/pwdcache.c (addpwbyX): Don't handle secure mode.
Ulrich Drepper [Mon, 20 Sep 2004 22:14:33 +0000 (22:14 +0000)]
Update.
* configure.in: If selinux has not explictly been requested, don't
comment on it missing.
Ulrich Drepper [Mon, 20 Sep 2004 21:53:15 +0000 (21:53 +0000)]
If selinux has not explictly been requested, don't comment on it missing.
Roland McGrath [Mon, 20 Sep 2004 20:56:19 +0000 (20:56 +0000)]
[BZ #391]
2004-09-20 Roland McGrath <roland@frob.com>
* elf/dl-load.c (__stack_prot): Only use PROT_GROWSUP/PROT_GROWSDOWN
in initializer #if defined.
2004-09-18 Paul Eggert <eggert@cs.ucla.edu>
[BZ #391]
* stdlib/getsubopt.c: Merge fixes from gnulib.
(__strchrnul) [!_LIBC]: Define and include "strchrnul.c".
(getsubopt): Use prototypes, not K&R style.
Fix bug: memcmp(A,B,N) was being invoked on a memory block B
whose size might be smaller than N. Use strncmp to avoid the bug.
Roland McGrath [Mon, 20 Sep 2004 20:56:03 +0000 (20:56 +0000)]
2004-09-20 Roland McGrath <roland@frob.com>
* elf/dl-load.c (__stack_prot): Only use PROT_GROWSUP/PROT_GROWSDOWN
in initializer #if defined.
Ulrich Drepper [Mon, 20 Sep 2004 15:15:23 +0000 (15:15 +0000)]
(_dl_map_object_from_fd): Add caller check.
Ulrich Drepper [Mon, 20 Sep 2004 15:08:26 +0000 (15:08 +0000)]
Update.
2004-09-20 Ulrich Drepper <drepper@redhat.com>
* elf/dl-load.c: Define __stack_prot.
* sysdeps/unix/sysv/linux/dl-execstack.c: Don't define
__stack_prot here, just declare it.
Ulrich Drepper [Mon, 20 Sep 2004 14:47:18 +0000 (14:47 +0000)]
Update.
2004-09-20 Jakub Jelinek <jakub@redhat.com>
* configure.in (libc_cv_z_relro): Only set to yes if linker script
contains DATA_SEGMENT_RELRO_END.
Ulrich Drepper [Mon, 20 Sep 2004 07:43:16 +0000 (07:43 +0000)]
Update.
2004-09-20 Ulrich Drepper <drepper@redhat.com>
* elf/dl-load.c (_dl_map_object_from_fd): Add some error checking.
Reorder code slightly.
* elf/rtld.c (dl_main): No need to check whether l_info[DT_HASH]
is non-null, _dl_setup_hash will do that.
Ulrich Drepper [Mon, 20 Sep 2004 00:16:11 +0000 (00:16 +0000)]
Update.
* sysdeps/unix/sysv/linux/setegid.c [HAVE_PTR__NPTL_SETXID]: Call
callback to set IDs in all other threads as well.
* sysdeps/unix/sysv/linux/seteuid.c: Likewise.
* sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
* sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
* sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
* sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
* sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
* sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
* sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
* sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
* sysdeps/unix/sysv/linux/setuid.c: New file.
* sysdeps/unix/sysv/linux/setgid.c: New file.
* sysdeps/unix/sysv/linux/setreuid.c: New file.
* sysdeps/unix/sysv/linux/setregid.c: New file.
* sysdeps/unix/sysv/linux/setresuid.c: New file.
* sysdeps/unix/sysv/linux/setresgid.c: New file.
* sysdeps/unix/sysv/linux/i386/sysdep.h: Define INTERNAL_SYSCALL_NCS.
* sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Use x86 version.
* sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: New file.
* sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: New file.
* sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Remove setresgid
and setresuid.
* nscd/aicache.c: Use pthread_seteuid_np instead of seteuid.
* nscd/grpcache.c: Likewise.
* nscd/hstcache.c: Likewise.
* nscd/pwdcache.c: Likewise.
Ulrich Drepper [Sun, 19 Sep 2004 20:52:52 +0000 (20:52 +0000)]
Update.
2004-09-19 Ulrich Drepper <drepper@redhat.com>
* resolv/res_mkquery.c (res_nmkquery): Fix typo.
Ulrich Drepper [Sun, 19 Sep 2004 02:48:59 +0000 (02:48 +0000)]
Update.
* sysdeps/unisx/sysv/linux/dl-execstack.c: Get protection flag
from memory.
* elf/dl-load.c (_dl_map_object_from_fd): Add PROT_EXEC flag to
__stack_flags.
Ulrich Drepper [Sat, 18 Sep 2004 23:57:46 +0000 (23:57 +0000)]
Update.
* sysdeps/posix/getaddrinfo.c (gaih_inet): Do not use
gethostbyname3_r if we are not looking for the canonical name.
Ulrich Drepper [Sat, 18 Sep 2004 21:21:36 +0000 (21:21 +0000)]
Update.
2004-09-18 Ulrich Drepper <drepper@redhat.com>
* allocatestack.c (allocate_stack): Return EAGAIN instead of
ENOMEM when out of memory.
Ulrich Drepper [Sat, 18 Sep 2004 18:04:49 +0000 (18:04 +0000)]
Update.
2004-09-18 Ulrich Drepper <drepper@redhat.com>
* resolv/res_mkquery.c (res_nmkquery): Randomize request ID every
time.
Ulrich Drepper [Sat, 18 Sep 2004 18:00:50 +0000 (18:00 +0000)]
(res_nmkquery): Randomize request ID every time.
Roland McGrath [Sat, 18 Sep 2004 08:45:06 +0000 (08:45 +0000)]
* sysdeps/unix/sysv/linux/waitid.c (do_waitid): Pass fifth argument to
system call.
Roland McGrath [Sat, 18 Sep 2004 08:44:59 +0000 (08:44 +0000)]
2004-09-18 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/waitid.c (do_waitid): Pass fifth argument to
system call.
Ulrich Drepper [Sat, 18 Sep 2004 08:15:55 +0000 (08:15 +0000)]
Encodings without iconv support.
Ulrich Drepper [Sat, 18 Sep 2004 06:46:52 +0000 (06:46 +0000)]
Update.
2004-09-17 Ulrich Drepper <drepper@redhat.com>
* include/link.h (struct link_map): Add l_used element.
* sysdeps/generic/ldsodefs.h: Define DL_DEBUG_UNUSED.
* elf/rtld.c (process_dl_debug): Recognize unused.
(dl_main): When unused debug flag is set check for unused direct
dependencies.
When printing dependencies and SONAME starts with /, omit the SONAME =>
part.
* elf/dl-lookup.c (_dl_lookup_symbol_x): Mark object in which the
symbol has been found as used.
* elf/ldd.bash.in: Add -u option.
Ulrich Drepper [Fri, 17 Sep 2004 23:47:50 +0000 (23:47 +0000)]
[BZ #390]
Update.
2004-09-18 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
Do nothing if __NR_set_tid_address is not defined. [BZ #390]
2004-09-17 Ulrich Drepper <drepper@redhat.com>
* sysdeps/posix/getaddrinfo.c: Use gethostbyname3_r NSS function
in case it is available.
Ulrich Drepper [Fri, 17 Sep 2004 19:51:26 +0000 (19:51 +0000)]
Update.
2004-09-17 Jakub Jelinek <jakub@redhat.com>
* nscd/nscd.c (parse_opt): Write arg string instead of (void *)
key to the socket.
Ulrich Drepper [Fri, 17 Sep 2004 19:27:08 +0000 (19:27 +0000)]
Update.
* catgets/nl_types.h: Likewise.
* crypt/crypt.h: Likewise.
* debug/execinfo.h: Likewise.
Ulrich Drepper [Fri, 17 Sep 2004 08:44:34 +0000 (08:44 +0000)]
Update.
2004-09-17 Ulrich Drepper <drepper@redhat.com>
* misc/sys/cdefs.h: Define __nonnull using nonnull function attribute
for gcc 3.3 and higher.
* io/fcntl.h: Add __nonnull where appropriate.
* io/ftw.h: Likewise.
* io/utime.h: Likewise.
* io/sys/poll.h: Likewise.
* io/sys/sendfile.h: Likewise.
* io/sys/stat.h: Likewise.
* io/sys/statfs.h: Likewise.
* io/sys/statvfs.h: Likewise.
* posix/unistd.h: Likewise.
Ulrich Drepper [Fri, 17 Sep 2004 00:56:07 +0000 (00:56 +0000)]
Update.
* posix/glob.h: Remove cruft to make header usable outside glibc.
The maintenance headache is too big.
Ulrich Drepper [Fri, 17 Sep 2004 00:05:36 +0000 (00:05 +0000)]
Patch mostly by Matthew Rickard <mjricka@epoch.ncsc.mil>.
Ulrich Drepper [Fri, 17 Sep 2004 00:04:18 +0000 (00:04 +0000)]
Update.
2004-09-16 Ulrich Drepper <drepper@redhat.com>
* configure.in: Add test for required SELinux features.
* config.make.in: Add have-selinux entry.
* config.h.in: Add HAVE_SELINUX entry.
* nscd/Makefile (nscd-modules): Add selinux.
(CFLAGS-selinux.c): Add -fpie.
Define selinux-LIBS and use in link line.
* nscd/connections.c (handle_request): Check access SELinux permissions
before processing request.
* nscd/nscd.c (main): Initialize selinux_enabled and stop avc thread.
* nscd/nscd_stat.c: Transmit and print AVC statistics.
* nscd/selinux.c: New file.
* nscd/selinux.h: New file.
2004-09-16 Jakub Jelinek <jakub@redhat.com>
* nscd/nscd_helper.c (__nscd_unmap, get_mapping): Use __munmap
instead of munmap.
* nscd/Makefile (CFLAGS-aicache.c): Set to -fpie.
2004-09-16 Thorsten Kukuk <kukuk@suse.de>
* sysdeps/posix/getaddrinfo.c (gaih_inet): Check
__nss_not_use_nscd_hosts variable if nscd should be used or not.
2004-09-16 Ulrich Drepper <drepper@redhat.com>
* nscd/nscd_proto.h: Define NSS_NSCD_RETRY.
Add __nscd_getai prototype.
* nss/getXXbyYY_r.c: Remode definition of NSS_NSCD_RETRY.
* nscd/nscd-client.h: Remove __nscd_getai prototype.
* nscd/nscd_getai.c: Include nscd_proto.h.
* elf/ldd.bash.in: Add support for SELinux environments.
Patch by Stephen Smalley <sds@epoch.ncsc.mil>.
Ulrich Drepper [Thu, 16 Sep 2004 23:54:21 +0000 (23:54 +0000)]
Add test for required SELinux features.
Roland McGrath [Thu, 16 Sep 2004 23:23:25 +0000 (23:23 +0000)]
* configure.in (--with-headers): Let argument contain a : separated
list of directories to use, not just one.
* configure: Regenerated.
Roland McGrath [Thu, 16 Sep 2004 23:22:05 +0000 (23:22 +0000)]
2004-09-16 Roland McGrath <roland@redhat.com>
* configure.in (--with-headers): Let argument contain a : separated
list of directories to use, not just one.
* configure: Regenerated.
Ulrich Drepper [Thu, 16 Sep 2004 22:54:54 +0000 (22:54 +0000)]
iAdd __nscd_getai prototype.
Ulrich Drepper [Thu, 16 Sep 2004 21:59:12 +0000 (21:59 +0000)]
Add support for SELinux environments.
Richard Henderson [Wed, 15 Sep 2004 12:23:39 +0000 (12:23 +0000)]
* sysdeps/alpha/fpu/libm-test-ulps: Update. * scripts/data/c++-types-alpha-linux-gnu.data: New file.
2004-09-15 Richard Henderson <rth@redhat.com>
* sysdeps/alpha/fpu/libm-test-ulps: Update.
* scripts/data/c++-types-alpha-linux-gnu.data: New file.
Richard Henderson [Wed, 15 Sep 2004 12:22:09 +0000 (12:22 +0000)]
* sysdeps/unix/sysv/linux/alpha/vfork.S: Use libc_hidden_def.
2004-09-15 Richard Henderson <rth@redhat.com>
* sysdeps/unix/sysv/linux/alpha/vfork.S: Use libc_hidden_def.
Ulrich Drepper [Wed, 15 Sep 2004 10:10:05 +0000 (10:10 +0000)]
Update.
* nscd/aicache.c: Prefer using gethostbyname3_r NSS callback to also
get ttl and canonical name. Use these two values.
* resolv/Versions: Export _nss_dns_gethostbyname3_r from libnss_dns.
* resolv/nss_dns/dns-host.c (getanswer_r): Take two new parameters.
If nonnull fill with TTL and pointer to canonical name respectively.
(_nss_dns_gethostbyaddr_r): Pass NULL in new parameters of getanswer_r.
(_nss_dns_gethostbyname2_r): Just wrapper around
_nss_dns_gethostbyname3_r.
(_nss_dns_gethostbyname3_r): Renamed from _nss_dns_gethostbyname2_r.
Take two new parameters which as passed to getanswer_r.
Ulrich Drepper [Wed, 15 Sep 2004 08:26:45 +0000 (08:26 +0000)]
Update.
* posix/Makefile (CFLAGS-getaddrinfo.c): Add -DUSE_NSCD.
Ulrich Drepper [Wed, 15 Sep 2004 08:25:49 +0000 (08:25 +0000)]
Update.
2004-09-15 Ulrich Drepper <drepper@redhat.com>
* nscd/Makefile (rountines): Add nscd_getai.
(nscd-modules): Add aicache.
* nscd/aicache.c: New file.
* nscd/nscd_getai.c: New file.
* nscd/cache.c (prune_cache): Handle GETAI request type.
* nscd/connections.c: Add GETAI support in request handling.
* nscd/nscd-client.h (request_type): Add GETAI.
Define ai_response_header and struct nscd_ai_result types.
(struct datahead): Add aidata field.
Declare __nscd_getai.
* nscd/nscd.c: Add getaddrinfo definition to catch problems.
* nscd/nscd.h: Declare addhstai and readdhstai.
* sysdeps/posix/getaddrinfo.c: Add support for using cached results.
* nscd/nscd-client.h (struct datahead): Use uint8_t instead of bool.
Ulrich Drepper [Tue, 14 Sep 2004 18:05:52 +0000 (18:05 +0000)]
Update.
2004-09-14 Ulrich Drepper <drepper@redhat.com>
* misc/sys/cdefs.h: Remove debugging text from __P and __PMT.
Ulrich Drepper [Tue, 14 Sep 2004 04:41:35 +0000 (04:41 +0000)]
Update.
2004-09-13 Ulrich Drepper <drepper@redhat.com>
* misc/sys/cdefs.h: Restore old definition of __P.
* csu/munch.awk: Remove uses of __P and __PMT.
* gmon/gmon.c: Likewise.
* hesiod/hesiod.h: Likewise.
* include/stdio.h: Likewise.
* io/fts.c: Likewise.
* libio/genops.c: Likewise.
* libio/libioP.h: Likewise.
* libio/fileops.c: Likewise.
* libio/iolibio.h: Likewise.
* libio/libio.h: Likewise.
* libio/memstream.c: Likewise.
* libio/oldfileops.c: Likewise.
* libio/oldstdfiles.c: Likewise.
* libio/iopopen.c: Likewise.
* libio/vsnprintf.c: Likewise.
* libio/vswprintf.c: Likewise.
* libio/wgenops.c: Likewise.
* libio/oldiopopen.c: Likewise.
* locale/programs/xmalloc.c: Likewise.
* locale/programs/xstrdup.c: Likewise.
* malloc/mtrace.c: Likewise.
* misc/getttyent.c: Likewise.
* misc/getusershell.c: Likewise.
* nis/rpcsvc/ypupd.h: Likewise.
* posix/fnmatch.h: Likewise.
* posix/glob.h: Likewise.
* resolv/arpa/nameser.h: Likewise.
* resolv/gethnamaddr.c: Likewise.
* resolv/resolv.h: Likewise.
* resolv/inet_net_ntop.c: Likewise.
* resolv/inet_net_pton.c: Likewise.
* resolv/res_init.c: Likewise.
* resolv/nss_dns/dns-network.c: Likewise.
* stdio-common/vfprintf.c: Likewise.
* stdio-common/reg-printf.c: Likewise.
* sysdeps/generic/chflags.c: Likewise.
* sysdeps/generic/fchflags.c: Likewise.
* sysdeps/generic/glob.c: Likewise.
* sysdeps/generic/printf_fphex.c: Likewise.
* sysdeps/generic/memcmp.c: Likewise.
* sysdeps/generic/memcopy.h: Likewise.
* sysdeps/generic/morecore.c: Likewise.
* sysdeps/generic/sstk.c: Likewise.
* sysdeps/posix/sigvec.c: Likewise.
* sysdeps/posix/ttyname_r.c: Likewise.
* sysdeps/standalone/arm/bits/errno.h: Likewise.
* sysdeps/standalone/standalone.h: Likewise.
* sysdeps/standalone/i386/force_cpu386/brdinit.c: Likewise.
* sysdeps/standalone/i386/force_cpu386/_exit.c: Likewise.
* sysdeps/unix/arm/start.c: Likewise.
* sysdeps/unix/bsd/sigaction.c: Likewise.
* sysdeps/unix/bsd/sun/m68k/sigtramp.c: Likewise.
* sysdeps/unix/bsd/sun/sparc/sigtramp.c: Likewise.
* sysdeps/unix/bsd/sun/sunos4/wait4.c: Likewise.
* sysdeps/unix/bsd/ultrix4/mips/sigvec.c: Likewise.
* sysdeps/unix/bsd/ultrix4/sysconf.c: Likewise.
* sysdeps/unix/sparc/start.c: Likewise.
* sysdeps/unix/sysv/getdents.c: Likewise.
* sysdeps/unix/sysv/irix4/fpathconf.c: Likewise.
* sysdeps/unix/sysv/irix4/getgroups.c: Likewise.
* sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
* sysdeps/unix/sysv/irix4/getrusage.c: Likewise.
* sysdeps/unix/sysv/irix4/pathconf.c: Likewise.
* sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
* sysdeps/unix/sysv/irix4/sigtramp.c: Likewise.
* sysdeps/unix/sysv/irix4/start.c: Likewise.
* sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
* sysdeps/unix/sysv/sco3.2.4/__setpgid.c: Likewise.
* sysdeps/unix/sysv/sco3.2.4/getgroups.c: Likewise.
* sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
* sysdeps/unix/sysv/sysv4/__setpgid.c: Likewise.
* sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
* sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
* sysdeps/unix/sysv/sysv4/sethostname.c: Likewise.
* sysdeps/unix/sysv/sysv4/setsid.c: Likewise.
* sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
* sysdeps/unix/sysv/sysv4/waitpid.c: Likewise.
* sysdeps/unix/sysv/sysv4/solaris2/getdents.c: Likewise.
* time/tzset.c: Likewise.
* time/strftime_l.c: Likewise.
* time/strptime_l.c: Likewise.
* crypt/md5.h: Likewise.
Ulrich Drepper [Tue, 14 Sep 2004 00:41:16 +0000 (00:41 +0000)]
Regenerated: autoconf configure.in
Roland McGrath [Mon, 13 Sep 2004 19:47:47 +0000 (19:47 +0000)]
* configure.in: Support GCC 4.x.
* configure: Regenerated.
Roland McGrath [Mon, 13 Sep 2004 19:47:43 +0000 (19:47 +0000)]
2004-09-13 Andreas Jaeger <aj@suse.de>
* configure.in: Support GCC 4.x.
* configure: Regenerated.
Ulrich Drepper [Mon, 13 Sep 2004 18:38:15 +0000 (18:38 +0000)]
Update.
2004-09-01 David Mosberger <davidm@hpl.hp.com>
* sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h
(__libc_unwind_longjmp): Delete macro and declare as function.
* sysdeps/unix/sysv/linux/ia64/Makefile (sysdep_routines): Mention
__ia64_longjmp, sigstack_longjmp, and __sigstack_longjmp for
nptl directory.
* sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: New file.
* sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: New file.
* sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: New file.
Ulrich Drepper [Mon, 13 Sep 2004 17:24:41 +0000 (17:24 +0000)]
Update.
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.
Ulrich Drepper [Mon, 13 Sep 2004 06:07:02 +0000 (06:07 +0000)]
UPdate.
* nscd/nscd_helper.c (get_mapping): Correctly check cmsg length.
Avoid file descriptor leak in case of size mismatch.
Ulrich Drepper [Mon, 13 Sep 2004 05:56:39 +0000 (05:56 +0000)]
Update.
* nscd/mem.c (gc): Add casts to avoid warnings.
Ulrich Drepper [Mon, 13 Sep 2004 05:52:46 +0000 (05:52 +0000)]
Update.
* nscd/nscd-client.h: Fix database structure layout for biarch.
Ulrich Drepper [Mon, 13 Sep 2004 05:30:21 +0000 (05:30 +0000)]
Update.
2004-09-12 Ulrich Drepper <drepper@redhat.com>
* nss/getent.c: Don't preconstruct help message. Do it only when
needed.
* locale/programs/locale.c: Simplify help message printing.
Ulrich Drepper [Mon, 13 Sep 2004 05:28:45 +0000 (05:28 +0000)]
Simplify help message printing.
Roland McGrath [Mon, 13 Sep 2004 00:42:46 +0000 (00:42 +0000)]
(init1): fix one more nit in last change
Roland McGrath [Sun, 12 Sep 2004 23:05:49 +0000 (23:05 +0000)]
* sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]: Add decls
missing in last change.
Roland McGrath [Sun, 12 Sep 2004 23:05:24 +0000 (23:05 +0000)]
2004-09-12 Roland McGrath <roland@frob.com>
* sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]: Add decls
missing in last change.
Ulrich Drepper [Sun, 12 Sep 2004 20:38:38 +0000 (20:38 +0000)]
Update.
2004-09-11 Thorsten Kukuk <kukuk@suse.de>
* nis/nss_compat/compat-grp.c: Check that buflen is greater zero
before writing data into the buffer with negative offset.
* nis/nss_compat/compat-initgroups.c: Likewise.
* nis/nss_compat/compat-pwd.c: Likewise.
* nis/nss_compat/compat-spwd.c Likewise.
Ulrich Drepper [Sun, 12 Sep 2004 18:45:49 +0000 (18:45 +0000)]
[BZ #365]
Update.
* misc/syslog.c (vsyslog): Fix copying of PID in case of
out-of-memory situation. [BZ #365].
* sysdeps/alpha/fpu/bits/mathinline.h: Use __NTH instead of
__THROW in inline function definitions.
Ulrich Drepper [Sun, 12 Sep 2004 18:05:37 +0000 (18:05 +0000)]
Update.
* posix/spawn.h [__USE_GNU]: Define POSIX_SPAWN_USEVFORK.
* posix/spawnattr_setflags.c: Check whether any unknown bit is set
in FLAGS parameter and fail if this is the case.
* sysdeps/posix/spawni.c: Use vfork if POSIX_SPAWN_USEVFORK flag is
set.
Ulrich Drepper [Sun, 12 Sep 2004 10:10:48 +0000 (10:10 +0000)]
Update.
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.
Ulrich Drepper [Sun, 12 Sep 2004 10:04:03 +0000 (10:04 +0000)]
(cache_addhst): Sync also negative results to disk.
Roland McGrath [Sat, 11 Sep 2004 23:52:43 +0000 (23:52 +0000)]
* sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]:
Set _dl_phdr and _dl_phnum.
(init1): When bootstrap task, bail early and never examine *D.
Roland McGrath [Sat, 11 Sep 2004 23:05:24 +0000 (23:05 +0000)]
* sysdeps/mach/hurd/i386/tls.h (__i386_set_gdt) [!HAVE_I386_SET_GDT]:
Cast THR, SEL and DESC to `void'.
Roland McGrath [Sat, 11 Sep 2004 23:05:10 +0000 (23:05 +0000)]
2004-09-11 Alfred M. Szmidt <ams@kemisten.nu>
* sysdeps/mach/hurd/i386/tls.h (__i386_set_gdt) [!HAVE_I386_SET_GDT]:
Cast THR, SEL and DESC to `void'.
Ulrich Drepper [Sat, 11 Sep 2004 20:48:01 +0000 (20:48 +0000)]
Update.
* nscd/connections.c (nscd_run): Call setup_thread only for enabled
databases.
Ulrich Drepper [Sat, 11 Sep 2004 16:28:48 +0000 (16:28 +0000)]
Update.
2004-09-11 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/bsd/bsd4.4/bits/socket.h: Use __NTH for __cmsg_nxthdr.
2004-09-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
Ulrich Drepper [Fri, 10 Sep 2004 23:56:29 +0000 (23:56 +0000)]
Update.
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.
Ulrich Drepper [Fri, 10 Sep 2004 21:18:48 +0000 (21:18 +0000)]
Update.
2004-09-10 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Decrement
__nwaiters. If pthread_cond_destroy has been called and this is
the last waiter, signal pthread_cond_destroy caller and avoid
using the pthread_cond_t structure after unlock.
* sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
Ulrich Drepper [Fri, 10 Sep 2004 21:16:28 +0000 (21:16 +0000)]
[BZ #377]
Update.
* sysdeps/unix/sysv/linux/kernel-features.h: Don't define
__ASSUME_CLONE_STOPPED.
2004-09-10 Jakub Jelinek <jakub@redhat.com>
* misc/sys/cdefs.h (__REDIRECT_NTH): Change order of __THROW and
__asm__ for C++. [BZ #377]
2004-09-10 Ulrich Drepper <drepper@redhat.com>
Ulrich Drepper [Fri, 10 Sep 2004 20:31:41 +0000 (20:31 +0000)]
Update.
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.
Ulrich Drepper [Fri, 10 Sep 2004 19:58:40 +0000 (19:58 +0000)]
Update.
2004-09-10 Jakub Jelinek <jakub@redhat.com>
* malloc/malloc.c (_int_free): Only do arena boundary check for
contiguous arenas.
Ulrich Drepper [Fri, 10 Sep 2004 19:56:41 +0000 (19:56 +0000)]
nt_free): Only do arena boundary check for contiguous arenas.