Lines Matching defs:newp
309 * `origp' is NULL, then act like add_dt(); if `newp' is NULL, then
313 update_dt(const dt_handle_t *dhp, const dt_rec_t *origp, dt_rec_t *newp)
353 if (origp != NULL && newp != NULL) {
354 if ((origp->dt_type != newp->dt_type ||
355 strcmp(origp->dt_key, newp->dt_key) != 0)) {
356 retval = find_dt(fp, 0, query, 1, newp, NULL, &found);
370 if (newp != NULL && origp == NULL) {
371 retval = find_dt(fp, 0, query, 1, newp, NULL, &found);
398 if (newp != NULL || origp->dt_sig != 0) {
443 if (newp != NULL) {
445 newp->dt_sig = gensig();
447 newp->dt_sig = origp->dt_sig + 1;
454 retval = write_rec(newfd, newp, st.st_size);
492 modify_dt(void *handle, const dt_rec_t *origp, dt_rec_t *newp)
494 return (update_dt((dt_handle_t *)handle, origp, newp));