summaryrefslogtreecommitdiffstats
path: root/libpthread/linuxthreads.old/manager.c
Commit message (Collapse)AuthorAgeFilesLines
* Allow ABIs where SP points below the stack frame.Bernd Schmidt2011-03-051-7/+11
| | | | | | | | On C6X, the stack pointer points to a word that is not part of the current function's stack frame. It may be overwritten by callees. Take this into account when creating the stack for a cloned thread. Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
* libpthread: add format attribute to __pthread_message()Mike Frysinger2009-07-211-2/+2
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Don't shadow the mask parameter with a local variable in the same functionRon2009-07-051-2/+2
| | | | | Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Add noreturn attributes to some functions that won't ever do soRon2009-07-051-2/+2
| | | | | | | | | usage() is also made static in answer to warnings about no prototype. In __pthread_manager_event() we also have to drop the return statement, else gcc will in turn complain about a non-returning function having one. Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* *: remove some __libc_XXX functions:Denis Vlasenko2008-12-101-7/+7
| | | | | | | | | | | | __libc_accept __libc_close __libc_connect __libc_creat __libc_creat64 __libc_fsync __libc_lseek __libc_lseek64 __libc_msync __libc_nanosleep __libc_open __libc_open64 __libc_pause __libc_read __libc_readv __libc_recv __libc_recvfrom __libc_recvmsg __libc_send __libc_sendmsg __libc_sendto __libc_tcdrain __libc_wait __libc_waitpid __libc_write __libc_writev They were removed from glibc 1 May 2004: http://sources.redhat.com/ml/libc-hacker/2004-05/msg00001.html
* optimize signal mask ops. comment out "impossible" errorsDenis Vlasenko2008-12-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | text data bss dec hex filename - 1179 13 2 1194 4aa libc/misc/syslog/syslog.o + 1165 13 2 1180 49c libc/misc/syslog/syslog.o - 435 4 0 439 1b7 libc/pwd_grp/lckpwdf.o + 393 4 0 397 18d libc/pwd_grp/lckpwdf.o - 38 0 0 38 26 libc/signal/sigandset.o + 32 0 0 32 20 libc/signal/sigandset.o - 63 0 0 63 3f libc/signal/sigblock.o + 56 0 0 56 38 libc/signal/sigblock.o - 22 0 0 22 16 libc/signal/sigempty.o + 20 0 0 20 14 libc/signal/sigempty.o - 25 0 0 25 19 libc/signal/sigfillset.o + 20 0 0 20 14 libc/signal/sigfillset.o - 34 0 0 34 22 libc/signal/sigisempty.o + 16 0 0 16 10 libc/signal/sigisempty.o - 38 0 0 38 26 libc/signal/sigorset.o + 32 0 0 32 20 libc/signal/sigorset.o - 119 0 0 119 77 libc/signal/sigpause.o + 113 0 0 113 71 libc/signal/sigpause.o - 215 0 0 215 d7 libc/signal/sigset.o + 211 0 0 211 d3 libc/signal/sigset.o - 63 0 0 63 3f libc/signal/sigsetmask.o + 56 0 0 56 38 libc/signal/sigsetmask.o - 194 0 1 195 c3 libc/stdlib/abort.o + 183 0 1 184 b8 libc/stdlib/abort.o - 323 0 0 323 143 libc/unistd/sleep.o + 309 0 0 309 135 libc/unistd/sleep.o
* signal ops: avoid calls through PLT for __sigXXX opsDenis Vlasenko2008-11-221-5/+4
| | | | | linuxthreads.old/manager: pointless style fixes, no code changes
* - trim any trailing whitespaceBernhard Reutner-Fischer2008-07-231-12/+12
|
* - fix inline keywordBernhard Reutner-Fischer2008-07-231-1/+1
|
* Bernd Schmidt writes: make sure custom stacks work properly for no-mmuMike Frysinger2007-05-311-0/+7
|
* 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.
* remove duplicated/unused ASSERT codeMike Frysinger2006-11-031-3/+0
|
* import ia64 linuxthreads filesMike Frysinger2006-02-271-0/+14
|
* tweak the idea between having a MMU and actually using itMike Frysinger2006-02-181-7/+7
|
* user internal versions of waitpid/raise/nanosleepPeter S. Mazinger2006-01-251-0/+2
|
* Don't use __getpid/__getpagesizePeter S. Mazinger2006-01-241-7/+3
|
* Add some attribute_noreturn, replace __attribute__ ((noreturn)) as wellPeter S. Mazinger2006-01-231-4/+4
|
* Enable _GNU_SOURCE build wide, trying to get consistent interfaces, else IMA ↵Peter S. Mazinger2006-01-221-1/+0
| | | | is a useless attempt
* hidden_def/hidden_proto: convert all users (I hope) termios split, add some ↵Peter S. Mazinger2006-01-141-1/+1
| | | | missing headers, other jump relocs removed
* typecast away a signed/unsigned warningMike Frysinger2005-12-271-1/+1
|
* kill off minor unused warningsMike Frysinger2005-12-271-1/+1
|
* Jie Zhang writes:Mike Frysinger2005-12-221-0/+8
| | | | | | | | I think the loop was written for MMU case. When there is MMU, mmap () is used to allocate the stack. If one segment is already mapped, we should continue to see if we can use the next one. However, for NOMMU, malloc () is used. It's waste of CPU cycles to continue to try if it fails. Here is a new patch, which makes this change only for NOMMU.
* rename current stable linuxthreads to linuxthreads.old to prepare for import ↵Mike Frysinger2005-11-151-0/+905
of latest glibc version