fdop.h raw

   1  #define FDOP_CLOSE 1
   2  #define FDOP_DUP2 2
   3  #define FDOP_OPEN 3
   4  #define FDOP_CHDIR 4
   5  #define FDOP_FCHDIR 5
   6  
   7  struct fdop {
   8  	struct fdop *next, *prev;
   9  	int cmd, fd, srcfd, oflag;
  10  	mode_t mode;
  11  	char path[];
  12  };
  13  
  14  #define malloc __libc_malloc
  15  #define calloc __libc_calloc
  16  #define realloc undef
  17  #define free __libc_free
  18