[klibc] Add dup3() system call

The dup3() system call allows a file descriptor to be duped with the
O_CLOEXEC flag set.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2 files changed