mirror of
https://github.com/git/git.git
synced 2026-03-17 12:10:08 +01:00
Remove the union around dirent.d_type and the unused dirent.d_reclen member (which was necessary for compatibility with the MinGW dirent runtime, which is no longer used). Signed-off-by: Karsten Blees <blees@dcon.de> Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
21 lines
407 B
C
21 lines
407 B
C
#ifndef DIRENT_H
|
|
#define DIRENT_H
|
|
|
|
typedef struct DIR DIR;
|
|
|
|
#define DT_UNKNOWN 0
|
|
#define DT_DIR 1
|
|
#define DT_REG 2
|
|
#define DT_LNK 3
|
|
|
|
struct dirent {
|
|
char d_name[FILENAME_MAX]; /* File name. */
|
|
unsigned char d_type; /* file type to prevent lstat after readdir */
|
|
};
|
|
|
|
DIR *opendir(const char *dirname);
|
|
struct dirent *readdir(DIR *dir);
|
|
int closedir(DIR *dir);
|
|
|
|
#endif /* DIRENT_H */
|