platform/upstream/glibc.git
21 years agoUpdate.
Ulrich Drepper [Wed, 29 Jan 2003 03:25:37 +0000 (03:25 +0000)]
Update.

(__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.

21 years agoUpdate.
Ulrich Drepper [Wed, 29 Jan 2003 03:14:29 +0000 (03:14 +0000)]
Update.

2003-01-28  Steven Munroe  <sjmunroe@us.ibm.com>

* sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
(__fe_nomask_env): Change __prctl call to INLINE_SYSCALL.

21 years agoUpdate.
Ulrich Drepper [Wed, 29 Jan 2003 00:39:03 +0000 (00:39 +0000)]
Update.

* Makefile (libpthread-routines): Remove lowlevelrwlock.  Add
pthread_rwlock_rdlock, pthread_rwlock_timedrdlock,
pthread_rwlock_wrlock, pthread_rwlock_timedwrlock, and
pthread_rwlock_unlock.
* sysdeps/unix/sysv/linux/i386/i486/lowlevelrwlock.S: Removed
* sysdeps/unix/sysv/linux/i386/i586/lowlevelrwlock.S: Removed
* sysdeps/unix/sysv/linux/i386/i686/lowlevelrwlock.S: Removed
* sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: New file.
* sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
New file.
* sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: New file.
* sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
New file.
* sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: New file.
* sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: New file.
* sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
New file.
* sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: New file.
* sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
New file.
* sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: New file.
* sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: New file.
* sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
New file.
* sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: New file.
* sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
New file.
* sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: New file.

21 years agoUpdate.
Ulrich Drepper [Wed, 29 Jan 2003 00:01:01 +0000 (00:01 +0000)]
Update.

* sysdeps/unix/sysv/linux/i386/i486/lowlevelsem.S: Removed
* sysdeps/unix/sysv/linux/i386/i486/lowlevelcond.S: Removed
* sysdeps/unix/sysv/linux/i386/i586/lowlevelsem.S: Removed
* sysdeps/unix/sysv/linux/i386/i586/lowlevelcond.S: Removed
* sysdeps/unix/sysv/linux/i386/i686/lowlevelsem.S: Removed
* sysdeps/unix/sysv/linux/i386/i686/lowlevelcond.S: Removed
* sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: New file.
* sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: New file.
* sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: New file.
* sysdeps/unix/sysv/linux/i386/i486/sem_post.S: New file.
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: New file.
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: New file.
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: New file.
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: New file.
* sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: New file.
* sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: New file.
* sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: New file.
* sysdeps/unix/sysv/linux/i386/i586/sem_post.S: New file.
* sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: New file.
* sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: New file.
* sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: New file.
* sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: New file.
* sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: New file.
* sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: New file.
* sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: New file.
* sysdeps/unix/sysv/linux/i386/i686/sem_post.S: New file.
* sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: New file.
* sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: New file.
* sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: New file.
* sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: New file.
* sysdeps/unix/sysv/linux/i386/lowlevelcond.h: New file.

21 years agoUpdate.
Ulrich Drepper [Tue, 28 Jan 2003 23:52:31 +0000 (23:52 +0000)]
Update.

* Makefile (libpthread-routines): Remove lowlevelcond and
lowlevelsem.  Add sem_wait, sem_trywait, sem_timedwait, sem_post,
pthread_cond_wait, pthread_cond_timedwait, pthread_cond_signal,
and pthread_cond_broadcast.
* sysdeps/unix/sysv/linux/i486/lowlevelsem.S: Removed
* sysdeps/unix/sysv/linux/i486/lowlevelcond.S: Removed
* sysdeps/unix/sysv/linux/i586/lowlevelsem.S: Removed
* sysdeps/unix/sysv/linux/i586/lowlevelcond.S: Removed
* sysdeps/unix/sysv/linux/i686/lowlevelsem.S: Removed
* sysdeps/unix/sysv/linux/i686/lowlevelcond.S: Removed
* sysdeps/unix/sysv/linux/i486/sem_wait.S: New file.
* sysdeps/unix/sysv/linux/i486/sem_trywait.S: New file.
* sysdeps/unix/sysv/linux/i486/sem_timedwait.S: New file.
* sysdeps/unix/sysv/linux/i486/sem_post.S: New file.
* sysdeps/unix/sysv/linux/i486/pthread_cond_wait.S: New file.
* sysdeps/unix/sysv/linux/i486/pthread_cond_timedwait.S: New file.
* sysdeps/unix/sysv/linux/i486/pthread_cond_signal.S: New file.
* sysdeps/unix/sysv/linux/i486/pthread_cond_broadcast.S: New file.
* sysdeps/unix/sysv/linux/i586/sem_wait.S: New file.
* sysdeps/unix/sysv/linux/i586/sem_trywait.S: New file.
* sysdeps/unix/sysv/linux/i586/sem_timedwait.S: New file.
* sysdeps/unix/sysv/linux/i586/sem_post.S: New file.
* sysdeps/unix/sysv/linux/i586/pthread_cond_wait.S: New file.
* sysdeps/unix/sysv/linux/i586/pthread_cond_timedwait.S: New file.
* sysdeps/unix/sysv/linux/i586/pthread_cond_signal.S: New file.
* sysdeps/unix/sysv/linux/i586/pthread_cond_broadcast.S: New file.
* sysdeps/unix/sysv/linux/i686/sem_wait.S: New file.
* sysdeps/unix/sysv/linux/i686/sem_trywait.S: New file.
* sysdeps/unix/sysv/linux/i686/sem_timedwait.S: New file.
* sysdeps/unix/sysv/linux/i686/sem_post.S: New file.
* sysdeps/unix/sysv/linux/i686/pthread_cond_wait.S: New file.
* sysdeps/unix/sysv/linux/i686/pthread_cond_timedwait.S: New file.
* sysdeps/unix/sysv/linux/i686/pthread_cond_signal.S: New file.
* sysdeps/unix/sysv/linux/i686/pthread_cond_broadcast.S: New file.

21 years agoUpdate.
Ulrich Drepper [Tue, 28 Jan 2003 18:51:03 +0000 (18:51 +0000)]
Update.

2003-01-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>

* sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
clone parameters to match the order used on ia32.
* sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.

21 years agoUpdate.
Ulrich Drepper [Tue, 28 Jan 2003 10:42:28 +0000 (10:42 +0000)]
Update.

2003-01-27  Martin Schwidefsky  <schwidefsky@de.ibm.com>

* elf/elf.h: Add new s390 relocs.
* elf/tls-macros.h: Add s390 versions.
* sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
* sysdeps/s390/dl-tls.h: New file.
* sysdeps/s390/libc-tls.c: New file.
* sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
relocs for class PLT.
(elf_machine_rela): Handle TLS relocs.
* sysdeps/s390/s390-64/dl-machine.h: Likewise.
* sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
* sysdeps/s390/s390-64/elf/configure.in: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
CLONE_CHILD_*TID flags.
* sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
bit offset.
* sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
(SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
(SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
variants.
* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
(SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
(SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
variants.

21 years agoUpdate.
Ulrich Drepper [Tue, 28 Jan 2003 09:08:07 +0000 (09:08 +0000)]
Update.

2003-01-28  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/common/pause.c (do_pause): New function.  Split
from __libc_pause.  Implement using sigsuspend.
(__libc_pause): Call do_pause to do the real work.

* sysdeps/posix/sigpause.c (do_sigpause): Check range of
sig_or_mask parameter is is_sig != 0.

21 years agoUpdate.
Ulrich Drepper [Tue, 28 Jan 2003 08:30:50 +0000 (08:30 +0000)]
Update.

2003-01-21  Philip Blundell  <philb@gnu.org>

* sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.

21 years agoUpdate.
Ulrich Drepper [Tue, 28 Jan 2003 07:32:19 +0000 (07:32 +0000)]
Update.

* stdio-common/bug14.c: Use official name for the locale.

21 years agoUpdate.
Ulrich Drepper [Tue, 28 Jan 2003 07:27:15 +0000 (07:27 +0000)]
Update.

2003-01-27  Steven Munroe  <sjmunroe@us.ibm.com>

* stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.

21 years agoUpdate.
Ulrich Drepper [Tue, 28 Jan 2003 06:46:50 +0000 (06:46 +0000)]
Update.

* stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
instead of __libc_cleanup_region_start and _IO_cleanup_region_end
instead of __libc_cleanup_region_end.

* sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
as first parameter to __libc_cleanup_region_start.

21 years agoUpdate.
Ulrich Drepper [Tue, 28 Jan 2003 05:59:24 +0000 (05:59 +0000)]
Update.

* sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
(__fe_nomask_env): Use __prctl not prctl.
* sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
prctl syscall.

21 years agoUpdate.
Ulrich Drepper [Tue, 28 Jan 2003 00:50:31 +0000 (00:50 +0000)]
Update.

* elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.

* elf/dl-open.c (_dl_tls_static_size): Bump to 2048.

21 years agoUpdate.
Ulrich Drepper [Mon, 27 Jan 2003 22:08:50 +0000 (22:08 +0000)]
Update.

2003-01-27  Ulrich Drepper  <drepper@redhat.com>

* elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
wrap-around in test.

21 years agoUpdate.
Ulrich Drepper [Mon, 27 Jan 2003 21:03:22 +0000 (21:03 +0000)]
Update.

2003-01-26  Andreas Schwab  <schwab@suse.de>

* sysdeps/wordsize-32/divdi3.c: Export the functions only as
compatibility symbols.  Remove INTDEF for __divdi3.
* sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
* sysdeps/powerpc/powerpc32/divdi3.c: Remove.
* sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
define.
* sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.

2003-01-24  Jakub Jelinek  <jakub@redhat.com>

* elf/tls-macros.h: Add SPARC 32-bit definitions.
* sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
* sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
for the first half of the header.  Include tls.h.
(elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
relocs too.
(elf_machine_rela): Handle TLS relocs.
* sysdeps/sparc/dl-tls.h: New file.

* sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
support.

* sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
* sysdeps/sparc/sparc32/memchr.S: Likewise.
* sysdeps/sparc/sparc32/memcpy.S: Likewise.
* sysdeps/sparc/sparc32/strcat.S: Likewise.
* sysdeps/sparc/sparc32/strchr.S: Likewise.
* sysdeps/sparc/sparc32/strcmp.S: Likewise.
* sysdeps/sparc/sparc32/strcpy.S: Likewise.
* sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
* sysdeps/sparc/sparc64/hp-timing.h: Likewise.
* sysdeps/sparc/sparc64/memcpy.S: Likewise.
* sysdeps/sparc/sparc64/stpcpy.S: Likewise.
* sysdeps/sparc/sparc64/stpncpy.S: Likewise.
* sysdeps/sparc/sparc64/strcat.S: Likewise.
* sysdeps/sparc/sparc64/strchr.S: Likewise.
* sysdeps/sparc/sparc64/strcmp.S: Likewise.
* sysdeps/sparc/sparc64/strcpy.S: Likewise.
* sysdeps/sparc/sparc64/strncmp.S: Likewise.
* sysdeps/sparc/sparc64/strncpy.S: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.

2003-01-24  Andreas Schwab  <schwab@suse.de>

* elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
elements, and process them backwards.
* elf/Makefile ($(objpfx)tst-array4): New target.
($(objpfx)tst-array4.out): Likewise.
(tests) [$(have-initfini-array) = yes]: Add tst-array4.
* elf/tst-array4.c: New file.
* elf/tst-array4.exp: Likewise.

2003-01-24  Steven Munroe  <sjmunroe@us.ibm.com>

* sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.

2003-01-27  Guido Guenther  <agx@sigxcpu.org>

* sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
* sysdeps/unix/sysv/linux/mips/pread.c: Add support for
cancellation handling and handle both __NR_pread64 and __NR_pread.
* sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
* sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
* sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
* sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
case, use register names consistently.

2003-01-27  Wolfram Gloger  <wg@malloc.de>

* malloc/hooks.c (mem2chunk_check): Check alignment of mem
pointer, not of the computed chunk.  Bug report from Carlos
O'Donell <carlos@baldric.uwo.ca>.

21 years agoUpdate.
Ulrich Drepper [Mon, 27 Jan 2003 18:58:29 +0000 (18:58 +0000)]
Update.

2003-01-25  Guido Guenther  <agx@sigxcpu.org>

* sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: New file.
* sysdeps/unix/sysv/linux/mips/Makefile: New file.

21 years ago(mem2chunk_check): Check alignment of mem pointer, not of the computed chunk.
Ulrich Drepper [Mon, 27 Jan 2003 18:32:36 +0000 (18:32 +0000)]
(mem2chunk_check): Check alignment of mem pointer, not of the computed chunk.

21 years ago* sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
Andreas Schwab [Sat, 25 Jan 2003 23:07:37 +0000 (23:07 +0000)]
* sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative

addressing to save GOT entries.

21 years ago(_dl_start_user): Use pc-relative addressing to save GOT entries.
Andreas Schwab [Sat, 25 Jan 2003 23:07:04 +0000 (23:07 +0000)]
(_dl_start_user): Use pc-relative addressing to save GOT entries.

21 years agoadd item about pgrp
Roland McGrath [Wed, 22 Jan 2003 11:30:53 +0000 (11:30 +0000)]
add item about pgrp

21 years ago* sysdeps/unix/alpha/sysdep.h (inline_syscall0,
Roland McGrath [Wed, 22 Jan 2003 02:08:22 +0000 (02:08 +0000)]
* sysdeps/unix/alpha/sysdep.h (inline_syscall0,

inline_syscall1, inline_syscall2, inline_syscall3,
inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
* sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
__attribute__((unused)) to ChEcK.

21 years ago2003-01-21 Jakub Jelinek <jakub@redhat.com>
Roland McGrath [Wed, 22 Jan 2003 02:07:54 +0000 (02:07 +0000)]
2003-01-21  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/alpha/sysdep.h (inline_syscall0,
inline_syscall1, inline_syscall2, inline_syscall3,
inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
* sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
__attribute__((unused)) to ChEcK.

21 years agoUpdate.
Ulrich Drepper [Tue, 21 Jan 2003 05:45:26 +0000 (05:45 +0000)]
Update.

21 years agoUpdate.
Ulrich Drepper [Mon, 20 Jan 2003 18:59:08 +0000 (18:59 +0000)]
Update.

2003-01-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>

* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
Fix inline assembler constraints.
* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
Likewise.

* sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
-fPIC.

21 years agoAvoid non pc relative reference to __fork.
Ulrich Drepper [Mon, 20 Jan 2003 18:53:07 +0000 (18:53 +0000)]
Avoid non pc relative reference to __fork.

21 years ago* sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
Roland McGrath [Mon, 20 Jan 2003 05:25:38 +0000 (05:25 +0000)]
* sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really

compute the cosine, not the sine, even if x > 0.8.

21 years ago2003-01-20 Segher Boessenkool <segher@koffie.nl>
Roland McGrath [Mon, 20 Jan 2003 05:25:30 +0000 (05:25 +0000)]
2003-01-20  Segher Boessenkool  <segher@koffie.nl>

* sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
compute the cosine, not the sine, even if x > 0.8.

21 years agoUpdate.
Ulrich Drepper [Sun, 19 Jan 2003 19:22:02 +0000 (19:22 +0000)]
Update.

2003-01-19  Ulrich Drepper  <drepper@redhat.com>

* nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
_nss_nis_setspent.  Work around the different prototypes.
* nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
internal_nis_endrpcent.
(internal_nis_endrpcent): Change return type to void.  Change callers.
* nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
_nss_nis_setpwent.  Work around the different prototypes.
* nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
of the function to...
(internal_nis_endprotoent): ... here.  New function.
(internal_nis_setprotoent): Use internal_nis_endprotoent.
* nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
_nss_nis_setnetent.  Work around the different prototypes.
* nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
of the function to...
(internal_nis_endnetgrent): ... here.  New function.
(_nss_nis_setnetgrent): Use internal_nis_endnetgrent.

21 years agoUpdate.
Ulrich Drepper [Sun, 19 Jan 2003 18:39:38 +0000 (18:39 +0000)]
Update.

2003-01-19  Jim Meyering  <jim@meyering.net>

* time/strftime.c: (widen): Merge nearly-identical definitions.
(nl_get_alt_digit) [! defined my_strftime]: Define.
(my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
_nl_get_alt_digit and _nl_get_walt_digit.

21 years agoUpdate.
Ulrich Drepper [Sun, 19 Jan 2003 10:05:55 +0000 (10:05 +0000)]
Update.

2003-01-19  Ulrich Drepper  <drepper@redhat.com>

* time/strftime.c (my_strftime): Handle very large width
specifications for numeric values correctly.  Improve checks for
overflow.
* time/Makefile (tests): Add tst-strftime.
* time/tst-strftime.c: New file.

21 years agoUpdate.
Ulrich Drepper [Sat, 18 Jan 2003 10:42:51 +0000 (10:42 +0000)]
Update.

* nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
_nss_nis_sethostent.  Work around the different prototypes.
* nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
_nss_nis_setgrent.  Work around the different prototypes.
* nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
function.  Split out from _nss_nis_endetherent.
(internal_nis_setetherent): Use internal_nis_endetherent instead of
duplicating the code.
* nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
of _nss_nis_setaliasent.
* nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
internal_nis_endservent code, don't duplicate it.

21 years agoUpdate.
Ulrich Drepper [Sat, 18 Jan 2003 10:12:37 +0000 (10:12 +0000)]
Update.

2003-01-18  Ulrich Drepper  <drepper@redhat.com>

* inet/rexec.c (rexec_af): Protect socket operations with
TEMP_FAILURE_RETRY.  Use writev instead of multiple write.
* inet/rcmd.c (rcmd_af): Likewise.

21 years ago(rcmd_af): Protect socket operations with TEMP_FAILURE_RETRY. Use writev instead...
Ulrich Drepper [Sat, 18 Jan 2003 10:07:01 +0000 (10:07 +0000)]
(rcmd_af): Protect socket operations with TEMP_FAILURE_RETRY.  Use writev instead of multiple write.

21 years ago* math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
Roland McGrath [Sat, 18 Jan 2003 01:50:46 +0000 (01:50 +0000)]
* math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:

Add test of value 0.80190127184058835.

21 years ago* elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
Roland McGrath [Fri, 17 Jan 2003 21:37:06 +0000 (21:37 +0000)]
* elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.

21 years ago2003-01-17 Roland McGrath <roland@redhat.com>
Roland McGrath [Fri, 17 Jan 2003 21:37:00 +0000 (21:37 +0000)]
2003-01-17  Roland McGrath  <roland@redhat.com>

* elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.

21 years agoUpdate.
Ulrich Drepper [Fri, 17 Jan 2003 19:57:05 +0000 (19:57 +0000)]
Update.

2003-01-17  Richard Henderson  <rth@redhat.com>

* sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
relocs for class PLT.
* sysdeps/alpha/libc-tls.c: New file.
* sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
(LOADGP) [!PIC]: Rewrite to preserve caller's gp.

2003-01-17  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
__libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
on _dl_static_lock.

21 years ago(_dl_static_init): Use __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un...
Ulrich Drepper [Fri, 17 Jan 2003 19:14:38 +0000 (19:14 +0000)]
(_dl_static_init): Use __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock on _dl_static_lock.

21 years agoUpdate.
Andreas Jaeger [Fri, 17 Jan 2003 11:58:21 +0000 (11:58 +0000)]
Update.

2003-01-17  Andreas Jaeger  <aj@suse.de>

* stdio-common/bug14.c: Include stdlib.h for exit prototype.

21 years agoInclude stdlib.h for exit prototype.
Andreas Jaeger [Fri, 17 Jan 2003 11:58:12 +0000 (11:58 +0000)]
Include stdlib.h for exit prototype.

21 years agoUpdate.
Ulrich Drepper [Fri, 17 Jan 2003 10:07:21 +0000 (10:07 +0000)]
Update.

2003-01-17  Ulrich Drepper  <drepper@redhat.com>

* Makefile (headers): Add bits/semaphore.h.

21 years agoUpdate.
Ulrich Drepper [Fri, 17 Jan 2003 01:02:24 +0000 (01:02 +0000)]
Update.

2003-01-16  Steven Munroe  <sjmunroe@us.ibm.com>

* sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
* sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
* sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
is 2.4.21.

2003-01-16  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/generic/glob.c (glob): Assume sysconf() always returns
values != -1 for _LIBC.  Use extend_alloca to reallocate alloca'ed
buffers.

* sysdeps/generic/sysconf.c: Unconditionally implement
_SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
* sysdeps/posix/sysconf.c: Likewise.

21 years agoUpdate.
Ulrich Drepper [Thu, 16 Jan 2003 19:20:36 +0000 (19:20 +0000)]
Update.

* posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
set *err to the returned error, not to REG_ESPACE unconditionally.
(build_word_op): Likewise.
* posix/Makefile (tests): Add bug-regex16.
* posix/bug-regex16.c: New test.

2003-01-16  Jakub Jelinek  <jakub@redhat.com>

21 years agoUpdate.
Ulrich Drepper [Thu, 16 Jan 2003 18:24:32 +0000 (18:24 +0000)]
Update.

2003-01-16  Jakub Jelinek  <jakub@redhat.com>

* elf/dl-load.c (_dl_map_object_from_fd): Use
GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
been already initialized.

21 years agoUpdate.
Ulrich Drepper [Thu, 16 Jan 2003 18:14:10 +0000 (18:14 +0000)]
Update.

2003-01-15  Dmitry V. Levin  <ldv@altlinux.org>

* sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.

21 years agoUpdate.
Ulrich Drepper [Thu, 16 Jan 2003 17:29:07 +0000 (17:29 +0000)]
Update.

2003-01-16  Jakub Jelinek  <jakub@redhat.com>

* posix/regcomp.c (re_compile_internal): If clearing buffer, clear
allocated too.  Reported by Al Viro <aviro@redhat.com>.

21 years ago(re_compile_internal): If clearing buffer, clear allocated too.
Ulrich Drepper [Thu, 16 Jan 2003 17:27:50 +0000 (17:27 +0000)]
(re_compile_internal): If clearing buffer, clear allocated too.

21 years agoTweak merged .abilist file format to merge duplicate symbols in
Roland McGrath [Thu, 16 Jan 2003 11:29:14 +0000 (11:29 +0000)]
Tweak merged .abilist file format to merge duplicate symbols in

different sets into multi-version stanzas with new "| SET regexp..."
header continuation lines.
* scripts/merge-abilist.awk: Rewritten for new format.
* scripts/extract-abilist.awk: Likewise.

21 years ago2003-01-16 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 16 Jan 2003 11:28:59 +0000 (11:28 +0000)]
2003-01-16  Roland McGrath  <roland@redhat.com>

Tweak merged .abilist file format to merge duplicate symbols in
different sets into multi-version stanzas with new "| SET regexp..."
header continuation lines.
* scripts/merge-abilist.awk: Rewritten for new format.
* scripts/extract-abilist.awk: Likewise.

21 years agoUpdate.
Ulrich Drepper [Thu, 16 Jan 2003 07:54:50 +0000 (07:54 +0000)]
Update.

* nscd/connections.c (nscd_run): Remove bogus return which isn't
necessary with gcc 3.2+.
(nscd_init): Don't use error() to print message, use dbg_log.

21 years agoUpdate.
Ulrich Drepper [Thu, 16 Jan 2003 07:21:24 +0000 (07:21 +0000)]
Update.

* iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.

21 years agoUpdate.
Ulrich Drepper [Thu, 16 Jan 2003 02:27:47 +0000 (02:27 +0000)]
Update.

* iconv/gconv_simple.c (STORE_REST): Explicitly store the total
expected size into state.
(UNPACK_BYTES): Do the reverse.
* wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
Reported by Al Viro <aviro@redhat.com>.

21 years agoUpdate.
Ulrich Drepper [Thu, 16 Jan 2003 00:09:24 +0000 (00:09 +0000)]
Update.

* stdio-common/Makefile (tests): Add bug14.
* stdio-common/bug14.c: New file.

21 years agoUpdate.
Ulrich Drepper [Wed, 15 Jan 2003 23:48:20 +0000 (23:48 +0000)]
Update.

2003-01-15  Ulrich Drepper  <drepper@redhat.com>

* stdio-common/vfscanf.c: When recognizing multibyte characters in
string reset the byte counter after mbrtowc reported it is not a
partial character.  Reported by Al Viro <aviro@redhat.com>.

21 years agoUpdate.
Ulrich Drepper [Wed, 15 Jan 2003 23:04:20 +0000 (23:04 +0000)]
Update.

2003-01-15  Steven Munroe  <sjmunroe@us.ibm.com>

* sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
sysdep-cancel.h, not sysdep.h.

2003-01-15  Ulrich Drepper  <drepper@redhat.com>

* nscd/connections.c (nscd_run): Protect accept call with
TEMP_FAILURE_RETRY.

21 years ago(nscd_run): Protect accept with TEMP_FAILURE_RETRY.
Ulrich Drepper [Wed, 15 Jan 2003 22:57:20 +0000 (22:57 +0000)]
(nscd_run): Protect accept with TEMP_FAILURE_RETRY.

21 years ago* sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
Andreas Schwab [Wed, 15 Jan 2003 22:10:24 +0000 (22:10 +0000)]
* sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.

(common-generated): Add s-proto-bp.d.
* sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
of bp thunks.
* sysdeps/unix/s-proto-bp.S: New file.
* sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
* sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.

21 years ago* sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
Andreas Schwab [Wed, 15 Jan 2003 22:10:10 +0000 (22:10 +0000)]
* sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.

(common-generated): Add s-proto-bp.d.
* sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
of bp thunks.
* sysdeps/unix/s-proto-bp.S: New file.
* sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
* sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.

21 years ago* Makerules: Use -include for tls.make, suppresses warning.
Roland McGrath [Wed, 15 Jan 2003 20:24:20 +0000 (20:24 +0000)]
* Makerules: Use -include for tls.make, suppresses warning.

Move gen-as-const-headers rules up so before-compile is set in time.
(sed-remove-dotdot): Fix to work right for subdirs or top dir.

21 years ago2003-01-15 Roland McGrath <roland@redhat.com>
Roland McGrath [Wed, 15 Jan 2003 20:24:04 +0000 (20:24 +0000)]
2003-01-15  Roland McGrath  <roland@redhat.com>

* Makerules: Use -include for tls.make, suppresses warning.
Move gen-as-const-headers rules up so before-compile is set in time.
(sed-remove-dotdot): Fix to work right for subdirs or top dir.

21 years agoUpdate.
Ulrich Drepper [Wed, 15 Jan 2003 19:52:59 +0000 (19:52 +0000)]
Update.

* nscd/nscd.c (main): Make code to close all file descriptors
faster and more robust.

21 years agoUpdate.
Ulrich Drepper [Wed, 15 Jan 2003 10:52:50 +0000 (10:52 +0000)]
Update.

* nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
request with one writev call.  Protect all read calls with
TEMP_FAILURE_RETRY.
* nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
* nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.

* nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
Protect writev calls with TEMP_FAILURE_RETRY.
* nscd/grpcache.c: Likewise.
* nscd/pwdcache.c: Likewise.

21 years agoUpdate.
Ulrich Drepper [Wed, 15 Jan 2003 09:57:42 +0000 (09:57 +0000)]
Update.

2003-01-15  Ulrich Drepper  <drepper@redhat.com>

* nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
IPv6 address in debug output.

21 years ago(addhstbynamev6): Don't interpret hostname as IPv6 address in debug output.
Ulrich Drepper [Wed, 15 Jan 2003 09:54:58 +0000 (09:54 +0000)]
(addhstbynamev6): Don't interpret hostname as IPv6 address in debug output.

21 years ago* Makerules (check-abi-%): Use two rules for $(common-objpfx) and
Roland McGrath [Wed, 15 Jan 2003 08:08:20 +0000 (08:08 +0000)]
* Makerules (check-abi-%): Use two rules for $(common-objpfx) and

$(objpfx) directories, and get rid of vpath directives.  The previous
arrangement resulted in files being written to the source directories
when run in a clean build.  Find all .abilist files in $(..)abilist/.
(update-abi-%): Likewise.
(generated): Don't add .symlist files, they'll be intermediates.

* sysdeps/generic/init-first.c: Add a comment.

* elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.

* scripts/gen-as-const.awk: Grok lone "--" as a separator between
#includes and expressions.

* scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
config list when it already contains cpu-.*-os.* without / part.

* Makerules (sed-remove-dotdot): New variable.
($(common-objpfx)%.make): Use it.  Depend on $(before-compile).
($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
(check-abi-config): New variable, append /tls or /notls to the tuple.
(check-abi-%): Use that for -v config value.
Find .abilist files in abilist/libfoo.abilist, not in subdir.
* Rules: Move bits/stdio_lim.h generation rules to Makerules.

21 years ago2003-01-14 Roland McGrath <roland@redhat.com>
Roland McGrath [Wed, 15 Jan 2003 08:04:25 +0000 (08:04 +0000)]
2003-01-14  Roland McGrath  <roland@redhat.com>

* scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
config list when it already contains cpu-.*-os.* without / part.

21 years agoUpdate.
Ulrich Drepper [Wed, 15 Jan 2003 07:15:24 +0000 (07:15 +0000)]
Update.

2003-01-14  Ulrich Drepper  <drepper@redhat.com>

* manual/install.texi: Correct description of header preparation for
Linux build.  Patch by mhwood@Ameritech.Net [PR libc/4941].

21 years agoUpdate.
Ulrich Drepper [Wed, 15 Jan 2003 01:23:02 +0000 (01:23 +0000)]
Update.

2003-01-14  Guido Guenther  <agx@sigxcpu.org>

* sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.

2003-01-14  Steven Munroe  <sjmunroe@us.ibm.com>

* sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
(INTERNAL_SYSCALL): Make use of ERR parameter.
(INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
(INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.

Patch by Denis Zaitsev <zzz@cd-club.ru>.
that %eax is modified.  Reported by Denis Zaitsev <zzz@cd-club.ru>.

21 years agoUpdate.
Ulrich Drepper [Tue, 14 Jan 2003 19:50:21 +0000 (19:50 +0000)]
Update.

* sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
== IPPROTO_TCP.
Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].

21 years agoUpdate.
Ulrich Drepper [Tue, 14 Jan 2003 10:04:07 +0000 (10:04 +0000)]
Update.

* sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
Fix entry for bit 31.

21 years agoUpdate.
Ulrich Drepper [Tue, 14 Jan 2003 09:39:06 +0000 (09:39 +0000)]
Update.

2003-01-14  Ulrich Drepper  <drepper@redhat.com>

* iconvdata/Makefile: Add rules to build IBM866NAV.
* iconvdata/ibm866nav.c: New file.
* iconvdata/tst-tables.sh: Add IBM866NAV.
* iconvdata/gconv-modules: Add entries for IBM866NAV.

21 years agoUpdate.
Ulrich Drepper [Tue, 14 Jan 2003 07:52:31 +0000 (07:52 +0000)]
Update.

2003-01-13  Ulrich Drepper  <drepper@redhat.com>

* string/tester.c (test_strcpy): Use the previously #if 0'ed code
to test void* parameters.

* sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
source pointer before dereferencing.
(__STRING_SMALLL_GET32): Likewise.
(__memset_gc): Add missing parenthesis around macro arguments.
Patch by Denis Zaitsev<zzz@cd-club.ru>.

* sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
that %eax is modified.  Reported by Denis Zaitsev<zzz@cd-club.ru>.

21 years agoUpdate.
Ulrich Drepper [Tue, 14 Jan 2003 04:10:53 +0000 (04:10 +0000)]
Update.

* sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Don't export
lll_unlock_wake_cb.

21 years agoUpdate.
Ulrich Drepper [Tue, 14 Jan 2003 04:04:05 +0000 (04:04 +0000)]
Update.

2003-01-13  Ulrich Drepper  <drepper@redhat.com>

* Makefile (libpthread-routines): Add version.  Add rules to build
version.os and banner.h.
* version.c: New file.

21 years agoUpdate.
Ulrich Drepper [Tue, 14 Jan 2003 01:31:26 +0000 (01:31 +0000)]
Update.

2003-01-14  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
defining.

2003-01-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>

* sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
here.
* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.

2003-01-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>

* sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
from here...
(PSEUDO): ... to here.
* sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
from here...
(PSEUDO): ... to here.

* elf/dl-close.c (_dl_close): Fix typo, must be == not = in

21 years agoUpdate.
Ulrich Drepper [Tue, 14 Jan 2003 01:20:41 +0000 (01:20 +0000)]
Update.

2003-01-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>

* sysdeps/unix/sysv/linux/s390/s390-32/pt-initfini.c: Avoid
unterminated string literals.
* sysdeps/unix/sysv/linux/s390/s390-64/pt-initfini.c: Likewise.

2003-01-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>

* sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
(PSEUDO): Code reordering.  Move CENABLE and CDISABLE literals from
PSEUDO_END to PSEUDO.
(PSEUDO_END): Remove.
(SINGLE_THREAD_P): Save an instruction.
* sysdeps/unix/sysv/linux/s390/s390-32/vfork.S (__vfork): Add missing
parameter to SINGLE_THREAD_P call.
* sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO):
Code reordering.

21 years ago(CFLAGS-pthread_self.c): New definition.
Ulrich Drepper [Tue, 14 Jan 2003 00:34:21 +0000 (00:34 +0000)]
(CFLAGS-pthread_self.c): New definition.

21 years ago* sysdeps/unix/sysv/linux/m68k/vfork.S: New file.
Andreas Schwab [Mon, 13 Jan 2003 09:55:29 +0000 (09:55 +0000)]
* sysdeps/unix/sysv/linux/m68k/vfork.S: New file.

21 years agoUpdate.
Ulrich Drepper [Mon, 13 Jan 2003 09:28:02 +0000 (09:28 +0000)]
Update.

2003-01-13  Ulrich Drepper  <drepper@redhat.com>

* locale/programs/charmap-dir.c (charmap_readdir): Use struct
dirent64 instead of struct dirent for dirent.  Call readdir64
instead of readdir.

* locale/programs/locfile.c (siblings_uncached): Use struct
dirent64 instead of struct dirent for other_dentry.  Call
readdir64 instead of readdir.

* elf/ldconfig.c (direntry): Change type to struct dirent64.
(search_dir): Use readdir64 instead of readdir.
Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.

21 years ago(direntry): Change type to struct dirent64. (search_dir): Use readdir64 instead of...
Ulrich Drepper [Mon, 13 Jan 2003 08:53:14 +0000 (08:53 +0000)]
(direntry): Change type to struct dirent64. (search_dir): Use readdir64 instead of readdir.

21 years ago* hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
Roland McGrath [Mon, 13 Jan 2003 03:45:38 +0000 (03:45 +0000)]
* hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,

not strtol.  The former is usable in ld.so, the latter not.

21 years ago* include/fcntl.h: Declare __libc_creat.
Roland McGrath [Mon, 13 Jan 2003 03:42:27 +0000 (03:42 +0000)]
* include/fcntl.h: Declare __libc_creat.

* sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
libhurduser-link.so-no-z-defs): New variables.

* malloc/malloc.c: Revert last change.
* malloc/malloc.h (_int_*): Move these decls to ...
* include/malloc.h: ... here.  Add attribute_hidden.
(_int_valloc): Declare it too.

21 years ago2003-01-12 Roland McGrath <roland@redhat.com>
Roland McGrath [Mon, 13 Jan 2003 03:42:08 +0000 (03:42 +0000)]
2003-01-12  Roland McGrath  <roland@redhat.com>

* include/fcntl.h: Declare __libc_creat.

21 years agoUpdate.
Ulrich Drepper [Mon, 13 Jan 2003 02:10:09 +0000 (02:10 +0000)]
Update.

* elf/dl-close.c (_dl_close): Type typo, must be == not = in
search for removed searchlist.  Reported by Roland McGrath.

21 years agoUpdate.
Ulrich Drepper [Sun, 12 Jan 2003 23:44:14 +0000 (23:44 +0000)]
Update.

* io/ftwtest-sh: Add test for case of symlink to nonexisting file
given as start file.

* io/ftw.c (ftw_startup): Use correct name in check for symlink
without existing target.  Patch by Jim Meyering.

21 years agoUpdate.
Ulrich Drepper [Sun, 12 Jan 2003 23:13:14 +0000 (23:13 +0000)]
Update.

* Makerules (build-shlib-helper): Don't use -z defs linker option
if no-z-defs is defined either.

2003-01-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>

* sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
file.

2003-01-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>

* sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
* sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.

2003-01-12  Ulrich Drepper  <drepper@redhat.com>

21 years agoUpdate.
Ulrich Drepper [Sun, 12 Jan 2003 22:54:47 +0000 (22:54 +0000)]
Update.

* io/ftwtest-sh: Add test case for relative path with /. at the end.

2003-01-12  Jim Meyering  <jim@meyering.net>

* io/ftw.c (ftw_startup): When trying to stat the starting directory,
use the basename if we've already chdir'd into its parent directory.

2003-01-12  Ulrich Drepper  <drepper@redhat.com>

to change directory after call to ftw_dir.

21 years agoUpdate.
Ulrich Drepper [Sun, 12 Jan 2003 20:44:20 +0000 (20:44 +0000)]
Update.

2003-01-12  Ulrich Drepper  <drepper@redhat.com>

* io/ftw.c (process_entry): Use relative path when using chdir()
to change direcoty after call to ftw_dir.
* io/ftwtest-sh: Add test for relative path argument to nftw()
with FTW_CHDIR option.

21 years agoUpdate.
Ulrich Drepper [Sun, 12 Jan 2003 19:40:05 +0000 (19:40 +0000)]
Update.

2002-01-12  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
Define for powerpc.
* sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
into account.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
(INTERNAL_SYSCALL): Make use of ERR parameter.
(INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
(INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.

2002-01-09  Richard Henderson  <rth@redhat.com>

* sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
DTPREL64 and TPREL64 without loadbase applied.

2002-01-09  Richard Henderson  <rth@redhat.com>

* sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
for NOT_IN_libc.

* sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
* sysdeps/unix/alpha/sysdep.h: ... here.
(PSEUDO_LOADGP): Remove.
(PSEUDO_PROLOGUE): Load GP in non-pic case.
(SYSCALL_ERROR_LABEL): New.
(PSEUDO): Use it in error branch.
(PSEUDO_END): Add $syscall_error label.

21 years agoUpdate.
Ulrich Drepper [Sun, 12 Jan 2003 19:29:11 +0000 (19:29 +0000)]
Update.

2002-01-09  Richard Henderson  <rth@redhat.com>

* sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Assume only
ret follows pseudo, and thus avoid branch-to-branch in cancel
case.  Use SYSCALL_ERROR_LABEL.

21 years ago(elf_machine_rela): Compute DTPREL64 and TPREL64 without loadbase applied.
Ulrich Drepper [Sun, 12 Jan 2003 19:22:32 +0000 (19:22 +0000)]
(elf_machine_rela): Compute DTPREL64 and TPREL64 without loadbase applied.

21 years agoUpdate.
Andreas Jaeger [Sun, 12 Jan 2003 19:10:22 +0000 (19:10 +0000)]
Update.

2003-01-12  Andreas Jaeger  <aj@suse.de>

* math/bits/mathcalls.h: Round is a const function.

21 years agoRound is a const function.
Andreas Jaeger [Sun, 12 Jan 2003 19:10:08 +0000 (19:10 +0000)]
Round is a const function.

21 years agoUpdate.
Ulrich Drepper [Sun, 12 Jan 2003 10:11:16 +0000 (10:11 +0000)]
Update.

2003-01-11  Jim Meyering  <jim@meyering.net>

* io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
[HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
[!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
[!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
[!_LIBC] (internal_function, dirent64, MAX): Define.
(__set_errno): Define if not already defined.
(open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
the basename, not the entire file name.
(process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
the basename, not the entire file name.

2003-01-12  Ulrich Drepper  <drepper@redhat.com>

* string/tester.c (test_strcpy): Disable last added strcpy until
it is fixed.

2003-01-11  Philip Blundell  <philb@gnu.org>

* sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.

2003-01-11  Andreas Schwab  <schwab@suse.de>

* Makerules: Add vpath for %.dynsym and %.so so that the
implicit rule chaining for check-abi works.

2003-01-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>

* sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
Add non-PIC case.

2003-01-11  Jakub Jelinek  <jakub@redhat.com>

* elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
[__ia64__] (TLS_LE, TLS_IE): Fix typos.  Add ;; at start of asm if
gp is used early.
[__ia64__] (TLS_LD, TLS_GD): Likewise.  Use __TLS_CALL_CLOBBERS.
* elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
Ensure libc.so in DT_NEEDED.
* sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
CHECK_STATIC_TLS before l_tls_offset use.
* sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
Likewise.
* sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
* sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
Allocate TLS_PRE_TCB_SIZE bytes below result.
(_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
* sysdeps/generic/libc-tls.c (__libc_setup_tls): If
TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
segment has been found.  If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
bytes below result and add tcb_offset to memsz.
* sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
* sysdeps/ia64/dl-machine.h: Include tls.h.
(elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
too.
(elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
* sysdeps/ia64/libc-tls.c: New file.

2003-01-10  Steven Munroe  <sjmunroe@us.ibm.com>

* sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
* sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
Fix type.  Move definition out of #if.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
support.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
ftruncate64, pread64, pwrite64, truncate64 entries.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
(INLINE_SYSCALL): New version that supports function call like
syscalls.  Add __builtin_expect.
(LOADARGS_n): Add argument size safety checks.
(INTERNAL_SYSCALL): New Macro.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
* sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
redefinition of elf_fpreg_t and elf_fpregset_t.

2003-01-12  Ulrich Drepper  <drepper@redhat.com>

* elf/dl-close.c (_dl_close): Add several asserts.  Correct and
simplify test for unloading.  If loader of a DSO is unloaded do not
use its scope anymore.  Fall back to own scope and adjust opencounts.
Fix several comments.
* elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
the l_searchlist, not only for l_initfini.

* elf/dl-lookup.c (add_dependencies): Avoid creating relocation
dependencies if objects cannot be removed.  Remove object with the
definition as not unloadable if necessary.

* elf/reldep6.c: Create relocation dependency before closing the first
module.

2003-01-10  Guido Günther  <agx@sigxcpu.org>
* elf/Makefile: Add rules to build and run reldep9 test.
* elf/reldep9.c: New file.
* elf/reldep9mod1.c: New file.
* elf/reldep9mod2.c: New file.
* elf/reldep9mod3.c: New file.

2003-01-09  Jakub Jelinek  <jakub@redhat.com>

* elf/Makefile: Add rules to build and run nodelete2 test.
* elf/nodelete2.c: New file.
* elf/nodel2mod1.c: New file.
* elf/nodel2mod2.c: New file.
* elf/nodel2mod3.c: New file.

2003-01-09  Jakub Jelinek  <jakub@redhat.com>

21 years agoTest modules for DF_1_NODELETE test.
Ulrich Drepper [Sun, 12 Jan 2003 07:52:53 +0000 (07:52 +0000)]
Test modules for DF_1_NODELETE test.

21 years agoUpdate
Andreas Jaeger [Sat, 11 Jan 2003 15:27:02 +0000 (15:27 +0000)]
Update

2003-01-10  Guido Günther <agx@sigxcpu.org>

* sysdeps/unix/mips/fork.S: Add PSEUDO_END.
* sysdeps/unix/mips/brk.S: Likewise.
* sysdeps/unix/mips/pipe.S: Likewise.

21 years ago* sysdeps/unix/mips/fork.S: add PSEUDO_END.
Andreas Jaeger [Sat, 11 Jan 2003 15:26:35 +0000 (15:26 +0000)]
* sysdeps/unix/mips/fork.S: add PSEUDO_END.

* sysdeps/unix/mips/brk.S: Likewise.
* sysdeps/unix/mips/pipe.S: Likewise.

21 years ago* sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
Andreas Schwab [Fri, 10 Jan 2003 15:36:43 +0000 (15:36 +0000)]
* sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.

21 years ago* sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
Andreas Schwab [Fri, 10 Jan 2003 14:09:38 +0000 (14:09 +0000)]
* sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which

are known to have the vfork syscall.

* sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.

* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
(__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
(__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.