public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] time.h: Add CLOCK_REALTIME_ALARM/CLOCK_BOOTTIME_ALARM Date: Tue, 22 Jan 2019 14:46:00 -0000 [thread overview] Message-ID: <20190122144656.127569.qmail@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=13ea67a3c63990f203abc1d20a5a1f81e3ec163f commit 13ea67a3c63990f203abc1d20a5a1f81e3ec163f Author: Corinna Vinschen <corinna@vinschen.de> Date: Tue Jan 22 15:39:39 2019 +0100 time.h: Add CLOCK_REALTIME_ALARM/CLOCK_BOOTTIME_ALARM Slightly reshuffle and add comment Signed-off-by: Corinna Vinschen <corinna@vinschen.de> Diff: --- newlib/libc/include/time.h | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/newlib/libc/include/time.h b/newlib/libc/include/time.h index bd35d0e..d69d199 100644 --- a/newlib/libc/include/time.h +++ b/newlib/libc/include/time.h @@ -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
reply other threads:[~2019-01-22 14:46 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20190122144656.127569.qmail@sourceware.org \ --to=corinna@sourceware.org \ --cc=newlib-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).