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