Subversion Repositories Kolibri OS

Rev

Rev 5141 | Blame | Last modification | View Log | RSS feed

  1. /* <dirent.h> includes <sys/dirent.h>, which is this file.  On a
  2.    system which supports <dirent.h>, this file is overridden by
  3.    dirent.h in the libc/sys/.../sys directory.  On a system which does
  4.    not support <dirent.h>, we will get this file which uses #error to force
  5.    an error.  */
  6.  
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10.  
  11. struct dirent {
  12.   char d_namlen;
  13.   char d_name[256];
  14. };
  15.  
  16. typedef struct
  17. {
  18. //    struct systree_info2 fileinfo;
  19.     struct dirent entry;
  20. //    __u8 bdfeheader[0x20];
  21. //    struct bdfe_item bdfebase;
  22. //    __u8 bdfename[264];
  23. } DIR;
  24.  
  25. int     closedir(DIR *dirp);
  26. DIR *       opendir(const char *_dirname);
  27. struct dirent * readdir(DIR *_dirp);
  28. void      rewinddir(DIR *_dirp);
  29.  
  30. #ifdef __cplusplus
  31. }
  32. #endif
  33.