Lines Matching refs:pkg
55 valname(char *pkg, int wild)
61 if (wild && (strcmp(pkg, "all") == 0))
67 if ((strncmp(pkg, rsvrd[i], n) == 0) &&
68 (!pkg[n] || strchr(NMBRK, pkg[n])))
77 if (pt = strpbrk(pkg, NMBRK)) {
98 if (!isalpha((unsigned char)*pkg))
100 while (*pkg && !strchr(NMBRK, *pkg)) {
101 if (!isalnum((unsigned char)*pkg) && !strpbrk(pkg, "-+"))
103 count++, pkg++;
113 return (0); /* pkg is valid */
118 pkgnmchk(char *pkg, char *spec, int presvr4flg)
122 /* pkg is assumed to be non-NULL upon entry */
126 * NULL pkg must be valid and may be a wildcard spec
127 * "all" pkg must be valid and must be an instance
128 * "x.*" pkg must be valid and must be an instance of "x"
129 * "x*" pkg must be valid and must be an instance of "x"
132 if (valname(pkg, ((spec == NULL) ? 1 : 0)))
138 while (*pkg == *spec) {
141 else if (*pkg++ == '\0')
147 if ((pkg[0] == '\0') || (pkg[0] == '.'))