home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Headers / g++ / sys / dir.h next >
C/C++ Source or Header  |  1993-06-29  |  980b  |  43 lines

  1. #ifndef __libgxx_sys_dir_h
  2.  
  3. extern "C" {
  4.  
  5. #ifdef __sys_dir_h_recursive
  6. #include_next <sys/dir.h>
  7. #else
  8. #define __sys_dir_h_recursive
  9. #define opendir __hide_opendir
  10. #define closedir __hide_closedir
  11. #define readdir __hide_readdir
  12. #define telldir __hide_telldir
  13. #define seekdir __hide_seekdir
  14.  
  15. #include_next <sys/dir.h>
  16.  
  17. #define __libgxx_sys_dir_h
  18. #undef opendir
  19. #undef closedir
  20. #undef readdir
  21. #undef telldir
  22. #undef seekdir
  23.  
  24. DIR *opendir(const char *);
  25. int closedir(DIR *);
  26. #ifdef __dirent_h_recursive
  27. // Some operating systems we won't mention (such as the imitation
  28. // of Unix marketed by IBM) implement dirent.h by including sys/dir.h,
  29. // in which case sys/dir.h defines struct dirent, rather than
  30. // the struct direct originally used by BSD.
  31. struct dirent *readdir(DIR *);
  32. #else
  33. struct direct *readdir(DIR *);
  34. #endif
  35. long telldir(DIR *);
  36. void seekdir(DIR *, long);
  37. // We don't bother with rewinddir (many systems define it as a macro).
  38. // void rewinddir(DIR *);
  39. #endif
  40. }
  41.  
  42. #endif
  43.