syscall.sh / ppc / oldstat
oldstat
get file status
sys_stat(const char *filename, struct __old_kernel_stat *statbuf)
| number | 18 (0x12) |
|---|---|
| abi | 32 |
| entry point | sys_stat |
| since | Linux 5.0 |
| man page | oldstat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r0 | 18, the syscall number |
r3 | const char *filename |
r4 | struct __old_kernel_stat *statbuf |
r3 | the return value |
Then run sc to enter the kernel.
Same syscall on other architectures
Get this as JSON: https://api.syscall.sh/v2/syscalls/ppc/oldstat