syscall.sh / ppc64 / newfstatat
newfstatat
get file status
sys_newfstatat(int dfd, const char *filename, struct stat *statbuf, int flag)
| number | 291 (0x123) |
|---|---|
| abi | 64 |
| entry point | sys_newfstatat |
| since | Linux 5.0 |
| man page | newfstatat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r0 | 291, the syscall number |
r3 | int dfd |
r4 | const char *filename |
r5 | struct stat *statbuf |
r6 | int flag |
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/ppc64/newfstatat