Age | Commit message (Collapse) | Author |
|
annoying strict prototypes
|
|
shared libraries...and I misspelled them anyway
|
|
hppa reverse-stack gives us a valuable test case, but most developers don't
have a 2nd one to proceed further with this.
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@
|
|
|
|
|
|
from Kari Tristan Helgason
|
|
spotted by guenther
|
|
references. Use _thread_pagesize for the semaphore mmap size instead of
calling getpagesize() each time.
ok beck@
|
|
aliases by using a macro REDIRECT_SYSCALL() to map the symbols. Apply
that to getthrid(), sysctl(), and issetugid() as well.
ok mpi@ beck@
|
|
as osendsyslog for a while. The three argument variant is the only
one that will stay.
input kettenis@; OK deraadt@
|
|
that will be needed and make libpthread work when ld.so/libc.a provide an
initial TIB.
|
|
|
|
which run for many cycles and may even sleep. This leads to other threads
spinning for a long time waiting on the lock. Using a mutex means those
threads go to sleep and get woken up when the lock is released, which results
in a lot less CPU usage. More work is needed to improve the performance of
threaded code that suffers from malloc lock contention, but this diff makes
ports like Firefox significantly more usable.
Tested by many.
ok mpi@, guenther@, tedu@, jca@
|
|
report from Jeunder Yu
|
|
thrkill(2), rolling the kill(2) syscall number with the ABI change to
avoid breaking binaries during during the transition. thrkill(2) includes
a 'tcb' argument that eliminates the need for locking in pthread_kill()
and simplifies pthread_cancel(). Switch __stack_smash_handler() to use
thrkill(2) and explicitly unblock SIGABRT.
Minor bump to both libc and libpthread: make sure you install a new kernel!
ok semarie@
|
|
|
|
into libc, and move pthread_sigmask() as well (just a trivial wrapper).
This provides consistent handling of SIGTHR between single- and multi-threaded
programs and is a step in the merge of all the libpthread overloads, providing
some ASM and Makefile bits that the other wrappers will need.
ok deraadt@ millert@
|
|
eliminates a chunk of complexity from the libpthread init and the fork
wrapper, as it was the bind lock that needed prebinding before use.
|
|
ok guenther
|
|
with ld.so locking whenever building NOPIC
pointless use of __ELF__ noted by brad@
ok miod@
|
|
the sake of libpthread. Probably missed during the a.out->ELF switch, I
can't believe this went unnoticed for so long.
|
|
may have been grabbed by another thread in the parent before the fork
problem report from dcoppa@, ok kettenis@
|
|
pthread and instead use the values from the embedded struct pthread_attr.
For bonus points, pay attention to the sched_inherit attribute and possibly
set the values from the parent thread.
Problem noted by natano of bitrig.
|
|
unregistering callbacks if the DSO is unloaded. Move the callback
handling from libpthread to libc, though libpthread still overrides the
inner call to handle locking and thread-library reinitialization.
Major version bump for both libc and libpthread.
verification that this fixes various ports ajacoutot@
asm assistance miod@; ok millert@ deraadt@
|
|
ok millert@, tobiasu@
|
|
review by millert, binary checking process with doug, concept with guenther
|
|
|
|
unroll to the cancellation check
ok tedu@
|
|
cancellation properly when a handled (but not waited for) signal occurs
ok tedu@
|
|
Update the list in the pthread_testcancel(3) manpage: several were missing.
noted by miod@
|
|
indirectly prodded by krw@
|
|
|
|
|
|
ok deraadt@
|
|
don't need to be married.
ok guenther miod beck jsing kettenis
|
|
allocated by the kernel's execve bits.
ok matthew@
|
|
MAP_FILE and MAP_HASSEMAPHORE flags.
Discussed with deraadt, tedu, and kettenis
|
|
|
|
range. okay kettenis@, guenther@, deraadt@
|
|
|
|
this hardware alive is becoming increasingly difficult, and I should heed the
message sent by the three disks which have died on me over the last few days.
Noone sane will mourn these ports anyway. So long, and thanks for the fish.
|
|
(namespace pollution!) or talking about its opinion on code.
ok krw@
|
|
ensure the frames are aligned correctly. Discussed at length with guenther
and kettenis
ok kettenis, this is the right first step
|
|
defined and we don't think ld.so has already done the TCB setup.
ok and much discussion miod@
|
|
reported by zhuk
|
|
following what is recommended for mkstemp. This reduces the number of calls
to sched_yield considerably.
tedu@ ok.
|
|
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@
|
|
NULL semaphore in sem_close(). Minor cosmetic changes.
tedu@ zhuk@ ok
|
|
if he wants, but let us get the tree building.
|