Lines Matching refs:nspec
29 unsigned int nspec; /* total number of specifications */
56 for (ii = 0; ii < data->nspec; ii++) {
58 for (jj = ii + 1; jj < data->nspec; jj++) {
92 unsigned int nspec = data->nspec;
113 spec_arr[nspec].property_key = strdup(prop);
114 if (!spec_arr[nspec].property_key) {
122 spec_arr[nspec].lr.ctx_raw = strdup(context);
123 if (!spec_arr[nspec].lr.ctx_raw) {
131 if (selabel_validate(rec, &spec_arr[nspec].lr) < 0) {
134 path, lineno, spec_arr[nspec].lr.ctx_raw);
139 data->nspec = ++nspec;
181 data->nspec = 0;
184 && data->nspec < maxnspec) {
199 if (data->nspec == 0) {
205 malloc(sizeof(spec_t) * data->nspec)))
208 memset(data->spec_arr, 0, sizeof(spec_t)*data->nspec);
209 maxnspec = data->nspec;
214 qsort(data->spec_arr, data->nspec, sizeof(struct spec), cmp);
231 for (i = 0; i < data->nspec; i++) {
253 if (!data->nspec) {
258 for (i = 0; i < data->nspec; i++) {
267 if (i >= data->nspec) {