master
Instead of opting in to futexes on archs with atomics opt out on archs without atomics, a smaller list.
add a pthread_get_name_np to match pthread_set_name_np. could be useful in ports. initial diff by David Carlier some time ago. ok jca
Wrap <pthread.h> and <pthread_np.h> to eliminate PLT entries for internal references. Use _thread_pagesize for the semaphore mmap size instead of calling getpagesize() each time.
Revert recent changes to unbreak ports/net/samba
spelling fixes; from paul tagliamonte any changes not taken noted on tech, but chiefly here i did not take the cancelation - cancellation changes;
New futex(2) based rwlock implementation based on the mutex code.
syslog_r() expects a priority, not a faciliy. Use LOG_ERR for the pthread_attr_setstack() error message. OK deraadt@
Update my email address.
Move mutex, condvar, and thread-specific data routes, pthread_once, and pthread_exit from libpthread to libc, along with low-level bits to support them. Major bump to both libc and libpthread.
Prefer <elf.h> to the non portable <sys/exec_elf.h>.
Use a Thread Information Block in both single and multi-threaded programs. 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!
Remove unintended statement from my copyright block
Use PTHREAD_MUTEX_DEFAULT in static init and mutexattr_init. If the default mutex type changes to NORMAL, when there is an uninitialized mutex provided to unlock, allow it to succeed similar to an unlocked mutex. For other cases abort instead of segfault. okay guenther@
Add {get,set}thrname(2) for putting thread names in the kernel and exposed in a new field returned by sysctl(KERN_PROC). Update pthread_{get,set}_name_np(3) to use the syscalls. Show them, when set, in ps -H and top -H output.
Wake all waiters when unlocking an rwlock. This fixes a hang that could happen if there was more than one writer waiting for a read-locked rwlock.
librthread: validate timespec inputs with timespecisvalid(3)
Add pthread_rwlockattr_{get,set}pshared() and pthread_mutexattr_{get,set}kind_np()
these files do not need sys/param.h
Copy support for sched_get_priority_{min,max} from libpthread. Requested by many to ease substitution of librthread for libpthread
Add syscall stub for kqueue1(2)
libc, librthread: _twait: subtraction is not comparison