mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Jₑₙₛ Gustedt" <jens.gustedt@inria.fr>
To: Yonggang Luo <luoyonggang@gmail.com>
Cc: musl@lists.openwall.com
Subject: [musl] Re: [PATCH 3/4] c23: Implement newly base for timespec_get
Date: Tue, 20 Jun 2023 09:06:26 +0200	[thread overview]
Message-ID: <20230620090626.50bab93c@inria.fr> (raw)
In-Reply-To: <20230620002507.796-4-luoyonggang@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1257 bytes --]

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 ::

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

  reply	other threads:[~2023-06-20  7:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-20  0:25 [musl] [PATCH 0/4] Add posix/pthread_mutex_clocklock posix/pthread_cond_clockdwait c2y/mtx_timedlock_monotonic c2y/cnd_timedwait_monotonic Yonggang Luo
2023-06-20  0:25 ` [musl] [PATCH 1/4] trim spaces of pthread_cond_timedwait.c and pthread_mutex_timedlock.c Yonggang Luo
2023-06-20  0:25 ` [musl] [PATCH 2/4] add pthread_mutex_clocklock and pthread_cond_clockdwait Yonggang Luo
2023-06-20  0:25 ` [musl] [PATCH 3/4] c23: Implement newly base for timespec_get Yonggang Luo
2023-06-20  7:06   ` Jₑₙₛ Gustedt [this message]
2023-06-20  0:25 ` [musl] [PATCH 4/4] c2y: Add monotonic timed wait support for threads mtx cnd Yonggang Luo
2023-06-20  7:53   ` [musl] " 罗勇刚(Yonggang Luo)
2023-06-20  8:51     ` Jₑₙₛ Gustedt
2023-06-20 14:18 ` [musl] [PATCH 0/4] Add posix/pthread_mutex_clocklock posix/pthread_cond_clockdwait c2y/mtx_timedlock_monotonic c2y/cnd_timedwait_monotonic enh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230620090626.50bab93c@inria.fr \
    --to=jens.gustedt@inria.fr \
    --cc=luoyonggang@gmail.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).