aboutsummaryrefslogtreecommitdiff
path: root/share/man/man3/pthread_testcancel.3
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Fix a slew of mdoc warnings/errors.Christian Brueffer2022-04-121-1/+0
|
* Add clock_nanosleep()Eric van Gyzen2017-03-191-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Add a clock_nanosleep() syscall, as specified by POSIX. Make nanosleep() a wrapper around it. Attach the clock_nanosleep test from NetBSD. Adjust it for the FreeBSD behavior of updating rmtp only when interrupted by a signal. I believe this to be POSIX-compliant, since POSIX mentions the rmtp parameter only in the paragraph about EINTR. This is also what Linux does. (NetBSD updates rmtp unconditionally.) Copy the whole nanosleep.2 man page from NetBSD because it is complete and closely resembles the POSIX description. Edit, polish, and reword it a bit, being sure to keep any relevant text from the FreeBSD page. Reviewed by: kib, ngie, jilles MFC after: 3 weeks Relnotes: yes Sponsored by: Dell EMC Differential Revision: https://reviews.freebsd.org/D10020 Notes: svn path=/head/; revision=315526
* Add sem_clockwait_np()Eric van Gyzen2017-02-231-3/+4
| | | | | | | | | | | | | | | | | | | | | This function allows the caller to specify the reference clock and choose between absolute and relative mode. In relative mode, the remaining time can be returned. The API is similar to clock_nanosleep(3). Thanks to Ed Schouten for that suggestion. While I'm here, reduce the sleep time in the semaphore "child" test to greatly reduce its runtime. Also add a reasonable timeout. Reviewed by: ed (userland) MFC after: 2 weeks Relnotes: yes Sponsored by: Dell EMC Differential Revision: https://reviews.freebsd.org/D9656 Notes: svn path=/head/; revision=314179
* The fdatasync(2) call must be cancellation point.Konstantin Belousov2016-08-161-1/+2
| | | | | | | | Sponsored by: The FreeBSD Foundation MFC after: 13 days Notes: svn path=/head/; revision=304209
* Make wait6(2), waitid(3) and ppoll(2) cancellation points. TheKonstantin Belousov2015-04-181-1/+4
| | | | | | | | | | | | waitid() function is required to be cancellable by the standard. The wait6() and ppoll() follow the other syscalls in their groups. Reviewed by: jhb, jilles (previous versions) Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=281712
* Formatting changes to the pthread_testcancel(3).Konstantin Belousov2015-03-291-59/+60
| | | | | | | | | | | | | | Use list for the cancellation points enumeration. Move notes about functions into the list inline. The discussion of the idiomatic use of cancellation facilities does not belong to RETURN VALUES section, move it to NOTES. Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Notes: svn path=/head/; revision=280819
* Make kevent(2) a cancellation point.Konstantin Belousov2015-03-291-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | Note that to cancel blocked kevent(2) call, changelist must be empty, since we cannot cancel a call which already made changes to the process state. And in reverse, call which only makes changes to the kqueue state, without waiting for an event, is not cancellable. This makes a natural usage model to migrate kqueue loop to support cancellation, where existing single kevent(2) call must be split into two: first uncancellable update of kqueue, then cancellable wait for events. Note that this is ABI-incompatible change, but it is believed that there is no cancel-safe code that relies on kevent(2) not being a cancellation point. Option to preserve the ABI would be to keep kevent(2) as is, but add new call with flags to specify cancellation behaviour, which only value seems to add complications. Suggested and reviewed by: jilles Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Notes: svn path=/head/; revision=280818
* use .Mt to mark up email addresses consistently (part6)Baptiste Daroussin2014-06-231-1/+1
| | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de> Notes: svn path=/head/; revision=267776
* pthread_testcancel(3): Update list of cancellation points.Jilles Tjoelker2013-06-111-4/+37
| | | | | | | | This should be a fairly complete list of cancellation points in libc, libthr and librt, including standard as well as non-standard functions. Notes: svn path=/head/; revision=251639
* Hide the implementation details about multiple threading librariesRuslan Ermilov2007-10-221-1/+0
| | | | | | | | | from the synopses of pthread*(3) manpages. Reviewed by: deischen, davidxu Notes: svn path=/head/; revision=172880
* Remove mentions of libc_r.Ruslan Ermilov2006-09-301-1/+0
| | | | Notes: svn path=/head/; revision=162845
* Use 'manual page' instead of 'man page' for consistency.Hiten Pandya2005-06-301-1/+1
| | | | | | | Approved by: re (hrs) Notes: svn path=/head/; revision=147700
* Expand *n't contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141846
* Document interfaces that are supported by libthr.Ruslan Ermilov2004-01-151-0/+1
| | | | Notes: svn path=/head/; revision=124562
* Have a single set of POSIX threads man pages. The LIBRARY sectionRuslan Ermilov2004-01-141-0/+1
| | | | | | | | | | | of each manpage lists libraries that have corresponding interfaces implemented. Prodded by: threads Reviewed by: deischen Notes: svn path=/head/; revision=124535
* The .Fn function. Use .Xr where appropriate.Philippe Charnier2003-03-241-1/+2
| | | | Notes: svn path=/head/; revision=112542
* Describe handling of NULLs passed to pthread_setcancelstate().Murray Stokely2001-11-051-2/+10
| | | | | | | | PR: docs/31745 Submitted by: Andrew <andrew@ugh.net.au> Notes: svn path=/head/; revision=86074
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-1/+1
| | | | Notes: svn path=/head/; revision=84306
* mdoc(7) police: s/OpenBSD/.Ox/ where appropriate.Ruslan Ermilov2001-08-131-1/+4
| | | | Notes: svn path=/head/; revision=81589
* Use ``.St -p1003.1-96''.Ruslan Ermilov2001-02-261-3/+2
| | | | Notes: svn path=/head/; revision=73093
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-011-1/+1
| | | | Notes: svn path=/head/; revision=71895
* Introduce .Lb macro to libc_r manpages.Alexey Zelkin2000-04-221-0/+2
| | | | Notes: svn path=/head/; revision=59501
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-021-10/+20
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57686
* add pthread_cancel, obtained from OpenBSD.Alfred Perlstein1999-11-281-0/+187
eischen (Daniel Eischen) added wrappers to protect against cancled threads orphaning internal resources. the cancelability code is still a bit fuzzy but works for test programs of my own, OpenBSD's and some examples from ORA's books. add readdir_r to both libc and libc_r add some 'const' attributes to function parameters Reviewed by: eischen, jasone Notes: svn path=/head/; revision=53812