Lines Matching defs:info
68 * The structure provided via "info" will contain malloc'd information;
75 * via "info" will have its elements deallocated and all files
87 pkginfo(struct pkginfo *info, char *pkginst, ...)
94 if (info == NULL) {
99 info->pkginst = NULL;
100 (void) fpkginfo(info, NULL);
120 info->pkginst = NULL;
121 if (fpkginfo(info, pkginst))
129 if (ckinst(pkginst, info->arch, info->version, ckarch,
140 fpkginfo(struct pkginfo *info, char *pkginst)
143 if (info == NULL) {
148 initpkg(info);
159 if (rdconfig(info, pkginst, NULL)) {
160 initpkg(info);
167 initpkg(struct pkginfo *info)
170 if (info->pkginst) {
171 free(info->pkginst);
172 if (info->arch)
173 free(info->arch);
174 if (info->version)
175 free(info->version);
176 if (info->basedir)
177 free(info->basedir);
178 if (info->name)
179 free(info->name);
180 if (info->vendor)
181 free(info->vendor);
182 if (info->catg)
183 free(info->catg);
186 info->pkginst = NULL;
187 info->arch = info->version = NULL;
188 info->basedir = info->name = NULL;
189 info->vendor = info->catg = NULL;
190 info->status = PI_UNKNOWN;
194 rdconfig(struct pkginfo *info, char *pkginst, char *ckvers)
203 return (svr4info(info, pkginst, ckvers));
226 memloc = &info->name;
228 memloc = &info->version;
230 memloc = &info->arch;
232 memloc = &info->vendor;
234 memloc = &info->basedir;
236 memloc = &info->catg;
256 info->status = (strcmp(pkgdir, get_PKGLOC()) ? PI_SPOOLED :
259 if (info->status == PI_INSTALLED) {
262 info->status = PI_PARTIAL;
266 info->status = PI_PARTIAL;
269 info->pkginst = strdup(pkginst);
274 svr4info(struct pkginfo *info, char *pkginst, char *ckvers)
316 if (info) {
317 info->name = strdup(line);
318 info->pkginst = strdup(temp);
319 if (!info->name || !info->pkginst) {
323 info->status = PI_PRESVR4;
324 info->version = NULL;
336 if (info && *pt)
337 info->version = strdup(pt);
410 * If we are searching the directory which contains info about