about summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* * io/bits/fcntl2.h (__open_2): Add nonnull attribute.Ulrich Drepper2007-05-253-27/+66
| | | | | | | | | | | | | | | | (open): Fix comment typos. Don't call __open_2 if flags is a compile time constant without O_CREAT. (__open64_2): Add nonnull attribute. (open64): Fix comment typos. Don't call __open64_2 if flags is a compile time constant without O_CREAT. (__openat_2): Add nonnull attribute, fix nonnull attribute on redirect. (openat): Fix comment typos. Don't call __openat_2 if flags is a compile time constant without O_CREAT. (__openat64_2): Add nonnull attribute, fix nonnull attribute on redirect. (openat64): Fix comment typos. Don't call __openat64_2 if flags is a compile time constant without O_CREAT.
* * sysdeps/i386/tls.h (THREAD_SET_PRIVATE_FUTEX,Ulrich Drepper2007-05-255-9/+31
| | | | | | | | | THREAD_COPY_PRIVATE_FUTEX): Define. * sysdeps/x86_64/tls.h (THREAD_SET_PRIVATE_FUTEX, THREAD_COPY_PRIVATE_FUTEX): Define. * allocatestack.c (allocate_stack): Use THREAD_COPY_PRIVATE_FUTEX. * init.c (__pthread_initialize_minimal_internal): Use THREAD_SET_PRIVATE_FUTEX.
* * sysdeps/powerpc/tls.h (tcbhead_t): Add gscope_flag.Ulrich Drepper2007-05-257-26/+65
| | | | | | | | | | | | | (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.
* * Makerules (sysd-rules): Define PTW for ptw-* files.Ulrich Drepper2007-05-2422-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.
* * init.c (__pthread_initialize_minimal_internal): Check whetherUlrich Drepper2007-05-2315-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.
* * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct valueUlrich Drepper2007-05-216-29/+36
| | | | as second parameter to handle_intel.
* (pthread_functions): Don't add .ptr_wait_lookup_done here. ↵Ulrich Drepper2007-05-211-2/+3
| | | | (__pthread_initialize_minimal_internal): Initialize _dl_wait_lookup_done pointer in _rtld_global directly.
* * tst-robust9.c (do_test): Don't fail if ENABLE_PI and Jakub Jelinek2007-05-212-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.
* * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cacheUlrich Drepper2007-05-212-17/+8
| | | | the entry.
* * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache informationUlrich Drepper2007-05-217-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.
* [BZ #4525]Ulrich Drepper2007-05-212-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.
* [BZ #4514]Ulrich Drepper2007-05-218-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.
* * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.Ulrich Drepper2007-05-215-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.
* * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):Ulrich Drepper2007-05-191-1/+5
| | | | | Define for kernel >= 2.6.22. 2007-05-18 Ulrich Drepper <drepper@redhat.com>
* (__ASSUME_PRIVATE_FUTEX): Define for kernel >= 2.6.22.Ulrich Drepper2007-05-191-1/+6
|
* Commit missing test case wrapper file.Roland McGrath2007-05-191-0/+2
|
* * elf/dl-close.c (_dl_close_worker): When removing object fromUlrich Drepper2007-05-1914-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.
* * malloc/malloc.c (do_check_chunk): Correct check for mmaped blockUlrich Drepper2007-05-193-2/+5
| | | | not overlapping with arena.
* * malloc/mcheck.c (reallochook): If size==0, free the block.Ulrich Drepper2007-05-192-1/+9
|
* * rt/tst-shm.c: Use fstat64 instead of fstat.Ulrich Drepper2007-05-192-4/+13
|
* * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case whereUlrich Drepper2007-05-182-3/+8
| | | | __NR_sync_file_range is not defined.
* [BZ #4512]Ulrich Drepper2007-05-186-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.
* Dummy files to prevent stub versions from being used.Ulrich Drepper2007-05-177-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.
* * version.h (VERSION): Set to 2.6.90.Ulrich Drepper2007-05-171-2/+6
| | | | | * version.h (VERSION): Define to 2.6. * include/features.h (__GLIBC_MINOR__): Define to 6.
* (VERSION): Set to 2.6.90.Ulrich Drepper2007-05-171-2/+2
|
* whitespace cvs/fedora-glibc-20070515T2025Roland McGrath2007-05-151-0/+1
|
* * version.h (VERSION): Define to 6. glibc-2.6 cvs/glibc-2_6-base cvs/glibc-2_6Ulrich Drepper2007-05-1511-49/+46
| | | | * include/features.h (__GLIBC_MINOR__): Likewise.
* * sysdeps/unix/sysv/linux/sem_post.c: Only wake threads if oldUlrich Drepper2007-05-158-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.
* * malloc/malloc.c: Use all small bin slots on 64-bit archs.Ulrich Drepper2007-05-152-5/+23
| | | | | * malloc/malloc.c (largebin_index): Really have 32 buckets with 64 sizes.
* * malloc/malloc.c (largebin_index): Really have 32 buckets with 64 sizes.Ulrich Drepper2007-05-142-2/+5
| | | | 2007-05-13 Ulrich Drepper <drepper@redhat.com>
* * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximumUlrich Drepper2007-05-131-0/+7
| | | | | | number of mmaps. n_mmaps_max is the target. * malloc/hooks.c: Likewise. * malloc/arena.c: Likewise.
* [MALLOC_DEBUG]: Keep track of current maximum number of mmaps. n_mmaps_max ↵Ulrich Drepper2007-05-133-4/+39
| | | | is the target.
* * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for getpid.Andreas Jaeger2007-05-122-0/+6
| | | | | | | 2007-05-12 Andreas Jaeger <aj@suse.de> * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for getpid.
* (add_to_global): One more small cleanup patch.Ulrich Drepper2007-05-111-6/+3
|
* * elf/dl-close.c (_dl_close_worker): Help gcc to optimize byUlrich Drepper2007-05-112-30/+33
| | | | | | adding new variables. optimize. Completely extend global scope array before making the
* * elf/dl-open.c (add_to_global): Introduce variable ns to help gccUlrich Drepper2007-05-112-19/+28
| | | | | optimize. Complerely extend global scope array before making the new entries visible.
* * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.Ulrich Drepper2007-05-116-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.
* * scripts/check-c++-types.sh: Don't use -fnu89-inline option.Ulrich Drepper2007-05-112-2/+4
|
* * sysdeps/unix/sysv/linux/sched_setaffinity.c cvs/fedora-glibc-20070510T2308 cvs/fedora-glibc-20070510T2304Ulrich Drepper2007-05-107-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.
* * io/sys/stat.h: Make sure struct timespec is defined forUlrich Drepper2007-05-102-2/+6
| | | | __USE_ATFILE.
* * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW andUlrich Drepper2007-05-1018-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.
* Redefine __nonnull so that test for incorrect parameters in the libc code ↵Ulrich Drepper2007-05-101-0/+6
| | | | itself are not omitted.
* [BZ #4455] Jakub Jelinek2007-05-103-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.
* * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow cvs/fedora-glibc-20070510T0634Jakub Jelinek2007-05-102-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.
* [BZ #3427] Jakub Jelinek2007-05-102-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.
* [BZ #4403]Ulrich Drepper2007-05-081-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.
* (strfry): Make result more random.Ulrich Drepper2007-05-081-6/+4
|
* 2007-05-07 Richard Henderson <rth@redhat.com>Richard Henderson2007-05-0711-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.
* [BZ #4455]Ulrich Drepper2007-05-073-2/+18
| | | | | * tst-align2.c (do_test): Add _STACK_GROWS_UP case. * tst-getpid1.c (do_test): Likewise.
* [BZ #4456]Ulrich Drepper2007-05-071-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.