VirtualBox

source: kBuild/trunk/src/gmake/w32/include/dirent.h@ 53

Last change on this file since 53 was 53, checked in by bird, 21 years ago

Initial revision

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1/* Windows version of dirent.h
2Copyright (C) 1996, 1997, 2003 Free Software Foundation, Inc.
3This file is part of GNU Make.
4
5GNU Make is free software; you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation; either version 2, or (at your option)
8any later version.
9
10GNU Make is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with GNU Make; see the file COPYING. If not, write to
17the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
18MA 02111-1307, USA. */
19
20#ifndef _DIRENT_H
21#define _DIRENT_H
22
23#ifdef __MINGW32__
24# include <windows.h>
25# include_next <dirent.h>
26#else
27
28#include <stdlib.h>
29#include <windows.h>
30#include <limits.h>
31#include <sys/types.h>
32
33#ifndef NAME_MAX
34#define NAME_MAX 255
35#endif
36
37#define __DIRENT_COOKIE 0xfefeabab
38
39
40struct dirent
41{
42 ino_t d_ino; /* unused - no equivalent on WINDOWS32 */
43 char d_name[NAME_MAX+1];
44};
45
46typedef struct dir_struct {
47 ULONG dir_ulCookie;
48 HANDLE dir_hDirHandle;
49 DWORD dir_nNumFiles;
50 char dir_pDirectoryName[NAME_MAX+1];
51 struct dirent dir_sdReturn;
52} DIR;
53
54DIR *opendir(const char *);
55struct dirent *readdir(DIR *);
56void rewinddir(DIR *);
57void closedir(DIR *);
58int telldir(DIR *);
59void seekdir(DIR *, long);
60
61#endif /* !__MINGW32__ */
62#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette