external/glibc.git
20 years agoUpdate.
Ulrich Drepper [Thu, 14 Oct 2004 09:24:14 +0000 (09:24 +0000)]
Update.

2004-10-14  Jakub Jelinek  <jakub@redhat.com>

* elf/rtld.c (_dl_start): Fix one last dl_loaded.
* elf/dl-load.c (_dl_map_object_from_fd): Avoid definition of
label when it is not needed.
* elf/dl-close.c (_dl_close): Typo: & -> &&.

20 years agoUpdate.
Ulrich Drepper [Thu, 14 Oct 2004 02:24:44 +0000 (02:24 +0000)]
Update.

2004-10-12  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/generic/segfault.c: Include alloca.h and stdint.h.
Don't include frame.h.
(CURRENT_STACK_FRAME, INNER_THAN, ADVANCE_STACK_FRAME): Remove.
(catch_segfault): Use backtrace function.

* sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Fix comment.
* sysdeps/unix/sysv/linux/ia64/register-dump.h: New file.
* sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h (GET_PC): Return sc_ip
field.

20 years ago[BZ #77]
Ulrich Drepper [Thu, 14 Oct 2004 02:08:23 +0000 (02:08 +0000)]
[BZ #77]

Update.
Add support for namespaces in the dynamic linker.
* dlfcn/Makefile (libdl-routines): Add dlmopen.
* dlfcn/Versions [libdl, GLIBC_2.3.4]: Add dlmopen.
* dlfcn/dlfcn.h: Define Lmid_t, LM_ID_BASE, and LM_ID_NEWLM.
Declare dlmopen.  Document RTLD_DI_LMID.
* dlfcn/dlinfo.c: Handle RTLD_DI_LMID.
* dlfcn/dlmopen.c: New file.
* dlfcn/dlopen.c: Pass new parameter to _dl_open.
* dlfcn/dlopenold.c: Likewise.
* elf/dl-addr.c: Adjust for removal of GL(dl_loaded).
* elf/dl-caller.c: Likewise.
* elf/dl-close.c: Likewise.
* elf/dl-conflict.c: Likewise.
* elf/dl-debug.c: Likewise.
* elf/dl-lookup.c: Likewise.
* elf/dl-sym.c: Likewise.
* elf/dl-version.c: Likewise.
* elf/do-lookup.h: Likewise.
* elf/rtld.c: Likewise.
* sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
* elf/dl-depsc: Likewise.  Add new parameter to _dl_map_object.
* elf/dl-fini.c: Call destructors in all namespaces.
* elf/dl-iteratephdr.c: Compute total nloaded.  Adjust for removal of
GL(dl_loaded).
* elf/dl-libc.c: Pass new parameter to _dl_open.  Adjust for removal
of GL(dl_loaded).
* elf/dl-load.c (_dl_map_object_from_fd): Don't load ld.so a second
time.  Reuse the one from the main namespace in all others.
Pass new parameter to _dl_new_object.
Adjust for removal of GL(dl_loaded).
* elf/dl-object.c: Take new parameter.  Use it to initialize l_ns.
Adjust for removal of GL(dl_loaded).
* elf/dl-open.c (_dl_open): Take new parameter.
Adjust for removal of GL(dl_loaded).
* elf/dl-support.c: Replace global _dl_loaded etc variables with
_dl_ns variable.
* include/dlfcn.h: Adjust prototype of _dl_open.
Define __LM_ID_CALLER.
* include/link.h: Add l_real, l_ns, and l_direct_opencount elements.
* sysdeps/generic/dl-tls.c: Bump TLS_STATIC_SURPLUS.  Since libc is
using TLS we need memory appropriate to the number of namespaces.
* sysdeps/generic/ldsodefs.h (struct rtld_global): Replace _dl_loaded,
_dl_nloaded, _dl_global_scope, _dl_main_searchlist, and
_dl_global_scope_alloc with _dl_ns element.  Define DL_NNS.
Adjust prototypes of _dl_map_object and member in rtld_global_ro.
* malloc/malloc.c: Include <dlfcn.h>.
* malloc/arena.c (ptmalloc_init): If libc is not in primary namespace,
never use brk.
* elf/Makefile: Add rules to build and run tst-dlmopen1 and
tst-dlmopen2.
* elf/tst-dlmopen1.c: New file.
* elf/tst-dlmopen1mod.c: New file.
* elf/tst-dlmopen2.c: New file.

* elf/dl-close.c: Improve reference counting by tracking direct loads.
* elf/dl-lookup.c (add_dependency): Likewise.
* elf/dl-open.c (dl_open_worker): Likewise.
* elf/rtld.c (dl_main): Likewise.

2004-09-09  GOTO Masanori  <gotom@debian.or.jp>

[BZ #77]
* elf/dl-close.c: Count down l_opencount to check not only for
l_reldeps, but also l_initfini.

2004-10-13  Ulrich Drepper  <drepper@redhat.com>

20 years agoUpdate.
Ulrich Drepper [Wed, 13 Oct 2004 19:27:57 +0000 (19:27 +0000)]
Update.

2004-10-13  Ulrich Drepper  <drepper@redhat.com>

* elf/dl-close.c (_dl_close): Update bug reporting instructions.

20 years agoUpdate.
Ulrich Drepper [Tue, 12 Oct 2004 06:19:23 +0000 (06:19 +0000)]
Update.

* timezone/asia: Update from tzdata2004e.
* timezone/southamerica: Likewise.
* timezone/private.h: Update from tzcode2004e.
* timezone/zdump.c: Likewise.

20 years agoUpdate.
Ulrich Drepper [Mon, 11 Oct 2004 22:28:15 +0000 (22:28 +0000)]
Update.

* stdio-common/vfscanf.c: Add support for reading localized
digits.  Patch mainly by Hamed Malek <hamed@bamdad.org>.

20 years ago[BZ #434]
Ulrich Drepper [Mon, 11 Oct 2004 20:50:24 +0000 (20:50 +0000)]
[BZ #434]

Update.
* resolv/res_init.c (res_thread_freeres): Reset _res.options.
[BZ #434]

20 years agoUpdate.
Ulrich Drepper [Mon, 11 Oct 2004 20:38:58 +0000 (20:38 +0000)]
Update.

* resolv/res_send.c (send_dg): Use nonblocking sockets.  Add
appropriate poll/select calls and restart operation if necessary.
Also handle EINTR.

20 years agoUpdate.
Ulrich Drepper [Mon, 11 Oct 2004 10:16:31 +0000 (10:16 +0000)]
Update.

* elf/tst-dlopenrpath.c (do_test): Enable code which was disabled
for debugging.

20 years agoUpdate.
Ulrich Drepper [Mon, 11 Oct 2004 07:16:47 +0000 (07:16 +0000)]
Update.

2004-10-11  Ulrich Drepper  <drepper@redhat.com>

* elf/dl-sym.c (do_sym): Avoid using global variable.

* elf/dl-addr.c (_dl_addr): Really use match everywhere.

20 years ago(_dl_addr): Really use match everwhere.
Ulrich Drepper [Mon, 11 Oct 2004 07:08:08 +0000 (07:08 +0000)]
(_dl_addr): Really use match everwhere.

20 years ago*** empty log message ***
Andreas Schwab [Sat, 9 Oct 2004 21:19:27 +0000 (21:19 +0000)]
*** empty log message ***

2004-10-09  Andreas Schwab  <schwab@suse.de>

* sysdeps/m68k/memcopy.h (WORD_COPY_BWD): Remove use of cast as
lvalue.

* sysdeps/m68k/fpu/bits/mathinline.h: Remove __THROW from inline
definitions.

20 years agoRemove __THROW from inline definitions.
Andreas Schwab [Sat, 9 Oct 2004 21:18:03 +0000 (21:18 +0000)]
Remove __THROW from inline definitions.

20 years agoFix typo in comment.
Ulrich Drepper [Fri, 8 Oct 2004 01:00:15 +0000 (01:00 +0000)]
Fix typo in comment.

20 years ago(__libc_current_sigrtmin): Fix typo in comment.
Ulrich Drepper [Fri, 8 Oct 2004 00:57:58 +0000 (00:57 +0000)]
(__libc_current_sigrtmin): Fix typo in comment.

20 years ago* misc/sys/uio.h: Change __vector to __iovec to avoid clash with
Roland McGrath [Thu, 7 Oct 2004 18:44:01 +0000 (18:44 +0000)]
* misc/sys/uio.h: Change __vector to __iovec to avoid clash with

altivec.

20 years ago2004-10-07 Andreas Schwab <schwab@suse.de>
Roland McGrath [Thu, 7 Oct 2004 18:43:52 +0000 (18:43 +0000)]
2004-10-07  Andreas Schwab  <schwab@suse.de>

* misc/sys/uio.h: Change __vector to __iovec to avoid clash with
altivec.

20 years agoUpdate.
Ulrich Drepper [Wed, 6 Oct 2004 22:09:35 +0000 (22:09 +0000)]
Update.

2004-10-06  Alan Modra  <amodra@bigpond.net.au>

* gmon/Makefile (CFLAGS-mcount.c): Move before inclusion of "Rules".
* sysdeps/powerpc/powerpc64/Makefile (CFLAGS-mcount.c): Add
-msoft-float.
* sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): New macros.
(CALL_MCOUNT): Replace with a gas macro implementation.
(EALIGN): Delete PROF version.
* sysdeps/powerpc/powerpc64/__longjmp-common.S: Invoke CALL_MCOUNT.
* sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Likewise.
* sysdeps/powerpc/powerpc64/bsd-setjmp.S: Likewise.
* sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
* sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
* sysdeps/powerpc/powerpc64/memset.S: Likewise.
* sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
* sysdeps/powerpc/powerpc64/strchr.S: Likewise.
* sysdeps/powerpc/powerpc64/strcmp.S: Likewise.
* sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
* sysdeps/powerpc/powerpc64/strlen.S: Likewise.
* sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
* sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
* sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
* sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
* sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
* sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
* sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
* sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
* sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
* sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
* sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
* sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
* sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
* sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
* sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
* sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.

* sysdeps/powerpc/powerpc64/setjmp-common.S: Add extra entry point
past _mcount call.
* sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Use it.
* sysdeps/powerpc/powerpc64/bsd-setjmp.S: Likewise.

20 years agoUpdate.
Ulrich Drepper [Wed, 6 Oct 2004 18:28:30 +0000 (18:28 +0000)]
Update.

2004-10-06  Ulrich Drepper  <drepper@redhat.com>

* resolv/res_mkquery.c (res_nmkquery): Reject randombits value if
low 16 bits are zero.

20 years agoUpdate.
Ulrich Drepper [Wed, 6 Oct 2004 18:09:57 +0000 (18:09 +0000)]
Update.

* posix/tst-getaddrinfo2.c: Include stdlib.h and string.h.
(do_test): Use %p instead of 0x%08X to print a pointer.

* malloc/malloc.c: Include stdio-common/_itoa.h.

20 years agoUpdate.
Ulrich Drepper [Wed, 6 Oct 2004 17:40:56 +0000 (17:40 +0000)]
Update.

2004-10-06  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/s390/jmpbuf-unwind.h: Include bits/wordsize.h.
(JMPBUF_CFA_UNWINDS_ADJ): Subtract 96 resp. 160 bytes from CFA.

20 years agoUpdate.
Ulrich Drepper [Wed, 6 Oct 2004 08:53:46 +0000 (08:53 +0000)]
Update.

2004-10-05  Dwayne Grant McConnell  <dgm69@us.ibm.com>

* pthread.c: Mask restart signal during cancel signal handler.

20 years agoUpdate.
Ulrich Drepper [Wed, 6 Oct 2004 08:01:28 +0000 (08:01 +0000)]
Update.

* tst-clock1.c: Change #ifdef to #if defined.
* tst-clock2.c: Likewise.
* tst-cond11.c: Likewise.

2004-10-05  Jakub Jelinek  <jakub@redhat.com>

20 years agoUpdate.
Ulrich Drepper [Wed, 6 Oct 2004 03:18:15 +0000 (03:18 +0000)]
Update.

2004-10-05  Ulrich Drepper  <drepper@redhat.com>

* elf/rtld.c (dl_main): Use _dl_debug_printf instead of _dl_printf
for prelink message.

20 years ago(System V Number Conversion): Fix return type of ecvt_r, fcvt_r, qecvt_r, and qfcvt_r.
Ulrich Drepper [Wed, 6 Oct 2004 03:02:14 +0000 (03:02 +0000)]
(System V Number Conversion): Fix return type of ecvt_r, fcvt_r, qecvt_r, and qfcvt_r.

20 years agotypo
Roland McGrath [Tue, 5 Oct 2004 18:46:44 +0000 (18:46 +0000)]
typo

(__lll_mutex_timedlock_wait): If woken but cannot get the lock,

20 years agoUpdate.
Ulrich Drepper [Tue, 5 Oct 2004 16:11:51 +0000 (16:11 +0000)]
Update.

2004-10-05  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Include dl-sysdep.h.
* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.

20 years agoUpdate.
Ulrich Drepper [Tue, 5 Oct 2004 15:36:41 +0000 (15:36 +0000)]
Update.

2004-10-05  Ulrich Drepper  <drepper@redhat.com>

* grp/initgroups.c: Remove duplicate group IDs.
* grp/compat-initgroups.c: Likewise.
* nscd/initgrcache.c: Likewise.

20 years agoUpdate.
Ulrich Drepper [Tue, 5 Oct 2004 09:26:23 +0000 (09:26 +0000)]
Update.

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.

20 years agoUpdate.
Ulrich Drepper [Mon, 4 Oct 2004 23:30:29 +0000 (23:30 +0000)]
Update.

* 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.

20 years agoUpdate.
Ulrich Drepper [Mon, 4 Oct 2004 23:22:47 +0000 (23:22 +0000)]
Update.

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.

20 years agoUpdate.
Ulrich Drepper [Mon, 4 Oct 2004 23:13:11 +0000 (23:13 +0000)]
Update.

* sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c
(clock_getcpuclockid): Add missing retval.

20 years ago(clock_getcpuclockid): Add missing retval.
Ulrich Drepper [Mon, 4 Oct 2004 23:12:07 +0000 (23:12 +0000)]
(clock_getcpuclockid): Add missing retval.

20 years ago* sysdeps/unix/sysv/linux/ia64/sysconf.c (linux_sysconf): Fix a typo.
Roland McGrath [Mon, 4 Oct 2004 22:27:43 +0000 (22:27 +0000)]
* sysdeps/unix/sysv/linux/ia64/sysconf.c (linux_sysconf): Fix a typo.

20 years ago* include/errno.h [RTLD_PRIVATE_ERRNO] (errno): Rename the real symbol
Roland McGrath [Mon, 4 Oct 2004 20:59:53 +0000 (20:59 +0000)]
* include/errno.h [RTLD_PRIVATE_ERRNO] (errno): Rename the real symbol

to rtld_errno.
* sysdeps/generic/errno.c [RTLD_PRIVATE_ERRNO] (rtld_errno): Define it,
and don't define any other errno names.
* sysdeps/unix/alpha/sysdep.h [RTLD_PRIVATE_ERRNO]: Use rtld_errno in
place of errno.
* sysdeps/unix/i386/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
* sysdeps/unix/x86_64/sysdep.S: Likewise.

* sysdeps/generic/errno.c [! USE___THREAD] (errno): Use `nocommon'
attribute instead of `section'.

are handled by one thread which then hands off the descriptors for the

20 years ago2004-10-04 Roland McGrath <roland@redhat.com>
Roland McGrath [Mon, 4 Oct 2004 20:59:38 +0000 (20:59 +0000)]
2004-10-04  Roland McGrath  <roland@redhat.com>

* include/errno.h [RTLD_PRIVATE_ERRNO] (errno): Rename the real symbol
to rtld_errno.
* sysdeps/generic/errno.c [RTLD_PRIVATE_ERRNO] (rtld_errno): Define it,
and don't define any other errno names.
* sysdeps/unix/alpha/sysdep.h [RTLD_PRIVATE_ERRNO]: Use rtld_errno in
place of errno.
* sysdeps/unix/i386/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
* sysdeps/unix/x86_64/sysdep.S: Likewise.

20 years agoUpdate.
Ulrich Drepper [Mon, 4 Oct 2004 20:51:25 +0000 (20:51 +0000)]
Update.

2004-10-04  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Define _POSIX_CPUTIME
and _POSIX_THREAD_CPUTIME to zero.
* sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise.
* tst-barrier2.c: Fix testing for POSIX feature.
* tst-clock1.c: Likewise.
* tst-clock2.c: Likewise.
* tst-cond11.c: Likewise.
* tst-cond4.c: Likewise.
* tst-cond6.c: Likewise.
* tst-flock2.c: Likewise.
* tst-mutex4.c: Likewise.
* tst-mutex9.c: Likewise.
* tst-rwlock12.c: Likewise.
* tst-rwlock4.c: Likewise.
* tst-signal1.c: Likewise.
* tst-spin2.c: Likewise.
* sysdeps/pthread/posix-timer.h: Likewise.
* sysdeps/pthread/timer_create.c: Likewise.
* sysdeps/pthread/timer_routines.c: Likewise.

20 years agoUpdate.
Ulrich Drepper [Mon, 4 Oct 2004 19:28:07 +0000 (19:28 +0000)]
Update.

* 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.

20 years agoUpdate.
Ulrich Drepper [Mon, 4 Oct 2004 16:35:54 +0000 (16:35 +0000)]
Update.

* 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.

20 years agoUpdate.
Ulrich Drepper [Mon, 4 Oct 2004 09:36:51 +0000 (09:36 +0000)]
Update.

* nscd/Makefile (nscd-modules): Add gai.
* nscd/gai.c: New file.

20 years ago[BZ #424]
Ulrich Drepper [Mon, 4 Oct 2004 07:52:12 +0000 (07:52 +0000)]
[BZ #424]

Update.
can't be used.  [BZ #424]

20 years agoUpdate.
Ulrich Drepper [Mon, 4 Oct 2004 07:45:53 +0000 (07:45 +0000)]
Update.

* assert/assert.h: Give up on using __builtin_expect.

20 years agoUpdate.
Ulrich Drepper [Mon, 4 Oct 2004 07:06:56 +0000 (07:06 +0000)]
Update.

2004-10-04  Ulrich Drepper  <drepper@redhat.com>

* elf/rtld.c (dl_main): Only skip => output in ldd mode if both
strings are identical.

20 years agoUpdate.
Ulrich Drepper [Mon, 4 Oct 2004 02:27:39 +0000 (02:27 +0000)]
Update.

2004-03-18  Jakub Jelinek  <jakub@redhat.com>

* malloc/arena.c (aligned_heap_area): New variable.
(new_heap): If aligned_heap_area != NULL, attempt to use that
first.  If HEAP_MAX_SIZE << 1 area is already HEAP_MAX_SIZE bytes
aligned, remember the second half in aligned_heap_area.
(delete_heap): Clear aligned_heap_area if deleting the area right
before aligned_heap_area.

20 years agoUpdate.
Ulrich Drepper [Sun, 3 Oct 2004 21:33:28 +0000 (21:33 +0000)]
Update.

2004-10-03  Juerg Billeter  <j@bitron.ch>

* nscd/nscd_initgroups.c (__nscd_getgrouplist): Return -1 if nscd
can't be used.

20 years agoUpdate.
Ulrich Drepper [Sun, 3 Oct 2004 21:11:37 +0000 (21:11 +0000)]
Update.

Dynamically create new threads if necessary.
* nscd/connections.c (fd_ready): If no thread available for processing
the request, create a new one unless the limit is reached.
(start_threads): Check errors from pthread_create.
* nscd/nscd.h: Declare max_nthreads.
* nscd/nscd_conf.c: Parse max-nthreads entry.
* nscd/nscd.conf: Add max-threads entry.
* nscd/nscd_stat.c: Print current and maximum number of threads.

20 years agoUpdate.
Ulrich Drepper [Sun, 3 Oct 2004 19:33:48 +0000 (19:33 +0000)]
Update.

Implement paranoia mode.
* nscd/connections.c (nscd_init): Mark database and socket descriptors
as close on exec.
(restart): New function.
(restart_p): New function.
(nscd_run): Add missing descrement of nready in case readylist is
empty.
(main_loop_poll): Call restart_p and restart.
(main_loop_epoll): Likewise.
(begin_drop_privileges): Save original UID and GID.
* nscd/nscd.c: Define new variables paranoia, restart_time,
restart_interval, oldcwd, old_gid, old_uid.
(main): Disable paranoia mode if we are not forking.
(check_pid): When re-execing, the PID file contains the same PID as
the current process.  Do not fail in this case.
* nscd/nscd.conf: Add paranoia and restart-interval entries.
* nscd/nscd.h: Define RESTART_INTERVAL.  Declare new variables.
* nscd/nscd_conf.c: Parse paranoia and restart-internal configurations.
* nscd/nscd_stat.c: Print paranoia and restart-internal values.

20 years agoUpdate.
Ulrich Drepper [Sun, 3 Oct 2004 07:33:54 +0000 (07:33 +0000)]
Update.

2004-10-03  Ulrich Drepper  <drepper@redhat.com>

* nscd/connections.c: Implement alternative loop for main thread
which uses epoll.
* sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
(CFLAGS-connections.c): Add -DHAVE_EPOLL.

* nscd/Makefile (CFLAGS-initgrcache.c): Add to CFLAGS-* variables,
don't replace old content.

20 years agoUpdate,
Ulrich Drepper [Sun, 3 Oct 2004 01:21:47 +0000 (01:21 +0000)]
Update,

* nscd/connections.c: Rewrite handling of incoming connections.  All
are handled by one thread which then hands of the descriptors for the
real work to the worker threads.
* nscd/Makefile: Link nscd with librt.

* nscd/selinux.c: Pretty printing.

* nscd/dbg_log.c (dbg_log): Don't add unnecessary newline to
output.  Let syslog do the formatting if debug_level == 0.

20 years agoUpdate.
Ulrich Drepper [Sat, 2 Oct 2004 19:31:11 +0000 (19:31 +0000)]
Update.

2004-10-02  Ulrich Drepper  <drepper@redhat.com>

* nscd/nscd_helper.c (get_mapping): No need to check timestamp if
nscd_certainly_running is nonzero.

20 years agoUpdate.
Ulrich Drepper [Fri, 1 Oct 2004 23:55:51 +0000 (23:55 +0000)]
Update.

* malloc/malloc.c (public_vALLOc): Add missing use of hooks.
(public_pVALLOc): Likewise.

20 years ago(public_vALLOc): Add missing use of hooks. (public_pVALLOc): Likewise.
Ulrich Drepper [Fri, 1 Oct 2004 23:51:18 +0000 (23:51 +0000)]
(public_vALLOc): Add missing use of hooks. (public_pVALLOc): Likewise.

20 years ago[BZ #420]
Roland McGrath [Fri, 1 Oct 2004 22:49:43 +0000 (22:49 +0000)]
[BZ #420]

2004-10-02  Simon Josefsson  <jas@extundo.com>
[BZ #420]
* sysdeps/generic/memmem.c [!_LIBC]: Define __builtin_expect, to
make the file usable inside gnulib.

20 years ago[BZ #420]
Roland McGrath [Fri, 1 Oct 2004 22:49:36 +0000 (22:49 +0000)]
[BZ #420]

2004-10-02  Simon Josefsson  <jas@extundo.com>
[BZ #420]
* sysdeps/generic/memmem.c [!_LIBC]: Define __builtin_expect, to
make the file usable inside gnulib.

20 years ago(__nscd_getgrouplist): Add assert.
Ulrich Drepper [Fri, 1 Oct 2004 21:35:08 +0000 (21:35 +0000)]
(__nscd_getgrouplist): Add assert.

20 years agoUpdate.
Ulrich Drepper [Fri, 1 Oct 2004 21:24:29 +0000 (21:24 +0000)]
Update.

* nscd/nscd_initgroups.c (__nscd_getgrouplist): Always add the
group the caller provided unless there is a real problem.

20 years agoUpdate.
Ulrich Drepper [Fri, 1 Oct 2004 15:44:06 +0000 (15:44 +0000)]
Update.

2004-10-01  Ulrich Drepper  <drepper@redhat.com>

* posix/bug-glob1.c (prepare): Fix creation of symlink.

20 years ago[BZ #417]
Ulrich Drepper [Fri, 1 Oct 2004 10:35:03 +0000 (10:35 +0000)]
[BZ #417]

20 years agoUpdate.
Ulrich Drepper [Fri, 1 Oct 2004 10:33:03 +0000 (10:33 +0000)]
Update.

2004-10-01  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S
(__lll_mutex_timedlock_wait): I woken but cannot get the lock,
make sure 2 is stored in the futex and we looked at the old value.
* sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
(__lll_mutex_timedlock_wait): Likewise.  Fix a few other problems
which might very well made the code not working at all before.

20 years agoUpdate.
Ulrich Drepper [Thu, 30 Sep 2004 23:13:17 +0000 (23:13 +0000)]
Update.

* posix/Makefile: Add rules to build and run bug-glob1.
* posix/bug-glob1.c: New file.

20 years agoUpdate.
Ulrich Drepper [Thu, 30 Sep 2004 08:56:32 +0000 (08:56 +0000)]
Update.

* iconv/iconv_prog.c (main): Print progress information to stderr.

20 years ago(CFLAGS-initgrcache.c): Set to -fexceptions.
Ulrich Drepper [Thu, 30 Sep 2004 08:35:09 +0000 (08:35 +0000)]
(CFLAGS-initgrcache.c): Set to -fexceptions.

20 years agoclients immediately stop using the database.
Ulrich Drepper [Thu, 30 Sep 2004 08:28:54 +0000 (08:28 +0000)]
clients immediately stop using the database.

20 years agoUpdate.
Ulrich Drepper [Thu, 30 Sep 2004 08:27:48 +0000 (08:27 +0000)]
Update.

* nscd/nscd.c (termination_handler): Reset timestamp so that
client immediately stop using the database.

(__nscd_drop_map_ref): Change second parameter to be a reference to
* nscd/nscd.h: Add declaration of addinitgroups and

20 years agoUpdate.
Ulrich Drepper [Thu, 30 Sep 2004 08:08:40 +0000 (08:08 +0000)]
Update.

2004-09-30  Ulrich Drepper  <drepper@redhat.com>

* nscd/nscd-client.h (__nscd_get_map_ref): Drop volatile from last
parameter.
(__nscd_drop_map_ref): Change second parameter to be a referenc to
a variable.  Update variable when cycle count changed.
* nscd/nscd_helper.c (__nscd_get_map_ref): Remove volatile here, too.
* nscd/nscd_getai.c: Correctly use __nscd_drop_map_ref.  Reinitialize
all variables and avoid memory leak in case of retries.
* nscd/nscd_getgr_r.c: Likewise.
* nscd/nscd_gethst_r.c: Likewise.
* nscd/nscd_getpw_r.c: Likewise.
* nscd/nscd_initgroups.c: Likewise.

* nscd/nscd.h: Add declaretion of addinitgroups and
readdinitgroups.

20 years ago(__nscd_get_map_ref): Drop volatile from last parameter. (__nscd_drop_map_ref): Chang...
Ulrich Drepper [Thu, 30 Sep 2004 08:03:44 +0000 (08:03 +0000)]
(__nscd_get_map_ref): Drop volatile from last parameter. (__nscd_drop_map_ref): Change second parameter to be a referenc to a variable.  Update variable when cycle count changed.

20 years ago* nscd/Makefile (CFLAGS-nscd_initgroups.c): Set to -fpie.
Andreas Jaeger [Thu, 30 Sep 2004 07:51:44 +0000 (07:51 +0000)]
* nscd/Makefile (CFLAGS-nscd_initgroups.c): Set to -fpie.

(CFLAGS-initgrcache.c): Likewise.

20 years ago(CFLAGS-nscd_initgroups.c): Set to -fpie. (CFLAGS-initgrcache.c): Likewise.
Andreas Jaeger [Thu, 30 Sep 2004 07:51:30 +0000 (07:51 +0000)]
(CFLAGS-nscd_initgroups.c): Set to -fpie. (CFLAGS-initgrcache.c): Likewise.

20 years agoAdd declaretion of addinitgroups and readdinitgroups.
Ulrich Drepper [Thu, 30 Sep 2004 07:15:40 +0000 (07:15 +0000)]
Add declaretion of addinitgroups and readdinitgroups.

20 years agoUpdate.
Ulrich Drepper [Thu, 30 Sep 2004 06:42:39 +0000 (06:42 +0000)]
Update.

2004-09-29  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/generic/glob.c (glob_in_dir): Don't blindly trust
readdir results; for symlinks or files of unknown type check using
stat whether the file exists.

* posix/tst-gnuglob.c (find_file): Handle leading "./".  Fix
recognition of files.

20 years agoUpdate.
Ulrich Drepper [Thu, 30 Sep 2004 06:16:50 +0000 (06:16 +0000)]
Update.

2004-09-29  Jakub Jelinek  <jakub@redhat.com>

* time/tzfile.c (tzfile_mtime): New variable.
(__tzfile_read): Reread the file if mtime is different.

2004-09-28  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/alpha/fpu/bits/mathinline.h (__fdimf, __fdim, fdimf, fdim):
Handle +inf/+inf.
* sysdeps/powerpc/fpu/bits/mathinline.h (fdim, fdimf): Likewise.
* sysdeps/sparc/fpu/bits/mathinline.h (fdim, fdimf): Likewise.

20 years agoUpdate.
Ulrich Drepper [Thu, 30 Sep 2004 05:16:40 +0000 (05:16 +0000)]
Update.

2004-09-29  Ulrich Drepper  <drepper@redhat.com>

* nscd/nscd_gethst_r.c (nscd_gethst_r): Use correct constant for
testing result of __nscd_get_map_ref.

20 years agoUpdate.
Ulrich Drepper [Thu, 30 Sep 2004 02:56:42 +0000 (02:56 +0000)]
Update.

2004-09-29  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/i386/fpu/s_fdim.S (__fdim): Handle +inf/+inf.
* sysdeps/i386/fpu/s_fdimf.S (__fdimf): Likewise.
* sysdeps/i386/fpu/s_fdiml.S (__fdiml): Likewise.

004-09-29  Ulrich Drepper  <drepper@redhat.com>

20 years agoUpdate.
Ulrich Drepper [Thu, 30 Sep 2004 02:24:51 +0000 (02:24 +0000)]
Update.

* grp/initgroups.c: Move compat_call implementation...
* grp/compat-initgroups.c: ...to here.  New file.
* grp/Makefile (distribute): Add compat-initgroups.c.
(CFLAGS-initgroups.c): Add -DUSE_NSCD=1.
* mscd/initgrcache.c: New file.
* nscd/nscd_initgroups.c: New file.
* nscd/Makefile (routines): Add nscd_initgroups.
(nscd-modules): Add initgrcache.
* nscd/cache.c (prune_cache): Add support for INITGROUPS entries.
* nscd/connections.c: Handle INITGROUPS requests.
* nscd/nscd-client.h: Define INITGROUPS, initgr_response_header.
Add initgrdata element to struct datahead.  Fix typo in comment.
* nscd/nscd_proto.h: Declare __nscd_getgrouplist.  Fix parameter
type in __nscd_getgrgrid_r.
* nscd/selinux.c (perms): Add INITGROUPS entry.

* nscd/nscd_getai.c: No need to include <sys/mman.h>.

* sunrpc/get_myaddr.c (get_myaddress): Account for interfaces without
assigned addresses.
* sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
* sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
* sunrpc/clnt_udp.c (is_network_up): Likewise.

20 years agoUpdate.
Ulrich Drepper [Wed, 29 Sep 2004 22:47:22 +0000 (22:47 +0000)]
Update.

* nscd/nscd.c: Define getaddrinfo hidden so that it is never found
outside.

20 years agoUpdate.
Ulrich Drepper [Wed, 29 Sep 2004 18:00:18 +0000 (18:00 +0000)]
Update.

Renamed from si_flags due to conflict with si_flags from <elf.h>.

20 years agoUpdate.
Ulrich Drepper [Wed, 29 Sep 2004 17:59:24 +0000 (17:59 +0000)]
Update.

Renamed from si_flags due to comflict with si_flags from <elf.h>.

20 years agoUpdate.
Ulrich Drepper [Wed, 29 Sep 2004 17:52:21 +0000 (17:52 +0000)]
Update.

2004-09-29  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (si_segvflags):
Renamed from si+flags due to comflict with si_flags from <elf.h>.

20 years agoUpdate.
Ulrich Drepper [Wed, 29 Sep 2004 05:59:26 +0000 (05:59 +0000)]
Update.

* nscd/nscd_getai.c: Use NO_MAPPING instead of MAP_FAILED for test
of failing __nscd_get_map_ref.  Fix a few typos.

20 years agoUpdate.
Ulrich Drepper [Tue, 28 Sep 2004 23:08:14 +0000 (23:08 +0000)]
Update.

* sunrpc/Makefile (xtests): Add tst-getmyaddr.
* sunrpc/tst-getmyaddr.c: New file.

20 years agoUpdate.
Ulrich Drepper [Tue, 28 Sep 2004 22:44:12 +0000 (22:44 +0000)]
Update.

* sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Make sure
SIGSETXID is not blocked.
* sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Likewise.
* sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
* sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
* sysdeps/generic/sigfillset.c (sigfillset): Don't set SIGSETXID.

20 years agoUpdate.
Ulrich Drepper [Tue, 28 Sep 2004 22:16:26 +0000 (22:16 +0000)]
Update.

* sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.

20 years agoUpdate.
Ulrich Drepper [Tue, 28 Sep 2004 22:13:11 +0000 (22:13 +0000)]
Update.

* sunrpc/get_myaddr.c (get_myaddress): Fix test for failing
getifaddrs call.
* sunrpc/pmap_clnt.c (__get_myaddress): Likewise.

20 years agoUpdate.
Ulrich Drepper [Tue, 28 Sep 2004 18:25:52 +0000 (18:25 +0000)]
Update.

* malloc/arena.c (ptmalloc_init): Allow MALLOC_CHECK_==0 to
disable all checking.

20 years agoUpdate.
Ulrich Drepper [Tue, 28 Sep 2004 10:36:33 +0000 (10:36 +0000)]
Update.

2004-09-28  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t):
Add __extension__ to long long types.
* sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.

20 years agoUpdate.
Ulrich Drepper [Tue, 28 Sep 2004 08:59:29 +0000 (08:59 +0000)]
Update.

2004-09-28  Ulrich Drepper  <drepper@redhat.com>

* locales/nb_NO: Make language field consistent in form with nn_NO.

20 years agoUpdate.
Ulrich Drepper [Tue, 28 Sep 2004 07:57:56 +0000 (07:57 +0000)]
Update.

2004-09-28  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (si_flags): Add
support to get this value.

20 years agoUpdate.
Ulrich Drepper [Tue, 28 Sep 2004 07:46:43 +0000 (07:46 +0000)]
Update.

2004-09-28  Jakub Jelinek  <jakub@redhat.com>

* io/utime.h (utime): Allow second argument to be NULL.

20 years agoUpdate.
Ulrich Drepper [Tue, 28 Sep 2004 07:13:35 +0000 (07:13 +0000)]
Update.

2004-09-28  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/posix/getaddrinfo.c (gaih_inet): If NAME is a numerical IP
address and AI_CANONNAME is set, return copy of NAME as ai_canonname.

20 years ago(gaih_inet): If NAME is a numerical IP address and AI_CANONNAME is set, return copy...
Ulrich Drepper [Tue, 28 Sep 2004 07:11:00 +0000 (07:11 +0000)]
(gaih_inet): If NAME is a numerical IP address and AI_CANONNAME is set, return copy of NAME as ai_canonname.

20 years ago(elf_machine_rela_relative): Replace static inline by auto inline, add always_inline...
Andreas Jaeger [Tue, 28 Sep 2004 04:54:41 +0000 (04:54 +0000)]
(elf_machine_rela_relative): Replace static inline by auto inline, add always_inline attribute. (elf_machine_rel): Likewise. (elf_machine_rela): Likewise. (elf_machine_lazy_rel): Likewise. (elf_machine_lazy_rela): Likewise. (elf_machine_rel_relative): Likewise.

2004-09-27  Andreas Jaeger  <aj@suse.de>

* sysdeps/i386/dl-machine.h (elf_machine_rela_relative): Replace
static inline by auto inline, add always_inline attribute.
(elf_machine_rel): Likewise.
(elf_machine_rela): Likewise.
(elf_machine_lazy_rel): Likewise.
(elf_machine_lazy_rela): Likewise.
(elf_machine_rel_relative): Likewise.

20 years agoUpdate.
Ulrich Drepper [Tue, 28 Sep 2004 04:38:21 +0000 (04:38 +0000)]
Update.

2004-09-27  Ulrich Drepper  <drepper@redhat.com>

* locales/cy_GB: Fix d_t_fmt ("a viz" -> "mis").
Reported by Alan Cox <alan@redhat.com>.

20 years agoUpdate.
Ulrich Drepper [Tue, 28 Sep 2004 03:02:24 +0000 (03:02 +0000)]
Update.

* sunrpc/xdr_intXX_t.c: Add xdr_quad_t and xdr_u_quad_t aliases.
* sunrpc/rpc/xdr.h: Declare xdr_quad_t and xdr_u_quad_t.
* sunrpc/Versions: Export xdr_quad_t and xdr_u_quad_t.

20 years agoUpdate.
Ulrich Drepper [Tue, 28 Sep 2004 02:05:12 +0000 (02:05 +0000)]
Update.

2004-09-27  Ulrich Drepper  <drepper@redhat.com>

* sunrpc/rpc_parse.c (get_type): Use "quad_t" for TOK_HYPER.
Otherwise isvectordef will loop infinitely if typedef hyper int64_t
is seen.
(unsigned_dec): Use "u_quad_t" for similar reasons.

20 years agoActually, quad_t and u_quad_t are better choices.
Ulrich Drepper [Tue, 28 Sep 2004 02:03:49 +0000 (02:03 +0000)]
Actually, quad_t and u_quad_t are better choices.

20 years ago[BZ #409]
Roland McGrath [Tue, 28 Sep 2004 01:59:52 +0000 (01:59 +0000)]
[BZ #409]

add bz tag
[BZ #409]

20 years ago* sysdeps/generic/bits/waitstatus.h (__WIFSIGNALED): Simplify bit
Roland McGrath [Tue, 28 Sep 2004 01:58:10 +0000 (01:58 +0000)]
* sysdeps/generic/bits/waitstatus.h (__WIFSIGNALED): Simplify bit

twiddling in last change.

20 years ago2004-09-27 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 28 Sep 2004 01:58:03 +0000 (01:58 +0000)]
2004-09-27  Roland McGrath  <roland@redhat.com>

* sysdeps/generic/bits/waitstatus.h (__WIFSIGNALED): Simplify bit
twiddling in last change.

20 years ago(get_type): Use "long long" for TOK_HYPER. Otherwise isvectordef will loop infinitel...
Ulrich Drepper [Tue, 28 Sep 2004 01:57:41 +0000 (01:57 +0000)]
(get_type): Use "long long" for TOK_HYPER.  Otherwise isvectordef will loop infinitely if typedef hyper int64_6 is seen. (unsigned_dec): Use "unsigned long long" for similar reasons.

20 years ago* posix/tst-waitid.c (do_test): Add tests for waitpid with WCONTINUED.
Roland McGrath [Tue, 28 Sep 2004 01:42:49 +0000 (01:42 +0000)]
* posix/tst-waitid.c (do_test): Add tests for waitpid with WCONTINUED.

* posix/sys/wait.h [__WIFCONTINUED] (WIFCONTINUED): New macro.
* stdlib/stdlib.h [__WIFCONTINUED] (WIFCONTINUED): New macro.
* sysdeps/generic/bits/waitstatus.h (__W_CONTINUED): New macro.
[WCONTINUED] (__WIFCONTINUED): New macro.
(__WIFSIGNALED): Rewritten to exclude __W_CONTINUED value, and have no
branches.