diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-06-26 19:43:24 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-06-26 19:43:24 -0400 |
commit | f03db4bdff7b2f02b5cbdda96cf0241efa4e80ef (patch) | |
tree | 0469927c1ae5ddfb0593aef1da9640d335a48c7e | |
parent | 6a4cfbdbe718a115a22629ad0cb2ae21391a0454 (diff) | |
download | musl-f03db4bdff7b2f02b5cbdda96cf0241efa4e80ef.tar.gz musl-f03db4bdff7b2f02b5cbdda96cf0241efa4e80ef.tar.bz2 musl-f03db4bdff7b2f02b5cbdda96cf0241efa4e80ef.tar.xz musl-f03db4bdff7b2f02b5cbdda96cf0241efa4e80ef.zip |
document in sysconf and unistd.h that per-thread cpu clocks exist
-rw-r--r-- | include/unistd.h | 1 | ||||
-rw-r--r-- | src/conf/sysconf.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/unistd.h b/include/unistd.h index b9dc06d5..ff541088 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -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 diff --git a/src/conf/sysconf.c b/src/conf/sysconf.c index 9f0d97b2..4819ae6a 100644 --- a/src/conf/sysconf.c +++ b/src/conf/sysconf.c @@ -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, |