syscall.sh / sparc64 / dup3

dup3

duplicate a file descriptor

sys_dup3(unsigned int oldfd, unsigned int newfd, int flags)
number320 (0x140)
abicommon
entry pointsys_dup3
sinceLinux 5.0
man pagedup3(2)
sourceelixir.bootlin.com

Registers

registervalue
g1320, the syscall number
o0unsigned int oldfd
o1unsigned int newfd
o2int flags
o0the return value

Then run t 0x6d to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/sparc64/dup3