Lines Matching defs:dir
57 #include <isc/dir.h>
307 * path have the "data dir" directory contained within it so
315 * 0. the base dir is "/base-dir/" and the data dir is
317 * domain.com. Path /base-dir/com/domain/.datadir since
318 * /base-dir/com/domain/.datadir does not exist, we are not
321 * path /base-dir/com/domain/long/.datadir does exist!
324 /* if client is passed append xfr dir, otherwise append data dir */
359 process_dir(isc_dir_t *dir, void *passback, config_data_t *cd,
385 strcpy(tmp, dir->dirname);
387 /* dir->dirname will always have '*' as the last char. */
388 astPos = strlen(dir->dirname) - 1;
424 strcpy(tmp, dir->dirname);
431 while (isc_dir_read(dir) == ISC_R_SUCCESS) {
433 dir->entry.name, 5) == 0) {
438 if (strcmp((char *) &dir->entry.name[6],
443 (char *) &dir->entry.name[6],
451 /* reset dir list for use later */
452 isc_dir_reset(dir);
456 while (isc_dir_read(dir) == ISC_R_SUCCESS) {
462 dir->dirname, dir->entry.name);
465 if (dir->entry.name[0] == '.')
478 strcat(tmp, dir->entry.name);
485 * if dir list is NOT NULL, add dir to
486 * dir list
516 type = dir->entry.name;
634 isc_dir_t dir;
674 isc_dir_init(&dir);
675 result = isc_dir_open(&dir, basepath);
688 result = process_dir(&dir, allnodes, cd, dir_list, basepathlen);
691 isc_dir_close(&dir);
696 /* get first dir entry from list. */
700 result = isc_dir_open(&dir, dir_entry->dirpath);
713 result = process_dir(&dir, allnodes, cd, dir_list, basepathlen);
716 isc_dir_close(&dir);
792 isc_dir_t dir;
834 isc_dir_init(&dir);
835 result = isc_dir_open(&dir, path);
848 result = process_dir(&dir, lookup, (config_data_t *) dbdata, NULL, 0);
851 isc_dir_close(&dir);
888 /* verify base dir ends with '/' or '\' */
893 "Base dir parameter for filesystem driver "
921 /* get and store our data sub-dir */
927 /* get and store our zone xfr sub-dir */