syscall.sh / sh / stat64
stat64
get file status
sys_stat64(const char *filename, struct stat64 *statbuf)
| number | 195 (0xc3) |
|---|---|
| abi | common |
| entry point | sys_stat64 |
| since | Linux 5.0 |
| man page | stat64(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r3 | 195, the syscall number |
r4 | const char *filename |
r5 | struct stat64 *statbuf |
r0 | the return value |
Then run trapa #31 to enter the kernel.
Same syscall on other architectures
- x86 195
- arm 195
- ppc 195
- mipso32 4213
- alpha 425
- m68k 195
- microblaze 195
- parisc 101
- sparc 139
- sparc64 139
- xtensa 47
Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/stat64