[LTP] [PATCH 1/3] accept4: Use tst_variant

Petr Vorel pvorel@suse.cz
Tue Mar 24 07:53:43 CET 2020


Hi,

> > I guess __NR_socketcall is for x86 and other old architectures,
> > but we still want to use it, right?

> Maybe I should have kept just 2 variants (libc implementation and only one
> syscall implementation) and chose the correct syscall implementation with
> #ifdef SYS_ACCEPT4

> Or is there arch which supports both syscall variants?
OK, I can answer myself: ppc64le is example of arch which support both
__NR_accept4 and __NR_socketcall SYS_ACCEPT4.

Kind regards,
Petr


More information about the ltp mailing list