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