syscall.sh / arm / fcntl
fcntl
manipulate file descriptor
sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg)
| number | 55 (0x37) |
|---|---|
| abi | common |
| entry point | sys_fcntl |
| since | Linux 4.10 |
| man page | fcntl(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r7 | 55, the syscall number |
r0 | unsigned int fd |
r1 | unsigned int cmd |
r2 | unsigned long arg |
r0 | the return value |
Then run svc #0 to enter the kernel.
Same syscall on other architectures
- x64 72
- x86 55
- arm64 25
- riscv64 25
- x32 1073741896
- loongarch64 25
- ppc64 55
- ppc 55
- s390x 55
- mips64 5070
- mipsn32 6070
- mipso32 4055
- alpha 92
- m68k 55
- microblaze 55
- parisc 55
- sh 55
- sparc 92
- sparc64 92
- xtensa 67
Get this as JSON: https://api.syscall.sh/v2/syscalls/arm/fcntl