platform/upstream/glibc.git
21 years agoUpdate.
Ulrich Drepper [Thu, 27 Mar 2003 19:10:51 +0000 (19:10 +0000)]
Update.

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

* sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Even if
timer_delete syscall fails, but not with ENOSYS, set
__no_posix_timers.

* sysdeps/unix/sysv/linux/timer_settime.c [!__ASSUME_POSIX_TIMERS]
(timer_settime): Fix typo.

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

2003-03-27  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
Return -1 instead of 0 if clock_getres failed.

21 years ago(__sysconf) <_SC_MONOTONIC_CLOCK>: Return -1 instead of 0 if clock_getres failed.
Ulrich Drepper [Thu, 27 Mar 2003 17:55:08 +0000 (17:55 +0000)]
(__sysconf) <_SC_MONOTONIC_CLOCK>: Return -1 instead of 0 if clock_getres failed.

21 years ago* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Fix
Jakub Jelinek [Thu, 27 Mar 2003 12:43:17 +0000 (12:43 +0000)]
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Fix

offset of cleanupbuf.__prev.

21 years agoFix offset of cleanupbuf.__prev.
Jakub Jelinek [Thu, 27 Mar 2003 12:43:08 +0000 (12:43 +0000)]
Fix offset of cleanupbuf.__prev.

21 years agoTweak redirection handling in last change.
Roland McGrath [Thu, 27 Mar 2003 12:28:49 +0000 (12:28 +0000)]
Tweak redirection handling in last change.

21 years ago* scripts/abilist.awk: If variable `parse_names' is set, grok the file
Roland McGrath [Thu, 27 Mar 2003 11:54:09 +0000 (11:54 +0000)]
* scripts/abilist.awk: If variable `parse_names' is set, grok the file

header lines and write out foo.symlist files for each foo.so.NN listed.

* libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
This symbol is exported, and we don't want to hide it.
Add libc_hidden_proto instead.
(_IO_file_jumps): Add libc_hidden_proto.
* libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
Remove INTVARDEF.
* libio/fileops.c (_IO_file_jumps): Likewise.
* libio/stdfiles.c: Don't use INTUSE on them.
* libio/iofdopen.c (_IO_new_fdopen): Likewise.
* libio/iofopen.c (__fopen_internal): Likewise.
* libio/freopen.c (freopen): Likewise.
* libio/freopen64.c (freopen64): Likewise.
* libio/iovdprintf.c (_IO_vdprintf): Likewise.

21 years ago* Makerules (check-abi) [$(enable-check-abi) = warn]:
Roland McGrath [Thu, 27 Mar 2003 09:48:09 +0000 (09:48 +0000)]
* Makerules (check-abi) [$(enable-check-abi) = warn]:

Ignore exit status from diff.
* configure.in (enable_check_abi): Document possible value "warn".
Change default to no for now.
* configure: Regenerated.

* sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
macro calls and a #include <stub-tag.h> at the end.
* Makerules ($(objpfx)stubs): Tweak sed commands.

* sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
caller column for *xattr syscalls, since they are in sysdeps/generic.

* sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
* sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid

2003-03-26  Roland McGrath  <roland@redhat.com>

* Makerules (check-abi-config): Use /thread instead of /tls when
use-thread and not just use-tls is set.

* Makerules (update-abi): Put quotes around $(update-abi-config).

* elf/Makefile (check-abi): Depend on check-abi-ld.
(update-abi): Depend on update-abi-ld.

21 years ago2003-03-27 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 27 Mar 2003 09:47:16 +0000 (09:47 +0000)]
2003-03-27  Roland McGrath  <roland@redhat.com>

* sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
macro calls and a #include <stub-tag.h> at the end.
* Makerules ($(objpfx)stubs): Tweak sed commands.

21 years agoUpdate.
Ulrich Drepper [Thu, 27 Mar 2003 08:12:58 +0000 (08:12 +0000)]
Update.

2003-03-26  GOTO Masanori  <gotom@debian.or.jp>

* sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
do not check for errors (unless testing for 32bit variant).
* sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.

21 years ago(setfsuid): Use INTERNAL_SYSCALL and do not check for errors (unless testing for...
Ulrich Drepper [Thu, 27 Mar 2003 08:07:38 +0000 (08:07 +0000)]
(setfsuid): Use INTERNAL_SYSCALL and do not check for errors (unless testing for 32bit variant).

21 years ago* sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
Roland McGrath [Thu, 27 Mar 2003 02:45:58 +0000 (02:45 +0000)]
* sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use

unconditional mov.  Remove nop.

* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
* sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
when __ASSUME_VFORK_SYSCALL is defined.
* sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
__ASSUME_MMAP2_SYSCALL.
* sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
__ASSUME_REALTIME_SIGNALS.

21 years ago2003-03-27 Philip Blundell <philb@gnu.org>
Roland McGrath [Thu, 27 Mar 2003 02:45:47 +0000 (02:45 +0000)]
2003-03-27  Philip Blundell  <philb@gnu.org>

* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
* sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
when __ASSUME_VFORK_SYSCALL is defined.
* sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
__ASSUME_MMAP2_SYSCALL.
* sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
__ASSUME_REALTIME_SIGNALS.

21 years agoUpdate.
Ulrich Drepper [Thu, 27 Mar 2003 01:16:50 +0000 (01:16 +0000)]
Update.

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

* sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
only if DL_NO_COPY_RELOCS is not defined.
* sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.

21 years agoUpdate.
Ulrich Drepper [Wed, 26 Mar 2003 23:46:46 +0000 (23:46 +0000)]
Update.

* sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
no-op padding element.
* sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.

2003-03-26  GOTO Masanori  <gotom@debian.or.jp>

* sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
condition check for the return value of getgroups32.

2003-03-26  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
Fix a typo.
* sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
PSEUDO_END_NOERRNO): Define.
* sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
Define to PSEUDO_END.

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

21 years ago(struct siginfo): Avoid no-op padding element.
Ulrich Drepper [Wed, 26 Mar 2003 23:41:58 +0000 (23:41 +0000)]
(struct siginfo): Avoid no-op padding element.

21 years ago* sysdeps/unix/make-syscalls.sh: When an undefined syscall has
Roland McGrath [Wed, 26 Mar 2003 22:49:50 +0000 (22:49 +0000)]
* sysdeps/unix/make-syscalls.sh: When an undefined syscall has

SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
* sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
(sysdep_routines): Add stub-syscalls.
($(objpfx)stub-syscalls.c): New target.
(generated): Add stub-syscalls.c.

* tls.make.c: Also define use-tls according to USE_TLS macro.

21 years ago2003-03-26 Roland McGrath <roland@redhat.com>
Roland McGrath [Wed, 26 Mar 2003 22:49:15 +0000 (22:49 +0000)]
2003-03-26  Roland McGrath  <roland@redhat.com>

* sysdeps/unix/make-syscalls.sh: When an undefined syscall has
SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
* sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
(sysdep_routines): Add stub-syscalls.
($(objpfx)stub-syscalls.c): New target.
(generated): Add stub-syscalls.c.

21 years ago(__getgroups): Fix the error condition check for the return value of getgroups32.
Ulrich Drepper [Wed, 26 Mar 2003 18:15:57 +0000 (18:15 +0000)]
(__getgroups): Fix the error condition check for the return value of getgroups32.

21 years ago(PSEUDO_NOERRNO): Fix a typo.
Ulrich Drepper [Wed, 26 Mar 2003 18:04:22 +0000 (18:04 +0000)]
(PSEUDO_NOERRNO): Fix a typo.

21 years ago* sysdeps/unix/sysv/linux/timer_getoverr.c: Fix typo in name
Jakub Jelinek [Wed, 26 Mar 2003 15:33:23 +0000 (15:33 +0000)]
* sysdeps/unix/sysv/linux/timer_getoverr.c: Fix typo in name

of included file.

21 years agoFix typo in name of included file.
Jakub Jelinek [Wed, 26 Mar 2003 15:33:14 +0000 (15:33 +0000)]
Fix typo in name of included file.

21 years agoUpdate.
Ulrich Drepper [Wed, 26 Mar 2003 09:41:23 +0000 (09:41 +0000)]
Update.

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

* abilist/librt.abilist: Add new timer interfaces for 64-bit archs.

21 years agoUpdate.
Ulrich Drepper [Wed, 26 Mar 2003 08:12:21 +0000 (08:12 +0000)]
Update.

2003-03-25  Jiro SEKIBA  <jir@yamato.ibm.com>

* iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
* iconvdata/bug-iconv4.c: New file.
* iconvdata/Makefile (tests): Add bug-iconv4.

21 years agoTest for EUC-TW bug with too-short output buffers.
Ulrich Drepper [Wed, 26 Mar 2003 08:10:58 +0000 (08:10 +0000)]
Test for EUC-TW bug with too-short output buffers.

21 years ago* sysdeps/pthread/posix-timer.h (TIMER_MAX): Define if not defined.
Roland McGrath [Wed, 26 Mar 2003 08:06:59 +0000 (08:06 +0000)]
* sysdeps/pthread/posix-timer.h (TIMER_MAX): Define if not defined.

(timer_id2ptr): Fix typo.

21 years ago2003-03-25 Roland McGrath <roland@redhat.com>
Roland McGrath [Wed, 26 Mar 2003 08:06:52 +0000 (08:06 +0000)]
2003-03-25  Roland McGrath  <roland@redhat.com>

* sysdeps/pthread/posix-timer.h (TIMER_MAX): Define if not defined.
(timer_id2ptr): Fix typo.

21 years ago(from_euc_tw): Fix return value of TO_LOOP.
Ulrich Drepper [Wed, 26 Mar 2003 07:58:49 +0000 (07:58 +0000)]
(from_euc_tw): Fix return value of TO_LOOP.

21 years agoUpdate.
Ulrich Drepper [Wed, 26 Mar 2003 05:55:17 +0000 (05:55 +0000)]
Update.

2003-03-25  H.J. Lu  <hjl@gnu.org>

* elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
symbols twice.
(_dl_lookup_versioned_symbol): Likewise.

21 years agoUpdate.
Ulrich Drepper [Wed, 26 Mar 2003 05:25:58 +0000 (05:25 +0000)]
Update.

Remove struct __pthread_attr_s forward declaration.
* sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.

21 years agoRemove struct __pthread_attr_s forward declaration.
Ulrich Drepper [Wed, 26 Mar 2003 04:45:41 +0000 (04:45 +0000)]
Remove struct __pthread_attr_s forward declaration.

21 years ago* csu/tst-atomic.c (do_test): Add some new
Roland McGrath [Wed, 26 Mar 2003 04:02:03 +0000 (04:02 +0000)]
* csu/tst-atomic.c (do_test): Add some new

atomic_compare_and_exchange_val_acq, atomic_add_zero,
atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
* include/atomic.h (atomic_add_negative, atomic_add_zero):
Prefix local variable so that it doesn't clash with the one
in atomic_exchange_and_add.
* sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
pointers.
(atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
* sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
value into register.
* sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
Cast newval to long.
* sysdeps/x86_64/bits/atomic.h
(__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
long.
(atomic_exchange): Cast newvalue to long if sizeof == 8.
(atomic_exchange_and_add): Cast value to long if sizeof == 8.
(atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
(atomic_bit_set): Shift 1L up in all cases to shut up warnings.

21 years ago* sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
Roland McGrath [Wed, 26 Mar 2003 03:44:33 +0000 (03:44 +0000)]
* sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order

bit from backtrace addresses.

2003-03-21  Andreas Schwab  <schwab@suse.de>

* sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
__chown symbols.

21 years ago* config.make.in (enable-check-abi): New variable from configure.
Roland McGrath [Wed, 26 Mar 2003 01:15:16 +0000 (01:15 +0000)]
* config.make.in (enable-check-abi): New variable from configure.

* configure.in (enable_check_abi): New substituted variable,
controlled by --{enable,disable}-check-abi (default yes).
* configure: Regenerated.
* Makerules [$(enable-check-abi) = yes] (tests): Put this condition
on check-abi dependency.

21 years ago2003-03-25 Roland McGrath <roland@redhat.com>
Roland McGrath [Wed, 26 Mar 2003 01:15:07 +0000 (01:15 +0000)]
2003-03-25  Roland McGrath  <roland@redhat.com>

* config.make.in (enable-check-abi): New variable from configure.
* configure.in (enable_check_abi): New substituted variable,
controlled by --{enable,disable}-check-abi (default yes).
* configure: Regenerated.
* Makerules [$(enable-check-abi) = yes] (tests): Put this condition
on check-abi dependency.

21 years ago*** empty log message ***
Andreas Schwab [Tue, 25 Mar 2003 23:41:38 +0000 (23:41 +0000)]
*** empty log message ***

* sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
* include/atomic.h: Likewise.

21 years ago*** empty log message ***
Andreas Schwab [Tue, 25 Mar 2003 23:17:14 +0000 (23:17 +0000)]
*** empty log message ***

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

* sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.

21 years agoDefine ret_NOERRNO.
Andreas Schwab [Tue, 25 Mar 2003 23:15:40 +0000 (23:15 +0000)]
Define ret_NOERRNO.

21 years ago* sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
Roland McGrath [Tue, 25 Mar 2003 22:40:43 +0000 (22:40 +0000)]
* sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.

(__arch_atomic_exchange_64): New macro.
(atomic_exchange): Use them.
(__arch_atomic_exchange_and_add_32): New macro.
(__arch_atomic_exchange_and_add_64): New macro.
(atomic_exchange_and_add): Use them.
Original patch from Steven Munroe <sjmunroe@us.ibm.com>.

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

* sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
(__arch_atomic_exchange_64): New macro.
(atomic_exchange): Use them.
(__arch_atomic_exchange_and_add_32): New macro.
(__arch_atomic_exchange_and_add_64): New macro.
(atomic_exchange_and_add): Use them.
Original patch from Steven Munroe <sjmunroe@us.ibm.com>.

21 years agoUpdate.
Ulrich Drepper [Tue, 25 Mar 2003 22:05:41 +0000 (22:05 +0000)]
Update.

* sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
Likewise.
* sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
Likewise.

21 years ago(__TIMER_T_TYPE): Define as void*.
Ulrich Drepper [Tue, 25 Mar 2003 22:00:07 +0000 (22:00 +0000)]
(__TIMER_T_TYPE): Define as void*.

21 years ago* sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64): Define. * sysdeps...
Alexandre Oliva [Tue, 25 Mar 2003 21:51:53 +0000 (21:51 +0000)]
* sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64): Define. * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all ISA tests. (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA. (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG. * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR to decide whether to add padding. * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR to decide whether to add padding. * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct old_kernel_sigaction): Likewise.

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

* sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
Define.
* sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
ISA tests.
(ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
(PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
* sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
to decide whether to add padding.
* sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
to decide whether to add padding.
* sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
old_kernel_sigaction): Likewise.

21 years agoUpdate.
Ulrich Drepper [Tue, 25 Mar 2003 20:41:26 +0000 (20:41 +0000)]
Update.

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

* csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
atomic_add_zero were supposed to do.
* include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
to x86 behavior.

* sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
This matches the new timer implementation.
* sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
timer info for what the kernel provides these days.
(struct sigevent): Add _tid field.
Define SIGEV_THREAD_ID.

* Versions.def (librt): Add GLIBC_2.3.3.

* abilist/libpthread.abilist: Update for nptl.

21 years agoDefine SIGCANCEL and SIGTIMER. Remove FRAME_LEFT definition.
Ulrich Drepper [Tue, 25 Mar 2003 19:13:30 +0000 (19:13 +0000)]
Define SIGCANCEL and SIGTIMER.  Remove FRAME_LEFT definition.

21 years ago* sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
Roland McGrath [Tue, 25 Mar 2003 09:44:37 +0000 (09:44 +0000)]
* sysdeps/unix/sysv/linux/arm/sysdep-cancel.h

(DOARGS_5, DOARGS_6, DOARGS_7): Rewritten.

21 years ago2003-03-24 Daniel Jacobowitz <drow@mvista.com>
Roland McGrath [Tue, 25 Mar 2003 09:44:29 +0000 (09:44 +0000)]
2003-03-24  Daniel Jacobowitz  <drow@mvista.com>

* sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
(DOARGS_5, DOARGS_6, DOARGS_7): Rewritten.

21 years agoUpdate.
Ulrich Drepper [Tue, 25 Mar 2003 01:14:36 +0000 (01:14 +0000)]
Update.

2003-03-24  Jon Grimm  <jgrimm@us.ibm.com>

* inet/netinet/in.h: Add IPPROTO_SCTP.

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

* sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.

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

2003-03-24  Philip Blundell  <philb@gnu.org>

* sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
Remove a1 from clobber list.

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

* timezone/antarctica: Update from tzdata2003a.
* timezone/asia: Likewise.
* timezone/australasia: Likewise.
* timezone/europe: Likewise.
* timezone/iso3166.tab: Likewise.
* timezone/northamerica: Likewise.
* timezone/southamerica: Likewise.
* timezone/zone.tab: Likewise.

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

* sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.

21 years agoUpdate.
Ulrich Drepper [Mon, 24 Mar 2003 07:57:09 +0000 (07:57 +0000)]
Update.

* sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
unwanted expansion by definining to ret.  Patch by Ian Wienand.

21 years agoUpdate.
Ulrich Drepper [Sun, 23 Mar 2003 19:44:31 +0000 (19:44 +0000)]
Update.

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

* sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
the parameter description to denote no error checking.  Generate
appropriate pseudo asm code.
* sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
* sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
getpgrp, and getppid with 'E'.
* sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
PSEUDO_END_NOERRNO, and ret_NOERRNO.
* sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
* sysdeps/unix/sysdep.h: Likewise.
* sysdeps/unix/alpha/sysdep.h: Likewise.
* sysdeps/unix/sparc/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: 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.

21 years agoRecognize 'E' in first position of the parameter description to denote no error check...
Ulrich Drepper [Sun, 23 Mar 2003 19:35:52 +0000 (19:35 +0000)]
Recognize 'E' in first position of the parameter description to denote no error checking.  Generate appropriate pseudo asm code.

21 years agoAdd s390, update i.86 and powerpc
Roland McGrath [Sun, 23 Mar 2003 11:19:50 +0000 (11:19 +0000)]
Add s390, update i.86 and powerpc

21 years ago* Makeconfig (+includes): Don't use $(last-includes).
Roland McGrath [Sun, 23 Mar 2003 11:17:28 +0000 (11:17 +0000)]
* Makeconfig (+includes): Don't use $(last-includes).

21 years ago* tst-mutex5.c (do_test): Unlock before destroy, otherwise we invoke
Roland McGrath [Sun, 23 Mar 2003 10:12:59 +0000 (10:12 +0000)]
* tst-mutex5.c (do_test): Unlock before destroy, otherwise we invoke

undefined behavior.

21 years ago* tst-join5.c (tf1, tf2): Add a cast.
Roland McGrath [Sun, 23 Mar 2003 10:01:48 +0000 (10:01 +0000)]
* tst-join5.c (tf1, tf2): Add a cast.

* Makeconfig (includes): Append -I$(..)nptl to this variable.

* tst-barrier2.c (do_test) [! _POSIX_THREAD_PROCESS_SHARED]:
Don't test anything.
* tst-cond4.c: Likewise.
* tst-cond6.c: Likewise.
* tst-flock2.c: Likewise.
* tst-mutex4.c: Likewise.
* tst-rwlock4.c: Likewise.
* tst-signal1.c: Likewise.
* tst-spin2.c: Likewise.
* tst-cond11.c [! _POSIX_CLOCK_SELECTION]: Likewise.

* tst-mutex4.c: Use test-skeleton.c.
* tst-spin2.c: Likewise.
* tst-sysconf.c: Likewise.
* tst-barrier2.c: Likewise.
* tst-cond4.c: Likewise.
* tst-cond6.c: Likewise.
* tst-rwlock4.c: Likewise.
* tst-unload.c: Likewise.
* tst-flock2.c (do_test): Use return instead of exit.

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

* tst-mutex4.c: Use test-skeleton.c.
* tst-spin2.c: Likewise.
* tst-sysconf.c: Likewise.
* tst-barrier2.c: Likewise.
* tst-cond4.c: Likewise.
* tst-cond6.c: Likewise.
* tst-rwlock4.c: Likewise.
* tst-flock2.c (do_test): Use return instead of exit.

21 years ago* sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns. * sysdeps/unix/sysv...
Alexandre Oliva [Sun, 23 Mar 2003 02:10:04 +0000 (02:10 +0000)]
* sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns. * sysdeps/unix/sysv/linux/configure: Rebuilt.

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

* sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
* sysdeps/unix/sysv/linux/configure: Rebuilt.

21 years ago* sysdeps/alpha/fpu/libm-test-ulps: Update.
Roland McGrath [Sun, 23 Mar 2003 00:52:23 +0000 (00:52 +0000)]
* sysdeps/alpha/fpu/libm-test-ulps: Update.

* sysdeps/arm/libm-test-ulps: Update.
* sysdeps/hppa/fpu/libm-test-ulps: Update.
* sysdeps/ia64/fpu/libm-test-ulps: Update.
* sysdeps/mips/fpu/libm-test-ulps: Update.
* sysdeps/powerpc/nofpu/libm-test-ulps: Update.
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
* sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
* sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
* sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
* sysdeps/s390/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.

21 years ago* include/atomic.h: Put parens around all macro arguments.
Roland McGrath [Sat, 22 Mar 2003 23:38:18 +0000 (23:38 +0000)]
* include/atomic.h: Put parens around all macro arguments.

(__atomic_val_bysize, __atomic_bool_bysize): New macros.
(atomic_compare_and_exchange_val_acq): Use it.
(atomic_compare_and_exchange_bool_acq): Likewise.
(atomic_increment_and_test): Invert sense of test.
(atomic_decrement_and_test): Likewise.
* csu/tst-atomic.c: Update those tests to match.

21 years ago* include/atomic.h (atomic_increment_and_test): Invert sense of test.
Roland McGrath [Sat, 22 Mar 2003 23:01:01 +0000 (23:01 +0000)]
* include/atomic.h (atomic_increment_and_test): Invert sense of test.

Add comment.
(atomic_decrement_and_test): Add comment.

2003-03-22  Jakub Jelinek  <jakub@redhat.com>

* include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
(atomic_compare_and_exchange_bool_acq): Add comment.  Don't use
__oldval variable in the macro, since it might be macro argument.
(atomic_decrement_if_positive): Initialize __memp, remove setting
of non-existent variable.
(atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
* sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
using atomic_compare_and_exchange_val_acq.
(atomic_decrement_if_positive, atomic_bit_test_set): Define.
* sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
Renamed from...
(__arch_compare_and_exchange_bool_8_acq): ... this.
(__arch_compare_and_exchange_val_16_acq): Renamed from...
(__arch_compare_and_exchange_bool_16_acq): ... this.
(__arch_compare_and_exchange_val_32_acq): Return old value.  Renamed
from...
(__arch_compare_and_exchange_bool_32_acq): ... this.
(__arch_compare_and_exchange_val_64_acq): Return old value.  Renamed
from...
(__arch_compare_and_exchange_bool_64_acq): ... this.
(__arch_compare_and_exchange_val_32_acq): Use __typeof for local
variables types instead of assuming int.
Change prefix of local variables to __arch.
* sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
Remove.
(atomic_compare_and_exchange_val_acq,
atomic_compare_and_exchange_bool_acq): Define.

* csu/tst-atomic.c: New test.
* csu/tst-atomic-long.c: New test.
* csu/Makefile (tests): Add tst-atomic and tst-atomic-long.

* malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.

* sysdeps/s390/Versions: Add trailing newline.

* sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.

21 years ago2003-03-22 Jakub Jelinek <jakub@redhat.com>
Roland McGrath [Sat, 22 Mar 2003 23:00:12 +0000 (23:00 +0000)]
2003-03-22  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/s390/Versions: Add trailing newline.

21 years ago* sysdeps/m68k/fpu/libm-test-ulps: Update.
Andreas Schwab [Sat, 22 Mar 2003 21:18:24 +0000 (21:18 +0000)]
* sysdeps/m68k/fpu/libm-test-ulps: Update.

21 years ago* sysdeps/m68k/m68020/bits/atomic.h: New file.
Andreas Schwab [Sat, 22 Mar 2003 21:01:29 +0000 (21:01 +0000)]
* sysdeps/m68k/m68020/bits/atomic.h: New file.

* sysdeps/m68k/m68020/atomicity.h: Removed.

21 years agoAtomic operations for m68020 and up.
Andreas Schwab [Sat, 22 Mar 2003 20:59:49 +0000 (20:59 +0000)]
Atomic operations for m68020 and up.

21 years ago* sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation data structures...
Alexandre Oliva [Sat, 22 Mar 2003 15:07:05 +0000 (15:07 +0000)]
* sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation data structures and macros.  Protect from multiple inclusion.

* sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
data structures and macros.  Protect from multiple inclusion.

21 years ago* sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless typo in #if test.
Alexandre Oliva [Sat, 22 Mar 2003 12:50:46 +0000 (12:50 +0000)]
* sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless typo in #if test.

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

* sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
typo in #if test.

21 years agoUpdate
Andreas Jaeger [Sat, 22 Mar 2003 06:14:37 +0000 (06:14 +0000)]
Update

2003-03-21  Andreas Jaeger  <aj@suse.de>

* sysdeps/i386/fpu/libm-test-ulps: Update.

* math/libm-test.inc (tgamma_test): Recompute some constants with
36 digits precision.
(lgamma_test): Likewise.
(ccos_test): Likewise.
(ccosh_test): Likewise.
(clog10_test): Likewise.
(csin_test): Likewise.
(csinh_test): Likewise.
(ctan_test): Likewise.
(ctanh_test): Likewise.

2003-03-19  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.

21 years ago* math/libm-test.inc (tgamma_test): Recompute some constants with
Andreas Jaeger [Sat, 22 Mar 2003 06:13:35 +0000 (06:13 +0000)]
* math/libm-test.inc (tgamma_test): Recompute some constants with

36 digits precision.
(lgamma_test): Likewise.
(ccos_test): Likewise.
(ccosh_test): Likewise.
(clog10_test): Likewise.
(csin_test): Likewise.
(csinh_test): Likewise.
(ctan_test): Likewise.
(ctanh_test): Likewise.

21 years ago* sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
Roland McGrath [Sat, 22 Mar 2003 00:07:21 +0000 (00:07 +0000)]
* sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"

constraint to permit non-constant BIT argument.
(atomic_bit_test_set): Likewise.
* sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
(atomic_bit_set): Likewise.  Use 1UL in case that BIT might be >= 32.
For quadword case, use "i" constraint if __builtin_constant_p and < 32
or "r" constraint otherwise.

* configure.in: Move AC_PROG_CC and other program-finding before all
the version checks.
* configure: Regenerated.

21 years ago2003-03-21 Roland McGrath <roland@redhat.com>
Roland McGrath [Sat, 22 Mar 2003 00:05:02 +0000 (00:05 +0000)]
2003-03-21  Roland McGrath  <roland@redhat.com>

* sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
constraint to permit non-constant BIT argument.
(atomic_bit_test_set): Likewise.
* sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
(atomic_bit_set): Likewise.  Use 1UL in case that BIT might be >= 32.
For quadword case, use "i" constraint if __builtin_constant_p and < 32
or "r" constraint otherwise.

21 years ago* sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke unaligned copying of 8...
Alexandre Oliva [Fri, 21 Mar 2003 21:39:39 +0000 (21:39 +0000)]
* sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke unaligned copying of 8-15 bytes.  From Chris Demetriou <cgd@broadcom.com>.  Fix label names. * sysdeps/mips/mips64/memset.S: Fix label names.  Make similar change as to memcpy.S. * sysdeps/mips/memcpy.S: Formatting changes. * sysdeps/mips/memset.S: Likewise.

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

* sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
unaligned copying of 8-15 bytes.  From Chris Demetriou
<cgd@broadcom.com>.  Fix label names.
* sysdeps/mips/mips64/memset.S: Fix label names.  Make similar
change as to memcpy.S.
* sysdeps/mips/memcpy.S: Formatting changes.
* sysdeps/mips/memset.S: Likewise.

21 years ago* sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
Roland McGrath [Fri, 21 Mar 2003 20:52:12 +0000 (20:52 +0000)]
* sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.

21 years ago* sysdeps/i386/tls.h [__ASSUME_SET_THREAD_AREA_SYSCALL]
Roland McGrath [Fri, 21 Mar 2003 20:37:25 +0000 (20:37 +0000)]
* sysdeps/i386/tls.h [__ASSUME_SET_THREAD_AREA_SYSCALL]

(TLS_SETUP_GS_SEGMENT): Fix a typo.

21 years ago2003-03-21 Jakub Jelinek <jakub@redhat.com>
Roland McGrath [Fri, 21 Mar 2003 20:37:16 +0000 (20:37 +0000)]
2003-03-21  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/i386/tls.h [__ASSUME_SET_THREAD_AREA_SYSCALL]
(TLS_SETUP_GS_SEGMENT): Fix a typo.

21 years ago* sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New. * sysdeps/mips...
Alexandre Oliva [Fri, 21 Mar 2003 19:44:24 +0000 (19:44 +0000)]
* sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New. * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.

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

* sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
* sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.

21 years ago.
Roland McGrath [Fri, 21 Mar 2003 11:15:17 +0000 (11:15 +0000)]
.

21 years ago* sysdeps/i386/i486/bits/atomic.h
Roland McGrath [Fri, 21 Mar 2003 11:15:01 +0000 (11:15 +0000)]
* sysdeps/i386/i486/bits/atomic.h

(__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
version of the macro to avoid compile-time warnings.
[! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
(__arch_compare_and_exchange_bool_64_acq): New macro.
(atomic_exchange_and_add, atomic_add): Fix name and usage of it.
(atomic_increment, atomic_decrement): Likewise.

21 years ago2003-03-21 Roland McGrath <roland@redhat.com>
Roland McGrath [Fri, 21 Mar 2003 11:14:51 +0000 (11:14 +0000)]
2003-03-21  Roland McGrath  <roland@redhat.com>

* sysdeps/i386/i486/bits/atomic.h
(__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
version of the macro to avoid compile-time warnings.
[! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
(__arch_compare_and_exchange_bool_64_acq): New macro.
(atomic_exchange_and_add, atomic_add): Fix name and usage of it.
(atomic_increment, atomic_decrement): Likewise.

21 years agoUpdate.
Ulrich Drepper [Fri, 21 Mar 2003 09:51:39 +0000 (09:51 +0000)]
Update.

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

* sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
* sysdeps/i386/i486/bits/atomic.h: Likewise.

21 years agoDon't use matching memory constraints.
Ulrich Drepper [Fri, 21 Mar 2003 09:43:01 +0000 (09:43 +0000)]
Don't use matching memory constraints.

21 years ago* include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
Roland McGrath [Fri, 21 Mar 2003 08:54:48 +0000 (08:54 +0000)]
* include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.

21 years ago2003-03-21 Roland McGrath <roland@redhat.com>
Roland McGrath [Fri, 21 Mar 2003 08:54:39 +0000 (08:54 +0000)]
2003-03-21  Roland McGrath  <roland@redhat.com>

* include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.

21 years ago(__arch_compare_and_exchange_val_*_acq): Remove setne instruction.
Ulrich Drepper [Fri, 21 Mar 2003 08:19:35 +0000 (08:19 +0000)]
(__arch_compare_and_exchange_val_*_acq): Remove setne instruction.

21 years agoUpdate.
Ulrich Drepper [Fri, 21 Mar 2003 08:13:51 +0000 (08:13 +0000)]
Update.

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

* include/atomic.h: Define atomic_compare_and_exchange_val_acq,
atomic_compare_and_exchange_val_rel,
atomic_compare_and_exchange_bool_acq, and
atomic_compare_and_exchange_bool_rel instead of
atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
* sysdeps/i386/i486/bits/atomic.h: Define
__arch_compare_and_exchange_val_*_acq instead of
__arch_compare_and_exchange_*_acq.
* sysdeps/x86_64/bits/atomic.h: Likewise.
* sysdeps/ia64/bits/atomic.h: Define
__arch_compare_and_exchange_bool_*_acq instead of
__arch_compare_and_exchange_*_acq.
* sysdeps/powerpc/bits/atomic.h: Likewise.
* sysdeps/s390/bits/atomic.h: Likewise.
* gmon/mcount.c: Adjust for new form of compare&exchange macros.
* malloc/set-freeres.c: Likewise.
* nscd/cache.c: Likewise.
* stdlib/cxa_finalize.c: Likewise.
* sysdeps/unix/sysv/linux/getsysstats.c: Likewise.

21 years agoUpdate.
Ulrich Drepper [Fri, 21 Mar 2003 08:03:25 +0000 (08:03 +0000)]
Update.

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

* cancellation.c: Adjust for new form of compare&exchange macros.
* cleanup_defer.c: Likewise.
* init.c: Likewise.
* libc-cancellation.c: Likewise.
* old_pthread_cond_broadcast.c: Likewise.
* old_pthread_cond_signal.c: Likewise.
* old_pthread_cond_timedwait.c: Likewise.
* old_pthread_cond_wait.c: Likewise.
* pthread_cancel.c: Likewise.
* pthread_create.c: Likewise.
* pthread_detach.c: Likewise.
* pthread_join.c: Likewise.
* pthread_key_delete.c: Likewise.
* pthread_setcancelstate.c: Likewise.
* pthread_setcanceltype.c: Likewise.
* pthread_timedjoin.c: Likewise.
* pthread_tryjoin.c: Likewise.
* sysdeps/pthread/createthread.c: Likewise.

21 years agoDefine atomic_compare_and_exchange_val_acq, atomic_compare_and_exchange_val_rel,...
Ulrich Drepper [Fri, 21 Mar 2003 07:37:36 +0000 (07:37 +0000)]
Define atomic_compare_and_exchange_val_acq, atomic_compare_and_exchange_val_rel, atomic_compare_and_exchange_bool_acq, and atomic_compare_and_exchange_bool_rel instead of atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.

21 years ago* sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs. * sysdeps/mips/mips64...
Alexandre Oliva [Thu, 20 Mar 2003 22:29:44 +0000 (22:29 +0000)]
* sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs. * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust. * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.

* sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
* sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
* sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.

21 years ago* sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset into high and low halve...
Alexandre Oliva [Thu, 20 Mar 2003 20:58:02 +0000 (20:58 +0000)]
* sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset into high and low halves on n64. * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise. * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise. * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.

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

* sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
into high and low halves on n64.
* sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
* sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
* sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.

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

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

* include/atomic.h (atomic_decrement_if_positive): Adjust for the
correct atomic_compare_and_exchange_acq semantics.

21 years ago(atomic_decrement_if_positive): Adjust for the correct atomic_compare_and_exchange_ac...
Ulrich Drepper [Thu, 20 Mar 2003 19:42:54 +0000 (19:42 +0000)]
(atomic_decrement_if_positive): Adjust for the correct atomic_compare_and_exchange_acq semantics.

21 years ago* sysdeps/mips/ieee754.h: Remove excess #endif.
Alexandre Oliva [Thu, 20 Mar 2003 17:59:45 +0000 (17:59 +0000)]
* sysdeps/mips/ieee754.h: Remove excess #endif.

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

* sysdeps/mips/ieee754.h: Remove excess #endif.

21 years ago* sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
Roland McGrath [Thu, 20 Mar 2003 11:40:51 +0000 (11:40 +0000)]
* sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused

variable.  Remove superfluous memory clobber.

* include/atomic.h: Syntax braino fix.

* posix/tst-nice.c (do_test): Use %m formats instead of printing errno
in decimal.  Don't bail if niced at start.  Just check that nice call
bumps the total at all.

21 years ago2003-03-20 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 20 Mar 2003 11:40:36 +0000 (11:40 +0000)]
2003-03-20  Roland McGrath  <roland@redhat.com>

* posix/tst-nice.c (do_test): Use %m formats instead of printing errno
in decimal.  Don't bail if niced at start.  Just check that nice call
bumps the total at all.

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.