Lines Matching refs:dir

66 #include <isc/dir.h>
316 * path have the "data dir" directory contained within it so
324 * 0. the base dir is "/base-dir/" and the data dir is
326 * domain.com. Path /base-dir/com/domain/.datadir since
327 * /base-dir/com/domain/.datadir does not exist, we are not
330 * path /base-dir/com/domain/long/.datadir does exist!
333 /* if client is passed append xfr dir, otherwise append data dir */
368 process_dir(isc_dir_t *dir, void *passback, config_data_t *cd,
394 strcpy(tmp, dir->dirname);
396 /* dir->dirname will always have '*' as the last char. */
397 astPos = strlen(dir->dirname) - 1;
433 strcpy(tmp, dir->dirname);
440 while (isc_dir_read(dir) == ISC_R_SUCCESS) {
442 dir->entry.name, 5) == 0) {
447 if (strcmp((char *) &dir->entry.name[6],
452 (char *) &dir->entry.name[6],
460 /* reset dir list for use later */
461 isc_dir_reset(dir);
465 while (isc_dir_read(dir) == ISC_R_SUCCESS) {
471 dir->dirname, dir->entry.name);
474 if (dir->entry.name[0] == '.')
487 strcat(tmp, dir->entry.name);
494 * if dir list is NOT NULL, add dir to
495 * dir list
525 type = dir->entry.name;
643 isc_dir_t dir;
683 isc_dir_init(&dir);
684 result = isc_dir_open(&dir, basepath);
697 result = process_dir(&dir, allnodes, cd, dir_list, basepathlen);
700 isc_dir_close(&dir);
705 /* get first dir entry from list. */
709 result = isc_dir_open(&dir, dir_entry->dirpath);
722 result = process_dir(&dir, allnodes, cd, dir_list, basepathlen);
725 isc_dir_close(&dir);
797 isc_dir_t dir;
837 isc_dir_init(&dir);
838 result = isc_dir_open(&dir, path);
851 result = process_dir(&dir, lookup, (config_data_t *) dbdata, NULL, 0);
854 isc_dir_close(&dir);
891 /* verify base dir ends with '/' or '\' */
896 "Base dir parameter for filesystem driver "
924 /* get and store our data sub-dir */
930 /* get and store our zone xfr sub-dir */