syscall.sh / parisc / fstat
fstat
get file status
sys_newfstat(unsigned int fd, struct stat *statbuf)
| number | 28 (0x1c) |
|---|---|
| abi | common |
| entry point | sys_newfstat |
| since | Linux 5.0 |
| man page | fstat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r20 | 28, the syscall number |
r26 | unsigned int fd |
r25 | struct stat *statbuf |
r28 | the return value |
Then run ble 0x100(%sr2, %r0) to enter the kernel.
Same syscall on other architectures
- x64 5
- x86 108
- arm64 80
- arm 108
- riscv64 80
- x32 1073741829
- loongarch64 80
- ppc64 108
- ppc 108
- s390x 108
- mips64 5005
- mipsn32 6005
- mipso32 4108
- alpha 91
- m68k 108
- microblaze 108
- sh 108
- sparc 62
- sparc64 62
- xtensa 54
Get this as JSON: https://api.syscall.sh/v2/syscalls/parisc/fstat