syscall.sh / mipsn32 / dup3
dup3
duplicate a file descriptor
sys_dup3(unsigned int oldfd, unsigned int newfd, int flags)
| number | 6290 (0x1892) |
|---|---|
| abi | n32 |
| entry point | sys_dup3 |
| since | Linux 5.0 |
| man page | dup3(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
v0 | 6290, the syscall number |
a0 | unsigned int oldfd |
a1 | unsigned int newfd |
a2 | int flags |
v0 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 292
- x86 330
- arm64 24
- arm 358
- riscv64 24
- x32 1073742116
- loongarch64 24
- ppc64 316
- ppc 316
- s390x 326
- mips64 5286
- mipso32 4327
- alpha 487
- arc 24
- csky 24
- hexagon 24
- m68k 326
- microblaze 342
- nios2 24
- openrisc 24
- parisc 312
- sh 330
- sparc 320
- sparc64 320
- xtensa 310
Get this as JSON: https://api.syscall.sh/v2/syscalls/mipsn32/dup3