This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
forked from git-for-windows/git
-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'kblees/kb/fscache-v4-tentative-1.8.5' i…
…nto thicket-1.8.5.2
- Loading branch information
Showing
14 changed files
with
589 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,32 @@ | ||
#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 { | ||
unsigned char d_type; /* file type to prevent lstat after readdir */ | ||
char d_name[MAX_PATH * 3]; /* file name (* 3 for UTF-8 conversion) */ | ||
unsigned char d_type; /* file type to prevent lstat after readdir */ | ||
char *d_name; /* file name */ | ||
}; | ||
|
||
DIR *opendir(const char *dirname); | ||
struct dirent *readdir(DIR *dir); | ||
int closedir(DIR *dir); | ||
/* | ||
* Base DIR structure, contains pointers to readdir/closedir implementations so | ||
* that opendir may choose a concrete implementation on a call-by-call basis. | ||
*/ | ||
typedef struct DIR { | ||
struct dirent *(*preaddir)(struct DIR *dir); | ||
int (*pclosedir)(struct DIR *dir); | ||
} DIR; | ||
|
||
/* default dirent implementation */ | ||
extern DIR *dirent_opendir(const char *dirname); | ||
|
||
/* current dirent implementation */ | ||
extern DIR *(*opendir)(const char *dirname); | ||
|
||
#define readdir(dir) (dir->preaddir(dir)) | ||
#define closedir(dir) (dir->pclosedir(dir)) | ||
|
||
#endif /* DIRENT_H */ |
Oops, something went wrong.