Lines Matching defs:old

147 cloneObjAttr(__nis_obj_attr_t *old) {
151 if (old == 0)
158 new->zo_owner = sdup(myself, T, old->zo_owner);
159 if (new->zo_owner == 0 && old->zo_owner != 0)
162 new->zo_group = sdup(myself, T, old->zo_group);
163 if (new->zo_group == 0 && old->zo_group != 0)
166 new->zo_domain = sdup(myself, T, old->zo_domain);
167 if (new->zo_domain == 0 && old->zo_domain != 0)
170 new->zo_access = old->zo_access;
171 new->zo_ttl = old->zo_ttl;
594 * values of 'old' and 'new'.
596 * If both 'old' and 'new' are supplied, and the modify would result
597 * in a change to the DN, '*oldDN' will contain the old DN. Otherwise
601 map1qToLDAP(__nis_table_mapping_t *t, db_query *old, db_query *new,
611 if (t == 0 || (old == 0 && new == 0) || rvOutP == 0)
621 if (old != 0 && new == 0) {
637 * mapping, and the 'old' db_query
642 new = old;
673 rv = buildNisPlusRuleValue(t, ((old != 0) ? old : new), rvt);
704 * from 'old', so delete it. However, we still
707 if (old != 0) {
733 if (old != 0) {
779 * 'nq' is the number of elements in the 'old', 'new', and 'rvIn'
784 * There are four cases, depending on the values of 'old[iq]' and
787 * (1) old[iq] == 0 && new[iq] == 0
790 * (2) old[iq] == 0 && new[iq] != 0
794 * (3) old[iq] != 0 && new[iq] == 0
795 * Use the 'old' db_query to get a DN, and try to delete the LDAP
798 * (4) old[iq] != 0 && new[iq] != 0
799 * Use the 'old' db_query to get a DN, and update (possibly create)
806 * If 'firstOnly' is set, only the first old[iq]/new[iq] pair is used
818 mapToLDAP(__nis_table_mapping_t *tm, int nq, db_query **old, db_query **new,
830 if (tm == 0 || (old == 0 && new == 0) || nq <= 0)
836 (old != 0 && old[0] != 0) ? old[0] : new[0], 1, 0,
890 if ((old == 0 || old[iq] == 0) &&
901 (old != 0 && old[iq] != 0) ? old[iq] : new[iq], 1, 0,
924 (old != 0) ? old[iq] : 0,