Lines Matching defs:udthandle

154  * udthandle - update handle
157 idmap_udt_create(idmap_udt_handle_t **udthandle)
161 if (udthandle == NULL) {
170 *udthandle = tmp;
180 * udthandle - update handle with the update requests
186 idmap_udt_commit(idmap_udt_handle_t *udthandle)
191 if (udthandle == NULL) {
199 (xdrproc_t)xdr_idmap_update_batch, (caddr_t)&udthandle->batch,
205 retcode = udthandle->commit_stat = res.retcode;
206 udthandle->error_index = res.error_index;
210 if (udthandle->error_index < 0)
213 retcode = idmap_namerule_cpy(&udthandle->error_rule,
216 udthandle->error_index = -2;
220 retcode = idmap_namerule_cpy(&udthandle->conflict_rule,
223 udthandle->error_index = -2;
234 _IDMAP_RESET_UDT_HANDLE(udthandle);
328 idmap_udt_get_error_index(idmap_udt_handle_t *udthandle,
332 *error_index = udthandle->error_index;
350 idmap_udt_get_error_rule(idmap_udt_handle_t *udthandle,
358 if (udthandle->commit_stat == IDMAP_SUCCESS ||
359 udthandle->error_index < 0)
363 &udthandle->error_rule,
384 idmap_udt_get_conflict_rule(idmap_udt_handle_t *udthandle,
392 if (udthandle->commit_stat != IDMAP_ERR_W2U_NAMERULE_CONFLICT &&
393 udthandle->commit_stat != IDMAP_ERR_U2W_NAMERULE_CONFLICT) {
398 &udthandle->conflict_rule,
413 idmap_udt_destroy(idmap_udt_handle_t *udthandle)
415 if (udthandle == NULL)
417 (void) xdr_free(xdr_idmap_update_batch, (caddr_t)&udthandle->batch);
418 (void) xdr_free(xdr_idmap_namerule, (caddr_t)&udthandle->error_rule);
419 (void) xdr_free(xdr_idmap_namerule, (caddr_t)&udthandle->conflict_rule);
420 free(udthandle);
425 idmap_udt_add_namerule(idmap_udt_handle_t *udthandle, const char *windomain,
432 retcode = _udt_extend_batch(udthandle);
436 rule = &udthandle->batch.
437 idmap_update_batch_val[udthandle->next].
456 udthandle->batch.idmap_update_batch_val[udthandle->next].opnum =
458 udthandle->next++;
472 idmap_udt_rm_namerule(idmap_udt_handle_t *udthandle, boolean_t is_user,
479 retcode = _udt_extend_batch(udthandle);
483 rule = &udthandle->batch.
484 idmap_update_batch_val[udthandle->next].
502 udthandle->batch.idmap_update_batch_val[udthandle->next].opnum =
504 udthandle->next++;
517 idmap_udt_flush_namerules(idmap_udt_handle_t *udthandle)
521 retcode = _udt_extend_batch(udthandle);
525 udthandle->batch.idmap_update_batch_val[udthandle->next].opnum =
527 udthandle->next++;