syscall.sh / mipsn32 / dup

dup

duplicate a file descriptor

sys_dup(unsigned int fildes)
number6031 (0x178f)
abin32
entry pointsys_dup
sinceLinux 5.0
man pagedup(2)
sourceelixir.bootlin.com

Registers

registervalue
v06031, the syscall number
a0unsigned int fildes
v0the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/mipsn32/dup