fcntl on score
manipulate file descriptor
sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg)
| number | 1052 (0x41c) |
|---|---|
| abi | common |
| entry point | sys_fcntl |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | fcntl(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 1052, the syscall number |
r4 | unsigned int fd |
r5 | unsigned int cmd |
r6 | unsigned long arg |
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 72
- x86 55
- arm64 25
- arm 55
- riscv64 25
- ia32 55
- x32 1073741896
- loongarch64 25
- ppc64 55
- ppc 55
- s390x 55
- mips64 5070
- mipsn32 6070
- mipso32 4055
- alpha 92
- blackfin 55, removed in 4.17
- cris 55, removed in 4.17
- frv 55, removed in 4.17
- ia64 1066, removed in 6.7
- m68k 55
- microblaze 55
- mn10300 55, removed in 4.17
- parisc 55
- sh 55
- sparc 92
- sparc64 92
- tilegx 25, removed in 4.17
- xtensa 67
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/fcntl?kernel=all