|
a/src/windows/dirent.h |
|
b/src/windows/dirent.h |
|
... |
|
... |
19 |
typedef struct DIR DIR;
|
19 |
typedef struct DIR DIR;
|
20 |
|
20 |
|
21 |
struct dirent
|
21 |
struct dirent
|
22 |
{
|
22 |
{
|
23 |
char *d_name;
|
23 |
char *d_name;
|
|
|
24 |
// The native call we use, findfirst/next return file attributes at once,
|
|
|
25 |
// no need for a separate stat() call in most cases
|
|
|
26 |
// Note that ctime is actually creation time. No use for posix.
|
|
|
27 |
time_t d_mtime;
|
|
|
28 |
off_t d_size;
|
|
|
29 |
int d_mode; // S_IFREG or S_IFDIR only
|
24 |
};
|
30 |
};
|
25 |
|
31 |
|
26 |
DIR *opendir(const char *);
|
32 |
DIR *opendir(const char *);
|
27 |
int closedir(DIR *);
|
33 |
int closedir(DIR *);
|
28 |
struct dirent *readdir(DIR *);
|
34 |
struct dirent *readdir(DIR *);
|