[newlib-cygwin/main] libc/time: Add CLOCK_TAI
Corinna Vinschen
corinna@sourceware.org
Wed Jul 16 10:24:42 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=afa72e6c49bcb24bf126a98bf5c3bba580bbb237
commit afa72e6c49bcb24bf126a98bf5c3bba580bbb237
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
AuthorDate: Wed Jul 16 12:09:10 2025 +0200
Commit: Corinna Vinschen <corinna@vinschen.de>
CommitDate: Wed Jul 16 12:16:29 2025 +0200
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.
Diff:
---
newlib/libc/include/time.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/newlib/libc/include/time.h b/newlib/libc/include/time.h
index a2df4f7fd87d..58c5066edf38 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 */
More information about the Newlib-cvs
mailing list