summaryrefslogtreecommitdiff
path: root/lib/libpthread
AgeCommit message (Collapse)Author
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
2012-11-05typedef pthread_key_t to an int instead of a volatile int, reverts a chunkLandry Breuil
from r1.11. This allows webkit with --enable-debug to build, and is in line with what FreeBSD/NetBSD uses. ok kettenis@ guenther@
2012-09-11pthread_sigmask() doesn't require <pthread.h>, only <signal.h>.Matthew Dempsky
Pointed out by Brad.
2012-09-02tweaks; ok guentherJason McIntyre
2012-09-01Strip out stuff specific to the old uthreads and add similar bits forPhilip Guenthe
rthreads, including the beginning of a HISTORY section Tweak name (and therefore order) of the Barrier Routines and Spinlock Routines sections Update the list of functions that aren't thread-safe Be consistent with other manpages by spelling 'thread-safe' with a hyphen
2012-09-01 So passes uthreadsPhilip Guenthe
Like autumn leaves on water don't fear the tedu@
2012-07-11sem_timedwait() needs the struct timespec tag to be pre-declared here.Philip Guenthe
Add restrict qualifiers.
2012-06-28librthread has eaten libpthread, so build includes via the former insteadPhilip Guenthe
of the latter. Permits the misleading lib/libpthread/Makefile to be removed discussed with deraadt@
2012-06-21A piece of this is still neededTheo de Raadt
2012-06-21For now... libpthread is just a container directory, since all the newTheo de Raadt
goop is in librthread. As a result, the top-level Makefile and shlib_version here are simply very confusing and tell lies. Remove them, and update the instructions in libc to not make my mistake again. ok guenther
2012-05-14More sysconf(3)-y and pathconf(3)-y goodness from Brad.Matthew Dempsky
ok guenther, millert (and me); bulk build test by naddy
2012-05-03Add pthread spinlock support.Paul Irofti
Implementation, documentation and naive regression tests for: - pthread_spin_init() - pthread_spin_destroy() - pthread_spin_lock() - pthread_spin_trylock() - pthread_spin_unlock() Implementation okay guenther@, documentation okay jmc@.
2012-04-14Add new mutex type, PTHREAD_MUTEX_STRICT_NP which checks for applicationKurt Miller
errors similar to PTHREAD_MUTEX_ERRORCHECK, however upon error it aborts. The rational is that many applications don't check the return values on pthread functions and will miss the errors that ERRORCHECK returns. PTHREAD_MUTEX_STRICT_NP will be our default mutex type for awhile okay guenther@ dcoppa@
2012-04-12Remove incorrect -pthread preprocessor define _POSIX_THREADS and replaceKurt Miller
with _REENTRANT. Also remove undef _POSIX_THREADS in phread.h. From brad@comstyle.com. okay guenther@
2012-04-11fix SEE ALSO;Jason McIntyre
2012-04-11Mention and link the pthread barrier functions. Okay jmc@.Paul Irofti
2012-04-11tweak previous;Jason McIntyre
2012-04-11Add pthread barrier support.Paul Irofti
Implementation and documentation for: - pthread_barrier_init() - pthread_barrier_destroy() - pthread_barrier_wait() - pthread_barrierattr_init() - pthread_barrierattr_destroy() - pthread_barrierattr_getpshared() - pthread_barrierattr_setpshared() Currently only private barriers are supported. Okay guenther@.
2012-03-22Remove man pages for removed non-portable functions. okay jmc@Kurt Miller
2012-03-22Remove prototypes for unimplemented non-portable functions in rthreads.Kurt Miller
okay deraadt@
2012-03-22Remove pthread_suspend* and related functions. This is part of theKurt Miller
rthreads major library bump from last night. okay kettenis@
2012-03-22<sched.h> is never pulled in from the kernel and #ifdef KERNEL would bePhilip Guenthe
the wrong symbol anyway, so zap some lines ok matthew@
2012-03-22Hide behind #if 0 the sched_*() functions that we don't have yetPhilip Guenthe
Requested and tested against ports by aja@, ok matthew@
2012-03-22Update cancellation point list to reflect what's done with rthreadsPhilip Guenthe
2012-03-22new sentence, new line;Jason McIntyre
2012-03-21Update list of cancellation points to reflect what was in 5.1's uthreadsPhilip Guenthe
Pointed out by nicolas.george at normalesup.org. ok jmc@
2012-03-04add sem_timedwait to NAME;Jason McIntyre
2012-03-03Document sem_timedwait()Philip Guenthe
2012-03-03Add sem_timewait() and fix sem_wait()'s handling of signals, soPhilip Guenthe
that it resumes waiting unless the thread was canceled. As part of this, change the internal _sem_wait() function to return zero on success and an errno value on failure instead of 1 on success and zero on failure.
2012-02-25Apply a bit more consistency in the ordering of functions in eachPhilip Guenthe
group of functions. No objection from jmc@
2012-02-24Add pthread_condattr_{get,set}clock(), pthread_mutex_timedlock(),Philip Guenthe
and pthread_rwlock_{timed,try}{rd,wr}lock(). Requested by jmc@
2012-02-24jmc@ points out that the underlying manpage should be named after onePhilip Guenthe
of the functions, not a generic name that doesn't itself exist
2012-02-24now that pthread_mutex_trylock.3 has been folded into pthread_mutex_lock.3,Jason McIntyre
don;t list both pages in SEE ALSO;
2012-02-24Document pthread_condattr_{init,destroy,setclock,getclock}Philip Guenthe
2012-02-24Merge pthread_mutex_trylock(3) into pthread_mutex_lock(3) and documentPhilip Guenthe
pthread_mutex_timedlock() in that same page ok fgsch@, brad@, as well as jmc@, who also fixed a bunch of nits
2012-02-23Add pthread_condattr_{get,set}clock(), requested by aja@Philip Guenthe
Add pthread_mutex_timedlock(), requested by dcoppa@
2012-01-18remove unused variableCharles Longeau
ok guenther@
2012-01-17Bump minor for addition of openat/pread/preadv/pwrite/pwritevPhilip Guenthe
2012-01-17Make openat(), pread(), preadv(), pwrite(), and pwritev() cancellationPhilip Guenthe
points. ok fgsch@
2012-01-03The prototype for pthread_sigmask(2) is supposed to live in <signal.h>Mark Kettenis
instead of <pthread.h>. ok guenther@, millert@
2011-11-14Unbreak build of libpthread on hppa/hppa64 by using correct type inJoel Sing
_atomic_lock() declaration. ok deraadt@
2011-10-07threads waiting on PS_FDW_WAIT state should not be interruptible ifFederico G. Schwindt
SA_RESTART is set, with connect(2) being the exception thus getting its own state. as pointed by kurt, threads on this and PS_FDR_WAIT states need to be set to PS_RUNNING since the current signal dispatching code only looks at the current thread. ok kurt@
2011-09-28make sure that `references' is not optimized away as it is required for theFederico G. Schwindt
static version of pthread. fixes quite a few regression tests. miod@ ok
2011-09-13For threads in PS_FDR_WAIT state, check SA_RESTART before marking it asFederico G. Schwindt
interrupted, thus simulating the system call restart behaviour in the non-pthreads case. Add a state for kevent since it shouldn't be restarted regardless of SA_RESTART being present. guenther@ ok.
2011-09-05The scheduling loop can change errno, so we need to restore it evenPhilip Guenthe
when not switching threads; issue observed by fgsch@ ok marc@
2011-08-04Initial hppa64 code drop; not finished yet, but this at least allows us toMark Kettenis
build stuff. ok deraadt@
2011-08-03Don't try to outsmart gcc inline assembler when saving the cpsr in theMiod Vallat
thread context, this used to work but loses bigtime with gcc4. ok drahn@ deraadt@
2011-07-19Handle F_DUPFD_CLOEXEC the same as we do F_DUPFD.Matthew Dempsky
ok guenther@
2011-07-07When context switching, if the 'new' thread is the same as the 'old'Philip Guenthe
thread, then the save and restore of errno, FPU, and regs is unnecessary and can be skipped. "looks reasonable" marc@
2011-07-05check that thread specific keys are valid, and cleanup code a little.Ted Unangst
ok guenther