freebsd-dev/lib/libthr
Eric van Gyzen 3f8455b090 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 Fix known issues which blow up the process after dlopen("libthr.so") 2015-01-03 18:38:46 +00:00
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 Fix markup. 2016-06-04 20:20:14 +00:00
Makefile Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-01-20 04:32:19 +00:00
Makefile.depend META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host. 2015-11-25 19:10:28 +00:00
plockstat.d Add the DTrace probe definitions for plockstat support. 2014-07-05 19:49:31 +00:00
pthread.map Add implementation of robust mutexes, hopefully close enough to the 2016-05-17 09:56:22 +00:00