Lines Matching defs:new
100 /* copy existing data into new malloc'd buffer */
207 BerElement *new;
209 if ((new = kmfber_alloc()) == NULL)
212 *new = *ber;
214 return (new);
285 /* new dboreham code below: */
306 struct berval *new;
310 new = (struct berval *)malloc((size_t)(sizeof (struct berval)));
311 if (new == NULL) {
314 (void) memset(new, 0, sizeof (struct berval));
321 new->bv_val = NULL;
322 new->bv_len = 0;
325 new->bv_val = (char *)malloc((size_t)(len + 1));
326 if (new->bv_val == NULL) {
327 kmfber_bvfree(new);
330 (void) memmove(new->bv_val, ber->ber_buf, (size_t)len);
331 new->bv_val[len] = '\0';
332 new->bv_len = len;
336 *bvPtr = new;
357 * reset ber_ptr back to the beginning of buffer so that this new
363 * return a ptr to a new BerElement containing a copy of the data
385 * reset ber_ptr back to the beginning of buffer so that this new
391 * return a ptr to a new BerElement containing a copy of the data