From patchwork Sun Oct 28 09:56:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 989963 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=uclibc-ng.org (client-ip=2a00:1828:2000:679::23; helo=helium.openadk.org; envelope-from=devel-bounces@uclibc-ng.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="uypLfkPB"; dkim-atps=neutral Received: from helium.openadk.org (helium.openadk.org [IPv6:2a00:1828:2000:679::23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42jY614JDGz9sBj for ; Sun, 28 Oct 2018 20:56:22 +1100 (AEDT) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 1EB281011C; Sun, 28 Oct 2018 10:56:16 +0100 (CET) X-Original-To: devel@uclibc-ng.org Delivered-To: devel@helium.openadk.org Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by helium.openadk.org (Postfix) with ESMTPS id 5C96B1011C for ; Sun, 28 Oct 2018 10:56:14 +0100 (CET) Received: by mail-wm1-f67.google.com with SMTP id b203-v6so5135207wme.5 for ; Sun, 28 Oct 2018 02:56:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IxIgzS/st8BWusKeqn0kT9KMJ9Tsi6EvLXbILhlLI08=; b=uypLfkPBJcvEqdgnMe3TKShyMPJCOxuc1btT0bownd6lxUVQAvdnfZJxF9d6U4o5Kp lt4wjWp+tqtWNl+TwXKnxyM8RJL3ZAMxSKaMhPad3QmfMh5W3RyLy036eb8JvC17VtXE 8INzM7yvNxQfrOQWZgsQ2m0tu1OxpkjYViCDB+Uq3lpFcXZn2uE71+NWO71eNhhL5NC9 bthmuyhXIaI4fDjDHTUxOhmS0mHgoQ+XdJBB4TD/Psk4xYtHw9A0cMdWZRBj8utyJVjd 8e2EtyrMe3crJOmm3klAaOiV444p1OgbqT576WM/iwPCxgxyiCSM55r06yiDpAjaKZ3g wOfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IxIgzS/st8BWusKeqn0kT9KMJ9Tsi6EvLXbILhlLI08=; b=Q2o10nSKok36NemTTfra/XEItyiLERUSbXOTrSxZEg7A0lr/xDcw7VsLR47y5X3r6q lpEuqIiHtm4JuD9kTXTAz1Wde2TWOPDUkayPDyOrcvpfD2Ic/yvCi8Z0UnBl9x1ShwwA ZB8MCZWHKd90ypbncjAlBbbQH6iA+AlJW1DyPAnhw1SES6NFUekwMoCQ7u96RDPynQek G5v7i0fNjxHNXSVPqmdvrh60y1L+f0LrCs7/LRFezqq59doo6vk5+lD+pXXJyu+bSMO9 8bcshXWEF7/78ofO4JxEw3PZlSdW4DJbgwojgilSNMhhhA5igUbL0rHWkMwdbkz1xhCw TrJw== X-Gm-Message-State: AGRZ1gKamVeG71wRHn/iAf57Ci31ftqNPbpG5OK2buxCsaxIoHhMng7W 58UPExZK9LZfps2SkyzFPNraHvDs X-Google-Smtp-Source: AJdET5fo1COuWLycKrPb8JQSUIPz+/vCVObidRRgzJo/UUd91in9NZA0Z++OI3Mk+4kA/k3UoPtPJw== X-Received: by 2002:a1c:6283:: with SMTP id w125-v6mr7932512wmb.117.1540720573715; Sun, 28 Oct 2018 02:56:13 -0700 (PDT) Received: from localhost.localdomain ([62.201.25.198]) by smtp.gmail.com with ESMTPSA id 67-v6sm1131272wmu.18.2018.10.28.02.56.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Oct 2018 02:56:12 -0700 (PDT) From: Petr Vorel To: devel@uclibc-ng.org Date: Sun, 28 Oct 2018 10:56:04 +0100 Message-Id: <20181028095604.975-1-petr.vorel@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [uclibc-ng-devel] [PATCH 1/1] time.h: Add CLOCK_TAI X-BeenThere: devel@uclibc-ng.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: uClibc-ng Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devel-bounces@uclibc-ng.org Sender: "devel" 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 Acked-by: Peter Korsgaard --- 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(+) 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