|
|
1.1 ! root 1: /* ! 2: * pick one of three versions of the `portable' directory-reading ! 3: * routines: research, bsd, system V. ! 4: * there really should be at most two. ! 5: * ! 6: * <sys/types.h> has already been included. ! 7: * the result should provide struct dirent. ! 8: */ ! 9: ! 10: #define DIR_RES 1 ! 11: #define DIR_BSD 0 ! 12: #define DIR_SV 0 ! 13: ! 14: #if DIR_RES ! 15: #include <ndir.h> ! 16: #define dirent direct ! 17: #endif ! 18: ! 19: #if DIR_BSD ! 20: #include <sys/dir.h> ! 21: #define dirent direct ! 22: #endif ! 23: ! 24: #if DIR_SV ! 25: #include <dirent.h> ! 26: /* already struct dirent */ ! 27: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.