dir.h 308 B

1234567891011121314151617
  1. #ifdef _SYS_DIRENT_H
  2. #error "Can't include both sys/dir.h and sys/dirent.h"
  3. #define _SYS_DIR_H
  4. #endif
  5. #ifndef _SYS_DIR_H
  6. #define _SYS_DIR_H
  7. #include <dirent.h>
  8. #define direct dirent
  9. #undef DIRSIZ
  10. #define DIRSIZ(dp) ((sizeof (struct direct) - (MAXNAMLEN+1)) + \
  11. (((dp)->d_namlen+1 + 3) &~ 3))
  12. #endif