Lines Matching full:records
16 record_t ** records, in clear_obsolete() argument
31 if (rtable->key_extract(handle, records[i], &key) < 0) in clear_obsolete()
41 rtable->free(records[i]); in clear_obsolete()
42 records[i] = NULL; in clear_obsolete()
61 record_t ** records, unsigned int nrecords, int mode) in load_records() argument
74 if (!records[i]) in load_records()
77 if (rtable->key_extract(handle, records[i], &rkey) < 0) in load_records()
81 dtable->set(handle, dbase, rkey, records[i]) < 0) in load_records()
85 dtable->modify(handle, dbase, rkey, records[i]) < 0) in load_records()
151 record_t **records = NULL; in semanage_base_merge_components() local
165 /* List all records */ in semanage_base_merge_components()
167 &records, &nrecords) < 0) in semanage_base_merge_components()
170 /* Sort records on MODE_SORT */ in semanage_base_merge_components()
172 qsort(records, nrecords, sizeof(record_t *), in semanage_base_merge_components()
179 clear_obsolete(handle, records, nrecords, src, dst) < 0) { in semanage_base_merge_components()
184 /* Load records */ in semanage_base_merge_components()
185 if (load_records(handle, dst, records, nrecords, mode) < 0) { in semanage_base_merge_components()
194 rtable->free(records[j]); in semanage_base_merge_components()
195 free(records); in semanage_base_merge_components()