From patchwork Fri Jul 11 02:49:32 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Huber X-Patchwork-Id: 116082 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D3812385840C for ; Fri, 11 Jul 2025 02:52:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D3812385840C X-Original-To: newlib@sourceware.org Delivered-To: newlib@sourceware.org Received: from dedi548.your-server.de (dedi548.your-server.de [85.10.215.148]) by sourceware.org (Postfix) with ESMTPS id AC04D3858C62 for ; Fri, 11 Jul 2025 02:49:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AC04D3858C62 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embedded-brains.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embedded-brains.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org AC04D3858C62 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=85.10.215.148 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1752202184; cv=none; b=fLxkBek3XcRZMAm7M2/7/Yby2HLPZ9mdxsVPTu7rFnSKotTHfffU+tNBJuMvIBxgQ35wS6NWhX2NDWFMb7izJbNwbAeuUnjeOtw420E8XLKkvLR3HzbXxPajTewo1/O26QmUWBlahzUK1u+5Rtv0Mu354geU9Vo0gxpvLXPH73M= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1752202184; c=relaxed/simple; bh=b31DhMqXP+6tLS5dEbayMVWzfX0WcpNqBabbXA+uJGM=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=aKGCLXDz+F0sfLH2dOgfwbbXEai0Iib+YtOIZMtyAIuI44DlxM6FDuhM78GYuoZfbJHZXCj3COnlXlkUiSLccN2DsSrQQEKbk77P7q5AsEx1DBvLOBxxxJpJy0q6YuDMBEGKOUC77sSAaLh+n4IJTCmi7P4q1lu/XkAtFB1jazE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AC04D3858C62 Received: from sslproxy06.your-server.de ([78.46.172.3]) by dedi548.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1ua3pW-000OQE-1H for newlib@sourceware.org; Fri, 11 Jul 2025 04:49:42 +0200 Received: from localhost ([127.0.0.1]) by sslproxy06.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ua3pW-0005D3-0q for newlib@sourceware.org; Fri, 11 Jul 2025 04:49:42 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id CE3A7480157 for ; Fri, 11 Jul 2025 04:49:41 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavis, port 10032) with ESMTP id erBCruocIz1M for ; Fri, 11 Jul 2025 04:49:41 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 67A5848018E for ; Fri, 11 Jul 2025 04:49:41 +0200 (CEST) X-Virus-Scanned: amavis at zimbra.eb.localhost Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavis, port 10026) with ESMTP id c7lc6NVpNrze for ; Fri, 11 Jul 2025 04:49:41 +0200 (CEST) Received: from zimbra.eb.localhost (unknown [10.10.171.14]) by mail.embedded-brains.de (Postfix) with ESMTPSA id A4C94480157 for ; Fri, 11 Jul 2025 04:49:40 +0200 (CEST) From: Sebastian Huber To: newlib@sourceware.org Subject: [PATCH] libc/time: Add CLOCK_TAI Date: Fri, 11 Jul 2025 04:49:32 +0200 Message-ID: <20250711024932.16275-1-sebastian.huber@embedded-brains.de> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Virus-Scanned: Clear (ClamAV 1.0.7/27695/Thu Jul 10 11:08:41 2025) X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: newlib-bounces~patchwork=sourceware.org@sourceware.org For _GNU_VISIBLE, provide the CLOCK_TAI clock identifier for the International Atomic Time. Use the value specified by glibc and Linux. --- newlib/libc/include/time.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/newlib/libc/include/time.h b/newlib/libc/include/time.h index a2df4f7fd..58939a378 100644 --- a/newlib/libc/include/time.h +++ b/newlib/libc/include/time.h @@ -291,6 +291,8 @@ extern "C" { #define CLOCK_BOOTTIME_ALARM (9) +#define CLOCK_TAI (11) + #endif #if defined(_POSIX_CPUTIME)