Lines Matching refs:dir
189 ** parse_namedconf (const char *filename, chroot_dir, dir, dirsize, int (*func) ())
196 int parse_namedconf (const char *filename, const char *chroot_dir, char *dir, size_t dirsize, int (*func) ())
213 assert (dir != NULL && dirsize != 0);
231 dbg_val2 ("parse_namedconf: directory found \"%s\" (dir is %s)\n",
232 strval, dir);
233 if ( *strval != '/' && *dir )
234 snprintf (path, sizeof (path), "%s/%s", dir, strval);
241 snprintf (dir, dirsize, "%s%s%s", chroot_dir, *path == '/' ? "": "/", path);
245 snprintf (dir, dirsize, "%s", path);
246 dbg_val ("parse_namedconf: new dir \"%s\" \n", dir);
253 if ( *strval != '/' && *dir )
254 snprintf (path, sizeof (path), "%s/%s", dir, strval);
257 if ( !parse_namedconf (path, chroot_dir, dir, dirsize, func) )
286 dbg_val4 ("dir %s view %s zone %s file %s\n", dir, view, zone, zonefile);
287 (*func) (dir, view, zone, zonefile);
298 int printzone (const char *dir, const char *view, const char *zone, const char *file)
304 if ( dir && *dir )
305 printf ("%s/", dir, file);