mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-19 07:22:14 +08:00
2008-10-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libc/include/time.h: Add CLOCK_MONOTONIC. * libc/include/sys/features.h: Define _POSIX_MONOTONIC_CLOCK for RTEMS.
This commit is contained in:
parent
f7b03c3c5b
commit
01bf0593df
@ -1,3 +1,9 @@
|
||||
2008-10-16 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* libc/include/time.h: Add CLOCK_MONOTONIC.
|
||||
* libc/include/sys/features.h: Define
|
||||
_POSIX_MONOTONIC_CLOCK for RTEMS.
|
||||
|
||||
2008-10-15 Jeff Johnston <jjohnstn@redhat.com>
|
||||
|
||||
* newlib.hin: Restore to previous 1.14 version which has no
|
||||
|
@ -38,6 +38,7 @@ extern "C" {
|
||||
#define _POSIX_MEMLOCK_RANGE 1
|
||||
#define _POSIX_MEMORY_PROTECTION 1
|
||||
#define _POSIX_MESSAGE_PASSING 1
|
||||
#define _POSIX_MONOTONIC_CLOCK 1
|
||||
#define _POSIX_PRIORITIZED_IO 1
|
||||
#define _POSIX_PRIORITY_SCHEDULING 1
|
||||
#define _POSIX_REALTIME_SIGNALS 1
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user