syscall.sh / parisc / stat
stat
get file status
sys_newstat(const char *filename, struct stat *statbuf)
| number | 18 (0x12) |
|---|---|
| abi | common |
| entry point | sys_newstat |
| since | Linux 5.0 |
| man page | stat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r20 | 18, the syscall number |
r26 | const char *filename |
r25 | struct stat *statbuf |
r28 | the return value |
Then run ble 0x100(%sr2, %r0) to enter the kernel.
Same syscall on other architectures
- x64 4
- x86 106
- arm 106
- x32 1073741828
- ppc64 106
- ppc 106
- s390x 106
- mips64 5004
- mipsn32 6004
- mipso32 4106
- alpha 67
- m68k 106
- microblaze 106
- sh 106
- sparc 38
- sparc64 38
- xtensa 46
Get this as JSON: https://api.syscall.sh/v2/syscalls/parisc/stat