fcntl64 on score
manipulate file descriptor
sys_fcntl64(unsigned int fd, unsigned int cmd, unsigned long arg)
| number | 25 (0x19) |
|---|---|
| abi | common |
| entry point | sys_fcntl64 |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | fcntl64(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 25, 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
- x86 221
- arm 221
- ia32 221
- ppc 204
- mipsn32 6212
- mipso32 4220
- arc 25
- blackfin 221, removed in 4.17
- cris 221, removed in 4.17
- csky 25
- frv 221, removed in 4.17
- hexagon 25
- m32r 221, removed in 4.17
- m68k 239
- metag 25, removed in 4.17
- microblaze 221
- mn10300 221, removed in 4.17
- nds32 25, removed in 5.18
- nios2 25
- openrisc 25
- parisc 202
- sh 221
- sparc 155
- tilepro 25, removed in 4.17
- xtensa 61
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/fcntl64?kernel=all