dirent.h
Upload User: fy98168
Upload Date: 2015-06-26
Package Size: 13771k
Code Size: 1k
Category:

DVD

Development Platform:

C/C++

  1. /*
  2.  * dirent.h
  3.  *
  4.  * Copyright (C) ST Microelectronics Ltd. 2000
  5.  *
  6.  * Directory operations
  7.  */
  8. #ifndef __dirent_h
  9. #define __dirent_h
  10. #ifdef __cplusplus
  11.  extern "C" {
  12. #endif
  13. #ifdef NAME_MAX
  14. #define MAXNAME NAME_MAX
  15. #else
  16. #define MAXNAME 255
  17. #endif
  18. typedef struct dir_s
  19. {
  20.   int   d_file;         
  21.   int   d_loc;         
  22.   int   d_size;       
  23.   char* d_buf;       
  24. } DIR;            
  25. struct dirent 
  26. {
  27.   int             unused[3]; /* extra attributes? */
  28.   char            d_name[MAXNAME+1];      
  29. };
  30. DIR* opendir(const char *path);
  31. int  closedir(DIR *dirp);
  32. struct dirent* readdir(DIR *dirp);
  33. #ifdef __cplusplus
  34.  }
  35. #endif
  36. #endif
  37. /* end of dirent.h */