fdop.h 311 B

1234567891011121314151617
  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. struct fdop {
  7. struct fdop *next, *prev;
  8. int cmd, fd, srcfd, oflag;
  9. mode_t mode;
  10. char path[];
  11. };
  12. #define malloc __libc_malloc
  13. #define calloc __libc_calloc
  14. #define realloc undef
  15. #define free __libc_free