1 2 3 4 5 6 7 8
#include "internal.h" int sys·dup(int oldfd, int newfd) { intptr ret = syscall(·Dup2, oldfd, newfd); return error(ret); }