compat / win32 / dirent.hon commit Merge branch 'kk/maint-1.7.9-commit-tree' into kk/maint-commit-tree (53bcf22)
   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        long d_ino;                      /* Always zero. */
  13        char d_name[FILENAME_MAX];       /* File name. */
  14        union {
  15                unsigned short d_reclen; /* Always zero. */
  16                unsigned char  d_type;   /* Reimplementation adds this */
  17        };
  18};
  19
  20DIR *opendir(const char *dirname);
  21struct dirent *readdir(DIR *dir);
  22int closedir(DIR *dir);
  23
  24#endif /* DIRENT_H */