syscall.sh / x86 / gettimeofday

gettimeofday

get / set time

sys_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
number78 (0x4e)
abii386
entry pointsys_gettimeofday
sinceLinux 3.3
man pagegettimeofday(2)
sourceelixir.bootlin.com

Registers

registervalue
eax78, 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/gettimeofday