aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2025-07-16 12:09:10 +0200
committerCorinna Vinschen <corinna@vinschen.de>2025-07-16 12:16:29 +0200
commitafa72e6c49bcb24bf126a98bf5c3bba580bbb237 (patch)
tree06f8dd4359311e8ab9657ad37357d1ecc6515b15
parent554173db31ec7dbf32b32c5d9854e4e8ea68eb7f (diff)
downloadnewlib-afa72e6c49bcb24bf126a98bf5c3bba580bbb237.zip
newlib-afa72e6c49bcb24bf126a98bf5c3bba580bbb237.tar.gz
newlib-afa72e6c49bcb24bf126a98bf5c3bba580bbb237.tar.bz2
libc/time: Add CLOCK_TAI
For _GNU_VISIBLE, provide the CLOCK_TAI clock identifier for the International Atomic Time. Use the value specified by glibc and Linux. Add _BSD_VISIBLE given FreeBSD also provides this clock identifier.
-rw-r--r--newlib/libc/include/time.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/newlib/libc/include/time.h b/newlib/libc/include/time.h
index a2df4f7..58c5066 100644
--- a/newlib/libc/include/time.h
+++ b/newlib/libc/include/time.h
@@ -293,6 +293,12 @@ extern "C" {
#endif
+#if _BSD_VISIBLE || __GNU_VISIBLE
+
+#define CLOCK_TAI (11)
+
+#endif
+
#if defined(_POSIX_CPUTIME)
/* Accessing a Process CPU-time CLock, P1003.4b/D8, p. 55 */