91 Commits (df15168cf8baf34fb9c94e19eaa1a5c79c853970)

Author SHA1 Message Date
Rich Felker df15168cf8 replace all remaining internal uses of pthread_self with __pthread_self 12 years ago
Rich Felker 689e0e6bf7 fix pointer type mismatch and misplacement of const 12 years ago
Rich Felker dab441aea2 always initialize thread pointer at program start 12 years ago
Rich Felker 271c211944 omit CLONE_PARENT flag to clone in pthread_create 13 years ago
Rich Felker f68a3468d4 use symbolic names for clone flags in pthread_create 13 years ago
Szabolcs Nagy b20760c023 support configurable page size on mips, powerpc and microblaze 13 years ago
Rich Felker 2c074b0d6c transition to using functions for internal signal blocking/restoring 13 years ago
Rich Felker d674f8582a prevent code from running under a thread id which already gave ESRCH 13 years ago
Rich Felker 082fb4e9bf fix clobbering of signal mask when creating thread with sched attributes 13 years ago
Rich Felker d0ba09837b make last thread's pthread_exit give exit(0) a consistent state 13 years ago
Rich Felker c3a6839ce9 use atomic decrement rather than cas in pthread_exit thread count 13 years ago
Rich Felker 6e531f999a add comments on some of the pthread_exit logic 13 years ago
Rich Felker 23f21c304f always block signals in pthread_exit before decrementing thread count 13 years ago
Rich Felker ced64995c2 fix type error in pthread_create, introduced with pthread_getattr_np 13 years ago
Rich Felker 14a835b386 implement pthread_getattr_np 13 years ago
Rich Felker ccc7b4c3a1 remove __SYSCALL_SSLEN arch macro in favor of using public _NSIG 13 years ago
Rich Felker 72768ea99e fix stale locks left behind when pthread_create fails 13 years ago
Rich Felker 077549e0d4 if pthread_create fails, it must not attempt mmap if there is no mapping 13 years ago
Rich Felker d5142642b8 pthread stack treatment overhaul for application-provided stacks, etc. 13 years ago
Rich Felker 1e21e78bf7 add support for thread scheduling (POSIX TPS option) 14 years ago
Rich Felker efd4d87aa4 clean up sloppy nested inclusion from pthread_impl.h 14 years ago
Rich Felker 9ec4283b28 add support for TLS variant I, presently needed for arm and mips 14 years ago
Rich Felker 42c36f957d fix overlap of thread stacks with thread tls segments 14 years ago
Rich Felker 0a96a37f06 clean up and refactor program initialization 14 years ago
Rich Felker dcd6037150 support for TLS in dynamic-loaded (dlopen) modules 14 years ago
Rich Felker 8431d7972f TLS (GNU/C11 thread-local storage) support for static-linked programs 14 years ago
Rich Felker 0c05bd3a9c further use of _Noreturn, for non-plain-C functions 14 years ago
Rich Felker 400c5e5c83 use restrict everywhere it's required by c99 and/or posix 2008 14 years ago
Rich Felker 2f437040e7 fix (hopefully) all hard-coded 8's for kernel sigset_t size 14 years ago
Rich Felker bbbe87e35c fix several locks that weren't updated right for new futex-based __lock 14 years ago
Rich Felker 92f8396b0c fix potential race condition in detached threads 14 years ago
Rich Felker 819006a88b add pthread_attr_setstack interface (and get) 14 years ago
Rich Felker 1e597a3e9b remove no-longer-needed unblocking of signals in pthread_create 14 years ago
Rich Felker cfd892fde9 simplify cancellation push/pop slightly 14 years ago
Rich Felker 7e4d79464a make pthread stacks non-executable 14 years ago
Rich Felker 58aa5f45ed overhaul SSP support to use a real canary 14 years ago
Rich Felker e3234d0109 fix pthread_cleanup_pop(1) crash in non-thread-capable, static-linked programs 14 years ago
Rich Felker 2230218c28 small fix for new pthread cleanup stuff 14 years ago
Rich Felker afc35d5efd replace bad cancellation cleanup abi with a sane one 14 years ago
Rich Felker 3f39c9b313 fix incorrect allocation failure check in pthread_create 15 years ago
Rich Felker 3f72cdac73 overhaul clone syscall wrapping 15 years ago
Rich Felker 407d933052 pthread and synccall cleanup, new __synccall_wait op 15 years ago
Rich Felker 5f37fc132a further debloat cancellation handlers 15 years ago
Rich Felker 56385dd5fe missed detail in cancellation bloat fix 15 years ago
Rich Felker 730bee725a fix static linking dependency bloat with cancellation 15 years ago
Rich Felker dba68bf98f add proper fuxed-based locking for stdio 15 years ago
Rich Felker acb0480662 new attempt at making set*id() safe and robust 15 years ago
Rich Felker 7779dbd266 fix race condition in pthread_kill 15 years ago
Rich Felker f58c8a0f39 run dtors before taking the exit-lock in pthread exit 15 years ago
Rich Felker 6232b96f51 minor locking optimizations 15 years ago