aboutsummaryrefslogtreecommitdiff
path: root/share/man/man3/pthread_testcancel.3
diff options
context:
space:
mode:
authorEric van Gyzen <vangyzen@FreeBSD.org>2017-03-19 00:51:12 +0000
committerEric van Gyzen <vangyzen@FreeBSD.org>2017-03-19 00:51:12 +0000
commit3f8455b0905a05552b1155e09165787e1d098060 (patch)
tree7e464dbfe7b8012fa2a68d9d0a7b2d3a07b11df3 /share/man/man3/pthread_testcancel.3
parenta776eeafdcaae027734542d69612d35971b55c1c (diff)
downloadsrc-3f8455b0905a05552b1155e09165787e1d098060.tar.gz
src-3f8455b0905a05552b1155e09165787e1d098060.zip
Add clock_nanosleep()
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
Notes: svn path=/head/; revision=315526
Diffstat (limited to 'share/man/man3/pthread_testcancel.3')
-rw-r--r--share/man/man3/pthread_testcancel.33
1 files changed, 2 insertions, 1 deletions
diff --git a/share/man/man3/pthread_testcancel.3 b/share/man/man3/pthread_testcancel.3
index 8d0204da32d3..5d0efcb2d635 100644
--- a/share/man/man3/pthread_testcancel.3
+++ b/share/man/man3/pthread_testcancel.3
@@ -1,5 +1,5 @@
.\" $FreeBSD$
-.Dd February 17, 2017
+.Dd March 18, 2017
.Dt PTHREAD_TESTCANCEL 3
.Os
.Sh NAME
@@ -105,6 +105,7 @@ functions:
.It Fn accept4
.It Fn aio_suspend
.It Fn connect
+.It Fn clock_nanosleep
.It Fn close
.It Fn creat
.It Fn fcntl