syscall.sh / mipso32 / dup3

dup3

duplicate a file descriptor

sys_dup3(unsigned int oldfd, unsigned int newfd, int flags)
number4327 (0x10e7)
abio32
entry pointsys_dup3
sinceLinux 5.0
man pagedup3(2)
sourceelixir.bootlin.com

Registers

registervalue
v04327, the syscall number
a0unsigned int oldfd
a1unsigned int newfd
a2int flags
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/mipso32/dup3