From patchwork Mon Nov 17 03:59:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Cumming X-Patchwork-Id: 3774 X-Patchwork-Delegate: fweimer@redhat.com Received: (qmail 28896 invoked by alias); 17 Nov 2014 03:59:15 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 28884 invoked by uid 89); 17 Nov 2014 03:59:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f44.google.com X-Received: by 10.70.41.46 with SMTP id c14mr26346426pdl.101.1416196750899; Sun, 16 Nov 2014 19:59:10 -0800 (PST) From: Ryan Cumming To: libc-alpha@sourceware.org Cc: Ryan Cumming Subject: [PATCH] Add definition for CLOCK_TAI Date: Mon, 17 Nov 2014 14:59:00 +1100 Message-Id: <1416196740-29927-1-git-send-email-etaoins@gmail.com> This was introduced in Linux 3.10 to query the current time in TAI --- ChangeLog | 5 +++++ sysdeps/unix/sysv/linux/bits/time.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index ccdf3e7..fc9d8d8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-11-17 Ryan Cumming + + [BZ #17608] + * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI. + 2014-11-14 Roland McGrath * signal/signal.h [__USE_MISC] diff --git a/sysdeps/unix/sysv/linux/bits/time.h b/sysdeps/unix/sysv/linux/bits/time.h index 1080547..eb6da83 100644 --- a/sysdeps/unix/sysv/linux/bits/time.h +++ b/sysdeps/unix/sysv/linux/bits/time.h @@ -77,6 +77,8 @@ extern long int __sysconf (int); # 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