aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/_clock_id.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys/_clock_id.h')
-rw-r--r--sys/sys/_clock_id.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/sys/_clock_id.h b/sys/sys/_clock_id.h
index f0a25ce0f3f1..a88eb063122f 100644
--- a/sys/sys/_clock_id.h
+++ b/sys/sys/_clock_id.h
@@ -85,6 +85,15 @@
#define CLOCK_PROCESS_CPUTIME_ID 15
#endif /* __POSIX_VISIBLE >= 199309 */
+/*
+ * Linux compatible names.
+ */
+#if __BSD_VISIBLE
+#define CLOCK_BOOTTIME CLOCK_UPTIME
+#define CLOCK_REALTIME_COARSE CLOCK_REALTIME_FAST
+#define CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC_FAST
+#endif
+
#if __BSD_VISIBLE
#define TIMER_RELTIME 0x0 /* relative timer */
#endif