diff mbox series

[uclibc-ng-devel,1/1] time.h: Add CLOCK_TAI

Message ID 20181028095604.975-1-petr.vorel@gmail.com
State Accepted
Headers show
Series [uclibc-ng-devel,1/1] time.h: Add CLOCK_TAI | expand

Commit Message

Petr Vorel Oct. 28, 2018, 9:56 a.m. UTC
Added in kernel in kernel 3.10 in
1ff3c9677bff ("timekeeping: Add CLOCK_TAI clockid")

NOTE: CLOCK_SGI_CYCLE was not added, as it has been lately removed.

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
Hi,

added in glibc 2.21 and in musl 0.9.12.

Kind regards,
Petr
---
 libc/sysdeps/linux/common/bits/time.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Peter Korsgaard Oct. 28, 2018, 6:41 p.m. UTC | #1
>>>>> "Petr" == Petr Vorel <petr.vorel@gmail.com> writes:

 > Added in kernel in kernel 3.10 in
 > 1ff3c9677bff ("timekeeping: Add CLOCK_TAI clockid")

 > NOTE: CLOCK_SGI_CYCLE was not added, as it has been lately removed.

 > Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
 > ---
 > Hi,

 > added in glibc 2.21 and in musl 0.9.12.

 > Kind regards,
 > Petr

Acked-by: Peter Korsgaard <peter@korsgaard.com>

> ---
 >  libc/sysdeps/linux/common/bits/time.h | 2 ++
 >  1 file changed, 2 insertions(+)

 > diff --git a/libc/sysdeps/linux/common/bits/time.h b/libc/sysdeps/linux/common/bits/time.h
 > index c4269ae47..e35fa867f 100644
 > --- a/libc/sysdeps/linux/common/bits/time.h
 > +++ b/libc/sysdeps/linux/common/bits/time.h
 > @@ -65,6 +65,8 @@
 >  #   define CLOCK_REALTIME_ALARM		8
 >  /* Like CLOCK_BOOTTIME but also wakes suspended system.  */
 >  #   define CLOCK_BOOTTIME_ALARM		9
 > +/* Like CLOCK_REALTIME but in International Atomic Time.  */
 > +# define CLOCK_TAI			11
 
 >  /* Flag to indicate time is absolute.  */
 >  #   define TIMER_ABSTIME		1
 > -- 
 > 2.19.1

 > _______________________________________________
 > devel mailing list
 > devel@uclibc-ng.org
 > https://mailman.uclibc-ng.org/cgi-bin/mailman/listinfo/devel
diff mbox series

Patch

diff --git a/libc/sysdeps/linux/common/bits/time.h b/libc/sysdeps/linux/common/bits/time.h
index c4269ae47..e35fa867f 100644
--- a/libc/sysdeps/linux/common/bits/time.h
+++ b/libc/sysdeps/linux/common/bits/time.h
@@ -65,6 +65,8 @@ 
 #   define CLOCK_REALTIME_ALARM		8
 /* Like CLOCK_BOOTTIME but also wakes suspended system.  */
 #   define CLOCK_BOOTTIME_ALARM		9
+/* Like CLOCK_REALTIME but in International Atomic Time.  */
+# define CLOCK_TAI			11
 
 /* Flag to indicate time is absolute.  */
 #   define TIMER_ABSTIME		1