Lines Matching defs:spec
122 pkgnmchk(char *pkg, char *spec, int presvr4flg)
127 * this routine reacts based on the value passed in spec:
128 * NULL pkg must be valid and may be a wildcard spec
134 if (valname(pkg, ((spec == NULL) ? 1 : 0), presvr4flg))
137 if ((spec == NULL) || (strcmp(spec, "all") == 0))
140 while (*pkg == *spec) {
141 if ((strcmp(spec, WILD1) == 0) || (strcmp(spec, WILD2) == 0) ||
142 (strcmp(spec, WILD3) == 0))
143 break; /* wildcard spec, so stop right here */
146 spec++;
149 if ((strcmp(spec, WILD1) == 0) || (strcmp(spec, WILD2) == 0) ||
150 (strcmp(spec, WILD3) == 0)) {
154 if ((spec[0] == '\0') && (strcmp(pkg, WILD3) == 0))