[LTP] [PATCH DRAFT] syscalls/stime: convert to new lib, use direct syscall

Steve Muckle smuckle@google.com
Tue Mar 12 18:51:36 CET 2019

Hi Xiao,

On 03/06/2019 10:02 PM, Xiao Yang wrote:
> Hi Cyril, Steve
> According to the source code of glibc, glibc implements stime() by
> __NR_settimeofday
> instead of __NR_stime, and some arches(e.g. x86_64) don't define
> __NR_stime directly.
> Therefore these updated tests will be skipped on some arches that don't
> define __NR_stime.
> If glibc implements stime(), should we use it diectly?  If not, should
> we use __NR_stime or __NR_settimeofday?

I think both should be tested. Once Cyril's test multiplex addition goes 
into the test lib there probably needs to be an effort to revisit cases 
like these.


More information about the ltp mailing list