summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/include (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move the thread-related .h files to /usr/src/include/, since theguenther2017-10-155-516/+0
| | | | | | | implementation is now spread between libc and librthread. No changes to the content ok mpi@
* Provide #defines for the mutex types as required by POSIX. Pointed out bykettenis2015-03-191-9/+6
| | | | | | guenther@ and found out the hard way by landry@ ok guenther@
* zap trailing newlines; "go for it" deraadtokan2014-07-161-2/+1
|
* Add support for the _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME options,guenther2013-06-171-1/+5
| | | | | | | | including CLOCK_{PROCESS,THREAD}_CPUTIME_ID constants and {clock,pthread}_getcpuclockid() functions. Worked out at t2k13 with help from tedu@ and matthew@ and testing by aja@ ok matthew@
* somehow missed spinlock.h here. broke bmercer's build.tedu2013-06-021-2/+2
|
* cleanup and consolidate the spinlock_lock (what a name!) code.tedu2013-06-011-78/+0
| | | | | | | | | | it's now atomic_lock to better reflect its usage, and librthread now features a new spinlock that's really a ticket lock. thrlseep can handle both types of lock via a flag in the clock arg. (temp back compat hack) remove some old stuff that's accumulated along the way and no longer used. some feedback from dlg, who is concerned with all things ticket lock. (you need to boot a new kernel before installing librthread)
* needs sys/cdefs.h because a case has been found where it is pulledderaadt2013-03-261-3/+3
| | | | independently; spotted by sthen/naddy
* SEM_VALUE_MAX belongs in <limits.h> (via sys/syslimits.h)guenther2013-03-241-10/+3
| | | | | | | struct sem --> struct __sem (doesn't belong in public namespace) Zap pointless _KERNEL tests ok deraadt@
* machine/limits.h does not contain everything this file wants. It wantsderaadt2013-03-241-2/+2
| | | | | the MI sys/limits.h, and has been getting lucky that all callers had already pulled that in via other means.
* 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@
* sem_timedwait() needs the struct timespec tag to be pre-declared here.guenther2012-07-111-3/+4
| | | | Add restrict qualifiers.
* 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-031-1/+7
| | | | | | | | | | | 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@
* Add pthread barrier support.pirofti2012-04-111-1/+16
| | | | | | | | | | | | | | | 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 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@
* 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.
* Add pthread_condattr_{get,set}clock(), requested by aja@guenther2012-02-231-1/+7
| | | | Add pthread_mutex_timedlock(), requested by dcoppa@
* 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@
* Add support for pthread_rwlock_timed locks.tedu2010-04-121-1/+5
| | | | from brad. ok kurt, who's too busy to commit
* Add pthread_attr_[sg]etguardsize() to match rthread, including manpagesguenther2008-12-181-1/+3
| | | | | | Bump lib minor ok otto@ kurt@ marc@; doc review by jmc@
* Move _POSIX_THREAD_SAFE_FUNCTIONS into unistd.h and set it to 200112millert2008-06-251-2/+1
| | | | | now that we support all the _r functions required by POSIX 1003.1-2001. Also define _POSIX_REENTRANT_FUNCTIONS. OK kurt@ deraadt@
* give _POSIX_THREAD_* defines a value of 1 so applications thatkurt2007-03-151-8/+8
| | | | | conditionally compile code using these defines will work. okay tedu@, marc@, milllert@
* Bump minimum stack size; current setting causes hangs or illegalotto2006-05-301-2/+2
| | | | | instructions once every few runs. Problem noted by Botond Botyanszki. ok marc@
* Change a debug interface to take const char pointers so we don't avekrw2006-04-091-2/+2
| | | | | | | | | | to cast away constness whenever we want to pass in a string that is already const -- we copy the string if we want to use it, so having it be non-const in the first place does not make any sense. From tholo@ ok tedu@
* - Prefix MUTEX_TYPE_MAX with PTHREAD_ to avoid namespace pollution.brad2005-10-311-6/+2
| | | | | | | | - Remove the macros MUTEX_TYPE_FAST and MUTEX_TYPE_COUNTING_FAST. From stefanf FreeBSD ok fgsch@
* and make sure the header change goes in too.brad2005-10-301-1/+2
|
* pthead_supsend_all_np and pthread_resume_all_np from freebsd viamarc2004-05-011-1/+3
| | | | | | Kurt Miller <truk at optonline.net>. Kurt says: They're needed for the java hotspot compiler in the 1.3+ jdk OK brad@
* Sync closer to FreeBSD's pthread.h. Fixes up some prototypesbrad2004-02-241-31/+29
| | | | | | and formatting. ok marc@
* add pthread_attr_[get|set]stackbrad2004-02-221-2/+4
| | | | | | From: FreeBSD's libc_r ok marc@
* Some cleanup of pthread.h. Don't conditionalizebrad2004-02-221-40/+1
| | | | | | | | | inclusion of prototypes. Remove some prototypes for functions we do not implement. From: FreeBSD's libc_r ok marc@
* Add missing const for function parameters to match POSIX.brad2004-02-161-3/+3
| | | | | | From: FreeBSD's libc_r ok marc@
* remove redundant prototypes for pthread_[gs]etconcurrencybrad2004-01-271-3/+1
| | | | in-between #ifdef notyet
* Change read_stackseg_np to work with any thread, not just the currentmarc2004-01-261-2/+2
| | | | | thread. Requested by truk at optonline dot net and OK-ed by tedu @.
* threaded version of closefrommarc2004-01-151-1/+2
| | | | | pthread_stackseg_np added. Minor bump for these changes occurred a day or so ago and will not be bumped again
* Add stub implementations of pthread_[gs]etconcurrencybrad2003-12-231-1/+3
| | | | | | From: FreeBSD' libc_r ok marc@
* Don't need to specify both __dead and __attribute__((__noreturn__)) forcloder2003-02-271-2/+2
| | | | | pthread_exit prototype. Replace with just __dead. OK millert@, marc@
* Create a siginfo_t for thread-to-thread kill.marc2003-01-311-4/+4
| | | | | Clean up (compiler warning elimination). Compile check options added but commented out as they have not been checked on all architectures, yet.
* Use the sources that exist in sibdirs of libpthread, not libc_rmarc2003-01-201-2/+2
|
* Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)millert2002-02-171-55/+47
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-165-98/+98
|
* tab vs. spacesfgsch2002-01-181-12/+12
|
* while im here, move the ifndef _SCHED_H_ after the copyright message.fgsch2002-01-181-3/+4
|
* From FreeBSD: header for POSIX 1003.1b semaphores.fgsch2002-01-182-2/+70
|
* Change 1st arg in pthread_attr_getdetachstate to const.fgsch2002-01-101-2/+3
|