Lines Matching defs:error

224 		int	error;
225 error = get_conver(ddp->d_resource, &ddp->d_conver);
226 if (error != DSVC_SUCCESS) {
228 return (error);
308 int error;
310 error = load_public_module(ddp, &instance, &api);
311 if (error != DSVC_SUCCESS)
312 return (error);
314 error = api.status(ddp->d_location);
318 return (error);
330 int error;
332 error = load_public_module(ddp, &instance, &api);
333 if (error != DSVC_SUCCESS)
334 return (error);
336 error = api.mklocation(ddp->d_location);
340 return (error);
353 int error;
355 error = load_public_module(ddp, &instance, &api);
356 if (error != DSVC_SUCCESS)
357 return (error);
360 error = api.list_dt(ddp->d_location, listppp, count);
362 error = api.list_dn(ddp->d_location, listppp, count);
366 return (error);
381 int error;
404 error = load_public_module(ddp, &hp->d_instance, &hp->d_api);
405 if (error != DSVC_SUCCESS) {
407 return (error);
415 error = DSVC_NO_MEMORY;
416 goto error;
422 error = synch_init(hp, name, flags);
423 if (error != DSVC_SUCCESS)
424 goto error;
427 error = hp->d_api.open_dt(&hp->d_hand, ddp->d_location, flags);
429 error = hp->d_api.open_dn(&hp->d_hand, ddp->d_location, flags,
432 if (error != DSVC_SUCCESS) {
435 goto error;
440 error:
445 return (error);
457 int error;
468 error = load_public_module(ddp, &instance, &api);
469 if (error != DSVC_SUCCESS)
470 return (error);
474 error = api.remove_dt(ddp->d_location);
476 error = api.remove_dn(ddp->d_location, &ip, &mask);
480 return (error);
492 int error;
498 error = (*handp)->d_api.close_dt(&((*handp)->d_hand));
500 error = (*handp)->d_api.close_dn(&((*handp)->d_hand));
502 if (error == DSVC_SUCCESS) {
503 error = unload_public_module(&(*handp)->d_instance,
513 return (error);
538 int error;
563 error = DSVC_SYNCH_RDLOCK(hand->d_synch, &unlock_cookie);
564 if (error != DSVC_SUCCESS)
565 return (error);
568 error = lookup(hand->d_hand, partial, query, count, targetp, recordsp,
574 return (error);
615 int error;
625 error = DSVC_SYNCH_WRLOCK(hand->d_synch, &unlock_cookie);
626 if (error != DSVC_SUCCESS)
627 return (error);
631 error = hand->d_api.add_dt(hand->d_hand, newp);
633 error = hand->d_api.add_dn(hand->d_hand, newp);
638 return (error);
650 int error;
663 error = DSVC_SYNCH_WRLOCK(hand->d_synch, &unlock_cookie);
664 if (error != DSVC_SUCCESS)
665 return (error);
669 error = hand->d_api.modify_dt(hand->d_hand, origp, newp);
671 error = hand->d_api.modify_dn(hand->d_hand, origp, newp);
676 return (error);
687 int error;
697 error = DSVC_SYNCH_WRLOCK(hand->d_synch, &unlock_cookie);
698 if (error != DSVC_SUCCESS)
699 return (error);
703 error = hand->d_api.delete_dt(hand->d_hand, entryp);
705 error = hand->d_api.delete_dn(hand->d_hand, entryp);
710 return (error);
805 int error;
808 error = module_synchtype(&hand->d_desc, &synchtype);
809 if (error != DSVC_SUCCESS)
810 return (error);
832 error = mkloctoken(sp->s_datastore->d_location, sp->s_loctoken,
834 if (error != DSVC_SUCCESS) {
837 return (error);
848 error = DSVC_SYNCH_INIT(sp, synchtype & DSVC_SYNCH_FLAGMASK);
849 if (error != DSVC_SUCCESS) {
852 return (error);