2 * DIRENT.H (formerly DIRLIB.H)
3 * This file has no copyright assigned and is placed in the Public Domain.
4 * This file is a part of the mingw-runtime package.
5 * No warranty is given; refer to the file DISCLAIMER within the package.
11 /* All the headers include this file. */
24 long d_ino
; /* Always zero. */
25 unsigned short d_reclen
; /* Always zero. */
26 unsigned short d_namlen
; /* Length of name in d_name. */
27 char d_name
[FILENAME_MAX
]; /* File name. */
31 * This is an internal data structure. Good programmers will not use it
32 * except as an argument to one of the functions below.
33 * dd_stat field is now int (was short in older versions).
37 /* disk transfer area for this dir */
38 struct _finddata_t dd_dta
;
40 /* dirent struct to return from dir (NOTE: this makes this thread
41 * safe as long as only one thread uses a particular DIR struct at
45 /* _findnext handle */
50 * 0 = not started yet (next entry to read is first entry)
52 * positive = 0 based index of next entry
56 /* given path for dir with search pattern (struct is extended) */
60 DIR* __cdecl
opendir (const char*);
61 struct dirent
* __cdecl
readdir (DIR*);
62 int __cdecl
closedir (DIR*);
63 void __cdecl
rewinddir (DIR*);
64 long __cdecl
telldir (DIR*);
65 void __cdecl
seekdir (DIR*, long);
68 /* wide char versions */
72 long d_ino
; /* Always zero. */
73 unsigned short d_reclen
; /* Always zero. */
74 unsigned short d_namlen
; /* Length of name in d_name. */
75 wchar_t d_name
[FILENAME_MAX
]; /* File name. */
79 * This is an internal data structure. Good programmers will not use it
80 * except as an argument to one of the functions below.
84 /* disk transfer area for this dir */
85 struct _wfinddata_t dd_dta
;
87 /* dirent struct to return from dir (NOTE: this makes this thread
88 * safe as long as only one thread uses a particular DIR struct at
90 struct _wdirent dd_dir
;
92 /* _findnext handle */
97 * 0 = not started yet (next entry to read is first entry)
99 * positive = 0 based index of next entry
103 /* given path for dir with search pattern (struct is extended) */
109 _WDIR
* __cdecl
_wopendir (const wchar_t*);
110 struct _wdirent
* __cdecl
_wreaddir (_WDIR
*);
111 int __cdecl
_wclosedir (_WDIR
*);
112 void __cdecl
_wrewinddir (_WDIR
*);
113 long __cdecl
_wtelldir (_WDIR
*);
114 void __cdecl
_wseekdir (_WDIR
*, long);
121 #endif /* Not RC_INVOKED */
123 #endif /* Not _DIRENT_H_ */