Lines Matching refs:info

524  * Pool for trees of pg_pattern info structures (ptrn_info_t).
2020 ptrn_info_t *info;
2024 info = safe_malloc(sizeof (*info));
2028 info->pi_ptrn_type = PG_PATTERN;
2031 info->pi_ptrn_type = PROP_PATTERN;
2037 info->pi_ptrnpg = pat;
2038 info->pi_name = find_name_specification(pat);
2039 info->pi_name = EMPTY_TO_NULL(info->pi_name);
2040 info->pi_type = find_type_specification(pat);
2041 info->pi_type = EMPTY_TO_NULL(info->pi_type);
2042 if (info->pi_ptrn_type == PG_PATTERN) {
2043 info->pi_target = find_astring_value_in_pg(pat,
2045 if (info->pi_target == NULL)
2046 info->pi_target = SCF_TM_TARGET_THIS;
2048 if (info->pi_ptrn_type == PROP_PATTERN) {
2049 info->pi_pgp_name = find_astring_value_in_pg(pat,
2051 assert((info->pi_pgp_name != NULL) &&
2052 (*(info->pi_pgp_name) != 0));
2061 cpg.cpg_name = info->pi_pgp_name;
2066 info->pi_enc_pgp = CPG2PG(match);
2068 info->pi_enc_pgp = internal_pgroup_find(e,
2069 info->pi_pgp_name, SCF_GROUP_TEMPLATE_PG_PATTERN);
2071 assert(info->pi_enc_pgp != NULL);
2073 uu_avl_node_init(info, &info->pi_link, ptrn_info_pool);
2074 return (info);
2078 ptrn_info_destroy(ptrn_info_t *info)
2080 if (info == NULL)
2082 uu_avl_node_fini(info, &info->pi_link, ptrn_info_pool);
2083 free(info);
2098 ptrn_info_t *info = NULL;
2123 if (info != NULL) {
2125 ptrn_info_destroy(info);
2127 info = ptrn_info_create(pg);
2128 match = uu_avl_find(tree, info, NULL, &marker);
2130 /* No match. Insert the info. */
2131 uu_avl_insert(tree, info, marker);
2132 info = NULL;
2137 if ((info->pi_name == NULL) ||
2138 (info->pi_type == NULL) ||
2149 if (strcmp(info->pi_type, match->pi_type) == 0) {
2164 info->pi_ptrnpg, NULL, NULL, NULL, NULL,
2178 if ((info->pi_pgp_name == NULL) ||
2182 if (strcmp(info->pi_pgp_name, match->pi_pgp_name) != 0)
2188 info->pi_enc_pgp, NULL, info->pi_ptrnpg, NULL, NULL,
2199 ptrn_info_destroy(info);
2346 * Compare two pattern info structures (ptrn_info_t). If both structures
2648 ptrn_info_t *info;
2654 for (info = uu_avl_first(tree);
2655 info != NULL;
2656 info = uu_avl_next(tree, info)) {
2657 iv = internal_property_find(info->pi_ptrnpg,
2665 r = include_values_support(info, v->sc_u.sc_string,
2904 ptrn_info_t *info;
2946 while ((info = uu_avl_teardown(tree, &marker)) != NULL) {
2947 ptrn_info_destroy(info);
2972 while ((info = uu_avl_teardown(tree, &marker)) != NULL) {
2973 ptrn_info_destroy(info);
3235 uu_die(gettext("pg_pattern info pool creation failed: %s\n"),
3539 /* Set up error info before entering loop. */