Lines Matching defs:errs

1670  * new error structure to errs.
1673 add_scf_error(tmpl_errors_t *errs, scf_tmpl_error_type_t ec,
1804 rc = _scf_tmpl_add_error(errs->te_cur_scf->tve_errors, ec,
1814 * list of errors in errs. The rest of the parameters are used to
1818 tmpl_errors_add_im(tmpl_errors_t *errs, tmpl_validate_status_t ec, entity_t *e,
1839 result = uu_list_insert_after(errs->te_list, NULL, ite);
2091 * to errs.
2095 tmpl_errors_t *errs)
2163 if (add_scf_error(errs, SCF_TERR_PG_PATTERN_CONFLICT,
2187 if (add_scf_error(errs, SCF_TERR_PROP_PATTERN_CONFLICT,
2586 tmpl_errors_t *errs)
2604 (void) tmpl_errors_add_im(errs, TVS_BAD_TEMPLATE,
2632 (void) add_scf_error(errs, SCF_TERR_INCLUDE_VALUES, pinfo->pi_enc_pgp,
2646 tmpl_include_values_check(uu_avl_t *tree, tmpl_errors_t *errs)
2666 errs);
2683 tmpl_errors_t *errs)
2689 rc = gather_pattern(inst, type, tree, errs);
2692 r = gather_pattern(inst->sc_parent, type, tree, errs);
2700 tmpl_required_attr_present(uu_avl_t *tree, tmpl_errors_t *errs)
2725 if (add_scf_error(errs, SCF_TERR_PG_PATTERN_INCOMPLETE,
2744 rv = add_scf_error(errs,
2749 rv = add_scf_error(errs,
2774 tmpl_level_t level, tmpl_errors_t *errs)
2831 if (add_scf_error(errs, SCF_TERR_GENERAL_REDEFINE,
2855 tmpl_level_redefine(entity_t *inst, uu_avl_t *tree, tmpl_errors_t *errs)
2867 rc = tmpl_scan_general(restarter, tree, TL_RESTARTER, errs);
2869 TL_GLOBAL, errs);
2901 tmpl_consistency(entity_t *inst, tmpl_errors_t *errs)
2916 rc = tmpl_pattern_conflict(inst, tree, PG_PATTERN, errs);
2923 r = tmpl_level_redefine(inst, tree, errs);
2941 r = tmpl_required_attr_present(tree, errs);
2950 r = tmpl_pattern_conflict(inst, tree, PROP_PATTERN, errs);
2958 r = tmpl_required_attr_present(tree, errs);
2966 r = tmpl_include_values_check(tree, errs);
3042 tmpl_errors_print(FILE *out, tmpl_errors_t *errs, const char *prefix)
3053 for (ite = uu_list_first(errs->te_list);
3055 ite = uu_list_next(errs->te_list, ite)) {
3061 for (scft = uu_list_first(errs->te_scf);
3063 scft = uu_list_next(errs->te_scf, scft)) {
3283 pgroup_t *pg, pgroup_t *pg_pattern, tmpl_errors_t *errs)
3318 (void) add_scf_error(errs, SCF_TERR_CARDINALITY_VIOLATION,
3332 tmpl_required_pg_present(entity_t *e, tmpl_errors_t *errs)
3371 if (add_scf_error(errs, SCF_TERR_MISSING_PG, pg,
3399 tmpl_errors_t *errs)
3444 if (add_scf_error(errs, ec, pg_pattern, pg,
3499 pgroup_t *pg_pattern, tmpl_errors_t *errs)
3523 (void) tmpl_errors_add_im(errs, rc, pg_pattern->sc_parent,
3534 (void) tmpl_errors_add_im(errs, rc, pg_pattern->sc_parent,
3556 if (add_scf_error(errs, SCF_TERR_RANGE_VIOLATION, pg_pattern,
3575 pgroup_t *pg_pattern, tmpl_errors_t *errs)
3589 (void) tmpl_errors_add_im(errs, r, pg->sc_parent, pg_pattern,
3634 if (add_scf_error(errs,
3666 pgroup_t *pg, pgroup_t *pg_pattern, tmpl_errors_t *errs)
3671 rc = tmpl_validate_value_range(pattern, prop, pg, pg_pattern, errs);
3672 r = tmpl_validate_values(pattern, prop, pg, pg_pattern, errs);
3694 pgroup_t *pg_pattern, tmpl_errors_t *errs)
3708 r = tmpl_errors_add_im(errs, rc, pg->sc_parent, NULL,
3726 status = add_scf_error(errs, ec,
3749 r = tmpl_validate_cardinality(tmpl, prop, pg, pg_pattern, errs);
3754 r = tmpl_validate_value_constraints(tmpl, prop, pg, pg_pattern, errs);
3770 tmpl_validate_pg(entity_t *e, pgroup_t *pg, tmpl_errors_t *errs)
3795 (void) tmpl_errors_add_im(errs, rc, e, NULL, pg, NULL, NULL,
3817 stat = add_scf_error(errs,
3831 r = tmpl_errors_add_im(errs, rc, e, pg_pattern, pg,
3860 (void) tmpl_errors_add_im(errs, r, e, NULL, pg, NULL,
3868 errs);
3876 r = tmpl_required_props_present(e, pg, pg_pattern, errs);
3897 tmpl_validate_entity_pgs(entity_t *e, tmpl_errors_t *errs)
3914 if ((r = tmpl_validate_pg(e, pg, errs)) != TVS_SUCCESS)
3933 tmpl_validate_instance(entity_t *e, tmpl_errors_t *errs)
3942 status = uu_list_insert_after(errs->te_scf, errs->te_cur_scf, ste);
3944 errs->te_cur_scf = ste;
3947 rc = tmpl_consistency(e, errs);
3950 r = tmpl_validate_entity_pgs(e, errs);
3955 r = tmpl_required_pg_present(e, errs);
3966 tmpl_validate_service(entity_t *svc, tmpl_errors_t *errs)
3983 r = tmpl_validate_instance(inst, errs);
4001 tmpl_errors_t *errs = NULL;
4014 errs = tmpl_errors_create();
4015 if (errs == NULL)
4034 tmpl_errors_destroy(errs);
4038 if ((r = tmpl_validate_service(svc, errs)) != TVS_SUCCESS)
4045 tmpl_errors_destroy(errs);
4047 *err_list = errs;