There are more valid values than just CLOCK_REALTIME and
CLOCK_MONOTONIC.
Index: lib/libc/sys/__thrsleep.2
===
RCS file: /cvs/src/lib/libc/sys/__thrsleep.2,v
retrieving revision 1.5
diff -u -p -r1.5 __thrsleep.2
--- lib/libc/sys/__thrsleep.2 20 Mar 2016 09:07:29 - 1.5
+++ lib/libc/sys/__thrsleep.2 3 Sep 2016 15:50:20 -
@@ -151,10 +151,9 @@ argument pointed to a non-zero value.
.It Bq Er EINVAL
The
.Fa clock_id
-argument is neither
-.Dv CLOCK_REALTIME
-nor
-.Dv CLOCK_MONOTONIC .
+argument is not a valid
+.Xr clock_gettime 2
+clock id.
.El
.Pp
.Fn __thrwakeup
--
Michal Mazurek