Lines Matching refs:cl
86 static struct class_type *cl; variable
125 cl = (struct class_type *)calloc(MALSIZ, sizeof (struct class_type)); in splpkgmap()
126 if (cl == NULL) { in splpkgmap()
352 if (cl[i].first == 0) in splpkgmap()
353 cl[i].last = cl[i].first = (i ? cl[i-1].last : 1); in splpkgmap()
356 strcmp(f[j].ept->pkg_class, cl[i].name) == 0) { in splpkgmap()
358 f[j].ept->volno = cl[i].last; in splpkgmap()
360 f[j].ept->volno = cl[i].first; in splpkgmap()
393 free(cl[i].name); in splpkgmap()
394 free(cl); in splpkgmap()
590 if (strcmp(cl[i].name, aclass) == 0) { in addclass()
593 if (!cl[i].first || (vol < cl[i].first)) in addclass()
594 cl[i].first = vol; in addclass()
595 if (vol > cl[i].last) in addclass()
596 cl[i].last = vol; in addclass()
600 cl[nclass].name = qstrdup(aclass); in addclass()
601 cl[nclass].first = vol; in addclass()
602 cl[nclass].last = vol; in addclass()
604 cl = (struct class_type *)realloc((char *)cl, in addclass()
606 if (!cl) { in addclass()