syscall.sh / sparc / dup

dup

duplicate a file descriptor

sys_dup(unsigned int fildes)
number41 (0x29)
abicommon
entry pointsys_dup
sinceLinux 5.0
man pagedup(2)
sourceelixir.bootlin.com

Registers

registervalue
g141, the syscall number
o0unsigned int fildes
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/dup