summaryrefslogtreecommitdiffstats
path: root/lib/libpthread (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove excessive sys/cdefs.h inclusionderaadt2012-12-054-10/+5
| | | | ok guenther millert kettenis
* typedef pthread_key_t to an int instead of a volatile int, reverts a chunklandry2012-11-051-2/+2
| | | | | | from r1.11. This allows webkit with --enable-debug to build, and is in line with what FreeBSD/NetBSD uses. ok kettenis@ guenther@
* pthread_sigmask() doesn't require <pthread.h>, only <signal.h>.matthew2012-09-111-3/+2
| | | | Pointed out by Brad.
* tweaks; ok guentherjmc2012-09-021-5/+5
|
* Strip out stuff specific to the old uthreads and add similar bits forguenther2012-09-011-214/+77
| | | | | | | | 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
* So passes uthreadsguenther2012-09-01199-21836/+0
| | | | | Like autumn leaves on water don't fear the tedu@
* sem_timedwait() needs the struct timespec tag to be pre-declared here.guenther2012-07-111-3/+4
| | | | Add restrict qualifiers.
* librthread has eaten libpthread, so build includes via the former insteadguenther2012-06-281-16/+0
| | | | | | | of the latter. Permits the misleading lib/libpthread/Makefile to be removed discussed with deraadt@
* A piece of this is still neededderaadt2012-06-211-0/+16
|
* For now... libpthread is just a container directory, since all the newderaadt2012-06-212-38/+0
| | | | | | | | 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
* More sysconf(3)-y and pathconf(3)-y goodness from Brad.matthew2012-05-141-15/+1
| | | | ok guenther, millert (and me); bulk build test by naddy
* Add pthread spinlock support.pirofti2012-05-036-4/+263
| | | | | | | | | | | 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@.
* Add new mutex type, PTHREAD_MUTEX_STRICT_NP which checks for applicationkurt2012-04-141-3/+4
| | | | | | | | 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@
* Remove incorrect -pthread preprocessor define _POSIX_THREADS and replacekurt2012-04-121-6/+1
| | | | | with _REENTRANT. Also remove undef _POSIX_THREADS in phread.h. From brad@comstyle.com. okay guenther@
* fix SEE ALSO;jmc2012-04-111-2/+2
|
* Mention and link the pthread barrier functions. Okay jmc@.pirofti2012-04-111-2/+25
|
* tweak previous;jmc2012-04-114-26/+28
|
* Add pthread barrier support.pirofti2012-04-116-2/+344
| | | | | | | | | | | | | | | 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@.
* Remove man pages for removed non-portable functions. okay jmc@kurt2012-03-224-159/+4
|
* Remove prototypes for unimplemented non-portable functions in rthreads.kurt2012-03-221-3/+1
| | | | okay deraadt@
* Remove pthread_suspend* and related functions. This is part of thekurt2012-03-221-8/+1
| | | | rthreads major library bump from last night. okay kettenis@
* <sched.h> is never pulled in from the kernel and #ifdef KERNEL would beguenther2012-03-221-8/+2
| | | | | | the wrong symbol anyway, so zap some lines ok matthew@
* Hide behind #if 0 the sched_*() functions that we don't have yetguenther2012-03-221-1/+6
| | | | Requested and tested against ports by aja@, ok matthew@
* Update cancellation point list to reflect what's done with rthreadsguenther2012-03-221-2/+6
|
* new sentence, new line;jmc2012-03-221-3/+4
|
* Update list of cancellation points to reflect what was in 5.1's uthreadsguenther2012-03-211-6/+28
| | | | Pointed out by nicolas.george at normalesup.org. ok jmc@
* add sem_timedwait to NAME;jmc2012-03-041-2/+3
|
* Document sem_timedwait()guenther2012-03-032-7/+33
|
* Add sem_timewait() and fix sem_wait()'s handling of signals, soguenther2012-03-031-1/+2
| | | | | | | 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.
* Apply a bit more consistency in the ordering of functions in eachguenther2012-02-251-16/+16
| | | | group of functions. No objection from jmc@
* Add pthread_condattr_{get,set}clock(), pthread_mutex_timedlock(),guenther2012-02-241-3/+24
| | | | and pthread_rwlock_{timed,try}{rd,wr}lock(). Requested by jmc@
* jmc@ points out that the underlying manpage should be named after oneguenther2012-02-242-8/+7
| | | | of the functions, not a generic name that doesn't itself exist
* now that pthread_mutex_trylock.3 has been folded into pthread_mutex_lock.3,jmc2012-02-244-13/+9
| | | | don;t list both pages in SEE ALSO;
* Document pthread_condattr_{init,destroy,setclock,getclock}guenther2012-02-242-1/+125
|
* Merge pthread_mutex_trylock(3) into pthread_mutex_lock(3) and documentguenther2012-02-243-90/+108
| | | | | | pthread_mutex_timedlock() in that same page ok fgsch@, brad@, as well as jmc@, who also fixed a bunch of nits
* Add pthread_condattr_{get,set}clock(), requested by aja@guenther2012-02-231-1/+7
| | | | Add pthread_mutex_timedlock(), requested by dcoppa@
* remove unused variablechl2012-01-181-2/+1
| | | | ok guenther@
* Bump minor for addition of openat/pread/preadv/pwrite/pwritevguenther2012-01-171-1/+1
|
* Make openat(), pread(), preadv(), pwrite(), and pwritev() cancellationguenther2012-01-179-7/+346
| | | | | | points. ok fgsch@
* The prototype for pthread_sigmask(2) is supposed to live in <signal.h>kettenis2012-01-031-2/+1
| | | | | | instead of <pthread.h>. ok guenther@, millert@
* Unbreak build of libpthread on hppa/hppa64 by using correct type injsing2011-11-142-4/+4
| | | | | | _atomic_lock() declaration. ok deraadt@
* threads waiting on PS_FDW_WAIT state should not be interruptible iffgsch2011-10-077-9/+19
| | | | | | | | | 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@
* make sure that `references' is not optimized away as it is required for thefgsch2011-09-281-2/+2
| | | | | static version of pthread. fixes quite a few regression tests. miod@ ok
* For threads in PS_FDR_WAIT state, check SA_RESTART before marking it asfgsch2011-09-137-9/+24
| | | | | | | | 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.
* The scheduling loop can change errno, so we need to restore it evenguenther2011-09-051-4/+4
| | | | | | when not switching threads; issue observed by fgsch@ ok marc@
* Initial hppa64 code drop; not finished yet, but this at least allows us tokettenis2011-08-043-0/+131
| | | | | | build stuff. ok deraadt@
* Don't try to outsmart gcc inline assembler when saving the cpsr in themiod2011-08-031-4/+4
| | | | | thread context, this used to work but loses bigtime with gcc4. ok drahn@ deraadt@
* Handle F_DUPFD_CLOEXEC the same as we do F_DUPFD.matthew2011-07-191-1/+2
| | | | ok guenther@
* When context switching, if the 'new' thread is the same as the 'old'guenther2011-07-071-1/+10
| | | | | | | thread, then the save and restore of errno, FPU, and regs is unnecessary and can be skipped. "looks reasonable" marc@
* check that thread specific keys are valid, and cleanup code a little.tedu2011-07-051-21/+14
| | | | ok guenther