Lines Matching refs:cladatum
860 class_datum_t *cladatum; in class_index() local
862 cladatum = (class_datum_t *) datum; in class_index()
864 if (!cladatum->s.value || cladatum->s.value > p->p_classes.nprim) in class_index()
866 p->p_class_val_to_name[cladatum->s.value - 1] = (char *)key; in class_index()
867 p->class_val_to_struct[cladatum->s.value - 1] = cladatum; in class_index()
1144 class_datum_t *cladatum; in class_destroy() local
1150 cladatum = (class_datum_t *) datum; in class_destroy()
1151 if (cladatum == NULL) { in class_destroy()
1154 (void)hashtab_map(cladatum->permissions.table, perm_destroy, 0); in class_destroy()
1155 hashtab_destroy(cladatum->permissions.table); in class_destroy()
1156 constraint = cladatum->constraints; in class_destroy()
1169 constraint = cladatum->validatetrans; in class_destroy()
1182 if (cladatum->comkey) in class_destroy()
1183 free(cladatum->comkey); in class_destroy()
2080 class_datum_t *cladatum; in class_read() local
2086 cladatum = (class_datum_t *) calloc(1, sizeof(class_datum_t)); in class_read()
2087 if (!cladatum) in class_read()
2096 cladatum->s.value = le32_to_cpu(buf[2]); in class_read()
2098 if (symtab_init(&cladatum->permissions, PERM_SYMTAB_SIZE)) in class_read()
2100 cladatum->permissions.nprim = le32_to_cpu(buf[3]); in class_read()
2114 cladatum->comkey = malloc(len2 + 1); in class_read()
2115 if (!cladatum->comkey) in class_read()
2117 rc = next_entry(cladatum->comkey, fp, len2); in class_read()
2120 cladatum->comkey[len2] = 0; in class_read()
2122 cladatum->comdatum = hashtab_search(p->p_commons.table, in class_read()
2123 cladatum->comkey); in class_read()
2124 if (!cladatum->comdatum) { in class_read()
2125 ERR(fp->handle, "unknown common %s", cladatum->comkey); in class_read()
2130 if (perm_read(p, cladatum->permissions.table, fp)) in class_read()
2134 if (read_cons_helper(p, &cladatum->constraints, ncons, 0, fp)) in class_read()
2146 if (read_cons_helper(p, &cladatum->validatetrans, ncons, 1, fp)) in class_read()
2157 cladatum->default_user = le32_to_cpu(buf[0]); in class_read()
2158 cladatum->default_role = le32_to_cpu(buf[1]); in class_read()
2159 cladatum->default_range = le32_to_cpu(buf[2]); in class_read()
2169 cladatum->default_type = le32_to_cpu(buf[0]); in class_read()
2172 if (hashtab_insert(h, key, cladatum)) in class_read()
2178 class_destroy(key, cladatum, NULL); in class_read()