diff options
author | vangyzen <vangyzen@FreeBSD.org> | 2017-05-01 01:36:54 +0000 |
---|---|---|
committer | vangyzen <vangyzen@FreeBSD.org> | 2017-05-01 01:36:54 +0000 |
commit | 1f3f7c15d6db5da93247e3a10bb3f1ff40f61915 (patch) | |
tree | 2c49170567af964db6609d58aff8eb6a7649f4ce /share/man/man3 | |
parent | 57723a7d7f1db867d4acce11b84c8389cefc9acd (diff) | |
download | FreeBSD-src-1f3f7c15d6db5da93247e3a10bb3f1ff40f61915.zip FreeBSD-src-1f3f7c15d6db5da93247e3a10bb3f1ff40f61915.tar.gz |
MFC r315526
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.
Regenerate syscall files.
Relnotes: yes
Sponsored by: Dell EMC
Diffstat (limited to 'share/man/man3')
-rw-r--r-- | share/man/man3/pthread_testcancel.3 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/share/man/man3/pthread_testcancel.3 b/share/man/man3/pthread_testcancel.3 index 8d0204d..5d0efcb 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 |