This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC v3 04/23] sysdeps/clock_gettime: Use clock_gettime64 if avaliable
On Thu, Jul 18, 2019 at 10:19 AM Florian Weimer <fweimer@redhat.com> wrote:
>
> * Arnd Bergmann:
>
> > I have two ideas for how that could be done:
> >
> > - When building for a minimum kernel version of 5.1, don't
> > fall back to __vdso_clock_gettime() or syscall(__NR_clock_gettime)
> > but use the slow path for __clock_gettime64() if the vdso doesn't
> > work.
>
> Assuming that clock_gettime64 support is available, yes.
All 32-bit architectures have the clock_gettime64() syscall in 5.1.
> > Would either of those meet your requirements?
>
> I don't have requirements. I just want something that has limited
> impact on 64-bit architectures. I don't think probing at startup is too
> bad, actually.
Ok, fair enough.
Arnd