syscall.sh / x32 / dup

dup

duplicate a file descriptor

sys_dup(unsigned int fildes)
number1073741856 (0x40000020)
abicommon
entry pointsys_dup
sinceLinux 3.4
man pagedup(2)
sourceelixir.bootlin.com

Registers

registervalue
rax1073741856, the syscall number
rdiunsigned int fildes
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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