platform/upstream/linaro-glibc.git
21 years agoUpdate.
Ulrich Drepper [Thu, 20 Mar 2003 10:29:20 +0000 (10:29 +0000)]
Update.

2003-03-20  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Include <atomic.h>.
Remove __lll_add, __lll_dev_if_positive, and __lll_test_and_set
definitions.  Replace uses with calls to atomic_* functions.
* sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
* sysdeps/unix/sysv/linux/lowlevellock.c: Replace __lll_add and
__lll_test_and_set calls with atomic_exchange_and_add and
atomic_exchange calls respectively.
* sysdeps/unix/sysv/linux/sem_post.c: Likewise.
* sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise.
* sysdeps/unix/sysv/linux/sem_trywait.c: Likewise.
* sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
* sysdeps/unix/sysv/linux/ia64/pthread_once.c: Likewise.
* sysdeps/unix/sysv/linux/ia64/sem_port.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Likewise.

* allocatestack.c (allocate_stack): Assume atomic_exchange_and_add
returns the old value.

21 years agoReplace __lll_add calls with atomic_exchange_and_add calls respectively.
Ulrich Drepper [Thu, 20 Mar 2003 10:28:06 +0000 (10:28 +0000)]
Replace __lll_add calls with atomic_exchange_and_add calls respectively.

21 years ago* sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers, including pc, gp,...
Alexandre Oliva [Thu, 20 Mar 2003 10:27:55 +0000 (10:27 +0000)]
* sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers, including pc, gp, sp and fp, as long long. * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux. * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments. Add gp argument, and set gp in the jmpbuf to it. * sysdeps/mips/setjmp_aux.c: Revert to o32-only.

2003-03-20  Alexandre Oliva  <aoliva@redhat.com>

* sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
including pc, gp, sp and fp, as long long.
* sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
* sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
Add gp argument, and set gp in the jmpbuf to it.
* sysdeps/mips/setjmp_aux.c: Revert to o32-only.

21 years agoReplace __lll_add and __lll_test_and_set calls with atomic_exchange_and_add and atomi...
Ulrich Drepper [Thu, 20 Mar 2003 10:23:47 +0000 (10:23 +0000)]
Replace __lll_add and __lll_test_and_set calls with atomic_exchange_and_add and atomic_exchange call respectively.

21 years agoUpdate.
Ulrich Drepper [Thu, 20 Mar 2003 10:18:24 +0000 (10:18 +0000)]
Update.

2003-03-20  Ulrich Drepper  <drepper@redhat.com>

* include/atomic.h: Define atomic_exchange and
atomic_decrement_if_positive if not already defined.  Add some
__builtin_expect.
* sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
* sysdeps/x86_64/bits/atomic.h: Likewise.
* sysdeps/ia64/bits/atomic.h: Pretty printing.  Define atomic_exchange.
* sysdeps/powerpc/bits/atomic.h: Pretty printing.  Define
atomic_exchange, atomic_exchange_and_add, and
atomic_decrement_if_positive

21 years agoDefine atomic_exchange and atomic_decrement_if_positive if not already defined. ...
Ulrich Drepper [Thu, 20 Mar 2003 10:11:43 +0000 (10:11 +0000)]
Define atomic_exchange and atomic_decrement_if_positive if not already defined.  Add some __builtin_expect.

21 years ago* sysdeps/s390/pthread_spin_lock.c (pthread_spin_lock): Use type
Roland McGrath [Thu, 20 Mar 2003 09:51:17 +0000 (09:51 +0000)]
* sysdeps/s390/pthread_spin_lock.c (pthread_spin_lock): Use type

int for variable OLDVAL and correct inline assembler contraint.
* sysdeps/s390/pthread_spin_trylock.c (pthread_spin_trylock): Use
type int for variable OLD.

* sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it
only for s390-32.
* sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
(SINGLE_THREAD_P): Use global variable __local_multiple_threads
instead of multiple_threads field in the TCB.

21 years agoMerged sh[34].*-.*-linux.* lists.
Roland McGrath [Thu, 20 Mar 2003 09:28:07 +0000 (09:28 +0000)]
Merged sh[34].*-.*-linux.* lists.

21 years agoChange atomic_exchange_and_add to return the old value.
Ulrich Drepper [Thu, 20 Mar 2003 09:03:23 +0000 (09:03 +0000)]
Change atomic_exchange_and_add to return the old value.

21 years ago(allocate_stack): Assume atomic_exchange_and_add returns the old value.
Ulrich Drepper [Thu, 20 Mar 2003 08:58:35 +0000 (08:58 +0000)]
(allocate_stack): Assume atomic_exchange_and_add returns the old value.

21 years ago* sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend with a single instruction.
Alexandre Oliva [Thu, 20 Mar 2003 07:54:56 +0000 (07:54 +0000)]
* sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend with a single instruction.

* sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
with a single instruction.

21 years ago* sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define properly for n64. (elf_m...
Alexandre Oliva [Thu, 20 Mar 2003 07:54:21 +0000 (07:54 +0000)]
* sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define properly for n64. (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr type. (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf Word before comparing with gotsym.  Take reloc_addr argument as void*.  Remove the code added for the compiler to drop any alignment assumptions.

2003-03-20  Alexandre Oliva  <aoliva@redhat.com>

* sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
properly for n64.
(elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
type.
(elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
Word before comparing with gotsym.  Take reloc_addr argument as
void*.  Remove the code added for the compiler to drop any
alignment assumptions.

21 years agoUpdate.
Ulrich Drepper [Thu, 20 Mar 2003 07:19:17 +0000 (07:19 +0000)]
Update.

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

* Makefile (distribute): Add include/atomic.h and bits/atomic.h.
* include/atomic.h: New file.
* sysdeps/i386/i486/bits/atomic.h: New file.
* sysdeps/x86_64/bits/atomic.h: New file.
* sysdeps/s390/bits/atomic.h: New file.
* sysdeps/sh/bits/atomic.h: New file.
* sysdeps/ia64/bits/atomic.h: New file.
* sysdeps/powerpc/bits/atomic.h: New file.
* sysdeps/generic/bits/atomic.h: New file.
* sysdeps/i386/i486/atomicity.h: Removed.
* sysdeps/x86_64/atomicity.h: Removed.
* sysdeps/s390/s390-32/atomicity.h: Removed.
* sysdeps/s390/s390-64/atomicity.h: Removed.
* sysdeps/ia64/atomicity.h: Removed.
* sysdeps/powerpc/powerpc32/atomicity.h: Removed.
* sysdeps/powerpc/powerpc64/atomicity.h: Removed.
* elf/dl-profile.c: Use atomic.h instead of atomicity.h.  Adjust
use of macros from atomicity.h to new names and semantics.
* gmon_mcount.c: Likewise.
* malloc/set-freeres.c: Likewise.
* nscd/cache.c: Likewise.
* stdlib/cxa_finalize.c: Likewise.
* sysdeps/unix/sysv/linux/getsysstats.c: Likewise.

* sysdeps/mips/ieee754.h: New file, suitable to replace both
* stdlib/strtod.c (INTERNAL): While eating trailing zeros handle

21 years agoUpdate.
Ulrich Drepper [Thu, 20 Mar 2003 01:10:57 +0000 (01:10 +0000)]
Update.

* stdlib/strtod.c (INTERNAL): While eating trailing zeros handling
hexdigits correctly.  Reported by Fred Tydeman <tydeman@tybor.com>.
* stdlib/tst-strtod.c: Add test for the bug.

21 years ago(INTERNAL): While eating trailing zeros handling hexdigits correctly.
Ulrich Drepper [Thu, 20 Mar 2003 01:00:46 +0000 (01:00 +0000)]
(INTERNAL): While eating trailing zeros handling hexdigits correctly.

21 years ago* sysdeps/mips/ieee754.h: New file, suitable to replace both ../ieee754/ieee754.h...
Alexandre Oliva [Thu, 20 Mar 2003 00:39:32 +0000 (00:39 +0000)]
* sysdeps/mips/ieee754.h: New file, suitable to replace both ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept mips-specific for now.

2003-03-19  Alexandre Oliva  <aoliva@redhat.com>

* sysdeps/mips/ieee754.h: New file, suitable to replace both
../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
mips-specific for now.

21 years agoUpdate.
Ulrich Drepper [Wed, 19 Mar 2003 23:03:56 +0000 (23:03 +0000)]
Update.

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

* posix/tst-nice.c (do_test): Remove invalid of return value.
Don't run test if initial level != 0.

21 years agoUpdate.
Ulrich Drepper [Wed, 19 Mar 2003 22:36:57 +0000 (22:36 +0000)]
Update.

2003-03-19  Amos Waterland  <apw@us.ibm.com>

* posix/tst-nice.c: New file.
* posix/Makefile (tests): Add tst-nice.

21 years agoUpdate.
Ulrich Drepper [Wed, 19 Mar 2003 19:15:36 +0000 (19:15 +0000)]
Update.

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

* sysdeps/pthread/Makefile: Fix cut&paste error.

21 years agoUpdate.
Ulrich Drepper [Wed, 19 Mar 2003 09:52:49 +0000 (09:52 +0000)]
Update.

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

* sysdeps/pthread/pthread_cond_broadcast.c: Release lock before
signalling waiters.

21 years ago(__pthread_cond_broadcast): Release lock before waking waiters.
Ulrich Drepper [Wed, 19 Mar 2003 09:42:14 +0000 (09:42 +0000)]
(__pthread_cond_broadcast): Release lock before waking waiters.

21 years ago(__lll_test_and_set): Fix typos.
Roland McGrath [Wed, 19 Mar 2003 09:08:47 +0000 (09:08 +0000)]
(__lll_test_and_set): Fix typos.

21 years ago* abilist: New directory of libfoo.abilist files maintained using
Roland McGrath [Wed, 19 Mar 2003 08:27:55 +0000 (08:27 +0000)]
* abilist: New directory of libfoo.abilist files maintained using

scripts/merge-abilist.awk and "make update-abi" rules.
* Makefile (distribute): Add abilist/*.abilist.
* Makerules [$(build-shared) = yes] [$(subdir)] (tests):
Depend on check-abi.

21 years ago* Versions (libpthread: GLIBC_2.2): Remove
Roland McGrath [Wed, 19 Mar 2003 03:34:48 +0000 (03:34 +0000)]
* Versions (libpthread: GLIBC_2.2): Remove

pthread_barrierattr_getpshared, never really existed.
(libpthread: GLIBC_2.0): Move __pthread_initialize to ...
(libpthread: GLIBC_PRIVATE): ... here.

21 years ago2003-03-18 Roland McGrath <roland@redhat.com>
Roland McGrath [Wed, 19 Mar 2003 03:25:04 +0000 (03:25 +0000)]
2003-03-18  Roland McGrath  <roland@redhat.com>

* Versions (libpthread: GLIBC_2.3.2): Move pthread_tryjoin_np and
pthread_timedjoin_np to ...
(libpthread: GLIBC_2.3.3): ... here.
(libpthread: GLIBC_2.2): Move pthread_barrierattr_getpshared there too.

21 years agoRemove unnecessary instruction in case clock_gettime isn't available.
Ulrich Drepper [Wed, 19 Mar 2003 02:27:27 +0000 (02:27 +0000)]
Remove unnecessary instruction in case clock_gettime isn't available.

21 years agoUpdate.
Ulrich Drepper [Wed, 19 Mar 2003 00:38:11 +0000 (00:38 +0000)]
Update.

* Makefile (tests): Add tst-cond11.
* tst-cond11.c: New file.

21 years agoTest pthread_condattr_[sg]etclock.
Ulrich Drepper [Wed, 19 Mar 2003 00:34:59 +0000 (00:34 +0000)]
Test pthread_condattr_[sg]etclock.

21 years ago* configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
Roland McGrath [Wed, 19 Mar 2003 00:34:41 +0000 (00:34 +0000)]
* configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.

* configure: Regenerated.

* sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.

21 years ago2003-03-18 Roland McGrath <roland@redhat.com>
Roland McGrath [Wed, 19 Mar 2003 00:34:10 +0000 (00:34 +0000)]
2003-03-18  Roland McGrath  <roland@redhat.com>

* sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.

21 years agoUpdate.
Ulrich Drepper [Tue, 18 Mar 2003 23:50:44 +0000 (23:50 +0000)]
Update.

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

* sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
correctly.

21 years agoUpdate.
Ulrich Drepper [Tue, 18 Mar 2003 23:00:03 +0000 (23:00 +0000)]
Update.

2003-03-18  Steven Munroe  <sjmunroe@us.ibm.com>

* sysdeps/powerpc/powerpc64/memcpy.S: New file.

21 years agoReorder struct passed to cleanup handler to eliminate one more instruction.
Ulrich Drepper [Tue, 18 Mar 2003 22:20:54 +0000 (22:20 +0000)]
Reorder struct passed to cleanup handler to eliminate one more instruction.

21 years ago* td_thr_event_getmsg.c (td_thr_event_getmsg): Splice the thread out
Roland McGrath [Tue, 18 Mar 2003 21:13:51 +0000 (21:13 +0000)]
* td_thr_event_getmsg.c (td_thr_event_getmsg): Splice the thread out

of the ->nextevent linkage.

* td_ta_event_getmsg.c (td_ta_event_getmsg): Runtime error instead of
assert for reading TD_EVENT_NONE.  Clear the event buffer after
reading it.  Add a sanity check for foo->nextevent = foo.

21 years ago2003-03-18 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 18 Mar 2003 21:13:42 +0000 (21:13 +0000)]
2003-03-18  Roland McGrath  <roland@redhat.com>

* td_thr_event_getmsg.c (td_thr_event_getmsg): Splice the thread out
of the ->nextevent linkage.

21 years ago(__pthread_cond_init): Handle NULL cond_attr parameter.
Ulrich Drepper [Tue, 18 Mar 2003 20:08:20 +0000 (20:08 +0000)]
(__pthread_cond_init): Handle NULL cond_attr parameter.

21 years agoUpdate.
Ulrich Drepper [Tue, 18 Mar 2003 18:56:16 +0000 (18:56 +0000)]
Update.

* sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
(pthrad_cond_t): Replace __unused field with __clock.

* sysdeps/pthread/pthread_cond_wait.c: Release condvar lock before
waken all waiters in cleanup handler.
* sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.

21 years agoUpdate.
Ulrich Drepper [Tue, 18 Mar 2003 11:25:37 +0000 (11:25 +0000)]
Update.

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

* Versions.def: Add GLIBC_2.3.3 for libpthread.

21 years agoUpdate.
Ulrich Drepper [Tue, 18 Mar 2003 11:17:57 +0000 (11:17 +0000)]
Update.

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

* pthread_condattr_getclock.c: New file.
* pthread_condattr_setclock.c: New file.
* sysdeps/pthread/pthread.h: Declare these new functions.
* Versions [GLIBC_2.3.3] (libpthread): Add the new functions.
* Makefile (libpthread-routines): Add the new functions.
* sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_condattr):
Renamed field to value.  Document use of the bits.
* pthread_condattr_getpshared.c: Adjust for struct pthread_condattr
change.
* pthread_condattr_setpshared.c: Likewise.
* sysdeps/unix/sysv/linux/lowlevelcond.sym: Add cond_clock symbol.
* sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
Add __clock field.
* sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
Implement clock selection.
* sysdeps/pthread/pthread_cond_timedwait.c: Likewise.
* pthread-errnos.sym: Add ENOSYS.
* sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
_POSIX_CLOCK_SELECTION.
* sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise.

* sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove
invalid .size directive.

21 years agoUpdate.
Ulrich Drepper [Tue, 18 Mar 2003 05:31:53 +0000 (05:31 +0000)]
Update.

* sysdeps/unix/sysv/linux/ia64/pthread_once.c: Use __builtin_expect.
Use __lll_add instead of spelling it out.  Use protected symbol names.
* sysdeps/unix/sysv/linux/ia64/sem_post.c: Use __builtin_expect.
Use __lll_add.
* sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_compare_and_swap):
Renamed from lll_compare_and_swap.  Use new name where necessary.
(__lll_add): Defined.
(__lll_dec_if_positive): Defined.
(__lll_test_and_set): Defined.
* sysdeps/ia64/pthread_spin_init.c: Removed.
* sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Removed.
* sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Removed.
* sysdeps/unix/sysv/linux/ia64/sem_wait.c: Removed.
* sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Removed.
* sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: Removed.
* sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: Removed.
* sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Removed.

21 years agoUpdate.
Ulrich Drepper [Tue, 18 Mar 2003 01:56:11 +0000 (01:56 +0000)]
Update.

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

* sysdeps/generic/libc-start.c [!SHARED &&
!LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.

21 years agopthread_spin_unlock implementation for Linux/i386.
Ulrich Drepper [Tue, 18 Mar 2003 01:52:02 +0000 (01:52 +0000)]
pthread_spin_unlock implementation for Linux/i386.

21 years ago* include/ctype.h: Revert last change.
Roland McGrath [Tue, 18 Mar 2003 01:21:49 +0000 (01:21 +0000)]
* include/ctype.h: Revert last change.

21 years ago2003-03-17 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 18 Mar 2003 01:21:42 +0000 (01:21 +0000)]
2003-03-17  Roland McGrath  <roland@redhat.com>

* sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait):
Formatting tweaks.

21 years ago(lll_unlock_wake_cb): Correct last patch. (__lll_timedwait_tid): Don't check abstime...
Ulrich Drepper [Tue, 18 Mar 2003 00:50:30 +0000 (00:50 +0000)]
(lll_unlock_wake_cb): Correct last patch. (__lll_timedwait_tid): Don't check abstime for NULL pointer.

21 years agoUpdate.
Ulrich Drepper [Tue, 18 Mar 2003 00:39:58 +0000 (00:39 +0000)]
Update.

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

* sysdeps/ia64/bits/atomic.h: Add __builtin_expect where appropriate.
* sysdeps/ia64/pthread_spin_unlock.c (pthread_spin_unlock): Use
__sync_lock_release_si.
Patch by Jakub Jelinek.

* sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
Fix timeout handling.
(__lll_timedwait_tid): Likewise.
(lll_unlock_wake_cb): Wake up other waiters if necessary.
Patch by Jakub Jelinek.

* sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Pretty printing.

21 years ago2003-03-17 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 18 Mar 2003 00:37:46 +0000 (00:37 +0000)]
2003-03-17  Roland McGrath  <roland@redhat.com>

* include/ctype.h: Revert last change.

21 years agoAdd __builtin_expect where appropriate.
Ulrich Drepper [Tue, 18 Mar 2003 00:31:30 +0000 (00:31 +0000)]
Add __builtin_expect where appropriate.

21 years agoUpdate.
Ulrich Drepper [Mon, 17 Mar 2003 19:23:45 +0000 (19:23 +0000)]
Update.

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

* argp/tst-argp1.c: Use test-skeleton.c.
* locale/tst-C-locale.c: Likewise.

21 years agoUse test-skeleton.c.
Ulrich Drepper [Mon, 17 Mar 2003 19:21:04 +0000 (19:21 +0000)]
Use test-skeleton.c.

21 years ago* sysdeps/mips/mips64/Implies: Move wordsize-64 to... * sysdeps/mips/mips64/n64/Impli...
Alexandre Oliva [Mon, 17 Mar 2003 16:20:44 +0000 (16:20 +0000)]
* sysdeps/mips/mips64/Implies: Move wordsize-64 to... * sysdeps/mips/mips64/n64/Implies: New file. * sysdeps/mips/mips64/n64/Makefile: New file. * sysdeps/mips/mips64/n64/el/bits/endian.h: New file. * sysdeps/mips/mips64/n32/Implies: New file. * sysdeps/mips/mips64/n32/Makefile: New file. * sysdeps/mips/mips64/n32/el/bits/endian.h: New file. * sysdeps/unix/mips/mips64/n32/sysdep.h: New file. * sysdeps/unix/mips/mips64/n64/sysdep.h: New file. * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file. * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file. * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file. * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file. * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file. * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file. * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file. * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file. * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file. * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file. * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.

* sysdeps/mips/mips64/Implies: Move wordsize-64 to...
* sysdeps/mips/mips64/n64/Implies: New file.
* sysdeps/mips/mips64/n64/Makefile: New file.
* sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
* sysdeps/mips/mips64/n32/Implies: New file.
* sysdeps/mips/mips64/n32/Makefile: New file.
* sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
* sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
* sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
* sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
* sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
* sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
* sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
* sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
* sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
* sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
* sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
* sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
* sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
* sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.

21 years ago* sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use lib64 for mips64/n64...
Alexandre Oliva [Mon, 17 Mar 2003 15:57:19 +0000 (15:57 +0000)]
* sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use lib64 for mips64/n64 and lib32 for mips64/n32. (ldd_rewrite_script): Needed for all mips64 configurations. * sysdeps/unix/sysv/linux/configure: Rebuilt. * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file. * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.

* sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
lib64 for mips64/n64 and lib32 for mips64/n32.
(ldd_rewrite_script): Needed for all mips64 configurations.
* sysdeps/unix/sysv/linux/configure: Rebuilt.
* sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
* sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.

21 years ago* sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as well.
Alexandre Oliva [Mon, 17 Mar 2003 15:53:37 +0000 (15:53 +0000)]
* sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as well.

* sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
well.

21 years ago* sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process asm/unistd.h into...
Alexandre Oliva [Mon, 17 Mar 2003 15:50:05 +0000 (15:50 +0000)]
* sysdeps/unix/sysv/linux/mips/configure.in: New.  Pre-process asm/unistd.h into asm-unistd.h. * sysdeps/unix/sysv/linux/mips/configure: Generated. * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing of syscall list. * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file. * sysdeps/unix/sysv/linux/mips/clone.S: Don't include asm/unistd.h.

* sysdeps/unix/sysv/linux/mips/configure.in: New.  Pre-process
asm/unistd.h into asm-unistd.h.
* sysdeps/unix/sysv/linux/mips/configure: Generated.
* sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
of syscall list.
* sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
* sysdeps/unix/sysv/linux/mips/clone.S: Don't include
asm/unistd.h.

2003-03-17  Alexandre Oliva  <aoliva@redhat.com>

21 years ago* sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file. * sysdeps/unix/sysv/linux...
Alexandre Oliva [Mon, 17 Mar 2003 15:48:52 +0000 (15:48 +0000)]
* sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file. * sysdeps/unix/sysv/linux/mips/ptrace.c: New file.  Use long long type for registers on n32.

* sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
* sysdeps/unix/sysv/linux/mips/ptrace.c: New file.  Use long
long type for registers on n32.

21 years ago* sysdeps/mips/bits/wordsize.h: New file, appropriate for all 3 ABIs. * sysdeps/mips...
Alexandre Oliva [Mon, 17 Mar 2003 15:47:13 +0000 (15:47 +0000)]
* sysdeps/mips/bits/wordsize.h: New file, appropriate for all 3 ABIs. * sysdeps/mips/mips64/gmp-mparam.h: New file.  Define BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs. * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros. (__sigsetjmp_aux): Use them.  Adjust for all 3 ABIs. * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs. * sysdeps/unix/mips/brk.S: Likewise. * sysdeps/unix/mips/sysdep.S: Likewise. * sysdeps/unix/sysv/linux/mips/clone.S: Likewise. * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise. * sysdeps/mips/sys/ucontext.h: Likewise. * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise. * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise. * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise. * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise. * sysdeps/mips/mips64/bsd-setjmp.S: Likewise. * sysdeps/mips/mips64/setjmp.S: Likewise. * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete. * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for 64-bit types.

2003-03-17  Alexandre Oliva  <aoliva@redhat.com>

* sysdeps/mips/bits/wordsize.h: New file, appropriate for all
3 ABIs.
* sysdeps/mips/mips64/gmp-mparam.h: New file.  Define
BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
* sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
(__sigsetjmp_aux): Use them.  Adjust for all 3 ABIs.
* sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
* sysdeps/unix/mips/brk.S: Likewise.
* sysdeps/unix/mips/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
* sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
* sysdeps/mips/sys/ucontext.h: Likewise.
* sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
* sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
* sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
* sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
* sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
* sysdeps/mips/mips64/setjmp.S: Likewise.
* sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
* sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
64-bit types.

21 years agoPowerPC port contributed by Paul Mackerras <paulus@samba.org>.
Roland McGrath [Mon, 17 Mar 2003 11:25:18 +0000 (11:25 +0000)]
PowerPC port contributed by Paul Mackerras <paulus@samba.org>.

* sysdeps/pthread/pthread_spin_init.c: New file.
* sysdeps/pthread/pthread_spin_unlock.c: New file.
* sysdeps/powerpc/Makefile: New file.
* sysdeps/powerpc/pthread_spin_lock.c: New file.
* sysdeps/powerpc/pthread_spin_trylock.c: New file.
* sysdeps/powerpc/pthreaddef.h: New file.
* sysdeps/powerpc/tcb-offsets.sym: New file.
* sysdeps/powerpc/td_ta_map_lwp2thr.c: New file.
* sysdeps/powerpc/tls.h: New file.
* sysdeps/powerpc/bits/atomic.h: New file.
* sysdeps/unix/sysv/linux/libc-lowlevelmutex.c: New file.
* sysdeps/unix/sysv/linux/libc-lowlevellock.c: New file.
* sysdeps/unix/sysv/linux/lowlevellock.c: New file.
* sysdeps/unix/sysv/linux/lowlevelmutex.c: New file.
* sysdeps/unix/sysv/linux/sem_post.c: New file.
* sysdeps/unix/sysv/linux/sem_timedwait.c: New file.
* sysdeps/unix/sysv/linux/sem_trywait.c: New file.
* sysdeps/unix/sysv/linux/sem_wait.c: New file.
* sysdeps/unix/sysv/linux/powerpc/Makefile: New file.
* sysdeps/unix/sysv/linux/powerpc/createthread.c: New file.
* sysdeps/unix/sysv/linux/powerpc/fork.c: New file.
* sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file.
* sysdeps/unix/sysv/linux/powerpc/pt-vfork.S: New file.
* sysdeps/unix/sysv/linux/powerpc/pthread_once.c: New file.
* sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: New file.
* sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: New file.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: New file.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: New file.

* sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Use __gettimeofday,
not gettimeofday.
* sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Likewise.
* sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Likewise.
* sysdeps/unix/sysv/linux/s390/lowlevellock.c: Likewise.
* sysdeps/unix/sysv/linux/s390/lowlevelmutex.c: Likewise.
* sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise.

21 years ago2003-03-17 Roland McGrath <roland@redhat.com>
Roland McGrath [Mon, 17 Mar 2003 11:22:52 +0000 (11:22 +0000)]
2003-03-17  Roland McGrath  <roland@redhat.com>

PowerPC port contributed by Paul Mackerras <paulus@samba.org>.
* sysdeps/pthread/pthread_spin_init.c: New file.
* sysdeps/pthread/pthread_spin_unlock.c: New file.
* sysdeps/powerpc/Makefile: New file.
* sysdeps/powerpc/pthread_spin_lock.c: New file.
* sysdeps/powerpc/pthread_spin_trylock.c: New file.
* sysdeps/powerpc/pthreaddef.h: New file.
* sysdeps/powerpc/tcb-offsets.sym: New file.
* sysdeps/powerpc/td_ta_map_lwp2thr.c: New file.
* sysdeps/powerpc/tls.h: New file.
* sysdeps/powerpc/bits/atomic.h: New file.
* sysdeps/unix/sysv/linux/libc-lowlevelmutex.c: New file.
* sysdeps/unix/sysv/linux/libc-lowlevellock.c: New file.
* sysdeps/unix/sysv/linux/lowlevellock.c: New file.
* sysdeps/unix/sysv/linux/sem_post.c: New file.
* sysdeps/unix/sysv/linux/sem_timedwait.c: New file.
* sysdeps/unix/sysv/linux/sem_trywait.c: New file.
* sysdeps/unix/sysv/linux/powerpc/Makefile: New file.
* sysdeps/unix/sysv/linux/powerpc/createthread.c: New file.
* sysdeps/unix/sysv/linux/powerpc/fork.c: New file.
* sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file.
* sysdeps/unix/sysv/linux/powerpc/pt-vfork.S: New file.
* sysdeps/unix/sysv/linux/powerpc/pthread_once.c: New file.
* sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: New file.
* sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: New file.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: New file.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: New file.

21 years agoUpdate.
Ulrich Drepper [Mon, 17 Mar 2003 10:16:36 +0000 (10:16 +0000)]
Update.

* localedata/en_ZA: Changed %x for LC_TIME to use dd/mm/ccyy.

21 years agoUpdate.
Ulrich Drepper [Mon, 17 Mar 2003 10:11:31 +0000 (10:11 +0000)]
Update.

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

* localedata/en_ZA: hanged %x for LC_TIME to use dd/mm/ccyy.
Added ^ to LC_MESSAGES regex "^[yY].*".
Confirmed LC_PAPER adn LC_MEASUREMENT settings.
Added country and language names to LC_ADDRESS.
Added missing info for LC_TELEPHONE.
Patch by Dwayne Bailey <dwayne@obsidian.co.za>.

21 years agoLoad correct registers.
Ulrich Drepper [Mon, 17 Mar 2003 04:49:21 +0000 (04:49 +0000)]
Load correct registers.

21 years ago* tst-fork4.c: Include <string.h>.
Roland McGrath [Mon, 17 Mar 2003 02:48:34 +0000 (02:48 +0000)]
* tst-fork4.c: Include <string.h>.

* tst-signal2.c: Likewise.
* tst-mutex5.c (do_test): exit -> return.
* tst-mutex2.c: Include <stdlib.h>.

21 years ago2003-03-16 Roland McGrath <roland@redhat.com>
Roland McGrath [Mon, 17 Mar 2003 02:48:28 +0000 (02:48 +0000)]
2003-03-16  Roland McGrath  <roland@redhat.com>

* tst-fork4.c: Include <string.h>.
* tst-signal2.c: Likewise.
* tst-mutex5.c (do_test): exit -> return.
* tst-mutex2.c: Include <stdlib.h>.

21 years ago(__lll_lock_wait): Remove jump prediction suffix.
Ulrich Drepper [Mon, 17 Mar 2003 01:53:39 +0000 (01:53 +0000)]
(__lll_lock_wait): Remove jump prediction suffix.

21 years agoUpdate.
Ulrich Drepper [Sun, 16 Mar 2003 10:16:43 +0000 (10:16 +0000)]
Update.

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

* sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
not at function level.
* sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.

21 years agoUpdate.
Ulrich Drepper [Sun, 16 Mar 2003 08:09:26 +0000 (08:09 +0000)]
Update.

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

* tst-rwlock6.c: Add some more status output.

21 years agoReally use R12 and r13.
Ulrich Drepper [Sun, 16 Mar 2003 03:49:51 +0000 (03:49 +0000)]
Really use R12 and r13.

21 years ago* nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
Roland McGrath [Sun, 16 Mar 2003 03:36:32 +0000 (03:36 +0000)]
* nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t

* nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
* nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
* nis/nis_table.c (__create_ib_request): Likewise.

21 years ago* nss/nss_files/files-hosts.c: Likewise.
Roland McGrath [Sun, 16 Mar 2003 03:31:50 +0000 (03:31 +0000)]
* nss/nss_files/files-hosts.c: Likewise.

21 years ago* posix/fnmatch_loop.c: Add casts for signedness.
Roland McGrath [Sun, 16 Mar 2003 03:22:41 +0000 (03:22 +0000)]
* posix/fnmatch_loop.c: Add casts for signedness.

* nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
* gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
* nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.

21 years ago* configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
Roland McGrath [Sun, 16 Mar 2003 02:47:37 +0000 (02:47 +0000)]
* configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,

get errors into the log file.
(libc_cv_broken_visibility_attribute): Likewise.
(libc_cv_broken_alias_attribute): Likewise.
(libc_cv_asm_weak_directive): Likewise.
(libc_cv_need_minus_P): Likewise.
(libc_cv_dot_text): Likewise.
(libc_cv_asm_global_directive): Likewise.
(libc_cv_asm_type_prefix): Likewise.
* configure: Regenerated.

21 years ago2003-03-15 Roland McGrath <roland@redhat.com>
Roland McGrath [Sun, 16 Mar 2003 02:47:28 +0000 (02:47 +0000)]
2003-03-15  Roland McGrath  <roland@redhat.com>

* configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
get errors into the log file.
(libc_cv_broken_visibility_attribute): Likewise.
(libc_cv_broken_alias_attribute): Likewise.
(libc_cv_asm_weak_directive): Likewise.
(libc_cv_need_minus_P): Likewise.
(libc_cv_dot_text): Likewise.
(libc_cv_asm_global_directive): Likewise.
(libc_cv_asm_type_prefix): Likewise.
* configure: Regenerated.

21 years agoUpdate.
Ulrich Drepper [Sun, 16 Mar 2003 01:40:57 +0000 (01:40 +0000)]
Update.

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

* allocatestack.c (allocate_stack): Store the exact stack size of
user allocated stacks.

21 years ago(allocate_stack): Store the exact stack size of user allocated stacks.
Ulrich Drepper [Sun, 16 Mar 2003 01:39:10 +0000 (01:39 +0000)]
(allocate_stack): Store the exact stack size of user allocated stacks.

21 years ago* nscd/cache.c (cache_search): Give first arg type `request_type'.
Roland McGrath [Sun, 16 Mar 2003 01:04:03 +0000 (01:04 +0000)]
* nscd/cache.c (cache_search): Give first arg type `request_type'.

* nscd/nscd.h: Update decl.

* nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
* nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
* elf/dl-close.c (_dl_close): Likewise.
* sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
* io/fts.c (fts_build): Likewise.
* elf/cache.c (add_to_cache): Likewise.
* locale/programs/locarchive.c (show_archive_content): Likewise.

* posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.

* include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
happy.
(__ctype_toupper_loc, __ctype_tolower_loc): Likewise.

21 years agotypo
Roland McGrath [Sat, 15 Mar 2003 23:56:49 +0000 (23:56 +0000)]
typo

* Versions.def (libthread_db): Add GLIBC_2.3.3 set.

21 years ago* thread_db.h (td_err_e): Add TD_NOTLS and TD_TLSDEFER.
Roland McGrath [Sat, 15 Mar 2003 23:55:47 +0000 (23:55 +0000)]
* thread_db.h (td_err_e): Add TD_NOTLS and TD_TLSDEFER.

(td_thr_tlsbase): Declare it.
* td_thr_tlsbase.c: New file.
* Makefile (libthread_db-routines): Add it.
* Versions (libthread_db: GLIBC_2.3.3): New set, add td_thr_tlsbase.
* td_thr_tls_get_addr.c (td_thr_tls_get_addr): Use td_thr_tlsbase.

21 years ago2003-03-15 Roland McGrath <roland@redhat.com>
Roland McGrath [Sat, 15 Mar 2003 23:55:23 +0000 (23:55 +0000)]
2003-03-15  Roland McGrath  <roland@redhat.com>

* thread_db.h (td_err_e): Add TD_NOTLS and TD_TLSDEFER.
(td_thr_tlsbase): Declare it.
* td_thr_tlsbase.c: New file.
* Makefile (libthread_db-routines): Add it.
* Versions (libthread_db: GLIBC_2.3.3): New set, add td_thr_tlsbase.
* td_thr_tls_get_addr.c (td_thr_tls_get_addr): Use td_thr_tlsbase.

21 years agoUpdate.
Ulrich Drepper [Sat, 15 Mar 2003 23:49:09 +0000 (23:49 +0000)]
Update.

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

* sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
code for most parts.

21 years agoUse the generic Linux code for most parts.
Ulrich Drepper [Sat, 15 Mar 2003 23:47:44 +0000 (23:47 +0000)]
Use the generic Linux code for most parts.

21 years ago* sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
Roland McGrath [Sat, 15 Mar 2003 23:44:08 +0000 (23:44 +0000)]
* sysdeps/unix/sysv/linux/i386/system.c: Moved to ...

* sysdeps/unix/sysv/linux/system.c: ... here.
(FORK): Don't #define if already #define'd.
* sysdeps/unix/sysv/linux/s390/system.c: File removed.
* sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
(__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.

21 years ago* dlfcn/tst-dlinfo.c: New file.
Roland McGrath [Sat, 15 Mar 2003 23:16:22 +0000 (23:16 +0000)]
* dlfcn/tst-dlinfo.c: New file.

* dlfcn/Makefile (tests): Add tst-dlinfo.
($(objpfx)tst-dlinfo): New target.

* dlfcn/dlinfo.c: New file.
* dlfcn/Makefile (libdl-routines): Add it.
* dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
* dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
[__USE_GNU] (RTLD_DI_*): New enum constants.
[__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
* elf/dl-load.c (cache_rpath): New inline function.
(_dl_map_object): Use it.
(_dl_rtld_di_serinfo): New function.
* sysdeps/generic/ldsodefs.h: Declare it.
* elf/Versions (ld: GLIBC_PRIVATE): Add it.

21 years ago* sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
Roland McGrath [Sat, 15 Mar 2003 23:09:52 +0000 (23:09 +0000)]
* sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.

(LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
(INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
(__libc_start_main): Just call the generic one for most of the work.

* sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
static function by that name instead of BP_SYM (__libc_start_main).
[LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
[MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
[INIT_MAIN_ARGS]: Give INIT the same args as MAIN.

* sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
Use this macro for extra AT_* cases.
* sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
New macro, guts from ...
(__aux_init_cache): ... here, function removed.
(DL_PLATFORM_INIT): Don't define this.

* sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
* sysdeps/powerpc/powerpc64/memset.S: Likewise.

* Versions.def (libthread_db): Add GLICB_2.3.3 set.

21 years ago2003-03-15 Roland McGrath <roland@redhat.com>
Roland McGrath [Sat, 15 Mar 2003 23:09:11 +0000 (23:09 +0000)]
2003-03-15  Roland McGrath  <roland@redhat.com>

* sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
static function by that name instead of BP_SYM (__libc_start_main).
[LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
[MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
[INIT_MAIN_ARGS]: Give INIT the same args as MAIN.

21 years agoMore random patches.
Ulrich Drepper [Sat, 15 Mar 2003 21:46:30 +0000 (21:46 +0000)]
More random patches.

21 years ago* dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
Roland McGrath [Sat, 15 Mar 2003 20:06:46 +0000 (20:06 +0000)]
* dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.

21 years ago2003-03-14 Roland McGrath <roland@redhat.com>
Roland McGrath [Sat, 15 Mar 2003 20:06:37 +0000 (20:06 +0000)]
2003-03-14  Roland McGrath  <roland@redhat.com>

* dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.

21 years ago* sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
Jakub Jelinek [Sat, 15 Mar 2003 11:44:47 +0000 (11:44 +0000)]
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h

(SINGLE_THREAD): Use `header' prefix instead of `header.data'.
* sysdeps/sh/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
* sysdeps/sh/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define.
* sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SINGLE_THREAD_P):
Use `header.' prefix.
* sysdeps/ia64/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.

21 years ago(SINGLE_THREAD): Use `header' prefix instead of `header.data'.
Jakub Jelinek [Sat, 15 Mar 2003 11:43:02 +0000 (11:43 +0000)]
(SINGLE_THREAD): Use `header' prefix instead of `header.data'.

21 years agoUse 64-bit loading.
Ulrich Drepper [Sat, 15 Mar 2003 09:59:21 +0000 (09:59 +0000)]
Use 64-bit loading.

21 years agoUpdate.
Ulrich Drepper [Sat, 15 Mar 2003 09:51:22 +0000 (09:51 +0000)]
Update.

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

* sysdeps/x86_64/pthreaddef.h (CURRENT_STACK_FRAME): Don't use
__builtin_frame_address, use stack pointer.

* sysdeps/unix/sysv/linux/jmp-unwind.c: Use CURRENT_STACK_FRAME
instead of __builtin_frame_pointer.

21 years agoUpdate.
Ulrich Drepper [Sat, 15 Mar 2003 07:54:39 +0000 (07:54 +0000)]
Update.

* tst-basic1.c (do_test): Add cast to avoid warning.
* tst-basic2.c (do_test): Likewise.

21 years agoUpdate.
Ulrich Drepper [Fri, 14 Mar 2003 23:56:44 +0000 (23:56 +0000)]
Update.

* sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Use correct
amount of stack correction.

21 years agoUse correct amount of stack correction.
Ulrich Drepper [Fri, 14 Mar 2003 23:46:29 +0000 (23:46 +0000)]
Use correct amount of stack correction.

21 years ago* sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
Roland McGrath [Fri, 14 Mar 2003 23:37:15 +0000 (23:37 +0000)]
* sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.

* sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.

21 years ago2003-03-14 Jakub Jelinek <jakub@redhat.com>
Roland McGrath [Fri, 14 Mar 2003 23:36:52 +0000 (23:36 +0000)]
2003-03-14  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: New file.
* sysdeps/unix/sysv/linux/sparc/Makefile ($(objpfx)specs): Use full
path for crt[in].o.

21 years agoUpdate.
Ulrich Drepper [Fri, 14 Mar 2003 23:28:23 +0000 (23:28 +0000)]
Update.

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

* tst-fork4.c: Use test-skeleton.c.

* pthread_create.c (start_thread): Use CALL_THREAD_FCT if defined.
* sysdeps/i386/tls.h: Define CALL_THREAD_FCT.

21 years ago(start_thread): Use CALL_THREAD_FCT if defined.
Ulrich Drepper [Fri, 14 Mar 2003 23:18:42 +0000 (23:18 +0000)]
(start_thread): Use CALL_THREAD_FCT if defined.

21 years ago* init.c: Fix typo "#eli" for "#else".
Roland McGrath [Fri, 14 Mar 2003 23:16:51 +0000 (23:16 +0000)]
* init.c: Fix typo "#eli" for "#else".

21 years ago* allocatestack.c (__stack_user): Use hidden_data_def.
Roland McGrath [Fri, 14 Mar 2003 23:12:09 +0000 (23:12 +0000)]
* allocatestack.c (__stack_user): Use hidden_data_def.

* pthread_create.c (__pthread_keys): Likewise.

* init.c [__powerpc__] (__NR_set_tid_address): Define it.

* tst-fork4.c: New file.
* Makefile (tests): Add it.