[LTP] [PATCH] stime: Only o32 system calls require 32-bit programs on mips
Petr Vorel
pvorel@suse.cz
Tue Jul 20 09:56:15 CEST 2021
Hi zhanglianjie,
> The stime() system call is only o32, not n32 and n64. If you do not
> specify that the current program is compiled to 32-bit when compiling
> the program on mips, the stime() system call will fail when the
> program is running.
You're right that stime() is only on o32. But tst_syscall() should catch that.
Or does it set different errno than ENOSYS?
Kind regards,
Petr
...
> +#if defined(__mips__) && _MIPS_SZLONG == 32
> return tst_syscall(__NR_stime, ntime);
> +#else
> + tst_brk(TCONF, "the stime() syscall only o32 ABI in mips, make sure the current program is 32-bit");
> +#endif
More information about the ltp
mailing list