Merge branch 'jk/unify-exit-code-by-receiving-signal' into maint
[git/mjg.git] / compat / win32 / dirent.h
blob927a25ca765ef4f393ba28d54e2478b29fca878e
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 */
20 DIR *opendir(const char *dirname);
21 struct dirent *readdir(DIR *dir);
22 int closedir(DIR *dir);
24 #endif /* DIRENT_H */