b38973b051a4ac79e45ff61a9755b491193b3089
   1#ifndef DIRENT_H
   2#define DIRENT_H
   3
   4typedef struct DIR DIR;
   5
   6#define DT_UNKNOWN 0
   7#define DT_DIR     1
   8#define DT_REG     2
   9#define DT_LNK     3
  10
  11struct dirent {
  12        char d_name[FILENAME_MAX];       /* File name. */
  13        union {
  14                unsigned short d_reclen; /* Always zero. */
  15                unsigned char  d_type;   /* Reimplementation adds this */
  16        };
  17};
  18
  19DIR *opendir(const char *dirname);
  20struct dirent *readdir(DIR *dir);
  21int closedir(DIR *dir);
  22
  23#endif /* DIRENT_H */