summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2012-07-03 15:54:57 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-08-04 19:50:47 +0200
commit3d1b82c7d9dce11c733fe23a85df7f975c7e2486 (patch)
tree21e58455674e8ecc2122c54666ff3573d53c3931 /libc
parent4237cc165cd7447d6798559506adfd339a638dc0 (diff)
bits/time.h: sync with glibc 2.16
CLOCK_MONOTONIC_RAW is available since 2.6.28 (2d42244ae71d: clocksource: introduce CLOCK_MONOTONIC_RAW), and CLOCK_*_COARSE since 2.6.32 (da15cfdae033: time: Introduce CLOCK_REALTIME_COARSE). Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common/bits/time.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/bits/time.h b/libc/sysdeps/linux/common/bits/time.h
index 7ed54bfa7..c871223a6 100644
--- a/libc/sysdeps/linux/common/bits/time.h
+++ b/libc/sysdeps/linux/common/bits/time.h
@@ -54,6 +54,12 @@
# define CLOCK_PROCESS_CPUTIME_ID 2
/* Thread-specific CPU-time clock. */
# define CLOCK_THREAD_CPUTIME_ID 3
+/* Monotonic system-wide clock, not adjusted for frequency scaling. */
+# define CLOCK_MONOTONIC_RAW 4
+/* Identifier for system-wide realtime clock, updated only on ticks. */
+# define CLOCK_REALTIME_COARSE 5
+/* Monotonic system-wide clock, updated only on ticks. */
+# define CLOCK_MONOTONIC_COARSE 6
/* Flag to indicate time is absolute. */
# define TIMER_ABSTIME 1