]> git.ipfire.org Git - thirdparty/git.git/blame - compat/win32/dirent.h
Merge branch 'dl/branch-cleanup' into master
[thirdparty/git.git] / compat / win32 / dirent.h
CommitLineData
d1b6e6e0
EFL
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 {
b0601e65 12 unsigned char d_type; /* file type to prevent lstat after readdir */
0217569b 13 char d_name[MAX_PATH * 3]; /* file name (* 3 for UTF-8 conversion) */
d1b6e6e0
EFL
14};
15
16DIR *opendir(const char *dirname);
17struct dirent *readdir(DIR *dir);
18int closedir(DIR *dir);
19
20#endif /* DIRENT_H */