[LTP] [PATCH] syscalls/stime: Fix Time Overflow for 2038 Problem on 32-bit Systems

Petr Vorel pvorel@suse.cz
Wed May 7 15:43:36 CEST 2025


Hi Andrea,

> Hi!

> I noticed that stime01 is equivalent to settimeofday01 when tst_variant=2.
> So I'm wondering if it makes sense to keep that variant, considering that it
> creates issues in 32bit systems. In my opinion, we should probably remove
> the usage of settimeofday inside stime01 and to keep settimeofday01 instead.

> @Petr @Cyril WDYT?

IMHO it's not the same. settimeofday01.c calls settimeofday() libc wrapper,
but stime01.c in tst_variant=2 calls __NR_settimeofday raw syscall.

Kind regards,
Petr

> Kind regards,
> Andrea Cervesato



More information about the ltp mailing list