Lines Matching defs:dir
56 * the functions declared in isc/commandline.h and isc/dir.h could not
60 * isc/commandline.c. The dir stuff was shrunk to fit the needs of gen.c.
216 start_directory(const char *path, isc_dir_t *dir) {
236 dir->first_file = ISC_TRUE;
238 dir->handle = FindFirstFile(pattern, &dir->find_data);
240 if (dir->handle == INVALID_HANDLE_VALUE) {
241 dir->filename = NULL;
244 dir->filename = dir->find_data.cFileName;
250 next_file(isc_dir_t *dir) {
251 if (dir->first_file)
252 dir->first_file = ISC_FALSE;
254 else if (dir->handle != INVALID_HANDLE_VALUE) {
255 if (FindNextFile(dir->handle, &dir->find_data) == TRUE)
256 dir->filename = dir->find_data.cFileName;
258 dir->filename = NULL;
261 dir->filename = NULL;
263 if (dir->filename != NULL)
270 end_directory(isc_dir_t *dir) {
271 if (dir->handle != INVALID_HANDLE_VALUE)
272 FindClose(dir->handle);