Lines Matching refs:DIR
22 #include "dir.h"
39 HANDLE dir; /* Directory handle */
85 if (dp->dir != INVALID_HANDLE_VALUE)
86 FindClose(dp->dir);
127 dp->dir = INVALID_HANDLE_VALUE;
162 if (dp->dir == INVALID_HANDLE_VALUE)
168 dp->dir = FindFirstFile(dp->directory, &entry);
169 if (dp->dir == INVALID_HANDLE_VALUE)
172 else if (!FindNextFile(dp->dir, &entry))
219 if (dp->dir != INVALID_HANDLE_VALUE)
221 FindClose(dp->dir);
222 dp->dir = INVALID_HANDLE_VALUE;
244 DIR *dir; /* Directory file */
271 closedir(dp->dir);
309 dp->dir = opendir(directory);
310 if (!dp->dir)
367 if (readdir_r(dp->dir, (struct dirent *)buffer, &entry))
387 if ((entry = readdir(dp->dir)) == NULL)
450 rewinddir(dp->dir);