Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gmake / w32 / include / dirent.h
blob3437bd0681358f1b1b485e87a3da532367194544
1 #ifndef _DIRENT_H
2 #define _DIRENT_H
4 #include <stdlib.h>
5 #include <windows.h>
6 #include <limits.h>
7 #include <sys/types.h>
9 #ifndef NAME_MAX
10 #define NAME_MAX 255
11 #endif
13 #define __DIRENT_COOKIE 0xfefeabab
16 struct dirent
18 ino_t d_ino; /* unused - no equivalent on WINDOWS32 */
19 char d_name[NAME_MAX+1];
22 typedef struct dir_struct {
23 ULONG dir_ulCookie;
24 HANDLE dir_hDirHandle;
25 DWORD dir_nNumFiles;
26 char dir_pDirectoryName[NAME_MAX+1];
27 struct dirent dir_sdReturn;
28 } DIR;
30 DIR *opendir(const char *);
31 struct dirent *readdir(DIR *);
32 void rewinddir(DIR *);
33 void closedir(DIR *);
34 int telldir(DIR *);
35 void seekdir(DIR *, long);
37 #endif