freebsd-skq/lib/libthr
vangyzen d6de25428d 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
2017-03-19 00:51:12 +00:00
..
arch [mips] convert over =v to =r for the inline assembly. 2016-08-14 19:04:37 +00:00
support Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-01-20 04:32:19 +00:00
sys
tests Upgrade NetBSD tests to 01.11.2017_23.20 snapshot 2017-01-13 03:33:57 +00:00
thread Add clock_nanosleep() 2017-03-19 00:51:12 +00:00
libthr.3
Makefile Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-01-20 04:32:19 +00:00
Makefile.depend
plockstat.d
pthread.map