aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2002-12-09* sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'dRoland McGrath
struct containing function ptr and value, free it. (__aio_notify_only): Allocate that and copy values from SIGEV into it. It's not safe to let the new thread use the SIGEV pointer.
2002-12-09* misc/error.c (strerror_r): Do not declare unless [!_LIBC].Roland McGrath
Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P. Use strerror_r that is only a macro, even if it is not a function. (strerror): Check for HAVE_DECL_STRERROR before declaring. (private_strerror): Use prototypes, not old-style function definition. (print_errno_message): New function. Support the POSIX 'int'-flavored strerror_r, as well as the traditional char*-flavored one. (error_tail, error, error_at_line): Use it.
2002-12-092001-10-20 Paul Eggert <eggert@twinsun.com>Roland McGrath
* misc/error.c (strerror_r): Do not declare unless [!_LIBC]. Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P. Use strerror_r that is only a macro, even if it is not a function. (strerror): Check for HAVE_DECL_STRERROR before declaring. (private_strerror): Use prototypes, not old-style function definition. (print_errno_message): New function. Support the POSIX 'int'-flavored strerror_r, as well as the traditional char*-flavored one. (error_tail, error, error_at_line): Use it.
2002-12-08Update.Ulrich Drepper
2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca> * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
2002-12-08Update.Ulrich Drepper
* pthreadP.h: Enable pthread_cleanup_{push,pop} optimizations only inside libpthread.
2002-12-08Update.Ulrich Drepper
* pt-fcntl.c (__fcntl): Initialize oldtype to avoid warning. * pthread_join.c: Likewise. * pthread_timedjoin.c: Likewise.
2002-12-08Update.Ulrich Drepper
* scripts/output-format.sed: Fix bug in one of the s expressions which used / for one too many things.
2002-12-08Update.Ulrich Drepper
2002-12-08 Ulrich Drepper <drepper@redhat.com> * include/unistd.h: Declare __libc_close.
2002-12-08Update.Ulrich Drepper
2002-12-07 Ulrich Drepper <drepper@redhat.com> * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
2002-12-08Update.Ulrich Drepper
2002-12-07 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/raise.c: Use libc_hidden_def for raise.
2002-12-08Use libc_hidden_def for raise.Ulrich Drepper
2002-12-07* sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changesRoland McGrath
from 2002-12-06, but remove unnecessary memset call without removing necessary copy of initialization image. * Makerules ($(common-objpfx)format.lds): New target. (common-generated): Add it. ($(inst_libdir)/libc.so): Depend on that, and cat it into the result. * scripts/output-format.sed: New file. * Makefile (distribute): Add it. 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
2002-12-072002-12-07 Roland McGrath <roland@redhat.com>Roland McGrath
* Makerules ($(common-objpfx)format.lds): New target. (common-generated): Add it. ($(inst_libdir)/libc.so): Depend on that, and cat it into the result. * scripts/output-format.sed: New file. * Makefile (distribute): Add it.
2002-12-07Update.Ulrich Drepper
2002-12-07 Ulrich Drepper <drepper@redhat.com> * sysdeps/generic/libc-tls.c: Include <sys/param.h>. Reported by Art Haas <ahaas@airmail.net>. 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>.
2002-12-07Update.Ulrich Drepper
2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>. * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4. 2002-12-07 Jakub Jelinek <jakub@redhat.com> * string/test-strncpy.c (do_random_tests): Improve test coverage.
2002-12-07Update.Ulrich Drepper
* test-skeleton.c (timeout_handler): Allow expected signal to be SIGALRM.
2002-12-07Update.Ulrich Drepper
2002-12-06 Ulrich Drepper <drepper@redhat.com> * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum. * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
2002-12-07Update.Ulrich Drepper
2002-12-07 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Fix a pasto. Reported by Jeff Bailey <jbailey@nisa.net>.
2002-12-07Update.Ulrich Drepper
* sysdeps/generic/libc-tls.c: Undo last patch.
2002-12-06Update.Ulrich Drepper
* include/wctype.h: Define iswalnum with libc_hidden_proto. * include/signal.h: Define raise with libc_hidden_proto. * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and __execve instead of snprintf and execve.
2002-12-06Update.Ulrich Drepper
2002-12-06 Ulrich Drepper <drepper@redhat.com> * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double again a bit.
2002-12-06Relax errors for flaot and double again a bit.Ulrich Drepper
2002-12-06* posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.Roland McGrath
* posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
2002-12-06(fmt, testfmt): Remove -D_LIBC.Ulrich Drepper
2002-12-06Update.Ulrich Drepper
* init.c (__pthread_initialize_minimal): Correct INIT_LIST_HEAD use.
2002-12-06Update.Ulrich Drepper
2002-12-06 Ulrich Drepper <drepper@redhat.com> * misc/syslog.c (log_cleanup): New function. (openlog): Use log_cleanup instead of __libc_mutex_unlock. (closelog): Likewise. * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*. * elf/dl-iteratephdr.c: Likewise. * elf/dl-lookup.c: Likewise. * elf/dl-misc.c: Likewise. * elf/dl-open.c: Likewise. * elf/dl-support.c: Likewise. * elf/rtld.c: Likewise. * sysdeps/generic/ldsodefs.h: Likewise. * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros. * sysdeps/mach/bits/libc-lock.h: Likewise. * sysdeps/mach/hurd/bits/libc-lock.h: Likewise. * dirent/bug-readdir1.c (main): Don't call closedir, just close
2002-12-06(log_cleanup): New function. (openlog): Use log_cleanup instead of ↵Ulrich Drepper
__libc_mutex_unlock. (closelog): Likewise.
2002-12-06* sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.Roland McGrath
* malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))] (malloc_starter, memalign_starter, free_starter): Don't define these. * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]: Don't declare them either. * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call __pthread_initialize, so no need to set hooks to *_starter. (ptmalloc_init_minimal): New function, broken out of ptmalloc_init. [_LIBC && SHARED && USE_TLS && !USE___THREAD] (__libc_malloc_pthread_startup): New function. * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function. * malloc/hooks.c (memalign_starter): New function. * malloc/malloc.c: Declare it. * malloc/arena.c (save_memalign_hook): New variable. (ptmalloc_init): Set __memalign_hook to memalign_starter. * elf/dl-minimal.c (free): Clear the memory. (calloc): Just call malloc, knowing all memory it returns is cleared. * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of malloc and memset; calloc can avoid the zeroing when redundant. (_dl_tls_setup): Likewise. * elf/dl-load.c (decompose_rpath): Likewise. * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset call, since memory from sbrk at startup is already zero. * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an error string for failure, null for success. Update callers. * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise. * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2002-12-062002-12-06 Roland McGrath <roland@redhat.com>Roland McGrath
* malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))] (malloc_starter, memalign_starter, free_starter): Don't define these. * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]: Don't declare them either. * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call __pthread_initialize, so no need to set hooks to *_starter. (ptmalloc_init_minimal): New function, broken out of ptmalloc_init. [_LIBC && SHARED && USE_TLS && !USE___THREAD] (__libc_malloc_pthread_startup): New function. * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
2002-12-06Also ignore names such as autom4te-2.53.cache.Ulrich Drepper
2002-12-05* sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): ChangeRoland McGrath
args to i:iipi. (readahead): Change args to i:iii. * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead): Change args to i:iii. * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change args to i:iiii.
2002-12-05* stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,Roland McGrath
call all functions rather than none. Reported by Mark P. Mitchell <mark@codesourcery.com>.
2002-12-05* sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): AddRoland McGrath
missing & here too.
2002-12-052002-12-05 Roland McGrath <roland@redhat.com>Roland McGrath
* sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Add missing & here too.
2002-12-05Update.Ulrich Drepper
2002-12-05 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove lowlevellock. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: New file. * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: New file. * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: New file. * sysdeps/pthread/bits/libc-lock.h: Use lowlevellock implementation for __libc_lock_* macros. * Makefile (routines): Add libc-lowlevellock. 2002-10-09 Roland McGrath <roland@redhat.com> * sysdeps/pthread/bits/libc-lock.h (__libc_maybe_call): New macro. Under [__PIC__], call the function via the pointer fetched for comparison rather than a call by name that uses the PLT. (__libc_lock_init, __libc_rwlock_init, __libc_lock_fini) (__libc_rwlock_fini, __libc_lock_lock, __libc_rwlock_rdlock) (__libc_rwlock_wrlock, __libc_lock_trylock, __libc_rwlock_tryrdlock) (__libc_rwlock_trywrlock, __libc_lock_unlock, __libc_rwlock_unlock) (__libc_key_create, __libc_getspecific, __libc_setspecific): Use it.
2002-12-05Low level locks for i486 in libc.Ulrich Drepper
2002-12-05* locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ieRoland McGrath
on _nl_current_LC_* variables.
2002-12-052002-12-04 Roland McGrath <roland@redhat.com>Roland McGrath
* locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie on _nl_current_LC_* variables.
2002-12-05Update.Ulrich Drepper
2002-12-05 Ulrich Drepper <drepper@redhat.com> * dirent/bug-readdir1.c (main): Don't call closedir, just close on the file descriptor. This is testing what the bug report was about.
2002-12-05Update.Ulrich Drepper
* po/be.po: New file.
2002-12-05Belarusian translation for GNU libc messages.Ulrich Drepper
2002-12-05* forward.c (pthread_self): Use FORWARD3 macro to correct return type.Roland McGrath
* sysdeps/i386/td_ta_map_lwp2thr.c: Moved from ../nptl_db. * sysdeps/generic/td_ta_map_lwp2thr.c: New file. * pthread_create.c (start_thread): Add missing & on __nptl_last_event.
2002-12-05* td_thr_get_info.c (td_thr_get_info): ti_tid is pthread_t, not a PID.Roland McGrath
* thread_db.h (td_thrinfo_t): Comment fix. * td_ta_map_lwp2thr.c: Moved to ../nptl/sysdeps/i386/.
2002-12-052002-12-04 Roland McGrath <roland@redhat.com>Roland McGrath
* td_thr_get_info.c (td_thr_get_info): ti_tid is pthread_t, not a PID.
2002-12-05Update.Ulrich Drepper
* sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent): Change type of _attribute to void*. * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise. * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise. * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise. * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise. * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
2002-12-05Update.Ulrich Drepper
2002-12-05 Jakub Jelinek <jakub@redhat.com> * sysdeps/i386/tls.h: Include stdlib.h. * sysdeps/x86_64/tls.h: Likewise.
2002-12-04Update.Ulrich Drepper
2002-12-04 Ulrich Drepper <drepper@redhat.com> * td_ta_thr_iter.c (iterate_thread_list): At end of iteration read pointer to the next element from inferior.
2002-12-04Update.Ulrich Drepper
2002-12-04 Ulrich Drepper <drepper@redhat.com> * argp/Makefile (tests): Add tst-argp1.
2002-12-04Bump to 0.11.Ulrich Drepper
2002-12-04* sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]Roland McGrath
members to the end, so a libpthread compiled with !USE_TLS will still find other members properly. * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output operand for DEST memory. Fix dummy input operand to use SRC. Reported by Davin McCall <davmac@ozonline.com.au>. * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB alignment when initializing the DTV entry. * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment when TLS has not been set up, try to set it up if we can. * elf/tst-tls4.c: Revert last change. * elf/tst-tls5.c: Likewise. * elf/tst-tls6.c: Likewise. * elf/tst-tls7.c: Likewise. * elf/tst-tls8.c: Likewise. * elf/tst-tls9.c: Likewise. * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function. * sysdeps/generic/ldsodefs.h: Declare it. * elf/Versions (ld: GLIBC_PRIVATE): Add it. * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline function, broken out of __libc_setup_tls. (init_static_tls): Likewise. (__libc_setup_tls): Call them. (_dl_tls_setup): New function, uses new subroutines. * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer. Clear the pointer when returning true. (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the first element of the slotinfo list too. * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if [SHARED]. * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden. (_dl_determine_tlsoffset): Likewise. * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from startup_error_tsd, made global. (dl_main): Update initialization. * elf/dl-tsd.c: Likewise. * sysdeps/generic/ldsodefs.h: Declare it.