syscall.sh / sh / oldfstat
oldfstat
get file status
sys_fstat(unsigned int fd, struct __old_kernel_stat *statbuf)
| number | 28 (0x1c) |
|---|---|
| abi | common |
| entry point | sys_fstat |
| since | Linux 5.0 |
| man page | oldfstat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r3 | 28, the syscall number |
r4 | unsigned int fd |
r5 | struct __old_kernel_stat *statbuf |
r0 | the return value |
Then run trapa #31 to enter the kernel.
Same syscall on other architectures
Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/oldfstat