DragonFlyBSD/src 725edadinclude time.h unistd.h, lib/libc/gen clock_getcpuclockid.3 clock_getcpuclockid.c

libc/libpthread: Add clock_getcpuclockid() and pthread_getcpuclockid().

* Adjust clock_gettime() and clock_getres() to accept values obtained
  this way.

* Also set _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME, although we should
  really support values obtained by these functions in clock_settime()
  too.

Based on and taken from FreeBSD's code.

Reviewed-by: sephe
DeltaFile
+98-0lib/libc/gen/clock_getcpuclockid.3
+89-0lib/libpthread/pthread_getcpuclockid.3
+78-2sys/kern/kern_time.c
+36-32lib/libc/sys/clock_gettime.2
+48-0lib/libthread_xu/thread/thr_getcpuclockid.c
+41-0lib/libc/gen/clock_getcpuclockid.c
+9-1include/time.h
+9-0sys/sys/sysproto.h
+6-0lib/libc/sys/Symbol.map
+2-2lib/libc/gen/Makefile.inc
+2-1sys/sys/syscall.h
+2-1sys/sys/syscall.mk
+2-1sys/sys/param.h
+2-1sys/sys/unistd.h
+3-0lib/libc/gen/Symbol.map
+2-0lib/libthread_xu/pthread.map
+2-0lib/libthread_xu/thread/thr_init.c
+0-1include/unistd.h
+1-0sys/kern/init_sysent.c
+1-0include/pthread.h
+1-0sys/kern/syscalls.c
+1-0sys/kern/syscalls.master
+1-0lib/libpthread/Makefile
+1-0lib/libc/include/un-namespace.h
+1-0lib/libc/include/namespace.h
+1-0lib/libc/gen/_pthread_stubs.c
+1-0sys/sys/sysunion.h
+1-0lib/libthread_xu/thread/Makefile.inc
+441-4228 files

UnifiedSplitRaw