DUP and DUP2 syscalls