• Home
  • Raw
  • Download

Lines Matching refs:cladatum

1010 	class_datum_t *cladatum;  in class_index()  local
1012 cladatum = (class_datum_t *) datum; in class_index()
1014 if (!value_isvalid(cladatum->s.value, p->p_classes.nprim)) in class_index()
1016 if (p->p_class_val_to_name[cladatum->s.value - 1] != NULL) in class_index()
1018 p->p_class_val_to_name[cladatum->s.value - 1] = (char *)key; in class_index()
1019 p->class_val_to_struct[cladatum->s.value - 1] = cladatum; in class_index()
1312 class_datum_t *cladatum; in class_destroy() local
1317 cladatum = (class_datum_t *) datum; in class_destroy()
1318 if (cladatum == NULL) { in class_destroy()
1321 (void)hashtab_map(cladatum->permissions.table, perm_destroy, 0); in class_destroy()
1322 hashtab_destroy(cladatum->permissions.table); in class_destroy()
1323 constraint = cladatum->constraints; in class_destroy()
1331 constraint = cladatum->validatetrans; in class_destroy()
1339 if (cladatum->comkey) in class_destroy()
1340 free(cladatum->comkey); in class_destroy()
2229 class_datum_t *cladatum; in class_read() local
2235 cladatum = (class_datum_t *) calloc(1, sizeof(class_datum_t)); in class_read()
2236 if (!cladatum) in class_read()
2249 cladatum->s.value = le32_to_cpu(buf[2]); in class_read()
2251 if (symtab_init(&cladatum->permissions, PERM_SYMTAB_SIZE)) in class_read()
2253 cladatum->permissions.nprim = le32_to_cpu(buf[3]); in class_read()
2267 cladatum->comkey = malloc(len2 + 1); in class_read()
2268 if (!cladatum->comkey) in class_read()
2270 rc = next_entry(cladatum->comkey, fp, len2); in class_read()
2273 cladatum->comkey[len2] = 0; in class_read()
2275 cladatum->comdatum = hashtab_search(p->p_commons.table, in class_read()
2276 cladatum->comkey); in class_read()
2277 if (!cladatum->comdatum) { in class_read()
2278 ERR(fp->handle, "unknown common %s", cladatum->comkey); in class_read()
2283 if (perm_read(p, cladatum->permissions.table, fp, cladatum->permissions.nprim)) in class_read()
2287 if (read_cons_helper(p, &cladatum->constraints, ncons, 0, fp)) in class_read()
2299 if (read_cons_helper(p, &cladatum->validatetrans, ncons, 1, fp)) in class_read()
2310 cladatum->default_user = le32_to_cpu(buf[0]); in class_read()
2311 cladatum->default_role = le32_to_cpu(buf[1]); in class_read()
2312 cladatum->default_range = le32_to_cpu(buf[2]); in class_read()
2322 cladatum->default_type = le32_to_cpu(buf[0]); in class_read()
2325 if (hashtab_insert(h, key, cladatum)) in class_read()
2331 class_destroy(key, cladatum, NULL); in class_read()