open on ia32
open and possibly create a file
compat_sys_open(const char *filename, int flags, umode_t mode)
| number | 5 (0x5) |
|---|---|
| abi | i386 |
| entry point | compat_sys_open |
| since | Linux 3.3 or earlier (3.3 is the first release scanned for ia32) |
| man page | open(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 5, the syscall number |
ebx | const char *filename |
ecx | int flags |
edx | umode_t mode |
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
- x64 2
- x86 5
- arm 5
- x32 1073741826
- ppc64 5
- ppc 5
- s390x 5
- mips64 5002
- mipsn32 6002
- mipso32 4005
- alpha 45
- m68k 5
- microblaze 5
- parisc 5
- sh 5
- sparc 5
- sparc64 5
- xtensa 8
Get this as JSON: https://api.syscall.sh/v2/syscalls/ia32/open