From: Andrea Cervesato via ltp <ltp@lists.linux.it>
To: "Cyril Hrubis" <chrubis@suse.cz>
Cc: Linux Test Project <ltp@lists.linux.it>
Subject: Re: [LTP] [PATCH v3] clock_settime: use POSIX runtime detection for CLOCK_MONOTONIC
Date: Mon, 04 May 2026 09:26:31 +0000 [thread overview]
Message-ID: <69f86648.5d0a0220.1636fb.612a@mx.google.com> (raw)
In-Reply-To: <afhh6HGimjQqHvWf@yuki.lan>
Hi Cyril,
> > +#ifdef _POSIX_MONOTONIC_CLOCK
>
> I suppose that this not correct either. If _POSIX_MONOTONIC_CLOCK is set
> to -1 the CLOCK_MONOTONIC constant may not be defined.
>
> So we either have to to do
>
> #if _POSIX_MONOTONIC_CLOCK >= 0
>
> or
>
> #ifdef CLOCK_MONOTONIC
>
You are right, that's indeed a valid value. I double checked the
definition and some systems might set it to -1.
I will send a fix for it with the new version.
Regards,
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com
--
Mailing list info: https://lists.linux.it/listinfo/ltp
prev parent reply other threads:[~2026-05-04 9:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-29 8:28 [LTP] [PATCH v3] clock_settime: use POSIX runtime detection for CLOCK_MONOTONIC Andrea Cervesato
2026-04-29 10:12 ` [LTP] " linuxtestproject.agent
2026-05-04 9:07 ` [LTP] [PATCH v3] " Cyril Hrubis
2026-05-04 9:26 ` Andrea Cervesato via ltp [this message]
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=69f86648.5d0a0220.1636fb.612a@mx.google.com \
--to=ltp@lists.linux.it \
--cc=andrea.cervesato@suse.com \
--cc=chrubis@suse.cz \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox