From 01bf0593df8c7bb302f4d5cee139db837faf28d2 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 16 Oct 2008 21:53:58 +0000 Subject: 2008-10-16 Joel Sherrill * libc/include/time.h: Add CLOCK_MONOTONIC. * libc/include/sys/features.h: Define _POSIX_MONOTONIC_CLOCK for RTEMS. --- newlib/libc/include/time.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'newlib/libc/include/time.h') diff --git a/newlib/libc/include/time.h b/newlib/libc/include/time.h index 8d3a30c8a..bc07d30f6 100644 --- a/newlib/libc/include/time.h +++ b/newlib/libc/include/time.h @@ -226,6 +226,16 @@ extern "C" { #endif +#if defined(_POSIX_MONOTONIC_CLOCK) + +/* The identifier for the system-wide monotonic clock, which is defined + * as a clock whose value cannot be set via clock_settime() and which + * cannot have backward clock jumps. */ + +#define CLOCK_MONOTONIC (clockid_t)4 + +#endif + #if defined(_POSIX_CPUTIME) /* Accessing a Process CPU-time CLock, P1003.4b/D8, p. 55 */ -- cgit v1.2.3