platform/upstream/linaro-glibc.git
17 years ago* rt/tst-shm.c: Use fstat64 instead of fstat.
Ulrich Drepper [Sat, 19 May 2007 03:30:44 +0000 (03:30 +0000)]
* rt/tst-shm.c: Use fstat64 instead of fstat.

17 years ago* sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
Ulrich Drepper [Fri, 18 May 2007 19:05:37 +0000 (19:05 +0000)]
* sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where

__NR_sync_file_range is not defined.

17 years ago[BZ #4512]
Ulrich Drepper [Fri, 18 May 2007 00:55:10 +0000 (00:55 +0000)]
[BZ #4512]

* pthread_mutex_lock.c: Preserve FUTEX_WAITERS bit when dead owner
is detected.
* pthread_mutex_timedlock.c: Likewise.
* pthread_mutex_trylock.c: Likewise.
Patch in part by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.

* Makefile (tests): Add tst-robust9 and tst-robustpi9.
* tst-robust9.c: New file.
* tst-robustpi9.c: New file.

17 years agoDummy files to prevent stub versions from being used.
Ulrich Drepper [Thu, 17 May 2007 18:39:55 +0000 (18:39 +0000)]
Dummy files to prevent stub versions from being used.

* sysdeps/x86_64/fpu/k_cosl.c: New file.
* sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
* sysdeps/x86_64/fpu/k_sinl.c: New file.
* sysdeps/x86_64/fpu/k_tanl.c: New file.

17 years ago* version.h (VERSION): Set to 2.6.90.
Ulrich Drepper [Thu, 17 May 2007 17:01:03 +0000 (17:01 +0000)]
* version.h (VERSION): Set to 2.6.90.

* version.h (VERSION): Define to 2.6.
* include/features.h (__GLIBC_MINOR__): Define to 6.

17 years ago(VERSION): Set to 2.6.90.
Ulrich Drepper [Thu, 17 May 2007 16:59:50 +0000 (16:59 +0000)]
(VERSION): Set to 2.6.90.

17 years agowhitespace
Roland McGrath [Tue, 15 May 2007 20:24:57 +0000 (20:24 +0000)]
whitespace

17 years ago* version.h (VERSION): Define to 6.
Ulrich Drepper [Tue, 15 May 2007 06:49:29 +0000 (06:49 +0000)]
* version.h (VERSION): Define to 6.

* include/features.h (__GLIBC_MINOR__): Likewise.

17 years ago* sysdeps/unix/sysv/linux/sem_post.c: Only wake threads if old
Ulrich Drepper [Tue, 15 May 2007 06:24:31 +0000 (06:24 +0000)]
* sysdeps/unix/sysv/linux/sem_post.c: Only wake threads if old

value of semaphore was zero.
* sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
* sysdeps/unix/sysv/linux/powerpc/sem_post.c: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.

* sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove unnecessary
extra cancellation test.
* sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise.

17 years ago* malloc/malloc.c: Use all small bin slots on 64-bit archs.
Ulrich Drepper [Tue, 15 May 2007 01:51:37 +0000 (01:51 +0000)]
* malloc/malloc.c: Use all small bin slots on 64-bit archs.

* malloc/malloc.c (largebin_index): Really have 32 buckets with 64
sizes.

17 years ago* malloc/malloc.c (largebin_index): Really have 32 buckets with 64 sizes.
Ulrich Drepper [Mon, 14 May 2007 22:53:09 +0000 (22:53 +0000)]
* malloc/malloc.c (largebin_index): Really have 32 buckets with 64 sizes.

2007-05-13  Ulrich Drepper  <drepper@redhat.com>

17 years ago* malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
Ulrich Drepper [Sun, 13 May 2007 20:33:06 +0000 (20:33 +0000)]
* malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum

number of mmaps.  n_mmaps_max is the target.
* malloc/hooks.c: Likewise.
* malloc/arena.c: Likewise.

17 years ago[MALLOC_DEBUG]: Keep track of current maximum number of mmaps. n_mmaps_max is the...
Ulrich Drepper [Sun, 13 May 2007 20:32:57 +0000 (20:32 +0000)]
[MALLOC_DEBUG]: Keep track of current maximum number of mmaps. n_mmaps_max is the target.

17 years ago* sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for getpid.
Andreas Jaeger [Sat, 12 May 2007 21:06:31 +0000 (21:06 +0000)]
* sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for getpid.

2007-05-12  Andreas Jaeger  <aj@suse.de>

* sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
getpid.

17 years ago(add_to_global): One more small cleanup patch.
Ulrich Drepper [Fri, 11 May 2007 21:34:32 +0000 (21:34 +0000)]
(add_to_global): One more small cleanup patch.

17 years ago* elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
Ulrich Drepper [Fri, 11 May 2007 18:46:50 +0000 (18:46 +0000)]
* elf/dl-close.c (_dl_close_worker): Help gcc to optimize by

adding new variables.

optimize.  Completely extend global scope array before making the

17 years ago* elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
Ulrich Drepper [Fri, 11 May 2007 18:27:20 +0000 (18:27 +0000)]
* elf/dl-open.c (add_to_global): Introduce variable ns to help gcc

optimize.  Complerely extend global scope array before making the
new entries visible.

17 years ago* sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
Ulrich Drepper [Fri, 11 May 2007 06:39:07 +0000 (06:39 +0000)]
* sysdeps/unix/sysv/linux/tst-getcpu.c: New file.

* sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
tst-getcpu.

* include/link.h: Move l_version and l_nversion members around to
fill gaps.

17 years ago* scripts/check-c++-types.sh: Don't use -fnu89-inline option.
Ulrich Drepper [Fri, 11 May 2007 02:20:05 +0000 (02:20 +0000)]
* scripts/check-c++-types.sh: Don't use -fnu89-inline option.

17 years ago* sysdeps/unix/sysv/linux/sched_setaffinity.c
Ulrich Drepper [Thu, 10 May 2007 23:38:55 +0000 (23:38 +0000)]
* sysdeps/unix/sysv/linux/sched_setaffinity.c

(__sched_setaffinity_new): If syscall was successful and
RESET_VGETCPU_CACHE is defined, use it before returning.
* sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.

17 years ago* io/sys/stat.h: Make sure struct timespec is defined for
Ulrich Drepper [Thu, 10 May 2007 22:58:45 +0000 (22:58 +0000)]
* io/sys/stat.h: Make sure struct timespec is defined for

__USE_ATFILE.

17 years ago* sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
Ulrich Drepper [Thu, 10 May 2007 21:44:41 +0000 (21:44 +0000)]
* sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and

UTIME_OMIT.
* sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
* sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
* sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
* sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
* io/sys/stat.h: Declare utimensat, futimens.
* io/utimensat.c: New file.
* io/futimens.c: New file.
* sysdeps/unix/sysv/linux/utimensat.c: New file.
* sysdeps/unix/sysv/linux/futimens.c: New file.
* io/Makefile (routines): Add utimensat, futimens.
* io/Versions: Add utimensat, futimens to GLIBC_2.6.
* sysdeps/unix/sysv/linux/lutimes.c: New file.
* sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
available.

* include/sys/cdefs.h: Redefine __nonnull so that test for
incorrect parameters in the libc code itself are not omitted.

17 years agoRedefine __nonnull so that test for incorrect parameters in the libc code itself...
Ulrich Drepper [Thu, 10 May 2007 20:15:11 +0000 (20:15 +0000)]
Redefine __nonnull so that test for incorrect parameters in the libc code itself are not omitted.

17 years ago[BZ #4455]
Jakub Jelinek [Thu, 10 May 2007 15:17:55 +0000 (15:17 +0000)]
[BZ #4455]

* tst-align2.c: Include stackinfo.h.
* tst-getpid1.c: Likewise.
2007-05-10  Jakub Jelinek  <jakub@redhat.com>

[BZ #4455]
* tst-align2.c: Include stackinfo.h.
* tst-getpid1.c: Likewise.

17 years ago* sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
Jakub Jelinek [Thu, 10 May 2007 06:31:20 +0000 (06:31 +0000)]
* sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow

exception in addition to inexact when asked to raise only FE_INEXACT.
* sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
exception in addition to inexact when asked to raise only FE_INEXACT.

17 years ago[BZ #3427]
Jakub Jelinek [Thu, 10 May 2007 06:30:17 +0000 (06:30 +0000)]
[BZ #3427]

* sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
in *envp.
2007-05-09  Jakub Jelinek  <jakub@redhat.com>

[BZ #3427]
* sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
in *envp.

17 years ago[BZ #4403]
Ulrich Drepper [Tue, 8 May 2007 03:27:53 +0000 (03:27 +0000)]
[BZ #4403]

2007-05-07  Ulrich Drepper  <drepper@redhat.com>
[BZ #4403]
* string/strfry.c (strfry): Make result more random.

available in the compiler, add .arch directive to the assembly.

17 years ago(strfry): Make result more random.
Ulrich Drepper [Tue, 8 May 2007 03:27:35 +0000 (03:27 +0000)]
(strfry): Make result more random.

17 years ago2007-05-07 Richard Henderson <rth@redhat.com>
Richard Henderson [Mon, 7 May 2007 22:57:20 +0000 (22:57 +0000)]
2007-05-07  Richard Henderson  <rth@redhat.com>

        * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
        if __NO_LONG_DOUBLE_MATH.
        * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
        available in the compiler, add .arch directive to ethe assembly.

2007-05-07  Jakub Jelinek  <jakub@redhat.com>

        * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
        compat_symbol to GLIBC_2_1.
        * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
        * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
        * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
        * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
        * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
        * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
        * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
        libc, not libm.
        (__isnanl): New compat_symbol.
2007-05-07  Richard Henderson  <rth@redhat.com>

* sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
if __NO_LONG_DOUBLE_MATH.
* sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
available in the compiler, add .arch directive to ethe assembly.

2007-05-07  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
compat_symbol to GLIBC_2_1.
* sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
* sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
* sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
* sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
* sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
* sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
* sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
libc, not libm.
(__isnanl): New compat_symbol.

    Peter Bergner  <bergner@us.ibm.com>
* elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.

17 years ago[BZ #4455]
Ulrich Drepper [Mon, 7 May 2007 22:15:16 +0000 (22:15 +0000)]
[BZ #4455]

* tst-align2.c (do_test): Add _STACK_GROWS_UP case.
* tst-getpid1.c (do_test): Likewise.

17 years ago[BZ #4456]
Ulrich Drepper [Mon, 7 May 2007 22:03:32 +0000 (22:03 +0000)]
[BZ #4456]

2007-05-02  Carlos O'Donell  <carlos@systemhalted.org>
[BZ #4456]
* allocatestack.c (change_stack_perm): Add _STACK_GROWS_UP case.
(allocate_stack): Likewise.

17 years ago(change_stack_perm): Handle stacks growing up. (allocate_stack): Likewise.
Ulrich Drepper [Mon, 7 May 2007 22:02:37 +0000 (22:02 +0000)]
(change_stack_perm): Handle stacks growing up. (allocate_stack): Likewise.

17 years ago* malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
Jakub Jelinek [Mon, 7 May 2007 15:30:57 +0000 (15:30 +0000)]
* malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.

(new_heap): Initialize mprotect_size.
(grow_heap): When growing, only mprotect from mprotect_size till
new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
2007-05-07  Ulrich Drepper  <drepper@redhat.com>
    Jakub Jelinek  <jakub@redhat.com>

* malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
(new_heap): Initialize mprotect_size.
(grow_heap): When growing, only mprotect from mprotect_size till
new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.

17 years ago* sysdeps/unix/sysv/linux/lowlevelrobustlock.c
Ulrich Drepper [Mon, 7 May 2007 14:26:13 +0000 (14:26 +0000)]
* sysdeps/unix/sysv/linux/lowlevelrobustlock.c

(__lll_robust_lock_wait): Fix race caused by reloading of futex value.
(__lll_robust_timedlock_wait): Likewise.
Reported by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>.

17 years ago* locales/as_IN: Fix currency_symbol, abday for Sunday, abmon for
Ulrich Drepper [Mon, 7 May 2007 13:14:03 +0000 (13:14 +0000)]
* locales/as_IN: Fix currency_symbol, abday for Sunday, abmon for

January, February, and September to December, mon for January,
February, September, and December, am_pm, and name_*.
Patch by Amitakhya Phukan <aphukan@redhat.com>.

17 years ago2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
Ulrich Drepper [Mon, 7 May 2007 06:22:38 +0000 (06:22 +0000)]
2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>

            Peter Bergner  <bergner@us.ibm.com>

* sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
* sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
* sysdeps/powerpc/fpu/fe_mask.c: New file.
* sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
* sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
Call __fe_mask_env() if all FP exceptions disabled.
* sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
from old FPSCR to new fenv to propagate DFP rounding modes.
Call __fe_mask_env() if FP exceptions previously enabled.
* sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
transitioning from all exceptions disabled to any exception enabled
or visa versa.
* sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
when transitioning from all exceptions disabled to any exception
enabled or visa versa.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
* sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
* sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.

17 years ago[BZ #4465]
Ulrich Drepper [Mon, 7 May 2007 04:24:57 +0000 (04:24 +0000)]
[BZ #4465]

[BZ #4465]

17 years ago* posix/unistd.h: Remove __THROW from fdatasync.
Ulrich Drepper [Mon, 7 May 2007 04:23:14 +0000 (04:23 +0000)]
* posix/unistd.h: Remove __THROW from fdatasync.

17 years ago* sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
Ulrich Drepper [Mon, 7 May 2007 04:01:23 +0000 (04:01 +0000)]
* sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.

17 years ago* stdio-common/vfprintf.c (process_string_arg): Optimize
Ulrich Drepper [Mon, 7 May 2007 03:44:48 +0000 (03:44 +0000)]
* stdio-common/vfprintf.c (process_string_arg): Optimize

ridiculous precision in wide char code printing multi-byte string.
Reported by Jim Meyering <jim@meyering.net>.

17 years ago[BZ #4131]
Ulrich Drepper [Sun, 6 May 2007 21:01:32 +0000 (21:01 +0000)]
[BZ #4131]

2007-05-06  Ulrich Drepper  <drepper@redhat.com>
[BZ #4131]
* elf/dl-addr.c (_dl_addr): Compare address with actual segment
boundaries to work around systems with overlapping binary loading.
Based on a patch by Suzuki <suzuki@in.ibm.com>.

17 years ago* stdio-common/vfprintf.c (process_string_arg): Adjust call to
Ulrich Drepper [Sat, 5 May 2007 04:41:44 +0000 (04:41 +0000)]
* stdio-common/vfprintf.c (process_string_arg): Adjust call to

__mbsnrtowcs after last change.

17 years ago* soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
Ulrich Drepper [Sat, 5 May 2007 04:36:02 +0000 (04:36 +0000)]
* soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to

_FP_FRAC_COPY_2.
* soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
_FP_FRAC_COPY_4.

17 years ago* locale/programs/linereader.c (get_symname): Fix adding final NUL.
Ulrich Drepper [Sat, 5 May 2007 04:15:31 +0000 (04:15 +0000)]
* locale/programs/linereader.c (get_symname): Fix adding final NUL.

(get_ident): Likewise.

17 years ago[BZ #4114]
Ulrich Drepper [Fri, 4 May 2007 20:53:10 +0000 (20:53 +0000)]
[BZ #4114]

2007-05-04  Ulrich Drepper  <drepper@redhat.com>
[BZ #4114]
* locales/ast_ES: New file.
* SUPPORTED (SUPPORTED-LOCALES): Add ast_ES.UTF-8 and ast_ES.

17 years agoAsturian language locale for Spain.
Ulrich Drepper [Fri, 4 May 2007 20:52:28 +0000 (20:52 +0000)]
Asturian language locale for Spain.

17 years ago* soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
Jakub Jelinek [Thu, 3 May 2007 16:36:49 +0000 (16:36 +0000)]
* soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT

with setting the sticky bit.
* math/test-misc.c (main): Add more truncation tests.
* soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
double in the function declaration.
* soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
double in the function declaration.
* soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
float in the function declaration.
* soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
float in the function declaration.

* soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
denormal operands.  Do not generate FP_EX_DENORM exception.
(FP_UNPACK_RAW_EP): Ditto.
(FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
undefined _FP_UNPACK_RAW_E.
(FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
undefined _FP_UNPACK_RAW_EP.
(FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
undefined _FP_PACK_RAW_E.
(FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
undefined _FP_PACK_RAW_EP.

* op-2.h (_FP_FRAC_COPY_2_2): Define as alias to _FP_FRAC_COPY_2.
* op-4.h (_FP_FRAC_COPY_2_2): Define as alias to _FP_FRAC_COPY_4.

* soft-fp/op-common.h (FP_EXTEND): Do not abort when
_FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
this case.
* soft-fp/op-common.h (FP_TRUNC): Ditto.
* soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
with setting the sticky bit.
* math/test-misc.c (main): Add more truncation tests.

2007-04-14  Uros Bizjak  <ubizjak@gmail.com>

* soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
double in the function declaration.
* soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
double in the function declaration.
* soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
float in the function declaration.
* soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
float in the function declaration.

* soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
denormal operands.  Do not generate FP_EX_DENORM exception.
(FP_UNPACK_RAW_EP): Ditto.
(FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
undefined _FP_UNPACK_RAW_E.
(FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
undefined _FP_UNPACK_RAW_EP.
(FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
undefined _FP_PACK_RAW_E.
(FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
undefined _FP_PACK_RAW_EP.

* op-2.h (_FP_FRAC_COPY_2_2): Define as alias to _FP_FRAC_COPY_2.
* op-4.h (_FP_FRAC_COPY_2_2): Define as alias to _FP_FRAC_COPY_4.

2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
    Jakub Jelinek  <jakub@redhat.com>

* soft-fp/op-common.h (FP_EXTEND): Do not abort when
_FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
this case.
* soft-fp/op-common.h (FP_TRUNC): Ditto.

2007-05-03  Jakub Jelinek  <jakub@redhat.com>

17 years ago* math/test-misc.c (main): Add tests for rounding long double
Jakub Jelinek [Thu, 3 May 2007 12:15:04 +0000 (12:15 +0000)]
* math/test-misc.c (main): Add tests for rounding long double

values close to smallest double denormalized value to double.
* soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
condition for truncating to 0.  Set sticky bit for such
truncation.
2007-05-03  Jakub Jelinek  <jakub@redhat.com>

* math/test-misc.c (main): Add tests for rounding long double
values close to smallest double denormalized value to double.

2007-04-30  Joseph Myers  <joseph@codesourcery.com>

* soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
condition for truncating to 0.  Set sticky bit for such
truncation.

17 years ago* stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
Ulrich Drepper [Wed, 2 May 2007 08:16:34 +0000 (08:16 +0000)]
* stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than

fixed length array for ignore.

17 years ago* stdio-common/test-vfprintf.c (main): Add test for large
Ulrich Drepper [Tue, 1 May 2007 18:35:44 +0000 (18:35 +0000)]
* stdio-common/test-vfprintf.c (main): Add test for large

precision.

17 years ago[BZ #4438]
Ulrich Drepper [Tue, 1 May 2007 04:11:51 +0000 (04:11 +0000)]
[BZ #4438]

2007-04-30  Ulrich Drepper  <drepper@redhat.com>
[BZ #4438]
* stdio-common/vfprintf.c (process_string_arg): Don't overflow the
stack for large precisions.

17 years ago* stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
Ulrich Drepper [Mon, 30 Apr 2007 22:33:44 +0000 (22:33 +0000)]
* stdio-common/printf_fp.c (___printf_fp): Don't print negative sign

for exponent 0.
* stdio-common/tfformat.c (sprint_doubles): Add a new test.

17 years ago[BZ #4439]
Ulrich Drepper [Mon, 30 Apr 2007 22:30:14 +0000 (22:30 +0000)]
[BZ #4439]

2007-04-30  Jakub Jelinek  <jakub@redhat.com>
[BZ #4439]
* resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
account in the size check.
* resolv/tst-inet_ntop.c: New test.
* resolv/Makefile (tests): Add tst-inet_ntop.

17 years ago[BZ #4349]
Ulrich Drepper [Mon, 30 Apr 2007 22:18:46 +0000 (22:18 +0000)]
[BZ #4349]

2007-04-30  Ulrich Drepper  <drepper@redhat.com>
    Jakub Jelinek  <jakub@redhat.com>

[BZ #4349]
* malloc/malloc.c: Keep separate list for first blocks on the bin
lists with a given size.  This helps skipping over list elements
we know won't fit in two places.
Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.

17 years ago[BZ #4102]
Ulrich Drepper [Sat, 28 Apr 2007 16:09:22 +0000 (16:09 +0000)]
[BZ #4102]

2007-04-28  Ulrich Drepper  <drepper@redhat.com>
[BZ #4102]
* sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
label to Teredo tunnel addresses 2001://32.

17 years ago* locale/programs/ld-collate.c (collate_read): Allow order_start
Ulrich Drepper [Sat, 28 Apr 2007 06:51:26 +0000 (06:51 +0000)]
* locale/programs/ld-collate.c (collate_read): Allow order_start

after copy.

17 years ago[BZ #3213]
Ulrich Drepper [Sat, 28 Apr 2007 06:40:56 +0000 (06:40 +0000)]
[BZ #3213]

* locale/programs/ld-collate.c (collate_read): Fix printing of
error message.

[BZ #3213]
* locale/C-translit.h.in: Add entry for U2044.

17 years ago[BZ #4392]
Ulrich Drepper [Sat, 28 Apr 2007 04:23:56 +0000 (04:23 +0000)]
[BZ #4392]

* pthread_mutex_trylock.c (__pthread_mutex_trylock): Treat error
check mutexes like normal mutexes.

17 years ago[BZ #4306]
Ulrich Drepper [Sat, 28 Apr 2007 04:03:38 +0000 (04:03 +0000)]
[BZ #4306]

2007-04-27  Ulrich Drepper  <drepper@redhat.com>
[BZ #4306]
* sysdeps/unix/sysv/linux/timer_create.c (timer_create):
Initialize the whole sigevent structure to appease valgrind.

17 years ago[BZ #4342]
Ulrich Drepper [Fri, 27 Apr 2007 19:29:06 +0000 (19:29 +0000)]
[BZ #4342]

2007-04-27  Ulrich Drepper  <drepper@redhat.com>
[BZ #4342]
* stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
hexa-decimal floats without exponent.
* stdio-common/tstscanf.c (main): Adjust Test 8 test for success.

* iconv/gconv_charset.h (strip): Allow ':'.

17 years ago(_IO_vfscanf_internal): Allow hexa-decimal floats without exponent.
Ulrich Drepper [Fri, 27 Apr 2007 19:28:32 +0000 (19:28 +0000)]
(_IO_vfscanf_internal): Allow hexa-decimal floats without exponent.

17 years ago* io/bug-ftw5.c: New file.
Jakub Jelinek [Thu, 26 Apr 2007 15:39:15 +0000 (15:39 +0000)]
* io/bug-ftw5.c: New file.

17 years ago* sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
Ulrich Drepper [Thu, 26 Apr 2007 04:59:42 +0000 (04:59 +0000)]
* sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):

Add sched_getcpu.

17 years ago* sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
Ulrich Drepper [Thu, 26 Apr 2007 04:50:57 +0000 (04:50 +0000)]
* sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.

* sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
* sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
* sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
GLIBC_2.6.

17 years ago(tcbhead_t): Add vgetcpu_cache.
Ulrich Drepper [Thu, 26 Apr 2007 04:44:47 +0000 (04:44 +0000)]
(tcbhead_t): Add vgetcpu_cache.

17 years ago* sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
Jakub Jelinek [Wed, 25 Apr 2007 16:05:18 +0000 (16:05 +0000)]
* sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead

of 0 after the out_fail label.
2007-04-25  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
of 0 after the out_fail label.

17 years ago[BZ #4406]
Ulrich Drepper [Wed, 25 Apr 2007 15:15:47 +0000 (15:15 +0000)]
[BZ #4406]

2007-04-25  Ulrich Drepper  <drepper@redhat.com>
[BZ #4406]
* iconv/gconv_charset.h (strip): Allow ':'
* iconv/iconv_open.c (iconv_open): Adjust comment.

17 years ago(strip): Allow ':'
Ulrich Drepper [Wed, 25 Apr 2007 15:14:36 +0000 (15:14 +0000)]
(strip): Allow ':'

17 years ago* libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
Jakub Jelinek [Wed, 25 Apr 2007 14:35:54 +0000 (14:35 +0000)]
* libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized

version.
2007-04-25  Jakub Jelinek  <jakub@redhat.com>

* libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
version.

17 years ago[BZ #4411]
Ulrich Drepper [Tue, 24 Apr 2007 19:04:27 +0000 (19:04 +0000)]
[BZ #4411]

2007-04-24  Ulrich Drepper  <drepper@redhat.com>
[BZ #4411]
* locales/en_ZA: Update int_select.
Patch by Dwayne Bailey <dwayne@translate.org.za>.

17 years ago[BZ #4381]
Ulrich Drepper [Mon, 23 Apr 2007 15:17:21 +0000 (15:17 +0000)]
[BZ #4381]

* nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
alignment of buffer and tmp_buffer.
* nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
alignment of buffer.
* resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
bigger than INT_MAX.
* resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
h_errnop arguments.  Fail if buflen is too small.
(_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.

2007-04-23  Jakub Jelinek  <jakub@redhat.com>

17 years ago(HOST_DB_LOOKUP): Ensure sufficient alignment of buffer and tmp_buffer.
Ulrich Drepper [Mon, 23 Apr 2007 15:15:53 +0000 (15:15 +0000)]
(HOST_DB_LOOKUP): Ensure sufficient alignment of buffer and tmp_buffer.

17 years ago[BZ #4405]
Jakub Jelinek [Mon, 23 Apr 2007 09:22:10 +0000 (09:22 +0000)]
[BZ #4405]

* iconvdata/gconv-modules (E13B): Add a missing slash to the alias
name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
2007-04-23  Jakub Jelinek  <jakub@redhat.com>

[BZ #4405]
* iconvdata/gconv-modules (E13B): Add a missing slash to the alias
name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.

17 years ago* elf/elf.h (NT_PRXFPREG): New macro.
Roland McGrath [Sun, 22 Apr 2007 10:36:25 +0000 (10:36 +0000)]
* elf/elf.h (NT_PRXFPREG): New macro.

17 years ago2007-04-22 Roland McGrath <roland@redhat.com>
Roland McGrath [Sun, 22 Apr 2007 10:36:16 +0000 (10:36 +0000)]
2007-04-22  Roland McGrath  <roland@redhat.com>

* elf/elf.h (NT_PRXFPREG): New macro.

17 years ago[BZ #3905]
Andreas Jaeger [Fri, 20 Apr 2007 16:02:16 +0000 (16:02 +0000)]
[BZ #3905]

* bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
Added.
2007-04-19  Andreas Jaeger  <aj@suse.de>

[BZ #3905]
* bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
Added.

17 years ago* misc/madvise.c: Add libc_hidden_def.
Ulrich Drepper [Thu, 19 Apr 2007 17:42:47 +0000 (17:42 +0000)]
* misc/madvise.c: Add libc_hidden_def.

17 years ago* include/sys/mman.h: Mark madvise hidden.
Ulrich Drepper [Thu, 19 Apr 2007 17:41:07 +0000 (17:41 +0000)]
* include/sys/mman.h: Mark madvise hidden.

17 years ago* nis/nis_domain_of.c (__nis_domain_of): New function.
Ulrich Drepper [Thu, 19 Apr 2007 14:28:01 +0000 (14:28 +0000)]
* nis/nis_domain_of.c (__nis_domain_of): New function.

* include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
* nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
* nis/nis_call.c (rec_dirsearch): Likewise.
(first_shoot): Likewise.  Remove search_parent_first argument.
(struct nis_server_cache): Rename search_parent_first field
to search_parent.
(nis_server_cache_search, nis_server_cache_add): Rename
search_parent_first argument to search_parent.
(__nisfind_server): Likewise.  If search_parent, call
__nis_domain_of.

17 years ago* sysdeps/posix/getaddrinfo.c: Remove commented-out code.
Ulrich Drepper [Wed, 18 Apr 2007 23:46:35 +0000 (23:46 +0000)]
* sysdeps/posix/getaddrinfo.c: Remove commented-out code.

17 years ago[BZ #4368]
Ulrich Drepper [Tue, 17 Apr 2007 18:36:00 +0000 (18:36 +0000)]
[BZ #4368]

2007-04-17  Ulrich Drepper  <drepper@redhat.com>
[BZ #4368]
* stdlib/stdlib.h: Remove obsolete part of comment for realpath.

17 years ago[BZ #4364]
Ulrich Drepper [Mon, 16 Apr 2007 23:44:21 +0000 (23:44 +0000)]
[BZ #4364]

2007-04-16  Ulrich Drepper  <drepper@redhat.com>
[BZ #4364]
* posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.

17 years ago* locale/programs/locarchive.c (INITIAL_NUM_NAMES,
Ulrich Drepper [Mon, 16 Apr 2007 23:31:03 +0000 (23:31 +0000)]
* locale/programs/locarchive.c (INITIAL_NUM_NAMES,

INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
current number of locales in SUPPORTED.
(create_archive): Initialize serial.
(enlarge_archive): Preserve aliases rather than duplicating
their locrecs.

17 years ago* libio/genops.c (_IO_default_finish): Call _IO_lock_fini
Ulrich Drepper [Mon, 16 Apr 2007 23:29:46 +0000 (23:29 +0000)]
* libio/genops.c (_IO_default_finish): Call _IO_lock_fini

after _IO_un_link, not before it.

17 years ago* stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
Ulrich Drepper [Mon, 16 Apr 2007 23:28:39 +0000 (23:28 +0000)]
* stdio-common/printf_fp.c (___printf_fp): Fix exponent -4

special case handling when wcp == wstartp + 1.  Fix a comment typo.
* stdio-common/tfformat.c (sprint_doubles): Add a new testcase.

17 years ago* libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
Ulrich Drepper [Mon, 16 Apr 2007 23:15:58 +0000 (23:15 +0000)]
* libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,

__wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
_IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
Remove __THROW.
* libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
_IO_file_xsgetn_maybe_mmap): Likewise.
* libio/oldfileops.c (old_do_write): Likewise.
* libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
_IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
_IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
_IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
_IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
_IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
_IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
_IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
_IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
_IO_file_underflow, _IO_file_underflow_mmap,
_IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
_IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
_IO_file_sync, _IO_file_close_it, _IO_file_finish,
_IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
_IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
_IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
_IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
_IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
_IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
_IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
_IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
_IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
_IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
_IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
_IO_adjust_column_internal, _IO_default_uflow_internal,
_IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
_IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
_IO_file_setbuf_internal, _IO_file_seekoff_internal,
_IO_file_xsputn_internal, _IO_file_xsgetn_internal,
_IO_file_close_it_internal, _IO_file_underflow_internal,
_IO_file_overflow_internal, _IO_file_attach_internal,
_IO_file_fopen_internal, _IO_file_sync_internal,
_IO_file_finish_internal, _IO_wfile_xsputn_internal,
_IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
_IO_switch_to_wget_mode_internal, _IO_padn_internal,
_IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
_IO_seekpos_unlocked): Likewise.
(_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
_IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.

17 years ago(__underflow, __uflow, __overflow, __wunderflow, __wuflow, __woverflow, _IO_getc...
Ulrich Drepper [Mon, 16 Apr 2007 23:14:04 +0000 (23:14 +0000)]
(__underflow, __uflow, __overflow, __wunderflow, __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn, _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn): Remove __THROW.

17 years ago* locale/programs/locarchive.c (show_archive_content): Fix sizeof
Jakub Jelinek [Mon, 16 Apr 2007 23:02:04 +0000 (23:02 +0000)]
* locale/programs/locarchive.c (show_archive_content): Fix sizeof

argument in xmalloc size computation.
2007-04-16  Jakub Jelinek  <jakub@redhat.com>

* locale/programs/locarchive.c (show_archive_content): Fix sizeof
argument in xmalloc size computation.

17 years ago* sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
Ulrich Drepper [Mon, 16 Apr 2007 20:42:23 +0000 (20:42 +0000)]
* sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use

math_opt_barrier and math_force_eval macros.

17 years ago[BZ #3306]
Ulrich Drepper [Mon, 16 Apr 2007 20:41:42 +0000 (20:41 +0000)]
[BZ #3306]

2007-03-27  Jakub Jelinek  <jakub@redhat.com>
[BZ #3306]
* math/math_private.h (math_opt_barrier, math_force_eval): Define.
* sysdeps/i386/fpu/math_private.h: New file.
* sysdeps/x86_64/fpu/math_private.h: New file.
* math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
math_force_eval macros.  Use "+m" constraint on asm rather than
"=m" and "m".
* math/s_nextafter.c (__nextafter): Likewise.
* sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
Likewise.
* sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
* sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
* sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
* sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
math_opt_barrier and math_force_eval macros.
* sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
* sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
* sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
(__nexttoward): Use math_opt_barrier and
math_force_eval macros.  Use "+m" constraint on asm rather than
"=m" and "m".  Only use asm to force double result if
FLT_EVAL_METHOD is 2.
* sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
(__nexttowardf): Use math_opt_barrier and
math_force_eval macros.  Use "+m" constraint on asm rather than
"=m" and "m".  Only use asm to force double result if
FLT_EVAL_METHOD is not 0.
* sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
(__nexttowardf): Use math_opt_barrier and
math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
x to float using asm.
* sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
(__nldbl_nexttowardf): Use math_opt_barrier and
math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
x to float using asm.
* sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
(__nexttowardf): Use math_opt_barrier and math_force_eval
macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
* math/bug-nextafter.c (zero, inf): New variables.
(main): Add new tests.
* math/bug-nexttoward.c (zero, inf): New variables.
(main): Add new tests.

17 years ago[BZ #3427]
Ulrich Drepper [Mon, 16 Apr 2007 20:15:57 +0000 (20:15 +0000)]
[BZ #3427]

2007-03-22  Jakub Jelinek  <jakub@redhat.com>
[BZ #3427]
* sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
exceptions both in SW and MXCSR.
* sysdeps/x86_64/fpu/feupdateenv.c: New file.
* sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
* sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
* sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
in MXCSR if SSE is available.
* sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
and ldsodefs.h.
(__feupdateenv): Query exceptions also from MXCSR if SSE is available.
Fix comment typo.
* sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
Return 0 rather than 1.
* sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
Remove incorrect part of a comment.  Fix argument to feraiseexcept.
* math/test-fenv.c (feholdexcept_tests): New function.
(main): Call it.

2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>

[BZ #3427]
* sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
in SW.

17 years ago(feholdexcept): Clear all exceptions in SW.
Ulrich Drepper [Mon, 16 Apr 2007 20:13:01 +0000 (20:13 +0000)]
(feholdexcept): Clear all exceptions in SW.

17 years ago[BZ #4344]
Jakub Jelinek [Fri, 13 Apr 2007 19:53:20 +0000 (19:53 +0000)]
[BZ #4344]

* elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
Reported by David Anderson <davea42@earthlink.net>.
2007-04-13  Jakub Jelinek  <jakub@redhat.com>

[BZ #4344]
* elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
Reported by David Anderson <davea42@earthlink.net>.

17 years ago* posix/sys/wait.h: Remove unnecessary forward declaration.
Ulrich Drepper [Sat, 7 Apr 2007 18:21:35 +0000 (18:21 +0000)]
* posix/sys/wait.h: Remove unnecessary forward declaration.

17 years ago* tst-locale1.c: Avoid warnings.
Ulrich Drepper [Fri, 6 Apr 2007 22:19:54 +0000 (22:19 +0000)]
* tst-locale1.c: Avoid warnings.

* tst-locale2.c: Likewise.

17 years agoAvoid warnings.
Ulrich Drepper [Fri, 6 Apr 2007 22:19:46 +0000 (22:19 +0000)]
Avoid warnings.

17 years ago* nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
Jakub Jelinek [Thu, 5 Apr 2007 13:59:03 +0000 (13:59 +0000)]
* nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers

with obj->do_servers after first_shoot.
2007-04-05  Jakub Jelinek  <jakub@redhat.com>

* nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
with obj->do_servers after first_shoot.

17 years ago* bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
Ulrich Drepper [Wed, 4 Apr 2007 18:51:36 +0000 (18:51 +0000)]
* bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.

* sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
* posix/sched.h: Define CPU_COUNT.

17 years ago* posix/Makefile (routines): Add sched_cpucount.
Ulrich Drepper [Tue, 3 Apr 2007 23:29:18 +0000 (23:29 +0000)]
* posix/Makefile (routines): Add sched_cpucount.

(tests): Add tst-cpucount.
* posix/sched_cpucount.c: New file.
* posix/tst-cpucount.c: New file.
* posix/Versions: Export __sched_cpucount with version GLIBC_2.6.

17 years ago* posix/fnmatch.c (STRUCT): Define.
Ulrich Drepper [Sun, 1 Apr 2007 19:44:33 +0000 (19:44 +0000)]
* posix/fnmatch.c (STRUCT): Define.

(fnmatch): Pass NULL as last argument to internal_fn{,w}match.
* posix/fnmatch_loop.c (struct STRUCT): New type.
(FCT): Add ends argument.  If ends != NULL and normal * is
seen in the pattern, store current pattern and string pointers
and return.  Adjust recursive calls.
(EXT): Adjust FCT callers.
(STRUCT): Undef at the end of the file.
* posix/Makefile (tests): Add tst-fnmatch2.
* posix/tst-fnmatch2.c: New test.