2 * DIRENT.H (formerly DIRLIB.H)
\r
3 * This file has no copyright assigned and is placed in the Public Domain.
\r
4 * This file is a part of the mingw-runtime package.
\r
5 * No warranty is given; refer to the file DISCLAIMER within the package.
\r
22 long d_ino; /* Always zero. */
\r
23 unsigned short d_reclen; /* Always zero. */
\r
24 unsigned short d_namlen; /* Length of name in d_name. */
\r
25 char d_name[FILENAME_MAX]; /* File name. */
\r
29 #define INTPTR __int64
\r
35 * This is an internal data structure. Good programmers will not use it
\r
36 * except as an argument to one of the functions below.
\r
37 * dd_stat field is now int (was short in older versions).
\r
41 /* disk transfer area for this dir */
\r
42 struct _finddata_t dd_dta;
\r
44 /* dirent struct to return from dir (NOTE: this makes this thread
\r
45 * safe as long as only one thread uses a particular DIR struct at
\r
47 struct dirent dd_dir;
\r
49 /* _findnext handle */
\r
54 * 0 = not started yet (next entry to read is first entry)
\r
56 * positive = 0 based index of next entry
\r
60 /* given path for dir with search pattern (struct is extended) */
\r
64 DIR* __cdecl opendir (const char*);
\r
65 struct dirent* __cdecl readdir (DIR*);
\r
66 int __cdecl closedir (DIR*);
\r
67 void __cdecl rewinddir (DIR*);
\r
68 long __cdecl telldir (DIR*);
\r
69 void __cdecl seekdir (DIR*, long);
\r
72 /* wide char versions */
\r
76 long d_ino; /* Always zero. */
\r
77 unsigned short d_reclen; /* Always zero. */
\r
78 unsigned short d_namlen; /* Length of name in d_name. */
\r
79 wchar_t d_name[FILENAME_MAX]; /* File name. */
\r
83 * This is an internal data structure. Good programmers will not use it
\r
84 * except as an argument to one of the functions below.
\r
88 /* disk transfer area for this dir */
\r
89 struct _wfinddata_t dd_dta;
\r
91 /* dirent struct to return from dir (NOTE: this makes this thread
\r
92 * safe as long as only one thread uses a particular DIR struct at
\r
94 struct _wdirent dd_dir;
\r
96 /* _findnext handle */
\r
100 * Status of search:
\r
101 * 0 = not started yet (next entry to read is first entry)
\r
103 * positive = 0 based index of next entry
\r
107 /* given path for dir with search pattern (struct is extended) */
\r
108 wchar_t dd_name[1];
\r
113 _WDIR* __cdecl _wopendir (const wchar_t*);
\r
114 struct _wdirent* __cdecl _wreaddir (_WDIR*);
\r
115 int __cdecl _wclosedir (_WDIR*);
\r
116 void __cdecl _wrewinddir (_WDIR*);
\r
117 long __cdecl _wtelldir (_WDIR*);
\r
118 void __cdecl _wseekdir (_WDIR*, long);
\r
125 #endif /* Not RC_INVOKED */
\r
127 #endif /* Not _DIRENT_H_ */
\r