Lines Matching refs:cladatum
984 class_datum_t *cladatum; in class_index() local
986 cladatum = (class_datum_t *) datum; in class_index()
988 if (!cladatum->s.value || cladatum->s.value > p->p_classes.nprim) in class_index()
990 if (p->p_class_val_to_name[cladatum->s.value - 1] != NULL) in class_index()
992 p->p_class_val_to_name[cladatum->s.value - 1] = (char *)key; in class_index()
993 p->class_val_to_struct[cladatum->s.value - 1] = cladatum; in class_index()
1287 class_datum_t *cladatum; in class_destroy() local
1293 cladatum = (class_datum_t *) datum; in class_destroy()
1294 if (cladatum == NULL) { in class_destroy()
1297 (void)hashtab_map(cladatum->permissions.table, perm_destroy, 0); in class_destroy()
1298 hashtab_destroy(cladatum->permissions.table); in class_destroy()
1299 constraint = cladatum->constraints; in class_destroy()
1312 constraint = cladatum->validatetrans; in class_destroy()
1325 if (cladatum->comkey) in class_destroy()
1326 free(cladatum->comkey); in class_destroy()
2228 class_datum_t *cladatum; in class_read() local
2234 cladatum = (class_datum_t *) calloc(1, sizeof(class_datum_t)); in class_read()
2235 if (!cladatum) in class_read()
2248 cladatum->s.value = le32_to_cpu(buf[2]); in class_read()
2250 if (symtab_init(&cladatum->permissions, PERM_SYMTAB_SIZE)) in class_read()
2252 cladatum->permissions.nprim = le32_to_cpu(buf[3]); in class_read()
2266 cladatum->comkey = malloc(len2 + 1); in class_read()
2267 if (!cladatum->comkey) in class_read()
2269 rc = next_entry(cladatum->comkey, fp, len2); in class_read()
2272 cladatum->comkey[len2] = 0; in class_read()
2274 cladatum->comdatum = hashtab_search(p->p_commons.table, in class_read()
2275 cladatum->comkey); in class_read()
2276 if (!cladatum->comdatum) { in class_read()
2277 ERR(fp->handle, "unknown common %s", cladatum->comkey); in class_read()
2282 if (perm_read(p, cladatum->permissions.table, fp)) in class_read()
2286 if (read_cons_helper(p, &cladatum->constraints, ncons, 0, fp)) in class_read()
2298 if (read_cons_helper(p, &cladatum->validatetrans, ncons, 1, fp)) in class_read()
2309 cladatum->default_user = le32_to_cpu(buf[0]); in class_read()
2310 cladatum->default_role = le32_to_cpu(buf[1]); in class_read()
2311 cladatum->default_range = le32_to_cpu(buf[2]); in class_read()
2321 cladatum->default_type = le32_to_cpu(buf[0]); in class_read()
2324 if (hashtab_insert(h, key, cladatum)) in class_read()
2330 class_destroy(key, cladatum, NULL); in class_read()