kernel/clock_gettime: Various fixes.
* Fix CLOCK_PROF and CLOCK_VIRTUAL to behave like FreeBSD's. They are
not meant to return the values of ITIMER_PROF and ITIMER_VIRTUAL
(which are decreasing, see getitimer(2)), like they were implemented
by
91810a6f0686477493e9915e98cfc5adcbe91363. This also fixes
CLOCK_PROCESS_CPUTIME_ID.
* Fix CLOCK_PROCESS_THREAD_ID. It was adding the values wrongly in a
way that could cause tv_nsec to overflow (i.e. become >=
1000000000).
* Fix clock_getres() for CLOCK_{PROCESS,THREAD}_CPUTIME_ID.
* Mention CLOCK_{PROCESS,THREAD}_CPUTIME_ID in clock_gettime()'s manual
page.
* Bring in some minor manual page fixes from FreeBSD.
Reported-by: zhtw
Dragonfly-bug: <https://bugs.dragonflybsd.org/issues/2951>