Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | sem_timedwait() needs the struct timespec tag to be pre-declared here. | 2012-07-11 | 1 | -3/+4 | |
| | | | | Add restrict qualifiers. | ||||
* | librthread has eaten libpthread, so build includes via the former instead | 2012-06-28 | 1 | -16/+0 | |
| | | | | | | | of the latter. Permits the misleading lib/libpthread/Makefile to be removed discussed with deraadt@ | ||||
* | A piece of this is still needed | 2012-06-21 | 1 | -0/+16 | |
| | |||||
* | For now... libpthread is just a container directory, since all the new | 2012-06-21 | 2 | -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. | 2012-05-14 | 1 | -15/+1 | |
| | | | | ok guenther, millert (and me); bulk build test by naddy | ||||
* | Add pthread spinlock support. | 2012-05-03 | 6 | -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 application | 2012-04-14 | 1 | -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 replace | 2012-04-12 | 1 | -6/+1 | |
| | | | | | with _REENTRANT. Also remove undef _POSIX_THREADS in phread.h. From brad@comstyle.com. okay guenther@ | ||||
* | fix SEE ALSO; | 2012-04-11 | 1 | -2/+2 | |
| | |||||
* | Mention and link the pthread barrier functions. Okay jmc@. | 2012-04-11 | 1 | -2/+25 | |
| | |||||
* | tweak previous; | 2012-04-11 | 4 | -26/+28 | |
| | |||||
* | Add pthread barrier support. | 2012-04-11 | 6 | -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@ | 2012-03-22 | 4 | -159/+4 | |
| | |||||
* | Remove prototypes for unimplemented non-portable functions in rthreads. | 2012-03-22 | 1 | -3/+1 | |
| | | | | okay deraadt@ | ||||
* | Remove pthread_suspend* and related functions. This is part of the | 2012-03-22 | 1 | -8/+1 | |
| | | | | rthreads major library bump from last night. okay kettenis@ | ||||
* | <sched.h> is never pulled in from the kernel and #ifdef KERNEL would be | 2012-03-22 | 1 | -8/+2 | |
| | | | | | | the wrong symbol anyway, so zap some lines ok matthew@ | ||||
* | Hide behind #if 0 the sched_*() functions that we don't have yet | 2012-03-22 | 1 | -1/+6 | |
| | | | | Requested and tested against ports by aja@, ok matthew@ | ||||
* | Update cancellation point list to reflect what's done with rthreads | 2012-03-22 | 1 | -2/+6 | |
| | |||||
* | new sentence, new line; | 2012-03-22 | 1 | -3/+4 | |
| | |||||
* | Update list of cancellation points to reflect what was in 5.1's uthreads | 2012-03-21 | 1 | -6/+28 | |
| | | | | Pointed out by nicolas.george at normalesup.org. ok jmc@ | ||||
* | add sem_timedwait to NAME; | 2012-03-04 | 1 | -2/+3 | |
| | |||||
* | Document sem_timedwait() | 2012-03-03 | 2 | -7/+33 | |
| | |||||
* | Add sem_timewait() and fix sem_wait()'s handling of signals, so | 2012-03-03 | 1 | -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 each | 2012-02-25 | 1 | -16/+16 | |
| | | | | group of functions. No objection from jmc@ | ||||
* | Add pthread_condattr_{get,set}clock(), pthread_mutex_timedlock(), | 2012-02-24 | 1 | -3/+24 | |
| | | | | and pthread_rwlock_{timed,try}{rd,wr}lock(). Requested by jmc@ | ||||
* | jmc@ points out that the underlying manpage should be named after one | 2012-02-24 | 2 | -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, | 2012-02-24 | 4 | -13/+9 | |
| | | | | don;t list both pages in SEE ALSO; | ||||
* | Document pthread_condattr_{init,destroy,setclock,getclock} | 2012-02-24 | 2 | -1/+125 | |
| | |||||
* | Merge pthread_mutex_trylock(3) into pthread_mutex_lock(3) and document | 2012-02-24 | 3 | -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@ | 2012-02-23 | 1 | -1/+7 | |
| | | | | Add pthread_mutex_timedlock(), requested by dcoppa@ | ||||
* | remove unused variable | 2012-01-18 | 1 | -2/+1 | |
| | | | | ok guenther@ | ||||
* | Bump minor for addition of openat/pread/preadv/pwrite/pwritev | 2012-01-17 | 1 | -1/+1 | |
| | |||||
* | Make openat(), pread(), preadv(), pwrite(), and pwritev() cancellation | 2012-01-17 | 9 | -7/+346 | |
| | | | | | | points. ok fgsch@ | ||||
* | The prototype for pthread_sigmask(2) is supposed to live in <signal.h> | 2012-01-03 | 1 | -2/+1 | |
| | | | | | | instead of <pthread.h>. ok guenther@, millert@ | ||||
* | Unbreak build of libpthread on hppa/hppa64 by using correct type in | 2011-11-14 | 2 | -4/+4 | |
| | | | | | | _atomic_lock() declaration. ok deraadt@ | ||||
* | threads waiting on PS_FDW_WAIT state should not be interruptible if | 2011-10-07 | 7 | -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 the | 2011-09-28 | 1 | -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 as | 2011-09-13 | 7 | -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 even | 2011-09-05 | 1 | -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 to | 2011-08-04 | 3 | -0/+131 | |
| | | | | | | build stuff. ok deraadt@ | ||||
* | Don't try to outsmart gcc inline assembler when saving the cpsr in the | 2011-08-03 | 1 | -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. | 2011-07-19 | 1 | -1/+2 | |
| | | | | ok guenther@ | ||||
* | When context switching, if the 'new' thread is the same as the 'old' | 2011-07-07 | 1 | -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. | 2011-07-05 | 1 | -21/+14 | |
| | | | | ok guenther | ||||
* | In pthread_key_delete(), only scan other threads if the key was allocated | 2011-07-03 | 1 | -12/+12 | |
| | | | | | | and handle the case of specific_data being NULL. Pointed out by fgsch@, ok tedu@ | ||||
* | pthread_key_delete should delete the data, so it's not reused by | 2011-07-02 | 1 | -1/+13 | |
| | | | | | a later pthread_key_create. bug report from Henry Precheur. ok guenther mikeb | ||||
* | More NULL -> 0 fallout. | 2011-04-09 | 1 | -3/+3 | |
| | |||||
* | Make the pthread scheduler block signals while restoring a newly | 2011-01-25 | 1 | -1/+12 | |
| | | | | | selected thread's state. Fixes random qemu crashes. ok miod@ | ||||
* | Revert previous commit: if gcc picks a memory operand for the asm then | 2011-01-04 | 1 | -2/+2 | |
| | | | | | 'movl' will result in an assembler error. Sorry llvm-clang users: fix your compiler to match gcc+as | ||||
* | Make this compile with llvm-clang; problem pointed out by Amit Kulkarni | 2010-12-31 | 1 | -2/+2 | |
| |