Lines Matching refs:rc

203 	int i, rc, n;
207 if ((rc = vs_props_get(&va->va_props, VS_PROPID_GEN_ALL))
209 return (rc);
212 if ((rc = vs_props_get_engines(engids, &n)) != VS_ERR_NONE)
213 return (rc);
216 if ((rc = vs_props_se_get(engids[i],
227 return (rc);
249 int rc;
260 rc = vs_scf_values_get(VS_PGNAME_GENERAL, &prop_hd);
263 return (rc);
316 int rc;
339 rc = vs_scf_values_get(pgname, &prop_hd);
340 if (rc != VS_ERR_NONE)
341 return (rc);
353 return (rc);
378 int rc;
403 if ((rc = vs_scf_values_get(pgname, &prop_hd)) != VS_ERR_NONE)
404 return (rc);
592 int rc, np;
604 rc = scf_error();
605 if ((rc == SCF_ERROR_NOT_FOUND) ||
606 (rc == SCF_ERROR_INVALID_ARGUMENT))
612 rc = VS_ERR_NONE;
619 rc = VS_ERR_INVALID_PROPERTY;
627 rc = VS_ERR_SCF;
637 rc = VS_ERR_SCF;
641 if ((rc = vs_scf_get(vpd, prop_hd, &vsc, np)) != VS_ERR_NONE)
650 return (rc);
664 int rc;
670 if ((rc = scf_property_get_value(vsc->vscf_prop[idx],
672 if (rc == SCF_ERROR_CONSTRAINT_VIOLATED ||
673 rc == SCF_ERROR_NOT_FOUND) {
680 rc = VS_ERR_NONE;
722 rc = VS_ERR_INVALID_VALUE;
736 if ((rc != VS_ERR_NONE) ||
751 int rc;
756 if ((rc = vs_checkauth(VS_ACTION_AUTH)) != VS_ERR_NONE)
757 return (rc);
782 rc = vs_scf_values_set(pgname, prop_hd);
783 if (rc != VS_ERR_NONE)
786 return (rc);
796 int rc;
800 if ((rc = vs_checkauth(VS_ACTION_AUTH)) != VS_ERR_NONE)
801 return (rc);
810 rc = scf_error();
811 if ((rc == SCF_ERROR_NOT_FOUND) ||
812 (rc == SCF_ERROR_INVALID_ARGUMENT))
820 rc = scf_error();
821 if ((rc == SCF_ERROR_NOT_FOUND) ||
822 (rc == SCF_ERROR_INVALID_ARGUMENT))
855 int rc, np;
861 if ((rc = vs_checkauth(VS_ACTION_AUTH)) != VS_ERR_NONE)
862 return (rc);
871 rc = scf_error();
873 if ((rc == SCF_ERROR_NOT_FOUND) ||
874 (rc == SCF_ERROR_INVALID_ARGUMENT))
887 rc = 0;
894 rc = VS_ERR_INVALID_PROPERTY;
902 rc = VS_ERR_SCF;
906 if ((rc = scf_transaction_property_change(vsc.vscf_tx,
908 rc = scf_transaction_property_new(vsc.vscf_tx,
911 if (rc == -1) {
912 rc = VS_ERR_SCF;
916 if ((rc = vs_scf_set(vpd, prop_hd, &vsc, np)) != VS_ERR_NONE)
922 if (rc != VS_ERR_NONE) {
924 return (rc);
955 int rc;
959 if ((rc = vs_validate(prop_hd, vpd->vpd_id)) != VS_ERR_NONE)
960 return (rc);
962 rc = VS_ERR_NONE;
967 rc = VS_ERR_SCF;
987 rc = VS_ERR_SCF;
1012 return (rc);
1346 int door_fd, rc = VS_ERR_NONE;
1375 rc = vs_door_call(door_fd, &arg);
1377 if ((rc == VS_ERR_NONE) && (rsp->vsr_magic == VS_STATS_DOOR_MAGIC))
1380 rc = VS_ERR_DAEMON_COMM;
1386 return (rc);
1396 int door_fd, rc;
1401 if ((rc = vs_checkauth(VS_VALUE_AUTH)) != VS_ERR_NONE)
1402 return (rc);
1422 rc = vs_door_call(door_fd, &arg);
1426 return (rc);
1437 int rc = -1;
1443 if ((rc = door_call(fd, arg)) == 0)
1450 return ((rc == 0) ? VS_ERR_NONE : VS_ERR_DAEMON_COMM);