Lines Matching refs:cladatum
1022 class_datum_t *cladatum; in class_index() local
1024 cladatum = (class_datum_t *) datum; in class_index()
1026 if (!value_isvalid(cladatum->s.value, p->p_classes.nprim)) in class_index()
1028 if (p->p_class_val_to_name[cladatum->s.value - 1] != NULL) in class_index()
1030 p->p_class_val_to_name[cladatum->s.value - 1] = (char *)key; in class_index()
1031 p->class_val_to_struct[cladatum->s.value - 1] = cladatum; in class_index()
1325 class_datum_t *cladatum; in class_destroy() local
1330 cladatum = (class_datum_t *) datum; in class_destroy()
1331 if (cladatum == NULL) { in class_destroy()
1334 (void)hashtab_map(cladatum->permissions.table, perm_destroy, 0); in class_destroy()
1335 hashtab_destroy(cladatum->permissions.table); in class_destroy()
1336 constraint = cladatum->constraints; in class_destroy()
1344 constraint = cladatum->validatetrans; in class_destroy()
1352 if (cladatum->comkey) in class_destroy()
1353 free(cladatum->comkey); in class_destroy()
2244 class_datum_t *cladatum; in class_read() local
2250 cladatum = (class_datum_t *) calloc(1, sizeof(class_datum_t)); in class_read()
2251 if (!cladatum) in class_read()
2264 cladatum->s.value = le32_to_cpu(buf[2]); in class_read()
2266 if (symtab_init(&cladatum->permissions, PERM_SYMTAB_SIZE)) in class_read()
2268 cladatum->permissions.nprim = le32_to_cpu(buf[3]); in class_read()
2269 if (cladatum->permissions.nprim > PERM_SYMTAB_SIZE) in class_read()
2284 cladatum->comkey = malloc(len2 + 1); in class_read()
2285 if (!cladatum->comkey) in class_read()
2287 rc = next_entry(cladatum->comkey, fp, len2); in class_read()
2290 cladatum->comkey[len2] = 0; in class_read()
2292 cladatum->comdatum = hashtab_search(p->p_commons.table, in class_read()
2293 cladatum->comkey); in class_read()
2294 if (!cladatum->comdatum) { in class_read()
2295 ERR(fp->handle, "unknown common %s", cladatum->comkey); in class_read()
2300 if (perm_read(p, cladatum->permissions.table, fp, cladatum->permissions.nprim)) in class_read()
2304 if (read_cons_helper(p, &cladatum->constraints, ncons, 0, fp)) in class_read()
2316 if (read_cons_helper(p, &cladatum->validatetrans, ncons, 1, fp)) in class_read()
2327 cladatum->default_user = le32_to_cpu(buf[0]); in class_read()
2328 cladatum->default_role = le32_to_cpu(buf[1]); in class_read()
2329 cladatum->default_range = le32_to_cpu(buf[2]); in class_read()
2339 cladatum->default_type = le32_to_cpu(buf[0]); in class_read()
2342 if (hashtab_insert(h, key, cladatum)) in class_read()
2348 class_destroy(key, cladatum, NULL); in class_read()