From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19696 invoked from network); 20 Jun 2023 07:06:51 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 20 Jun 2023 07:06:51 -0000 Received: (qmail 25910 invoked by uid 550); 20 Jun 2023 07:06:47 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 25878 invoked from network); 20 Jun 2023 07:06:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:message-id:in-reply-to: references:mime-version; bh=JdRWk9fTP1ogE+VoVxiXLhb2XIsjKb8YbGnRv5wr4pU=; b=fVmpBIfrOD/XqHGzuEfhuWVoMARhgCSNExXys16SZGnybn30wBoj3ECY s3jE948qMNAupGm0uUx8d0bbRlkGviZFhxyB53oBGESJkCB7nbDHrH7wh 6Hg/mqfuqNhC+tOtlFkjZS8FzQyyijfJj2LgSf1PGhOQDcxqW6hfKvlrT E=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=jens.gustedt@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.00,256,1681164000"; d="scan'208";a="113685760" Date: Tue, 20 Jun 2023 09:06:26 +0200 From: =?UTF-8?B?SuKCkeKCmeKCmw==?= Gustedt To: Yonggang Luo Cc: musl@lists.openwall.com Message-ID: <20230620090626.50bab93c@inria.fr> In-Reply-To: <20230620002507.796-4-luoyonggang@gmail.com> References: <20230620002507.796-1-luoyonggang@gmail.com> <20230620002507.796-4-luoyonggang@gmail.com> Organization: inria.fr X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) X-Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAAXNSR0IArs4c6QAAACRQTFRFERslNjAsLTE9Ok9wUk9TaUs8iWhSrYZkj42Rz6aD3sGZ MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/QarxrjTHyaO96+X9Y9J72v4"; protocol="application/pgp-signature"; micalg=pgp-sha1 Subject: [musl] Re: [PATCH 3/4] c23: Implement newly base for timespec_get --Sig_/QarxrjTHyaO96+X9Y9J72v4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello Yonggang, On Tue, 20 Jun 2023 08:25:06 +0800, Yonggang Luo wrote: > These are: > #define TIME_MONOTONIC 2 > #define TIME_PROCESS_CPUTIME_ID 3 > #define TIME_THREAD_CPUTIME_ID 4 C23 has these as optional time bases TIME_MONOTONIC, TIME_ACTIVE and TIME_THREAD_ACTIVE so you should stick to these names. > #define TIME_MONOTONIC_RAW 5 > #define TIME_REALTIME_COARSE 6 > #define TIME_MONOTONIC_COARSE 7 > #define TIME_BOOTTIME 8 > #define TIME_REALTIME_ALARM 9 > #define TIME_BOOTTIME_ALARM 10 > #define TIME_SGI_CYCLE 11 > #define TIME_TAI 12 Although implementations would be free to chose names for such extension as they please, I'd suggest you derive the names from the existing C standard names were this is appropriate. So this then would in particular be > #define TIME_UTC_COARSE 6 > #define TIME_UTC_ALARM 9 Thanks J=E2=82=91=E2=82=99=E2=82=9B --=20 :: ICube :::::::::::::::::::::::::::::: deputy director :: :: Universit=C3=A9 de Strasbourg :::::::::::::::::::::: ICPS :: :: INRIA Nancy Grand Est :::::::::::::::::::::::: Camus :: :: :::::::::::::::::::::::::::::::::::: =E2=98=8E +33 368854536 :: :: https://icube-icps.unistra.fr/index.php/Jens_Gustedt :: --Sig_/QarxrjTHyaO96+X9Y9J72v4 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSN9stI2OFN1pLljN0P0+hp2tU34gUCZJFP8wAKCRAP0+hp2tU3 4m5bAJ9k9EhC9YFQp3Lyb6K8ITJ6we+nXgCgjK/2owFAfF1ALfkYX16Et2jE67g= =gzne -----END PGP SIGNATURE----- --Sig_/QarxrjTHyaO96+X9Y9J72v4--