summaryrefslogtreecommitdiff
path: root/os/windows/posix/include/dirent.h
blob: 379fdf0fb62213faafd33409214e0c17aa90fa7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef DIRENT_H
#define DIRENT_H

#include <windows.h>

struct dirent
{
	ino_t  d_ino;     /*  File serial number */
	char   d_name[MAX_PATH];  /* Name of entry */
};

struct dirent_ctx
{
	HANDLE find_handle;
	char dirname[MAX_PATH];
};

typedef struct dirent_ctx DIR;

DIR *opendir(const char *dirname);
struct dirent *readdir(DIR *dirp);
int closedir(DIR *dirp);

#endif /* DIRENT_H */