syscall.sh / x86 / settimeofday

settimeofday

get / set time

sys_settimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
number79 (0x4f)
abii386
entry pointsys_settimeofday
sinceLinux 3.3
man pagesettimeofday(2)
sourceelixir.bootlin.com

Registers

registervalue
eax79, the syscall number
ebxstruct __kernel_old_timeval *tv
ecxstruct timezone *tz
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

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