[LTP] [PATCH] Define __NR_futex to be __NR_futex_time64 on riscv32

Petr Vorel pvorel@suse.cz
Wed Apr 29 15:34:01 CEST 2020


Hi Khem,

> > +#if !defined(__NR_futex) && defined(__riscv) && __riscv_xlen == 32
> > +# define __NR_futex __NR_futex_time64
> > +#endif

> I guess this should go to include/lapi/futex.h, so we don't repeat ourselves.
> (and clone08.c needs to include it, others already do).

I've noticed that we still don't have risc-v support in include/lapi/syscalls/.
IMHO adding it would be better, than fixing just one missing __NR numbers.

Kind regards,
Petr


More information about the ltp mailing list