core: Add dup, dup2.