mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 00:07:36 +08:00
time.h: Add CLOCK_REALTIME_ALARM/CLOCK_BOOTTIME_ALARM
Slightly reshuffle and add comment Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
229ea3f23c
commit
13ea67a3c6
@ -249,6 +249,11 @@ extern "C" {
|
||||
/* thread shall not have a CPU-time clock */
|
||||
/* accessible. */
|
||||
|
||||
/* Flag indicating time is "absolute" with respect to the clock
|
||||
associated with a time. Value 4 is historic. */
|
||||
|
||||
#define TIMER_ABSTIME 4
|
||||
|
||||
/* Manifest Constants, P1003.1b-1993, p. 262 */
|
||||
|
||||
#if __GNU_VISIBLE
|
||||
@ -257,11 +262,6 @@ extern "C" {
|
||||
|
||||
#define CLOCK_REALTIME ((clockid_t) 1)
|
||||
|
||||
/* Flag indicating time is "absolute" with respect to the clock
|
||||
associated with a time. */
|
||||
|
||||
#define TIMER_ABSTIME 4
|
||||
|
||||
/* Manifest Constants, P1003.4b/D8, p. 55 */
|
||||
|
||||
#if defined(_POSIX_CPUTIME)
|
||||
@ -287,11 +287,13 @@ extern "C" {
|
||||
#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. */
|
||||
* 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 __GNU_VISIBLE
|
||||
|
||||
#define CLOCK_MONOTONIC_RAW ((clockid_t) 5)
|
||||
@ -300,7 +302,9 @@ extern "C" {
|
||||
|
||||
#define CLOCK_BOOTTIME ((clockid_t) 7)
|
||||
|
||||
#endif
|
||||
#define CLOCK_REALTIME_ALARM ((clockid_t) 8)
|
||||
|
||||
#define CLOCK_BOOTTIME_ALARM ((clockid_t) 9)
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user