syscall.sh / x32 / settimeofday
settimeofday
get / set time
sys_settimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
| number | 1073741988 (0x400000a4) |
|---|---|
| abi | common |
| entry point | sys_settimeofday |
| since | Linux 3.4 |
| man page | settimeofday(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 1073741988, the syscall number |
rdi | struct __kernel_old_timeval *tv |
rsi | struct timezone *tz |
rax | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 164
- x86 79
- arm64 170
- arm 79
- riscv64 170
- loongarch64 170
- ppc64 79
- ppc 79
- s390x 79
- mips64 5159
- mipsn32 6159
- mipso32 4079
- alpha 360
- arc 170
- csky 170
- hexagon 170
- m68k 79
- microblaze 79
- nios2 170
- openrisc 170
- parisc 79
- sh 79
- sparc 122
- sparc64 122
- xtensa 193
Get this as JSON: https://api.syscall.sh/v2/syscalls/x32/settimeofday