summaryrefslogtreecommitdiffstats
path: root/libpthread/linuxthreads.old/pthread.c
Commit message (Collapse)AuthorAgeFilesLines
* make sure we store the function pointers to the real push/pop functions ↵Mike Frysinger2008-05-151-2/+2
| | | | | | | | | | | rather than the public weak ones so that the libc->libpthread forwarding code is able to work properly this should fix the case where libpthread.so is not linked directly, but rather via another library: app -> links to libfoo.so -> links to libpthread.so and any function (like readdir_r) that does: __UCLIBC_MUTEX_LOCK() __UCLIBC_MUTEX_UNLOCK()
* Add hidden symbols for a number of pthread functions, and use them to ensureBernd Schmidt2007-11-221-1/+40
| | | | | that all entries in the __pthread_functions point to functions within libpthread, not identically-named functions in libc.
* Peter Mazinger pointed out that my last commit was faulty.Joakim Tjernlund2007-01-111-0/+2
| | | | This should fix it.
* backport from upstream:Mike Frysinger2006-11-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* import ia64 linuxthreads filesMike Frysinger2006-02-271-0/+15
|
* tweak the idea between having a MMU and actually using itMike Frysinger2006-02-181-5/+5
|
* fix warning when building on non-mmu hostsMike Frysinger2006-02-041-0/+2
|
* prototypes for threads tooPeter S. Mazinger2006-01-261-0/+2
|
* make use of the internals provided earlierPeter S. Mazinger2006-01-251-6/+7
|
* Don't use __getpid/__getpagesizePeter S. Mazinger2006-01-241-9/+6
|
* Enable _GNU_SOURCE build wide, trying to get consistent interfaces, else IMA ↵Peter S. Mazinger2006-01-221-1/+0
| | | | is a useless attempt
* update pthread weak handling to the style glibc usesMike Frysinger2006-01-041-0/+65
|
* kill off some signedness/unused warningsMike Frysinger2005-12-291-3/+3
|
* Hide mostly used functionsPeter S. Mazinger2005-12-011-1/+1
|
* rename current stable linuxthreads to linuxthreads.old to prepare for import ↵Mike Frysinger2005-11-151-0/+1044
of latest glibc version