freebsd-dev/contrib
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
..
amd
apr
apr-util
atf Remove *-api(3) manpages removed in ATF 0.21 2017-03-06 22:18:14 +00:00
binutils use INT3 instead of NOP for x86 binary padding 2017-03-19 00:22:13 +00:00
blacklist Reset failed login count to zero when removing a blocked address 2017-02-23 05:40:59 +00:00
bmake Do not consider using -C arg "as is" for .CURDIR unless it starts with /. 2017-03-11 20:28:31 +00:00
bsnmp bsnmpd: fix segfault when trans_insert_port(..) is called with multiple 2017-03-13 18:01:01 +00:00
byacc Apply r274475's to expr.oxout.tab.c to fix the test on FreeBSD 2017-02-07 18:37:46 +00:00
bzip2 bzip2 does not exit after showing license as requested with --version 2016-12-28 18:04:18 +00:00
com_err
compiler-rt Unbreak ARMv6 world. 2017-03-08 11:40:27 +00:00
cortex-strings
dialog
diff
dma Import dma snapshot from git 2017-02-10 2017-03-01 21:42:22 +00:00
dtc Merge from vendor branch importing dtc 1.4.3 2017-03-10 17:36:05 +00:00
ee
elftoolchain Add elf*-powerpc-freebsd targets to the elftoolchain target list 2017-02-08 03:21:29 +00:00
expat
file
flex
gcc add octeon+ as an alias for octeon in GCC & binutils 2017-01-27 21:31:32 +00:00
gcclibs
gdb
gdtoa
gperf
groff
hyperv/tools
ipfilter calloc() and realloc() modernization. 2017-03-16 04:40:07 +00:00
jemalloc Update jemalloc to 4.5.0. 2017-03-02 01:14:48 +00:00
ldns
ldns-host
less
libarchive MFV r314565,314567,314570: 2017-03-02 22:59:35 +00:00
libbegemot
libc-pwcache
libc-vis
libc++ Merge llvm, clang, compiler-rt, libc++, lld and lldb release_40 branch 2017-02-11 13:58:05 +00:00
libcxxrt
libdivsufsort
libexecinfo
libgnuregex
libpcap MFV r313759: license change for a few headers (4 clause BSD to 3 clause BSD). 2017-02-15 07:22:47 +00:00
libreadline
libstdc++
libucl Import libucl 20170219 2017-02-19 17:37:16 +00:00
libxo Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
llvm Update clang, llvm, lld, lldb, compiler-rt and libc++ to 4.0.0 release. 2017-03-10 19:02:41 +00:00
mdocml Import mandoc 1.4.1rc2 2017-02-19 17:46:37 +00:00
mknod
mtree Use type-independent formats for printing nlink_t and ino_t. 2017-01-06 16:59:33 +00:00
ncurses
netbsd-tests Add clock_nanosleep() 2017-03-19 00:51:12 +00:00
netcat Merge projects/ipsec into head/. 2017-02-06 08:49:57 +00:00
ngatm Fix the following clang 4.0.0 warning in ngatm's snmp_atm.c: 2017-01-07 15:57:12 +00:00
ntp
nvi
ofed Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
one-true-awk MFV r315425: 2017-03-16 21:32:05 +00:00
openbsm Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
openpam Upgrade to OpenPAM Radula. 2017-02-20 00:56:46 +00:00
openresolv MFV r312970: 2017-01-30 16:32:53 +00:00
opie
pam_modules/pam_passwdqc
pf
pjdfstest
pnpinfo
sendmail Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
serf
smbfs
sqlite3
subversion
tcp_wrappers After r311459, some ports can break, because a few of the newly added 2017-01-06 21:40:30 +00:00
tcpdump Merge ^/head r313055 through r313300. 2017-02-05 20:03:05 +00:00
tcsh
telnet
tnftp
top Add ZFS compressed ARC stats to top(1) 2017-03-17 00:46:50 +00:00
traceroute Unbreak traceroute on system built without CAPSICUM 2017-03-16 13:01:23 +00:00
tzcode Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
tzdata
unbound
unvis
vis
wpa
xz MFV r311477: xz 5.2.3. 2017-01-06 07:54:53 +00:00
zlib MFV r312333: zlib 1.2.11. 2017-01-17 05:55:47 +00:00