Ulrich Drepper [Fri, 25 May 2007 05:21:07 +0000 (05:21 +0000)]
* sysdeps/powerpc/tls.h (tcbhead_t): Add gscope_flag.
(THREAD_GSCOPE_FLAG_UNUSED, THREAD_GSCOPE_FLAG_USED,
THREAD_GSCOPE_FLAG_WAIT): Define.
(THREAD_GSCOPE_GET_FLAG, THREAD_GSCOPE_SET_FLAG,
THREAD_GSCOPE_RESET_FLAG, THREAD_GSCOPE_WAIT): Define.
* sysdeps/i386/tls.h (THREAD_GSCOPE_WAIT): Don't use
PTR_DEMANGLE.
(THREAD_GSCOPE_GET_FLAG): Define.
* sysdeps/x86_64/tls.h (THREAD_GSCOPE_GET_FLAG): Define.
* allocatestack.c (__wait_lookup_done): Use THREAD_GSCOPE_GET_FLAG
instead of ->header.gscope_flag directly.
Ulrich Drepper [Thu, 24 May 2007 23:55:28 +0000 (23:55 +0000)]
* Makerules (sysd-rules): Define PTW for ptw-* files.
* Versions: Define GLIBC_2.7 for libc.
* include/stdio.h: Declare __fortify_fail.
* debug/fortify_fail.c: New file.
* debug/Makefile (routines): Add fortify_fail.
* debug/chk_fail.c: Use __fortify_fail.
* debug/stack_chk_fail.c: Likewise.
* io/Versions: Export __open_2, __open64_2, __openat_2, and
__openat64_2 for GLIBC_2.7.
* io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
* io/open.c: Define *_2 variant of function which checks for O_CREAT
and fails if necessary.
* io/open64.c: Likewise.
* io/openat.c: Likewise.
* io/openat64.c: Likewise.
* sysdeps/unix/sysv/linux/open64.c: Likewise.
* sysdeps/unix/sysv/linux/openat.c: Likewise.
* sysdeps/unix/sysv/linux/openat64.c: Likewise.
* io/bits/fcntl2.h: New file.
* include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
__openat64_2.
* include/bits/fcntl2.h: New file.
* sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
Add open_2.
* sysdeps/unix/sysv/linux/open_2.c: New file.
Ulrich Drepper [Wed, 23 May 2007 20:51:45 +0000 (20:51 +0000)]
* init.c (__pthread_initialize_minimal_internal): Check whether
private futexes are available.
* allocatestack.c (allocate_stack): Copy private_futex field from
current thread into the new stack.
* sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Use private
futexes if they are available.
* sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise
* sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Adjust so that change
in libc-lowlevellock.S allow using private futexes.
* sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
* sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Define
FUTEX_PRIVATE_FLAG.
* sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Use private futexes
if they are available.
* sysdeps/unix/sysv/linux/i386/pthread_once.S: Likewise.
* sysdeps/x86_64/tcb-offsets.sym: Add PRIVATE_FUTEX.
* sysdeps/i386/tcb-offsets.sym: Likewise.
* sysdeps/x86_64/tls.h (tcbhead_t): Add private_futex field.
* sysdeps/i386/tls.h (tcbhead_t): Likewise.
Ulrich Drepper [Mon, 21 May 2007 22:38:06 +0000 (22:38 +0000)]
* sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
as second parameter to handle_intel.
Ulrich Drepper [Mon, 21 May 2007 22:29:51 +0000 (22:29 +0000)]
(pthread_functions): Don't add .ptr_wait_lookup_done here. (__pthread_initialize_minimal_internal): Initialize _dl_wait_lookup_done pointer in _rtld_global directly.
Jakub Jelinek [Mon, 21 May 2007 22:12:40 +0000 (22:12 +0000)]
* tst-robust9.c (do_test): Don't fail if ENABLE_PI and
pthread_mutex_init failed with ENOTSUP.
2007-05-21 Jakub Jelinek <jakub@redhat.com>
* tst-robust9.c (do_test): Don't fail if ENABLE_PI and
pthread_mutex_init failed with ENOTSUP.
Ulrich Drepper [Mon, 21 May 2007 21:23:18 +0000 (21:23 +0000)]
* nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
the entry.
Ulrich Drepper [Mon, 21 May 2007 19:21:48 +0000 (19:21 +0000)]
* sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
handling to ...
* sysdeps/x86_64/cacheinfo.c: ... here. New file.
* sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
cacheinfo.
* sysdeps/x86_64/memcpy.S: Complete rewrite.
* sysdeps/x86_64/mempcpy.S: Adjust appropriately.
Patch by Evandro Menezes <evandro.menezes@amd.com>.
* sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
Ulrich Drepper [Mon, 21 May 2007 18:25:03 +0000 (18:25 +0000)]
[BZ #4525]
* sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
* sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
* sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
* sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
Ulrich Drepper [Mon, 21 May 2007 18:23:50 +0000 (18:23 +0000)]
[BZ #4514]
* stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
reinitialize workend at the start of each do_positional format spec
loop, free workstart before do_positional loops.
(printf_unknown): Fix size of work_buffer.
* stdio-common/tst-sprintf.c (main): Add 3 new testcases.
Ulrich Drepper [Mon, 21 May 2007 16:13:18 +0000 (16:13 +0000)]
* malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
(public_sET_STATe): If ms->version < 3, put all chunks into
unsorted chunks and clear {fd,bk}_nextsize fields of largebin
chunks.
* malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
* malloc/hooks.c: Likewise.
* malloc/arena.c: Likewise.
* malloc/malloc.c (do_check_malloc_state): Don't assert
n_mmaps is not greater than n_mmaps_max. This removes the need
for the previous change.
* malloc/Makefile (CFLAGS-malloc.c): Revert accidental
2007-05-07 commit.
Ulrich Drepper [Sat, 19 May 2007 19:08:24 +0000 (19:08 +0000)]
* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
Define for kernel >= 2.6.22.
2007-05-18 Ulrich Drepper <drepper@redhat.com>
Ulrich Drepper [Sat, 19 May 2007 19:07:59 +0000 (19:07 +0000)]
(__ASSUME_PRIVATE_FUTEX): Define for kernel >= 2.6.22.
Roland McGrath [Sat, 19 May 2007 08:21:27 +0000 (08:21 +0000)]
Commit missing test case wrapper file.
Ulrich Drepper [Sat, 19 May 2007 07:08:23 +0000 (07:08 +0000)]
* elf/dl-close.c (_dl_close_worker): When removing object from
global scope, wait for all lookups to finish afterwards.
* elf/dl-open.c (add_to_global): When global scope array must
grow, allocate a new one and free old array only after all
lookups finish.
* elf/dl-runtime.c (_dl_fixup): Protect using global scope.
(_dl_lookup_symbol_x): Likewise.
* elf/dl-support.c: Define _dl_wait_lookup_done.
* sysdeps/generic/ldsodefs.h (struct rtld_global): Add
_dl_wait_lookup_done.
Ulrich Drepper [Sat, 19 May 2007 04:42:52 +0000 (04:42 +0000)]
* malloc/malloc.c (do_check_chunk): Correct check for mmaped block
not overlapping with arena.
Ulrich Drepper [Sat, 19 May 2007 04:26:03 +0000 (04:26 +0000)]
* malloc/mcheck.c (reallochook): If size==0, free the block.
Ulrich Drepper [Sat, 19 May 2007 03:30:44 +0000 (03:30 +0000)]
* rt/tst-shm.c: Use fstat64 instead of fstat.
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.
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.
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.
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.
Ulrich Drepper [Thu, 17 May 2007 16:59:50 +0000 (16:59 +0000)]
(VERSION): Set to 2.6.90.
Roland McGrath [Tue, 15 May 2007 20:24:57 +0000 (20:24 +0000)]
whitespace
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.
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.
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.
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>
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.
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.
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.
Ulrich Drepper [Fri, 11 May 2007 21:34:32 +0000 (21:34 +0000)]
(add_to_global): One more small cleanup patch.
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
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.
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.
Ulrich Drepper [Fri, 11 May 2007 02:20:05 +0000 (02:20 +0000)]
* scripts/check-c++-types.sh: Don't use -fnu89-inline option.
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.
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.
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.
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.
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.
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.
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.
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.
Ulrich Drepper [Tue, 8 May 2007 03:27:35 +0000 (03:27 +0000)]
(strfry): Make result more random.
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.
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.
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.
Ulrich Drepper [Mon, 7 May 2007 22:02:37 +0000 (22:02 +0000)]
(change_stack_perm): Handle stacks growing up. (allocate_stack): Likewise.
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.
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>.
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>.
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.
Ulrich Drepper [Mon, 7 May 2007 04:24:57 +0000 (04:24 +0000)]
[BZ #4465]
[BZ #4465]
Ulrich Drepper [Mon, 7 May 2007 04:23:14 +0000 (04:23 +0000)]
* posix/unistd.h: Remove __THROW from fdatasync.
Ulrich Drepper [Mon, 7 May 2007 04:01:23 +0000 (04:01 +0000)]
* sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
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>.
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>.
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.
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.
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.
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.
Ulrich Drepper [Fri, 4 May 2007 20:52:28 +0000 (20:52 +0000)]
Asturian language locale for Spain.
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>
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.
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.
Ulrich Drepper [Tue, 1 May 2007 18:35:44 +0000 (18:35 +0000)]
* stdio-common/test-vfprintf.c (main): Add test for large
precision.
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.
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.
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.
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>.
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.
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.
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.
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.
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.
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 ':'.
Ulrich Drepper [Fri, 27 Apr 2007 19:28:32 +0000 (19:28 +0000)]
(_IO_vfscanf_internal): Allow hexa-decimal floats without exponent.
Jakub Jelinek [Thu, 26 Apr 2007 15:39:15 +0000 (15:39 +0000)]
* io/bug-ftw5.c: New file.
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.
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.
Ulrich Drepper [Thu, 26 Apr 2007 04:44:47 +0000 (04:44 +0000)]
(tcbhead_t): Add vgetcpu_cache.
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.
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.
Ulrich Drepper [Wed, 25 Apr 2007 15:14:36 +0000 (15:14 +0000)]
(strip): Allow ':'
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.
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>.
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>
Ulrich Drepper [Mon, 23 Apr 2007 15:15:53 +0000 (15:15 +0000)]
(HOST_DB_LOOKUP): Ensure sufficient alignment of buffer and tmp_buffer.
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>.
Roland McGrath [Sun, 22 Apr 2007 10:36:25 +0000 (10:36 +0000)]
* elf/elf.h (NT_PRXFPREG): New macro.
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.
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.
Ulrich Drepper [Thu, 19 Apr 2007 17:42:47 +0000 (17:42 +0000)]
* misc/madvise.c: Add libc_hidden_def.
Ulrich Drepper [Thu, 19 Apr 2007 17:41:07 +0000 (17:41 +0000)]
* include/sys/mman.h: Mark madvise hidden.
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.
Ulrich Drepper [Wed, 18 Apr 2007 23:46:35 +0000 (23:46 +0000)]
* sysdeps/posix/getaddrinfo.c: Remove commented-out code.
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.
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.
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.