This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC v2 08/20] sysdeps/wait: Use waitid if avaliable


On Mon, Jul 8, 2019 at 5:37 AM Florian Weimer <fweimer@redhat.com> wrote:
>
> * Andreas Schwab:
>
> > On Jul 08 2019, Florian Weimer <fweimer@redhat.com> wrote:
> >
> >> * Andreas Schwab:
> >>
> >>>> But this would still break if people actually go ahead with the removal
> >>>> of the 32-bit system calls (something I think is quite impossible to do,
> >>>> but some people seem to disagree).
> >>>
> >>> I'd expect that the current futex syscall will continue to work for all
> >>> its subfunctions without absolute timestamp.
> >>
> >> I thought that RV32 just wouldn't have a futex system call at all?
> >
> > I'm talking about legacy 32-bit architectures.
>
> Ah.  Yes, I one would hope that.
>
> But there has been talk of a kernel option to remove it even there, and
> a suggestion that glibc would try the 64-bit time_t system call first,
> to see if it is available, and prefer that.
>
> I think this would be quite … wrong.

So that means that the #define solution (see below) is probably the
way to go then?

#if __riscv_xlen == 32
# ifndef __NR_futex
#  define __NR_futex __NR_futex_time64
# endif
#endif

Alistair

>
> Thanks,
> Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]