freebsd-skq/lib/libc/tests
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
..
c063 Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
db Upgrade NetBSD tests to 01.11.2017_23.20 snapshot 2017-01-13 03:33:57 +00:00
gen Upgrade NetBSD tests to 01.11.2017_23.20 snapshot 2017-01-13 03:33:57 +00:00
hash Remove CFLAGS for sha2_test 2017-01-14 12:55:32 +00:00
iconv Increase WARNS for iconv tests 2017-03-11 00:02:05 +00:00
inet Checkpoint initial integration work 2016-08-12 08:50:05 +00:00
locale Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
net Re-add PACKAGE=> tests to lib/libc/tests/net/getaddrinfo/Makefile and add 2016-09-19 06:59:17 +00:00
nss Increase WARNS for nss tests 2017-03-11 00:03:41 +00:00
regex Add -DSKIP_LEFTASSOC to CFLAGS so leftassoc is skipped, like on NetBSD 2017-01-15 10:03:03 +00:00
resolv Increase timeout from 10 minutes to 20 minutes for all tests 2016-08-13 01:49:11 +00:00
rpc Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
setjmp Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
ssp This commit addresses regression introduceded in r302177 2016-06-28 07:47:42 +00:00
stdio MFhead@r313380 2017-02-07 06:04:13 +00:00
stdlib Remove __HAVE_LONG_DOUBLE #define from t_strtod.c and place it in Makefile 2017-01-12 08:40:52 +00:00
string Add a regression test to make sure the Russian collation is actually working 2016-07-15 23:43:23 +00:00
sys Add clock_nanosleep() 2017-03-19 00:51:12 +00:00
termios Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
time Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
tls Manipulate OBJDIR with :H when referencing dso directory 2017-02-11 20:14:50 +00:00
tls_dso Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
ttyio Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
Makefile Only build lib/libc/tests/iconv if MK_ICONV != no 2016-10-21 04:54:43 +00:00
Makefile.depend DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
Makefile.netbsd-tests Change WARNS to 2 across the board with all the libc testcases 2015-11-15 05:21:58 +00:00