syscall.sh / sparc / dup2

dup2

duplicate a file descriptor

sys_dup2(unsigned int oldfd, unsigned int newfd)
number90 (0x5a)
abicommon
entry pointsys_dup2
sinceLinux 5.0
man pagedup2(2)
sourceelixir.bootlin.com

Registers

registervalue
g190, the syscall number
o0unsigned int oldfd
o1unsigned int newfd
o0the return value

Then run t 0x10 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/sparc/dup2