document in sysconf and unistd.h that per-thread cpu clocks exist
authorRich Felker <dalias@aerifal.cx>
Wed, 26 Jun 2013 23:43:24 +0000 (19:43 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 26 Jun 2013 23:43:24 +0000 (19:43 -0400)
include/unistd.h
src/conf/sysconf.c

index b9dc06d52e3d1cf62049a9e04479b0807c4a475e..ff5410882c2b11b55a26868acd475217ff495748 100644 (file)
@@ -223,6 +223,7 @@ void syncfs(int);
 #define _POSIX_THREAD_ATTR_STACKADDR _POSIX_VERSION
 #define _POSIX_THREAD_ATTR_STACKSIZE _POSIX_VERSION
 #define _POSIX_THREAD_PRIORITY_SCHEDULING _POSIX_VERSION
+#define _POSIX_THREAD_CPUTIME   _POSIX_VERSION
 #define _POSIX_TIMERS           _POSIX_VERSION
 #define _POSIX_TIMEOUTS         _POSIX_VERSION
 #define _POSIX_MONOTONIC_CLOCK  _POSIX_VERSION
index 9f0d97b28c528ba0908aa329bc0617de57211e3d..4819ae6a5f76e48c8bbb1b2fa83ea24046da3415 100644 (file)
@@ -151,7 +151,7 @@ long sysconf(int name)
                [_SC_C_LANG_SUPPORT_R] = -1,
                [_SC_CLOCK_SELECTION] = VER,
                [_SC_CPUTIME] = VER,
-               [_SC_THREAD_CPUTIME] = -1,
+               [_SC_THREAD_CPUTIME] = VER,
                [_SC_DEVICE_IO] = -1,
                [_SC_DEVICE_SPECIFIC] = -1,
                [_SC_DEVICE_SPECIFIC_R] = -1,