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