syscall.sh / sh / time
time
get time in seconds
sys_time32(old_time32_t *tloc)
| number | 13 (0xd) |
|---|---|
| abi | common |
| entry point | sys_time32 |
| since | Linux 5.0 |
| man page | time(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r3 | 13, the syscall number |
r4 | old_time32_t *tloc |
r0 | the return value |
Then run trapa #31 to enter the kernel.
Same syscall on other architectures
- x64 201
- x86 13
- x32 1073742025
- ppc64 13
- ppc 13
- mipso32 4013
- m68k 13
- microblaze 13
- parisc 13
- sparc 231
Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/time