fcntl64 on ia32
manipulate file descriptor
compat_sys_fcntl64(unsigned int fd, unsigned int cmd, unsigned long arg)
| number | 221 (0xdd) |
|---|---|
| abi | i386 |
| entry point | compat_sys_fcntl64 |
| since | Linux 3.3 or earlier (3.3 is the first release scanned for ia32) |
| man page | fcntl64(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 221, the syscall number |
ebx | unsigned int fd |
ecx | unsigned int cmd |
edx | unsigned long arg |
eax | the return value |
Then run int 0x80 to enter the kernel.
This compat ABI is only available when the kernel is built with CONFIG_IA32_EMULATION.
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
- openrisc 25
- parisc 202
- sh 221
- sparc 155
- xtensa 61
Get this as JSON: https://api.syscall.sh/v2/syscalls/ia32/fcntl64