fstat on score
get file status
sys_newfstat(unsigned int fd, struct stat *statbuf)
| number | 1051 (0x41b) |
|---|---|
| abi | common |
| entry point | sys_newfstat |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | fstat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 1051, the syscall number |
r4 | unsigned int fd |
r5 | struct stat *statbuf |
r4 | the return value |
Then run syscall to enter the kernel.
r7 is the error flag and r4 then holds the positive error number.
This architecture was removed from the Linux kernel in Linux 4.17. The newest release with a syscall table here is Linux 4.16. The other removed architectures live on the historical architectures page.
Same syscall on other architectures
- x64 5
- x86 108
- arm64 80
- arm 108
- riscv64 80
- ia32 108
- x32 1073741829
- loongarch64 80
- ppc64 108
- ppc 108
- s390x 108
- mips64 5005
- mipsn32 6005
- mipso32 4108
- alpha 91
- blackfin 108, removed in 4.17
- cris 108, removed in 4.17
- frv 108, removed in 4.17
- ia64 1212, removed in 6.7
- m32r 108, removed in 4.17
- m68k 108
- microblaze 108
- mn10300 108, removed in 4.17
- parisc 28
- sh 108
- sparc 62
- sparc64 62
- tilegx 80, removed in 4.17
- xtensa 54
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/fstat?kernel=all