[LTP] [RFC PATCH 2/2] syscalls/select04: Test four syscall variants

Mark Salyzyn salyzyn@android.com
Wed Mar 6 17:42:55 CET 2019


_THANKS_ for the set of changes!

On 03/06/2019 07:24 AM, Cyril Hrubis wrote:
> +	case 2: {
> +		struct compat_sel_arg_struct arg = {
> +			._n = (long)nfds,
> +			._inp = (long)readfds,
> +			._outp = (long)writefds,
> +			._exp = (long)exceptfds,
> +			._tvp = (long)timeout,
> +		};
> +
> +		return tst_syscall(__NR_select, &arg);
> +	}

This fragment is correct for 32-bit configurations and 64-bit compat, 
but for 64-bit binaries it is:

#if defined(__LP64__)
return tst_syscall(__NR_select, nfds, readfds, writefds, exceptfds, timeout);
#else
. . .
#endif

-- Mark



More information about the ltp mailing list