Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230620090626.50bab93c@inria.fr>
Date: Tue, 20 Jun 2023 09:06:26 +0200
From: Jₑₙₛ Gustedt <jens.gustedt@...ia.fr>
To: Yonggang Luo <luoyonggang@...il.com>
Cc: musl@...ts.openwall.com
Subject: Re: [PATCH 3/4] c23: Implement newly base for timespec_get

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ₑₙₛ


-- 
:: ICube :::::::::::::::::::::::::::::: deputy director ::
:: Université de Strasbourg :::::::::::::::::::::: ICPS ::
:: INRIA Nancy Grand Est :::::::::::::::::::::::: Camus ::
:: :::::::::::::::::::::::::::::::::::: ☎ +33 368854536 ::
:: https://icube-icps.unistra.fr/index.php/Jens_Gustedt ::

Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.