home *** CD-ROM | disk | FTP | other *** search
/ Zodiac Super OZ / MEDIADEPOT.ISO / FILES / 13 / DJCRX201.ZIP / include / dirent.h < prev    next >
C/C++ Source or Header  |  1995-06-16  |  1KB  |  49 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #ifndef __dj_include_dirent_h_
  3. #define __dj_include_dirent_h_
  4.  
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8.  
  9. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  10.  
  11. #ifndef __STRICT_ANSI__
  12.  
  13. /* Definition of DIR requires many other headers; not included here to
  14.    avoid namespace pollution. */
  15. typedef struct __dj_DIR DIR;
  16.  
  17. struct dirent {
  18.   char d_namlen;
  19.   char d_name[256];
  20. };
  21.  
  22. int        closedir(DIR *dirp);
  23. DIR *        opendir(const char *_dirname);
  24. struct dirent *    readdir(DIR *_dirp);
  25. void        rewinddir(DIR *_dirp);
  26.  
  27. #ifndef _POSIX_SOURCE
  28.  
  29. extern int __opendir_flags; /* default is zero, used only by opendir */
  30. #define __OPENDIR_PRESERVE_CASE    0001
  31. #define __OPENDIR_FIND_HIDDEN    0002
  32. #define __OPENDIR_FIND_LABEL    0004
  33.  
  34. void seekdir(DIR *_dir, long _loc);
  35. long telldir(DIR *_dir);
  36.  
  37. #endif /* !_POSIX_SOURCE */
  38. #endif /* !__STRICT_ANSI__ */
  39. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  40.  
  41. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  42. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  43.  
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47.  
  48. #endif /* !__dj_include_dirent_h_ */
  49.