Code

Merge branch 'jc/advise-i18n' into maint-1.7.8
[git.git] / compat / win32 / dirent.h
1 #ifndef DIRENT_H
2 #define DIRENT_H
4 typedef struct DIR DIR;
6 #define DT_UNKNOWN 0
7 #define DT_DIR     1
8 #define DT_REG     2
9 #define DT_LNK     3
11 struct 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 };
20 DIR *opendir(const char *dirname);
21 struct dirent *readdir(DIR *dir);
22 int closedir(DIR *dir);
24 #endif /* DIRENT_H */