1 /* Windows version of dirent.h
2 Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
3 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
4 This file is part of GNU Make.
6 GNU Make is free software; you can redistribute it and/or modify it under the
7 terms of the GNU General Public License as published by the Free Software
8 Foundation; either version 3 of the License, or (at your option) any later
11 GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13 A PARTICULAR PURPOSE. See the GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License along with
16 this program. If not, see <http://www.gnu.org/licenses/>. */
23 # include_next <dirent.h>
29 #include <sys/types.h>
35 #define __DIRENT_COOKIE 0xfefeabab
40 ino_t d_ino
; /* unused - no equivalent on WINDOWS32 */
41 char d_name
[NAME_MAX
+1];
44 typedef struct dir_struct
{
46 HANDLE dir_hDirHandle
;
48 char dir_pDirectoryName
[NAME_MAX
+1];
49 struct dirent dir_sdReturn
;
52 DIR *opendir(const char *);
53 struct dirent
*readdir(DIR *);
54 void rewinddir(DIR *);
57 void seekdir(DIR *, long);
59 #endif /* !__MINGW32__ */