1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-24 16:10:11 +00:00
freebsd/include
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
..
arpa Fix include/arpa/nameser_compat.h by adding T_DNAME definition. 2017-02-28 20:34:25 +00:00
gssapi
protocols
rpc
rpcsvc
xlocale
_ctype.h
a.out.h
ar.h
assert.h
bitstring.h
complex.h Add new catrigl.c (r313761) APIs to include/complex.h 2017-02-18 21:08:09 +00:00
cpio.h
ctype.h
db.h
dirent.h
dlfcn.h
elf-hints.h
elf.h
err.h Make use of clang nullability attributes. 2017-01-28 20:54:43 +00:00
fmtmsg.h
fnmatch.h
fstab.h
fts.h
ftw.h
getopt.h
glob.h
grp.h
gssapi.h
hesiod.h
iconv.h
ieeefp.h
ifaddrs.h
inttypes.h
iso646.h
kenv.h
langinfo.h
libgen.h
limits.h
link.h
locale.h
Makefile - Add support for eMMC "partitions". Besides the user data area, i. e. 2017-03-16 22:23:04 +00:00
Makefile.depend
malloc_np.h
malloc.h
memory.h
mk-osreldate.sh
monetary.h
mpool.h
mqueue.h
ndbm.h
netconfig.h
netdb.h
nl_types.h
nlist.h
nss.h
nsswitch.h
paths.h libkvm: support access to vmm guest memory, allow writes to fwmem and vmm 2016-12-27 10:17:56 +00:00
printf.h
proc_service.h
pthread_np.h
pthread.h Small inclusion guard comment fix. 2017-02-16 20:28:30 +00:00
pwd.h
ranlib.h
readpassphrase.h
regex.h
res_update.h
resolv.h
runetype.h
search.h
semaphore.h Sort declaration of sem_clockwait_np 2017-02-28 21:47:00 +00:00
setjmp.h
signal.h Make use of clang nullability attributes. 2017-01-28 20:54:43 +00:00
spawn.h
stab.h
stdalign.h
stdbool.h
stddef.h Use the correct name for the GCC macro indicating max_align_t is defined. 2016-11-29 00:16:19 +00:00
stdio.h Make use of clang nullability attributes. 2017-01-28 20:54:43 +00:00
stdlib.h Remove outdated claim. 2017-02-16 20:30:55 +00:00
stdnoreturn.h
string.h
stringlist.h
strings.h
sysexits.h
tar.h
termios.h
tgmath.h
time.h Add clock_nanosleep() 2017-03-19 00:51:12 +00:00
timeconv.h
timers.h
ttyent.h
uchar.h
ulimit.h
unistd.h
unwind.h
utime.h
utmpx.h
uuid.h
varargs.h
wchar.h
wctype.h
wordexp.h
xlocale.h