syscall.sh / x32 / open
open
open and possibly create a file
sys_open(const char *filename, int flags, umode_t mode)
| number | 1073741826 (0x40000002) |
|---|---|
| abi | common |
| entry point | sys_open |
| since | Linux 3.4 |
| man page | open(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 1073741826, the syscall number |
rdi | const char *filename |
rsi | int flags |
rdx | umode_t mode |
rax | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 2
- x86 5
- arm 5
- 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/x32/open