Lines Matching defs:udthandle

165  * udthandle - update handle
168 idmap_udt_create(idmap_udt_handle_t **udthandle)
172 if (udthandle == NULL) {
181 *udthandle = tmp;
191 * udthandle - update handle with the update requests
197 idmap_udt_commit(idmap_udt_handle_t *udthandle)
202 if (udthandle == NULL) {
210 (xdrproc_t)xdr_idmap_update_batch, (caddr_t)&udthandle->batch,
216 retcode = udthandle->commit_stat = res.retcode;
217 udthandle->error_index = res.error_index;
221 if (udthandle->error_index < 0)
224 retcode = idmap_namerule_cpy(&udthandle->error_rule,
227 udthandle->error_index = -2;
231 retcode = idmap_namerule_cpy(&udthandle->conflict_rule,
234 udthandle->error_index = -2;
245 _IDMAP_RESET_UDT_HANDLE(udthandle);
339 idmap_udt_get_error_index(idmap_udt_handle_t *udthandle,
343 *error_index = udthandle->error_index;
361 idmap_udt_get_error_rule(idmap_udt_handle_t *udthandle,
369 if (udthandle->commit_stat == IDMAP_SUCCESS ||
370 udthandle->error_index < 0)
374 &udthandle->error_rule,
395 idmap_udt_get_conflict_rule(idmap_udt_handle_t *udthandle,
403 if (udthandle->commit_stat != IDMAP_ERR_W2U_NAMERULE_CONFLICT &&
404 udthandle->commit_stat != IDMAP_ERR_U2W_NAMERULE_CONFLICT) {
409 &udthandle->conflict_rule,
424 idmap_udt_destroy(idmap_udt_handle_t *udthandle)
426 if (udthandle == NULL)
428 (void) xdr_free(xdr_idmap_update_batch, (caddr_t)&udthandle->batch);
429 (void) xdr_free(xdr_idmap_namerule, (caddr_t)&udthandle->error_rule);
430 (void) xdr_free(xdr_idmap_namerule, (caddr_t)&udthandle->conflict_rule);
431 free(udthandle);
436 idmap_udt_add_namerule(idmap_udt_handle_t *udthandle, const char *windomain,
443 retcode = _udt_extend_batch(udthandle);
447 rule = &udthandle->batch.
448 idmap_update_batch_val[udthandle->next].
467 udthandle->batch.idmap_update_batch_val[udthandle->next].opnum =
469 udthandle->next++;
483 idmap_udt_rm_namerule(idmap_udt_handle_t *udthandle, boolean_t is_user,
490 retcode = _udt_extend_batch(udthandle);
494 rule = &udthandle->batch.
495 idmap_update_batch_val[udthandle->next].
513 udthandle->batch.idmap_update_batch_val[udthandle->next].opnum =
515 udthandle->next++;
528 idmap_udt_flush_namerules(idmap_udt_handle_t *udthandle)
532 retcode = _udt_extend_batch(udthandle);
536 udthandle->batch.idmap_update_batch_val[udthandle->next].opnum =
538 udthandle->next++;