summaryrefslogtreecommitdiff
path: root/os/windows/posix/include/dirent.h
blob: 6b4e671a8eb22e48108eb675f977b45f04aa369c (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 <winsock2.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 */