syscall.sh / x32 / openat2
openat2
open and possibly create a file (extended)
sys_openat2(int dfd, const char *filename, struct open_how *how, size_t size)
| number | 1073742261 (0x400001b5) |
|---|---|
| abi | common |
| entry point | sys_openat2 |
| since | Linux 5.6 |
| man page | openat2(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 1073742261, the syscall number |
rdi | int dfd |
rsi | const char *filename |
rdx | struct open_how *how |
r10 | size_t size |
rax | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 437
- x86 437
- arm64 437
- arm 437
- riscv64 437
- loongarch64 437
- ppc64 437
- ppc 437
- s390x 437
- mips64 5437
- mipsn32 6437
- mipso32 4437
- alpha 547
- arc 437
- csky 437
- hexagon 437
- m68k 437
- microblaze 437
- nios2 437
- openrisc 437
- parisc 437
- sh 437
- sparc 437
- sparc64 437
- xtensa 437
Get this as JSON: https://api.syscall.sh/v2/syscalls/x32/openat2