syscall.sh / mipso32 / dup
dup
duplicate a file descriptor
sys_dup(unsigned int fildes)
| number | 4041 (0xfc9) |
|---|---|
| abi | o32 |
| entry point | sys_dup |
| since | Linux 5.0 |
| man page | dup(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
v0 | 4041, the syscall number |
a0 | unsigned int fildes |
v0 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 32
- x86 41
- arm64 23
- arm 41
- riscv64 23
- x32 1073741856
- loongarch64 23
- ppc64 41
- ppc 41
- s390x 41
- mips64 5031
- mipsn32 6031
- alpha 41
- arc 23
- csky 23
- hexagon 23
- m68k 41
- microblaze 41
- nios2 23
- openrisc 23
- parisc 41
- sh 41
- sparc 41
- sparc64 41
- xtensa 10
Get this as JSON: https://api.syscall.sh/v2/syscalls/mipso32/dup