Lines Matching defs:pkginst
82 pkginfo(struct pkginfo *info, char *pkginst, ...)
88 va_start(ap, pkginst);
93 if (pkginst == NULL) {
94 info->pkginst = NULL;
104 if (pkgnmchk(pkginst, "all", 1)) {
106 pkginst = fpkginst(pkginst, ckarch, ckvers);
107 if (pkginst == NULL)
115 info->pkginst = NULL;
116 if (fpkginfo(info, pkginst))
124 if (ckinst(pkginst, info->arch, info->version, ckarch,
135 fpkginfo(struct pkginfo *info, char *pkginst)
145 if (pkginst == NULL)
147 else if (pkgnmchk(pkginst, "all", 1)) {
154 if (rdconfig(info, pkginst, NULL)) {
165 if (info->pkginst) {
166 free(info->pkginst);
181 info->pkginst = NULL;
189 rdconfig(struct pkginfo *info, char *pkginst, char *ckvers)
196 if ((fp = pkginfopen(pkgdir, pkginst)) == NULL) {
198 return (svr4info(info, pkginst, ckvers));
256 "%s/%s/!I-Lock!", pkgdir, pkginst);
261 pkgdir, pkginst);
266 info->pkginst = strdup(pkginst);
271 svr4info(struct pkginfo *info, char *pkginst, char *ckvers)
279 if (strcmp(pkginst, "all")) {
284 /* determine pkginst - remove '.*' extension, if any */
285 (void) strncpy(temp, pkginst, PKGSIZ);
315 info->pkginst = strdup(temp);
316 if (!info->name || !info->pkginst) {
339 ckinst(char *pkginst, char *pkgarch, char *pkgvers, char *ckarch, char *ckvers)
347 if (compver(pkginst, ckvers))
358 static char pkginst[PKGSIZ+1];
402 (void) strcpy(pkginst, dp->d_name);
403 return (pkginst);
427 static char pkginst[PKGSIZ];
460 (void) strcpy(pkginst, dp->d_name);
461 return (pkginst);
502 compver(char *pkginst, char *version)
508 get_PKGLOC(), pkginst);