aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2007-05-24* Makerules (sysd-rules): Define PTW for ptw-* files.Ulrich Drepper22-30/+383
* 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.
2007-05-23* init.c (__pthread_initialize_minimal_internal): Check whetherUlrich Drepper15-31/+192
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.
2007-05-21* sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct valueUlrich Drepper6-29/+36
as second parameter to handle_intel.
2007-05-21(pthread_functions): Don't add .ptr_wait_lookup_done here. ↵Ulrich Drepper1-2/+3
(__pthread_initialize_minimal_internal): Initialize _dl_wait_lookup_done pointer in _rtld_global directly.
2007-05-21* tst-robust9.c (do_test): Don't fail if ENABLE_PI and Jakub Jelinek2-0/+12
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.
2007-05-21* nscd/aicache.c (addhstaiX): If reported TTL is zero don't cacheUlrich Drepper2-17/+8
the entry.
2007-05-21* sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache informationUlrich Drepper7-365/+1075
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.
2007-05-21[BZ #4525]Ulrich Drepper2-2/+9
* 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.
2007-05-21[BZ #4514]Ulrich Drepper8-9/+126
* 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.
2007-05-21* malloc/hooks.c (MALLOC_STATE_VERSION): Bump.Ulrich Drepper5-42/+34
(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.
2007-05-19* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):Ulrich Drepper1-1/+5
Define for kernel >= 2.6.22. 2007-05-18 Ulrich Drepper <drepper@redhat.com>
2007-05-19(__ASSUME_PRIVATE_FUTEX): Define for kernel >= 2.6.22.Ulrich Drepper1-1/+6
2007-05-19Commit missing test case wrapper file.Roland McGrath1-0/+2
2007-05-19* elf/dl-close.c (_dl_close_worker): When removing object fromUlrich Drepper14-37/+204
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.
2007-05-19* malloc/malloc.c (do_check_chunk): Correct check for mmaped blockUlrich Drepper3-2/+5
not overlapping with arena.
2007-05-19* malloc/mcheck.c (reallochook): If size==0, free the block.Ulrich Drepper2-1/+9
2007-05-19* rt/tst-shm.c: Use fstat64 instead of fstat.Ulrich Drepper2-4/+13
2007-05-18* sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case whereUlrich Drepper2-3/+8
__NR_sync_file_range is not defined.
2007-05-18[BZ #4512]Ulrich Drepper6-10/+114
* 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.
2007-05-17Dummy files to prevent stub versions from being used.Ulrich Drepper7-4/+16
* 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.
2007-05-17* version.h (VERSION): Set to 2.6.90.Ulrich Drepper1-2/+6
* version.h (VERSION): Define to 2.6. * include/features.h (__GLIBC_MINOR__): Define to 6.
2007-05-17(VERSION): Set to 2.6.90.Ulrich Drepper1-2/+2
2007-05-15whitespacecvs/fedora-glibc-20070515T2025Roland McGrath1-0/+1
2007-05-15* version.h (VERSION): Define to 6.glibc-2.6cvs/glibc-2_6-basecvs/glibc-2_6Ulrich Drepper11-49/+46
* include/features.h (__GLIBC_MINOR__): Likewise.
2007-05-15* sysdeps/unix/sysv/linux/sem_post.c: Only wake threads if oldUlrich Drepper8-54/+50
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.
2007-05-15* malloc/malloc.c: Use all small bin slots on 64-bit archs.Ulrich Drepper2-5/+23
* malloc/malloc.c (largebin_index): Really have 32 buckets with 64 sizes.
2007-05-14* malloc/malloc.c (largebin_index): Really have 32 buckets with 64 sizes.Ulrich Drepper2-2/+5
2007-05-13 Ulrich Drepper <drepper@redhat.com>
2007-05-13* malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximumUlrich Drepper1-0/+7
number of mmaps. n_mmaps_max is the target. * malloc/hooks.c: Likewise. * malloc/arena.c: Likewise.
2007-05-13[MALLOC_DEBUG]: Keep track of current maximum number of mmaps. n_mmaps_max ↵Ulrich Drepper3-4/+39
is the target.
2007-05-12* sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for getpid.Andreas Jaeger2-0/+6
2007-05-12 Andreas Jaeger <aj@suse.de> * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for getpid.
2007-05-11(add_to_global): One more small cleanup patch.Ulrich Drepper1-6/+3
2007-05-11* elf/dl-close.c (_dl_close_worker): Help gcc to optimize byUlrich Drepper2-30/+33
adding new variables. optimize. Completely extend global scope array before making the
2007-05-11* elf/dl-open.c (add_to_global): Introduce variable ns to help gccUlrich Drepper2-19/+28
optimize. Complerely extend global scope array before making the new entries visible.
2007-05-11* sysdeps/unix/sysv/linux/tst-getcpu.c: New file.Ulrich Drepper6-9/+74
* 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.
2007-05-11* scripts/check-c++-types.sh: Don't use -fnu89-inline option.Ulrich Drepper2-2/+4
2007-05-10* sysdeps/unix/sysv/linux/sched_setaffinity.ccvs/fedora-glibc-20070510T2308cvs/fedora-glibc-20070510T2304Ulrich Drepper7-4/+58
(__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.
2007-05-10* io/sys/stat.h: Make sure struct timespec is defined forUlrich Drepper2-2/+6
__USE_ATFILE.
2007-05-10* sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW andUlrich Drepper18-15/+367
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.
2007-05-10Redefine __nonnull so that test for incorrect parameters in the libc code ↵Ulrich Drepper1-0/+6
itself are not omitted.
2007-05-10[BZ #4455] Jakub Jelinek3-0/+8
* 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.
2007-05-10* sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow cvs/fedora-glibc-20070510T0634Jakub Jelinek2-2/+6
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.
2007-05-10[BZ #3427] Jakub Jelinek2-3/+10
* 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.
2007-05-08[BZ #4403]Ulrich Drepper1-1/+6
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.
2007-05-08(strfry): Make result more random.Ulrich Drepper1-6/+4
2007-05-072007-05-07 Richard Henderson <rth@redhat.com>Richard Henderson11-20/+50
* 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.
2007-05-07[BZ #4455]Ulrich Drepper3-2/+18
* tst-align2.c (do_test): Add _STACK_GROWS_UP case. * tst-getpid1.c (do_test): Likewise.
2007-05-07[BZ #4456]Ulrich Drepper1-0/+6
2007-05-02 Carlos O'Donell <carlos@systemhalted.org> [BZ #4456] * allocatestack.c (change_stack_perm): Add _STACK_GROWS_UP case. (allocate_stack): Likewise.
2007-05-07(change_stack_perm): Handle stacks growing up. (allocate_stack): Likewise.Ulrich Drepper1-5/+19
2007-05-07* malloc/arena.c (heap_info): Add mprotect_size field, adjust pad. Jakub Jelinek3-8/+39
(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.
2007-05-07* sysdeps/unix/sysv/linux/lowlevelrobustlock.cUlrich Drepper2-3/+26
(__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>.