syscall.sh / sparc / fcntl
fcntl
manipulate file descriptor
sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg)
| number | 92 (0x5c) |
|---|---|
| abi | common |
| entry point | sys_fcntl |
| since | Linux 5.0 |
| man page | fcntl(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
g1 | 92, the syscall number |
o0 | unsigned int fd |
o1 | unsigned int cmd |
o2 | unsigned long arg |
o0 | the return value |
Then run t 0x10 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
- m68k 55
- microblaze 55
- parisc 55
- sh 55
- sparc64 92
- xtensa 67
Get this as JSON: https://api.syscall.sh/v2/syscalls/sparc/fcntl