1 /* Windows version of dirent.h
2 Copyright (C) 1996-2012 Free Software Foundation, Inc.
3 This file is part of GNU Make.
5 GNU Make is free software; you can redistribute it and/or modify it under the
6 terms of the GNU General Public License as published by the Free Software
7 Foundation; either version 3 of the License, or (at your option) any later
10 GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
11 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12 A PARTICULAR PURPOSE. See the GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License along with
15 this program. If not, see <http://www.gnu.org/licenses/>. */
22 # include_next <dirent.h>
28 #include <sys/types.h>
34 #define __DIRENT_COOKIE 0xfefeabab
39 ino_t d_ino
; /* unused - no equivalent on WINDOWS32 */
40 char d_name
[NAME_MAX
+1];
43 typedef struct dir_struct
{
45 HANDLE dir_hDirHandle
;
47 char dir_pDirectoryName
[NAME_MAX
+1];
48 struct dirent dir_sdReturn
;
51 DIR *opendir(const char *);
52 struct dirent
*readdir(DIR *);
53 void rewinddir(DIR *);
56 void seekdir(DIR *, long);
58 #endif /* !__MINGW32__ */