syscall.sh / openrisc / fcntl64
fcntl64
manipulate file descriptor
sys_fcntl64(unsigned int fd, unsigned int cmd, unsigned long arg)
| number | 25 (0x19) |
|---|---|
| abi | 32 |
| entry point | sys_fcntl64 |
| since | Linux 3.7 |
| man page | fcntl64(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r11 | 25, the syscall number |
r3 | unsigned int fd |
r4 | unsigned int cmd |
r5 | unsigned long arg |
r11 | the return value |
Then run l.sys 1 to enter the kernel.
Same syscall on other architectures
- x86 221
- arm 221
- ppc 204
- mipsn32 6212
- mipso32 4220
- arc 25
- csky 25
- hexagon 25
- m68k 239
- microblaze 221
- nios2 25
- parisc 202
- sh 221
- sparc 155
- xtensa 61
Get this as JSON: https://api.syscall.sh/v2/syscalls/openrisc/fcntl64