Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-02-27 | RELRO means the __{got,plt}_{start,end} symbols are superfluous | Philip Guenther | |
ok kettenis@ | |||
2017-01-11 | Add support for AArch64. | Patrick Wildt | |
2017-01-05 | Now that all non-ARMv7 platforms are gone, tedu the legacy atomic | Patrick Wildt | |
locking code. ok kettenis@ | |||
2016-09-04 | Get rid of ticket support, replace "struct _spinlock" with "_atomic_lock_t". | Michal Mazurek | |
ok tedu@ | |||
2016-09-03 | Remove _USING_TICKETS, it's defined as 0. No functional change. | Michal Mazurek | |
ok tedu@ mpi@ | |||
2016-09-01 | delete wrong cvs $ tags | Theo de Raadt | |
2016-09-01 | bump | Otto Moerbeek | |
2016-09-01 | Less lock contention by using more pools for mult-threaded programs. | Otto Moerbeek | |
tested by many (thanks!) ok tedu, guenther@ | |||
2016-09-01 | retire sparc | Ted Unangst | |
2016-06-01 | implicit function declaration is the error we really want, not the | Ted Unangst | |
annoying strict prototypes | |||
2016-05-20 | Delete the _SDA_BASE and _SDA2_BASE symbols: they're unnecessary in | Philip Guenther | |
shared libraries...and I misspelled them anyway | |||
2016-05-11 | remove hppa64 port, which we never got going beyond broken single users. | Theo de Raadt | |
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 | |||
2016-05-07 | Use a Thread Information Block in both single and multi-threaded programs. | Philip Guenther | |
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@ | |||
2016-04-15 | Document PROTO_NORMAL requires matching DEF_{,NON}STD | Philip Guenther | |
2016-04-15 | PROTO_NORMAL(pthread_cond_signal) requires DEF_STD(pthread_cond_signal) | Philip Guenther | |
2016-04-15 | make pthread_barrier_wait behave more like it does on other platforms. | Ted Unangst | |
from Kari Tristan Helgason | |||
2016-04-09 | replace 0xf57ff05f with dmb sy | Jonathan Gray | |
spotted by guenther | |||
2016-04-02 | Wrap <pthread.h> and <pthread_np.h> to eliminate PLT entries for internal | Philip Guenther | |
references. Use _thread_pagesize for the semaphore mmap size instead of calling getpagesize() each time. ok beck@ | |||
2016-04-02 | Eliminate the need to explicitly invoke syscalls via their _thread_sys_* | Philip Guenther | |
aliases by using a macro REDIRECT_SYSCALL() to map the symbols. Apply that to getthrid(), sysctl(), and issetugid() as well. ok mpi@ beck@ | |||
2016-03-21 | Rename the system call sendsyslog2 to sendsyslog. Keep the old one | Alexander Bluhm | |
as osendsyslog for a while. The three argument variant is the only one that will stay. input kettenis@; OK deraadt@ | |||
2016-03-20 | Prepare for future ld.so/libc bump: update <tib.h> with the definitions | Philip Guenther | |
that will be needed and make libpthread work when ld.so/libc.a provide an initial TIB. | |||
2016-03-10 | No point in keeping the threading support for vax, I guess | Philip Guenther | |
2016-01-27 | Replace the malloc spinlock with a mutex. This lock is held over system calls | Mark Kettenis | |
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@ | |||
2015-12-10 | use geteuid to allow root to communicate with others. | Ted Unangst | |
report from Jeunder Yu | |||
2015-11-10 | Split the intra-thread functionality from kill(2) into its own syscall | Philip Guenther | |
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@ | |||
2015-11-01 | delete old lint ARGSUSED comments | Philip Guenther | |
2015-10-23 | Merge the sigaction() and sigprocmask() overloads/wrappers from libpthread | Philip Guenther | |
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@ | |||
2015-10-18 | ld.so no longer needs or uses a bind lock, so stop setting it. This | Philip Guenther | |
eliminates a chunk of complexity from the libpthread init and the fork wrapper, as it was the bind lock that needed prebinding before use. | |||
2015-10-15 | Handle F_ISATTY in the fcntl() stub as well | Theo de Raadt | |
ok guenther | |||
2015-05-19 | Instead of testing for __ELF__ and/or vax, leave out the bits for interfacing | Philip Guenther | |
with ld.so locking whenever building NOPIC pointless use of __ELF__ noted by brad@ ok miod@ | |||
2015-05-12 | Put the right number of leading underscores in ___cerror and __cerror, for | Miod Vallat | |
the sake of libpthread. Probably missed during the a.out->ELF switch, I can't believe this went unnoticed for so long. | |||
2015-05-10 | In the child after fork, the dl lock has to be forced as its inner spinlock | Philip Guenther | |
may have been grabbed by another thread in the parent before the fork problem report from dcoppa@, ok kettenis@ | |||
2015-04-29 | Delete the duplicated sched_{policy,param} members from the internal struct | Philip Guenther | |
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. | |||
2015-04-07 | Make pthread_atfork() track the DSO that called it like atexit() does, | Philip Guenther | |
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@ | |||
2015-01-24 | Add back <sys/param.h>; it's needed for MACHINE_STACK_GROWS_UP. | Mark Kettenis | |
ok millert@, tobiasu@ | |||
2015-01-16 | Move to the <limits.h> universe. | Theo de Raadt | |
review by millert, binary checking process with doug, concept with guenther | |||
2014-12-08 | avoid void arithmetic. from david carlier | Ted Unangst | |
2014-11-16 | Don't restart syscalls on SIGTHR. When a cancellation happens, we need to | Philip Guenther | |
unroll to the cancellation check ok tedu@ | |||
2014-11-16 | Don't assume __thrsigdivert() autorestarts on EINTR. This lets us check for | Philip Guenther | |
cancellation properly when a handled (but not waited for) signal occurs ok tedu@ | |||
2014-08-31 | accept4() should be a cancellation point. | Philip Guenther | |
Update the list in the pthread_testcancel(3) manpage: several were missing. noted by miod@ | |||
2014-08-31 | Declare and document getthrid() | Philip Guenther | |
indirectly prodded by krw@ | |||
2014-08-09 | Only need <stdint.h> and not <inttypes.h> here | Philip Guenther | |
2014-07-16 | zap trailing newlines; "go for it" deraadt | Okan Demirmen | |
2014-07-10 | __tfork_thread is in libc, so move the manpage over too | Philip Guenther | |
ok deraadt@ | |||
2014-07-08 | decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.h | Theo de Raadt | |
don't need to be married. ok guenther miod beck jsing kettenis | |||
2014-07-01 | Use a flag on the pthread_t to indicate that the thread's stack was | Philip Guenther | |
allocated by the kernel's execve bits. ok matthew@ | |||
2014-06-27 | Fix mmap() flag usage: explicitly specify MAP_PRIVATE and drop useless | Matthew Dempsky | |
MAP_FILE and MAP_HASSEMAPHORE flags. Discussed with deraadt, tedu, and kettenis | |||
2014-06-23 | Remove unintended statement from my copyright block | Philip Guenther | |
2014-05-02 | - Adjust pthread_stackseg_np to return the page aligned addressable stack | Kurt Miller | |
range. okay kettenis@, guenther@, deraadt@ | |||
2014-04-18 | It's been a quarter century: we can assume volatile is present with that name. | Philip Guenther | |