From 64a5e8a9a310936b0da9546c4b264fd7c3cd470a Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 16 May 2011 22:35:10 +0000 Subject: [PATCH] * libc/include/time.h (CLOCK_PROCESS_CPUTIME_ID): Rename from CLOCK_PROCESS_CPUTIME. (CLOCK_THREAD_CPUTIME_ID): Rename from CLOCK_THREAD_CPUTIME. * libc/include/sys/features.h [__CYGWIN__] (_POSIX_CPUTIME): Define. (_POSIX_THREAD_CPUTIME): Define. --- newlib/ChangeLog | 8 ++++++++ newlib/libc/include/sys/features.h | 4 ++-- newlib/libc/include/time.h | 4 ++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 4f4de0605..babe7d7c8 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,11 @@ +2011-05-16 Yaakov Selkowitz + + * libc/include/time.h (CLOCK_PROCESS_CPUTIME_ID): Rename from + CLOCK_PROCESS_CPUTIME. + (CLOCK_THREAD_CPUTIME_ID): Rename from CLOCK_THREAD_CPUTIME. + * libc/include/sys/features.h [__CYGWIN__] (_POSIX_CPUTIME): Define. + (_POSIX_THREAD_CPUTIME): Define. + 2011-05-16 Christian Bruel * libc/stdlib/strtod.c (_strtod_r): Fix nf/nd counts to not exceed diff --git a/newlib/libc/include/sys/features.h b/newlib/libc/include/sys/features.h index 1b3c4e6cb..5de4bbbe8 100644 --- a/newlib/libc/include/sys/features.h +++ b/newlib/libc/include/sys/features.h @@ -103,7 +103,7 @@ extern "C" { /* #define _POSIX_BARRIERS -1 */ #define _POSIX_CHOWN_RESTRICTED 1 /* #define _POSIX_CLOCK_SELECTION -1 */ -/* #define _POSIX_CPUTIME -1 */ +#define _POSIX_CPUTIME 200112L #define _POSIX_FSYNC 200112L #define _POSIX_IPV6 200112L #define _POSIX_JOB_CONTROL 1 @@ -130,7 +130,7 @@ extern "C" { #define _POSIX_SYNCHRONIZED_IO 200112L #define _POSIX_THREAD_ATTR_STACKADDR 200112L #define _POSIX_THREAD_ATTR_STACKSIZE 200112L -/* #define _POSIX_THREAD_CPUTIME -1 */ +#define _POSIX_THREAD_CPUTIME 200112L /* #define _POSIX_THREAD_PRIO_INHERIT -1 */ /* #define _POSIX_THREAD_PRIO_PROTECT -1 */ #define _POSIX_THREAD_PRIORITY_SCHEDULING 200112L diff --git a/newlib/libc/include/time.h b/newlib/libc/include/time.h index bc07d30f6..7d3b2abd3 100644 --- a/newlib/libc/include/time.h +++ b/newlib/libc/include/time.h @@ -212,7 +212,7 @@ extern "C" { the identifier of the CPU_time clock associated with the PROCESS making the function call. */ -#define CLOCK_PROCESS_CPUTIME (clockid_t)2 +#define CLOCK_PROCESS_CPUTIME_ID (clockid_t)2 #endif @@ -222,7 +222,7 @@ extern "C" { the identifier of the CPU_time clock associated with the THREAD making the function call. */ -#define CLOCK_THREAD_CPUTIME (clockid_t)3 +#define CLOCK_THREAD_CPUTIME_ID (clockid_t)3 #endif