2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER within this package.
8 #ifndef __STRICT_ANSI__
14 #pragma pack(push,_CRT_PACKING)
26 long d_ino
; /* Always zero. */
27 unsigned short d_reclen
; /* Always zero. */
28 unsigned short d_namlen
; /* Length of name in d_name. */
29 char* d_name
; /* File name. */
30 /* NOTE: The name in the dirent structure points to the name in the
31 * finddata_t structure in the DIR. */
35 * This is an internal data structure. Good programmers will not use it
36 * except as an argument to one of the functions below.
37 * dd_stat field is now int (was short in older versions).
41 /* disk transfer area for this dir */
42 struct _finddata_t dd_dta
;
44 /* dirent struct to return from dir (NOTE: this makes this thread
45 * safe as long as only one thread uses a particular DIR struct at
49 /* _findnext handle */
54 * 0 = not started yet (next entry to read is first entry)
56 * positive = 0 based index of next entry
60 /* given path for dir with search pattern (struct is extended) */
64 DIR* __cdecl
opendir (const char*);
65 struct dirent
* __cdecl
readdir (DIR*);
66 int __cdecl
closedir (DIR*);
67 void __cdecl
rewinddir (DIR*);
68 long __cdecl
telldir (DIR*);
69 void __cdecl
seekdir (DIR*, long);
72 /* wide char versions */
76 long d_ino
; /* Always zero. */
77 unsigned short d_reclen
; /* Always zero. */
78 unsigned short d_namlen
; /* Length of name in d_name. */
79 wchar_t* d_name
; /* File name. */
80 /* NOTE: The name in the dirent structure points to the name in the * wfinddata_t structure in the _WDIR. */
84 * This is an internal data structure. Good programmers will not use it
85 * except as an argument to one of the functions below.
89 /* disk transfer area for this dir */
90 struct _wfinddata_t dd_dta
;
92 /* dirent struct to return from dir (NOTE: this makes this thread
93 * safe as long as only one thread uses a particular DIR struct at
95 struct _wdirent dd_dir
;
97 /* _findnext handle */
102 * 0 = not started yet (next entry to read is first entry)
104 * positive = 0 based index of next entry
108 /* given path for dir with search pattern (struct is extended) */
114 _WDIR
* __cdecl
_wopendir (const wchar_t*);
115 struct _wdirent
* __cdecl
_wreaddir (_WDIR
*);
116 int __cdecl
_wclosedir (_WDIR
*);
117 void __cdecl
_wrewinddir (_WDIR
*);
118 long __cdecl
_wtelldir (_WDIR
*);
119 void __cdecl
_wseekdir (_WDIR
*, long);
126 #endif /* Not RC_INVOKED */
130 #endif /* Not _DIRENT_H_ */
133 #endif /* Not __STRICT_ANSI__ */