aboutsummaryrefslogtreecommitdiff
path: root/nptl
AgeCommit message (Collapse)Author
2002-12-11Update.Ulrich Drepper
* sysdeps/generic/sigpause.c: Define all functions as weak. * sysdeps/posix/sigpause.c: Likewise.
2002-12-10(__pthread_initialize_minimal): Remove unneccesary sigaddset call.Ulrich Drepper
2002-12-10Update.Ulrich Drepper
2002-12-10 Jakub Jelinek <jakub@redhat.com> * include/libc-symbols.h: Fix a comment typo. * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias. * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend): Likewise. * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend): Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__libc_sigsuspend): Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__libc_sigsuspend): Likewise. * sysdeps/generic/creat.c (__libc_creat): Renamed from creat. (creat): New weak alias.
2002-12-10Update.Ulrich Drepper
2002-12-09 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and __libc_select aliases. * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo alias. * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias. * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias. * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias. * sysdeps/unix/syscalls.list: Define __libc_select alias. * sysdeps/posix/waitid.c: Define __libc_waitid alias. * sysdeps/posix/sigpause.c: Define __libc_sigpause and __libc___xpg_sigpause aliases. * sysdeps/generic/pselect.c: Define __libc_pselect alias. * misc/error.c: Remove use of USE_IN_LIBIO.
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-07Update.Ulrich Drepper
* test-skeleton.c (timeout_handler): Allow expected signal to be SIGALRM.
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* 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-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* 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-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> * argp/Makefile (tests): Add tst-argp1.
2002-12-04Bump to 0.11.Ulrich Drepper
2002-12-04Update.Ulrich Drepper
2002-12-04 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Mark asms as volatile and add memory clobbers to lock operations.
2002-12-04Update.Ulrich Drepper
* sysdeps/i386/i686/bits/atomic.h: Use i486 version. * sysdeps/i386/i486/bits/atomic.h: New file. * sysdeps/i386/i586/bits/atomic.h: New file. * sysdeps/i386/i686/pthread_spin_trylock.S: Define HAVE_CMOV and include i486 version. * sysdeps/i386/i486/pthread_spin_trylock.S: New file. * sysdeps/i386/i586/pthread_spin_trylock.S: New file. Patch by Marjin Ros <marjin@mad.scientist.com>.
2002-12-04i486 specific atomic operations.Ulrich Drepper
2002-12-03Define HAVE_CMOV and include i486 version.Ulrich Drepper
2002-12-03Update.Ulrich Drepper
* allocatestack.c (get_cached_stack): Don't crash if we first found a stack with a larger size then needed. Reported by Hui Huang <hui.huang@sun.com>.
2002-12-03(get_cached_stack): Don't crash if we first found a stack with a larger size ↵Ulrich Drepper
then needed.
2002-12-03Update.Ulrich Drepper
2002-12-03 Ulrich Drepper <drepper@redhat.com> * Makefile (tests): Add tst-sysconf. * tst-sysconf.c: New file. * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine PTHREAD_THREADS_MAX.
2002-12-03Correct rule to create tst-locale1.Ulrich Drepper
2002-12-03Update.Ulrich Drepper
* Makefile (tests): Add tst-locale1. If buid-static is yes link statically. * tst-locale1.c: New file.
2002-12-03Test use of locale functions in statically linked apps.Ulrich Drepper
2002-12-03* sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so bothRoland McGrath
bits of RM are cleared.
2002-12-02Update.Ulrich Drepper
* pthread_cond_timedwait.c: Include <stdlib.h>.
2002-12-02Update.Ulrich Drepper
2002-12-02 Ulrich Drepper <drepper@redhat.com> * po/fi.po: Update from translation team.
2002-12-02Update.Ulrich Drepper
2002-12-02 Ulrich Drepper <drepper@redhat.com> * Makefile (tests): Add tst-fork2 and tst-fork3. * tst-fork2.c: New file. * tst-fork3.c: New file.
2002-12-02Tests for getppid in MT applications.Ulrich Drepper
2002-11-29Update.Ulrich Drepper
2002-11-28 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
2002-11-28Define HAVE_CMOV.Ulrich Drepper
2002-11-28Update.Ulrich Drepper
* sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: New file.
2002-11-28Update.Ulrich Drepper
2002-11-28 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: New file. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: New file. * sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: New file.
2002-11-28Update.Ulrich Drepper
* sysdeps/x86_64/bits/atomic.h: New file. * sysdeps/i386/i686/bits/atomic.h: Fix asm syntax for 8- and 16-bit operations.
2002-11-28Update.Ulrich Drepper
* sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if possible since gettid cannot fail.
2002-11-28Update.Ulrich Drepper
* sysdeps/x86_64/pthreaddef.h: New file. * sysdeps/i386/pthreaddef.h (gettid): Removed. * sysdeps/x86_64/pthread_spin_init.c: New file. * sysdeps/x86_64/pthread_spin_lock.c: New file. * sysdeps/x86_64/pthread_spin_trylock.c: New file. * sysdeps/x86_64/pthread_spin_unlock.c: New file. * sysdeps/i386/i686/pthread_spin_trylock.S (pthread_spin_trylock): Add missing lock prefix. Minute optimization. * tst-spin2.c (main): Also check successful trylock call. * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use correct syscall. Fix typo in case INTERNAL_SYSCALL is not used. * sysdeps/i386/pthread_spin_destroy.c: Moved to... * sysdeps/pthread/pthread_spin_destroy.c: ...here. New file. * sysdeps/i386/pthread_sigmask.c: Removed. Use the generic code. * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Return correct value in case of an error. Add support for INTERNAL_SYSCALL.
2002-11-27Update.Ulrich Drepper
2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com> * posix/regcomp.c (parse_expression): Set the bit since the back reference is used in the regular expression. * posix/regex_internal.c (re_node_set_init_1): Make it clean in case of malloc failure. (re_node_set_init_copy): Likewise. * posix/regex_internal.h (state_array_t): New structure. (re_sub_match_last_t): Likewise. (re_sub_match_top_t): Likewise. (re_match_context_t): Add new members. (re_dfa_t): Likewise. * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes to check the matching is really correct, and retry if failed. Move the routin pruning the impossible nodes from here, ... (prune_impossible_nodes): To this function. (check_matching): Invoke check_subexp_matching_top, and replace redundant checking with transit_state_bkref invocation. (proceed_next_node): Replace strncmp with memcmp. Reported by Paolo Bonzini <bonzini@gnu.org>. (update_cur_sifted_state): Remove search_subexp invocation. (search_subexp): Remove this function. (check_dst_limits_calc_pos): Use search_cur_bkref_entry for optimization. (sift_states_bkref): Use search_cur_bkref_entry for optimization. Remove unused invocation of match_ctx_add_entry. (transit_state): Invoke check_subexp_matching_top. (check_subexp_matching_top): New function. (transit_state_bkref): Remove unused array. Merge transit_state_bkref_loop. (transit_state_bkref_loop): Use get_subexp instead of sift_states_backward. Use search_cur_bkref_entry for optimization. Merge this function to transit_state_bkref. (get_subexp): New function. (get_subexp_sub): Likewise. (find_subexp_node): Likewise. (check_arrival): Likewise. (check_arrival_expand_ecl): Likewise. (check_arrival_expand_ecl_sub): Likewise. (expand_bkref_cache): Likewise. (match_ctx_init): Initialize new members. (match_ctx_clean): New function. (match_ctx_free): Release new members. (match_ctx_free_subtops): New function. (match_ctx_add_entry): Fix indent. (search_cur_bkref_entry): New function. (match_ctx_add_subtop): Likewise. (match_ctx_add_sublast): Likewise.
2002-11-27Update.Ulrich Drepper
* sysdeps/x86_64/pthread_sigmask.c: New file. * sysdeps/i386/pthread_sigmask.c (pthread_sigmask): Return correct value in case of an error.
2002-11-27Update.Ulrich Drepper
2002-11-27 Ulrich Drepper <drepper@redhat.com> * sysdeps/x86_64/tls.h: New file.
2002-11-27Update.Ulrich Drepper
* sysdeps/i386/tls.h (THREAD_GETMEM_NC): Change interface. It now takes the array member name and the index as parameters. (THREAD_SETMEM_NC): Likewise. * pthread_getspecific.c: Use new THREAD_GETMEM_NC interface. * pthread_setspecific.c: Use new THREAD_GETMEM_NC and THREAD_SETMEM_NC interfaces. * sysdeps/i386/tls.h (THREAD_SETMEM): Use size of member element to decide which code to use. (THREAD_SETMEM_NC): Likewise.