| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
ok guenther tb millert
|
|
|
|
|
|
| |
could be useful in ports.
initial diff by David Carlier some time ago.
ok jca
|
|
|
|
|
|
|
|
| |
pthread_exit from libpthread to libc, along with low-level bits to
support them. Major bump to both libc and libpthread.
Requested by libressl team. Ports testing by naddy@
ok kettenis@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This stores errno, the cancelation flags, and related bits for each thread
and is allocated by ld.so or libc.a. This is an ABI break from 5.9-stable!
Make libpthread dlopen'able by moving the cancelation wrappers into libc
and doing locking and fork/errno handling via callbacks that libpthread
registers when it first initializes. 'errno' *must* be declared via
<errno.h> now!
Clean up libpthread's symbol exports like libc.
On powerpc, offset the TIB/TCB/TLS data from the register per the ELF spec.
Testing by various, particularly sthen@ and patrick@
ok kettenis@
|
|
|
|
|
|
|
| |
aliases by using a macro REDIRECT_SYSCALL() to map the symbols. Apply
that to getthrid(), sysctl(), and issetugid() as well.
ok mpi@ beck@
|
|
|
|
| |
ok millert@, tobiasu@
|
|
|
|
| |
review by millert, binary checking process with doug, concept with guenther
|
| |
|
| |
|
|
|
|
|
| |
don't need to be married.
ok guenther miod beck jsing kettenis
|
|
|
|
|
|
| |
allocated by the kernel's execve bits.
ok matthew@
|
|
|
|
| |
range. okay kettenis@, guenther@, deraadt@
|
|
|
|
|
|
|
|
|
| |
thread's existing handle must continue to be valid and it didn't
fully 'change' the thread handle anyway. For pthread_main_np(),
use a new flag, THREAD_ORIGINAL, to indicate that the flagged thread
is the original thread for *this* process.
Fixes some ConsoleKit failures according to aja@
|
|
|
|
| |
long discussions with guenther, kurt, kettenis etc etc etc
|
|
|
|
|
|
| |
From Christian Schulte (cs at schulte.it)
- Use stack->sp instead of recalculating it. From guenther@
okay guenther@
|
|
|
|
|
|
|
|
|
|
|
| |
don't try to merge values, round the sizes separately, and don't try to
unmap application-supplied stacks.
Copy from uthread the caching of default-sized stacks.
Have pthread_attr_init() and pthread_create() get the default attributes
from staticly allocated pthread_attr_t.
Cache the pagesize in _rthread_init() and provide a macro for rounding to it
based on suggestions from kettenis@ and tedu@, ok kettenis@
|
|
|
|
| |
so prefer it for identifying the current thread
|
|
|
|
| |
pthread_stackseg_np(). With input and okay marc@
|
|
|
|
| |
pthreads header changed, char * -> const char *
|
|
|
|
| |
ok tedu@ marc@
|
|
|
|
| |
and fix a bug in thread creation error path. ok tedu@
|
|
pthread_stackseg_np(), from existing pthread lib.
discussed with tedu@ ok marc@
|