Lines Matching defs:dir
104 if ( zp->dir ) free ((char *)zp->dir);
140 zone_t *zone_new (zone_t **zp, const char *zone, const char *dir, const char *file, const char *signed_ext, const zconf_t *cp)
148 dbg_val3 ("zone_new: (zp, zone: %s, dir: %s, file: %s, cp)\n", zone, dir, file);
149 if ( dir == NULL || *dir == '\0' )
150 dir = ".";
159 snprintf (path, sizeof (path), "%s/%.*s", dir, p-file, file);
160 dir = path;
170 new->dir = strdup (dir);
185 dki_readdir (new->dir, &new->keys, 0);
195 int zone_readdir (const char *dir, const char *zone, const char *zfile, zone_t **listp, const zconf_t *conf, int dyn_zone)
202 assert (dir != NULL && *dir != '\0');
207 if ( (zone = strrchr (dir, '/')) ) /* try to extract zone name out of directory */
210 zone = dir;
215 dbg_val4 ("zone_readdir: (dir: \"%s\", zone: \"%s\", zfile: \"%s\", zp, cp, dyn_zone = %d)\n",
216 dir, zone, zfile ? zfile: "NULL", dyn_zone);
225 snprintf (subdir, sizeof (subdir), "%s/%.*s", dir, p - zfile, zfile);
229 pathname (path, sizeof (path), dir, LOCALCONF_FILE, NULL);
241 pathname (path, sizeof (path), dir, zfile, signed_ext);
247 pathname (path, sizeof (path), dir, zfile, signed_ext);
249 pathname (path, sizeof (path), dir, zfile, NULL);
261 zone_new (listp, zone, dir, zfile, signed_ext, conf);
329 fprintf (stderr, "%s: dir\t %s\n", mesg, z->dir);