Lines Matching refs:new

148 	__nis_obj_attr_t	*new;
154 new = am(myself, sizeof (*new));
155 if (new == 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;
173 return (new);
176 freeSingleObjAttr(new);
594 * values of 'old' and 'new'.
596 * If both 'old' and 'new' are supplied, and the modify would result
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) {
642 new = old;
673 rv = buildNisPlusRuleValue(t, ((old != 0) ? old : new), rvt);
700 if (new != 0) {
702 * Create a rule-value from the new NIS+ entry.
720 rv = buildNisPlusRuleValue(t, new, rvt);
724 "%s: No new rule-value derived for \"%s: %s\"",
739 "%s: Unable to create new DN for \"%s: %s\"",
779 * 'nq' is the number of elements in the 'old', 'new', and 'rvIn'
785 * 'new[iq]':
787 * (1) old[iq] == 0 && new[iq] == 0
790 * (2) old[iq] == 0 && new[iq] != 0
791 * Attempt to use the 'new' db_query to get a DN, and try to create
794 * (3) old[iq] != 0 && new[iq] == 0
798 * (4) old[iq] != 0 && new[iq] != 0
800 * the corresponding LDAP entry per the 'new' db_query.
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,
891 (new == 0 || new[iq] == 0))
901 (old != 0 && old[iq] != 0) ? old[iq] : new[iq], 1, 0,
925 (new != 0) ? new[iq] : 0,
1014 (new != 0 && new[i/maxMatches] != 0) ?
1020 if ((new != 0 && new[i/maxMatches] != 0) || delPerDbId) {
1030 addFirst = (new != 0 &&
1031 new[i/maxMatches] != 0 &&
1051 (new != 0 && new[i/maxMatches] != 0) ?