Lines Matching defs:zp
67 zone_t *zp;
69 if ( (zp = malloc (sizeof (zone_t))) )
71 memset (zp, 0, sizeof (zone_t));
72 return zp;
99 void zone_free (zone_t *zp)
101 assert (zp != NULL);
103 if ( zp->zone ) free ((char *)zp->zone);
104 if ( zp->dir ) free ((char *)zp->dir);
105 if ( zp->file ) free ((char *)zp->file);
106 if ( zp->sfile ) free ((char *)zp->sfile);
109 if ( zp->conf ) free ((zconf_t *)zp->conf);
111 if ( zp->keys ) dki_freelist (&zp->keys);
112 free (zp);
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)
145 assert (zp != NULL);
148 dbg_val3 ("zone_new: (zp, zone: %s, dir: %s, file: %s, cp)\n", zone, dir, file);
189 return zone_add (zp, new);
215 dbg_val4 ("zone_readdir: (dir: \"%s\", zone: \"%s\", zfile: \"%s\", zp, cp, dyn_zone = %d)\n",