dup: correctly duplicate file descriptors in dup()/dup2()/dup3()
dup: correctly duplicate file descriptors in dup()/dup2()/dup3()

Signed-off-by: Joey Pabalinas <1140aba59ea685f414bfdf5c263f34bcec3b5f4c@gmail.com>

Lind-Project/native_client,Lind-Project/native_client,Lind-Project/native_client,Lind-Project/native_client,Lind-Project/native_client,Lind-Project/native_client