Lines Matching defs:new
138 ** allocate memory for new zone structure and initialize it
143 zone_t *new;
165 if ( (new = zone_alloc ()) != NULL )
169 new->zone = domain_canonicdup (zone);
170 new->dir = strdup (dir);
171 new->file = strdup (file);
173 if ( (p = strrchr (new->file, '.')) != NULL && strcmp (p, signed_ext) == 0 )
175 new->sfile = strdup (new->file);
181 new->sfile = strdup (path);
183 new->conf = cp;
184 new->keys = NULL;
185 dki_readdir (new->dir, &new->keys, 0);
186 new->next = NULL;
189 return zone_add (zp, new);
279 zone_t *zone_add (zone_t **list, zone_t *new)
286 if ( new == NULL )
290 while ( curr && zone_cmp (curr, new) < 0 )
297 *list = new;
299 last->next = new;
300 new->next = curr;
302 return new;