syscall.sh / m68k / 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 5.0 |
| man page | fcntl(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
d0 | 55, the syscall number |
d1 | unsigned int fd |
d2 | unsigned int cmd |
d3 | unsigned long arg |
d0 | the return value |
Then run trap #0 to enter the kernel.
Same syscall on other architectures
- x64 72
- x86 55
- arm64 25
- arm 55
- riscv64 25
- x32 1073741896
- loongarch64 25
- ppc64 55
- ppc 55
- s390x 55
- mips64 5070
- mipsn32 6070
- mipso32 4055
- alpha 92
- microblaze 55
- parisc 55
- sh 55
- sparc 92
- sparc64 92
- xtensa 67
Get this as JSON: https://api.syscall.sh/v2/syscalls/m68k/fcntl