syscall.sh / m68k / dup3

dup3

duplicate a file descriptor

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

Registers

registervalue
d0326, the syscall number
d1unsigned int oldfd
d2unsigned int newfd
d3int flags
d0the return value

Then run trap #0 to enter the kernel.

Same syscall on other architectures

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