summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/man (follow)
Commit message (Collapse)AuthorAgeFilesLines
* There are special rules regarding the memory passed to pthread_attr_setstack().otto2020-12-031-7/+8
| | | | ok semarie@
* Update my email address.pirofti2020-04-067-21/+21
|
* Clarify conditions in which pthread_mutex_destroy(3) returns EBUSY.stsp2020-04-031-3/+3
| | | | | | | It happens not just if the mutex is locked by another thread, but also if any other threads refer to the mutex (e.g. by waiting for the lock). ok guenther
* Remove IMPLEMENTATION NOTES, they only apply to one of the two in-treempi2019-02-132-8/+4
| | | | | | implementations. Pointed out by pirofti@
* tweak previous;jmc2019-02-042-7/+8
|
* add a pthread_get_name_np to match pthread_set_name_np.tedu2019-02-042-4/+14
| | | | | | could be useful in ports. initial diff by David Carlier some time ago. ok jca
* Tweak description, pthread_cond_signal(3) unblocks *at least* one thread.mpi2019-01-291-3/+3
| | | | ok kettenis@, visa@
* Move sigwait(3) from libpthread to libcjca2019-01-122-87/+1
| | | | | | | | POSIX wants it in libc, that's where the function can be found on other systems. Reported by naddy@, input from naddy@ and guenther@. "looks ok" guenther@, ok deraadt@ Note: riding the libc/libpthread major cranks earlier today.
* Validate timespec and return ECANCELED when interrupted with SA_RESTART.pirofti2018-04-241-2/+17
| | | | | | | | | | | | | | | Discussing with mpi@ and guenther@, we decided to first fix the existing semaphore implementation with regards to SA_RESTART and POSIX compliant returns in the case where we deal with restartable signals. Currently we return EINTR everywhere which is mostly incorrect as the user can not know if she needs to recall the syscall or not. Return ECANCELED to signal that SA_RESTART was set and EINTR otherwise. Regression tests pass and so does the posixsuite. Timespec validation bits are needed to pass the later. OK mpi@, guenther@
* Implement MAP_STACK option for mmap(). Synchronous faults (pagefault andderaadt2018-04-122-4/+27
| | | | | | | | | | | | | | syscall) confirm the stack register points at MAP_STACK memory, otherwise SIGSEGV is delivered. sigaltstack() and pthread_attr_setstack() are modified to create a MAP_STACK sub-region which satisfies alignment requirements. Observe that MAP_STACK can only be set/cleared by mmap(), which zeroes the contents of the region -- there is no mprotect() equivalent operation, so there is no MAP_STACK-adding gadget. This opportunistic software-emulation of a stack protection bit makes stack-pivot operations during ROPchain fragile (kind of like removing a tool from the toolbox). original discussion with tedu, uvm work by stefan, testing by mortimer ok kettenis
* It is distasteful to have manual pages which don't refer to realderaadt2017-05-291-3/+3
| | | | | | | function calls, but instead a "class" of functions like "sigsetops". Rename to sigaddset", and while at it improve documentation in sigprocmask(2) to point to it. ok tedu
* new sentence, new lineschwarze2017-01-272-7/+9
|
* some Xr adjustment to catch up with MLINKS removal;jmc2016-03-301-3/+3
|
* for some time now mandoc has not required MLINKS to functionjmc2016-03-301-44/+1
| | | | | | | | | | | | correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
* update NAME section to include all documented functions,jmc2015-11-102-6/+6
| | | | | | or otherwise change Dt to reflect the name of an existing function; feedback/ok schwarze
* fix function name.sobrado2015-09-221-3/+3
|
* typo (s/intialization/initialization/).sobrado2015-09-221-3/+3
|
* in the SYNOPSIS, make void function arguments explicitschwarze2015-09-141-3/+3
|
* use .Va for global variables, and .Vt where the type is includedschwarze2015-09-141-9/+4
|
* use .In rather than .Fd #includeschwarze2015-09-101-3/+3
|
* trailing whitespace;jmc2015-05-151-3/+3
|
* Document pthread_atfork(3)'s interaction with dlclose(3)guenther2015-05-121-8/+21
| | | | | | Use Xr instead of Fn for functions documented on other manpages ok millert@ jmc@ schwarze@
* remove the first comma from constructs like ", and," and ", or,": you can usejmc2015-03-131-3/+3
| | | | | "and" and "or" to join sentence clauses, and you can use commas, but both hinders reading;
* do not use .St -p1003.1d-99 which is used in exactly two pages;schwarze2014-11-301-4/+4
| | | | im going to delete support for it from mandoc(1)
* accept4() should be a cancellation point.guenther2014-08-311-2/+7
| | | | | | Update the list in the pthread_testcancel(3) manpage: several were missing. noted by miod@
* Xr __tfork instead of forkguenther2014-08-301-3/+3
|
* zap trailing newlines; "go for it" deraadtokan2014-07-161-2/+1
|
* sync with header;jmc2014-03-061-3/+3
| | | | From: Gabriel Linder
* obvious .Pa fixes; found with mandocdb(8)schwarze2014-01-211-3/+3
|
* sort SEE ALSO;jmc2014-01-031-3/+3
|
* some more information, based on a diff by sven falempintedu2014-01-031-3/+10
|
* spelling fix;jmc2013-11-201-2/+2
|
* this implementation may now be capable of shared semaphorestedu2013-11-201-17/+8
|
* more detail on error conditionstedu2013-11-201-7/+14
|
* tweak previous;jmc2013-11-191-2/+3
|
* slightly bettertedu2013-11-191-31/+25
|
* boilerplate documentationtedu2013-11-181-7/+11
|
* no longer any need to quote macro lines with >9 args;jmc2013-08-141-3/+3
| | | | From: Jan Stary
* use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@schwarze2013-07-161-7/+7
|
* space needed before punctuation;jmc2013-06-241-3/+3
|
* Add support for the _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME options,guenther2013-06-173-3/+68
| | | | | | | | 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@
* use fancy .In macro for includes. from Jan Klemkow. ok jmc schwarzetedu2013-06-0569-211/+211
|
* typo; Benedikt Steinbuschsthen2013-04-141-3/+3
|
* 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
* Add pthread spinlock support.pirofti2012-05-035-3/+256
| | | | | | | | | | | 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@.
* 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
|