syscall.sh / x32 / settimeofday

settimeofday

get / set time

sys_settimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
number1073741988 (0x400000a4)
abicommon
entry pointsys_settimeofday
sinceLinux 3.4
man pagesettimeofday(2)
sourceelixir.bootlin.com

Registers

registervalue
rax1073741988, the syscall number
rdistruct __kernel_old_timeval *tv
rsistruct timezone *tz
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x32/settimeofday