#include #define dup _dup #include #include PUBLIC int dup(fd) int fd; { return(fcntl(fd, F_DUPFD, 0)); }