summaryrefslogtreecommitdiffstats
path: root/libpthread/linuxthreads.old/cancel.c
Commit message (Collapse)AuthorAgeFilesLines
* commentary typo fixBernhard Reutner-Fischer2011-05-111-1/+1
| | | | | | use cancellation (with two 'l') uniformly. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Check #if feature test macros are defined where they may not beRon2009-07-051-3/+3
| | | | | | | | | Once again all of these reduce the noise from gcc-4.4. Replaces a few more (USE_TLS && HAVE___THREAD) with USE___THREAD while we need to mess with them for this anyhow. Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Reinstate __libc_foo's needed for linuxthreads.old.Denis Vlasenko2009-02-251-2/+2
| | | | | Now they are only enabled if linuxthreads.old are selected.
* - trim any trailing whitespaceBernhard Reutner-Fischer2008-07-231-2/+2
|
* Add hidden symbols for a number of pthread functions, and use them to ensureBernd Schmidt2007-11-221-0/+7
| | | | | that all entries in the __pthread_functions point to functions within libpthread, not identically-named functions in libc.
* backport from upstream:Mike Frysinger2006-11-091-6/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-04-10 Ulrich Drepper <drepper@redhat.com> * join.c (pthread_exit): Move code to new function __pthread_do_exit which takes an extra parameter with the current frame pointer. Call new function with CURRENT_STACK_FRAME. (__pthread_do_exit): New function. Call __pthread_perform_cleanup with the new parameter. (pthread_join): Call __pthread_do_exit instead of pthread_exit. * cancel.c (__pthread_perform_cleanup): Takes extra parameter. Use this parameter as the initial value the cleanup handler records are compared against. No active cleanup handler record must have an address lower than the previous one and the initial record must be above (below on PA) the frame address passed in. (pthread_setcancelstate): Call __pthread_do_exit instead of pthread_exit. (pthread_setcanceltype): Likewise. (pthread_testcancel): Likewise. (_pthread_cleanup_pop_restore): Likewise. * condvar.c (pthread_cond_wait): Likewise. (pthread_cond_timedwait_relative): Likewise. * manager.c (pthread_start_thread): Likewise. * oldsemaphore.c (__old_sem_wait): Likewise. * pthread.c (pthread_handle_sigcancel): Likewise. * semaphore.c (__new_sem_wait): Likewise. (sem_timedwait): Likewise. * ptlongjmp.c (pthread_cleanup_upto): Also use current stack frame to limit the cleanup handlers which get run. * internals.h: Add prototype for __pthread_do_exit. Adjust prototype for __pthread_perform_cleanup.
* backport from upstream:Mike Frysinger2006-11-091-0/+12
| | | | | | | | 2001-04-11 Ulrich Drepper <drepper@redhat.com> * cancel.c (_pthread_cleanup_push): Catch invalid __prev buffer and remove it. (_pthread_cleanup_push_defer): Likewise.
* merge fixes from upstream (rev 1.10 -> 1.13)Mike Frysinger2006-08-241-2/+5
|
* rename current stable linuxthreads to linuxthreads.old to prepare for import ↵Mike Frysinger2005-11-151-0/+184
of latest glibc version