Lines Matching defs:old

146 cloneObjAttr(__nis_obj_attr_t *old) {
150 if (old == 0)
157 new->zo_owner = sdup(myself, T, old->zo_owner);
158 if (new->zo_owner == 0 && old->zo_owner != 0)
161 new->zo_group = sdup(myself, T, old->zo_group);
162 if (new->zo_group == 0 && old->zo_group != 0)
165 new->zo_domain = sdup(myself, T, old->zo_domain);
166 if (new->zo_domain == 0 && old->zo_domain != 0)
169 new->zo_access = old->zo_access;
170 new->zo_ttl = old->zo_ttl;
593 * values of 'old' and 'new'.
595 * If both 'old' and 'new' are supplied, and the modify would result
596 * in a change to the DN, '*oldDN' will contain the old DN. Otherwise
600 map1qToLDAP(__nis_table_mapping_t *t, db_query *old, db_query *new,
610 if (t == 0 || (old == 0 && new == 0) || rvOutP == 0)
620 if (old != 0 && new == 0) {
636 * mapping, and the 'old' db_query
641 new = old;
672 rv = buildNisPlusRuleValue(t, ((old != 0) ? old : new), rvt);
703 * from 'old', so delete it. However, we still
706 if (old != 0) {
732 if (old != 0) {
778 * 'nq' is the number of elements in the 'old', 'new', and 'rvIn'
783 * There are four cases, depending on the values of 'old[iq]' and
786 * (1) old[iq] == 0 && new[iq] == 0
789 * (2) old[iq] == 0 && new[iq] != 0
793 * (3) old[iq] != 0 && new[iq] == 0
794 * Use the 'old' db_query to get a DN, and try to delete the LDAP
797 * (4) old[iq] != 0 && new[iq] != 0
798 * Use the 'old' db_query to get a DN, and update (possibly create)
805 * If 'firstOnly' is set, only the first old[iq]/new[iq] pair is used
817 mapToLDAP(__nis_table_mapping_t *tm, int nq, db_query **old, db_query **new,
829 if (tm == 0 || (old == 0 && new == 0) || nq <= 0)
835 (old != 0 && old[0] != 0) ? old[0] : new[0], 1, 0,
889 if ((old == 0 || old[iq] == 0) &&
900 (old != 0 && old[iq] != 0) ? old[iq] : new[iq], 1, 0,
923 (old != 0) ? old[iq] : 0,