1 2 3 4 5 6 7 8 9 10
#define FDOP_CLOSE 1 #define FDOP_DUP2 2 #define FDOP_OPEN 3 struct fdop { struct fdop *next, *prev; int cmd, fd, srcfd, oflag; mode_t mode; char path[]; };