VirtualBox

source: kBuild/vendor/gnumake/current/w32/include/dirent.h

Last change on this file was 3138, checked in by bird, 7 years ago

Imported make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6) from https://git.savannah.gnu.org/git/make.git.

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