From: Adhemerval Zanella via Libc-alpha <libc-alpha@sourceware.org>
To: libc-alpha@sourceware.org
Subject: Re: [PATCH v2] time: Fix overflow itimer tests on 32-bit systems
Date: Thu, 19 Aug 2021 09:46:31 -0300 [thread overview]
Message-ID: <80541465-44f0-0c1b-b43e-f89df052f143@linaro.org> (raw)
In-Reply-To: <CAAfxs75zCUbA1Y3tMssvErhADNPYLevw1azdK4RBt+BU7gFP7Q@mail.gmail.com>
On 17/08/2021 20:33, Stafford Horne via Libc-alpha wrote:
> On Tue, Aug 17, 2021, 7:33 AM Joseph Myers <joseph@codesourcery.com> wrote:
>
>> On Tue, 17 Aug 2021, Stafford Horne via Libc-alpha wrote:
>>
>>> Should we provide __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 for not linux
>> builds,
>>> or remove __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 from the itimer test
>> again?
>>> The reason for using __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 is to pick
>> up the
>>> timeval size which is different on each architecture.
>>
>> I'd suggest having a macro that doesn't refer to either "kernel" or "old
>> timeval" (and that is defined for both Linux and Hurd). As far as I
>> understand, the logical concept that's relevant for this test isn't either
>> one of those, it's more like "setitimer supports times that cannot be
>> represented in 32 bits".
>>
>
> Hello,
>
> That makes sense, currently with the hurd build being broken how urgent is
> this? I worked on reproducing the build issue with build-many but didn't
> get it working yet, probably about 80% there before I ran out of time.
>
> I'll try to get it fixed in a few days as my top priority, but I only have
> an hour or two a day to look at it. If we need to revert or add a temporary
> patch please feel free.
The most straightforward would be to add a libsupport routine to abstract
what Joseph has suggested:
support/xtime.h:
bool support_setitimer_support_64_bit (void);
And return 0 for hurd and __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 for Linux.
prev parent reply other threads:[~2021-08-19 12:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-06 9:42 [PATCH v2] time: Fix overflow itimer tests on 32-bit systems Stafford Horne via Libc-alpha
2021-08-11 20:30 ` Adhemerval Zanella via Libc-alpha
2021-08-14 22:24 ` Stafford Horne via Libc-alpha
2021-08-16 17:12 ` Joseph Myers
2021-08-16 21:54 ` Stafford Horne via Libc-alpha
2021-08-16 22:32 ` Joseph Myers
2021-08-17 23:33 ` Stafford Horne via Libc-alpha
2021-08-19 12:46 ` Adhemerval Zanella via Libc-alpha [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
List information: https://www.gnu.org/software/libc/involved.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=80541465-44f0-0c1b-b43e-f89df052f143@linaro.org \
--to=libc-alpha@sourceware.org \
--cc=adhemerval.zanella@linaro.org \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).