backport to buster
[hcoop/debian/openafs.git] / src / util / dirent_nt.h
CommitLineData
805e021f
CE
1/*
2 * Copyright 2000, International Business Machines Corporation and others.
3 * All Rights Reserved.
4 *
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
8 */
9
10/*
11 * This is an NT version of DIR and dirent. Only d_name is present in the
12 * dirent struct since that is all we currently need and implement.
13 *
14 */
15
16#ifndef _DIRENT_H_
17#define _DIRENT_H_
18
19#include <windows.h>
20#include <winbase.h>
21
22typedef struct dirent {
23 char *d_name;
24} dirent_t;
25
26typedef struct {
27 HANDLE h;
28 WIN32_FIND_DATA data;
29 struct dirent cdirent;
30 int first;
31} DIR;
32
33extern DIR *opendir(const char *path);
34extern int closedir(DIR * dir);
35extern struct dirent *readdir(DIR * dir);
36
37
38#endif /* _DIRENT_H_ */