Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2011-05-17 02:35:10 +0400
committerYaakov Selkowitz <yselkowi@redhat.com>2011-05-17 02:35:10 +0400
commit64a5e8a9a310936b0da9546c4b264fd7c3cd470a (patch)
tree5e6dcc18189a9cdbe4e8f6e501e7072d20e6f3fc /newlib
parent553f08059b424569d002088360125d89e9442284 (diff)
* 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.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog8
-rw-r--r--newlib/libc/include/sys/features.h4
-rw-r--r--newlib/libc/include/time.h4
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 <yselkowitz@users.sourceforge.net>
+
+ * 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 <christian.bruel@st.com>
* 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