Lines Matching refs:new
172 struct ypmatch_ent *new;
202 new = malloc(sizeof(struct ypmatch_ent));
203 if (new == NULL)
206 new->ypc_map = strdup(map);
207 if (new->ypc_map == NULL) {
208 free(new);
211 new->ypc_key.keydat_val = malloc(key->keydat_len);
212 if (new->ypc_key.keydat_val == NULL) {
213 free(new->ypc_map);
214 free(new);
217 new->ypc_val.valdat_val = malloc(val->valdat_len);
218 if (new->ypc_val.valdat_val == NULL) {
219 free(new->ypc_val.valdat_val);
220 free(new->ypc_map);
221 free(new);
225 new->ypc_expire_t = time(NULL) + YPLIB_EXPIRE;
226 new->ypc_key.keydat_len = key->keydat_len;
227 new->ypc_val.valdat_len = val->valdat_len;
228 bcopy(key->keydat_val, new->ypc_key.keydat_val, key->keydat_len);
229 bcopy(val->valdat_val, new->ypc_val.valdat_val, val->valdat_len);
231 new->ypc_next = ypdb->cache;
232 ypdb->cache = new;
297 int new = 0, r;
338 new = 1;
361 if (new)
368 * We're trying to make a new binding: zorch the
424 * We're trying to make a new binding: zorch the
450 if (new)
463 if (new)
476 if (new)
548 if (new)
554 if (new) {