Lines Matching refs:info

63  *	The structure provided via "info" will contain malloc'd information;
70 * via "info" will have its elements deallocated and all files
82 pkginfo(struct pkginfo *info, char *pkginst, ...)
89 if (info == NULL) {
94 info->pkginst = NULL;
95 (void) fpkginfo(info, 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)
138 if (info == NULL) {
143 initpkg(info);
154 if (rdconfig(info, pkginst, NULL)) {
155 initpkg(info);
162 initpkg(struct pkginfo *info)
165 if (info->pkginst) {
166 free(info->pkginst);
167 if (info->arch)
168 free(info->arch);
169 if (info->version)
170 free(info->version);
171 if (info->basedir)
172 free(info->basedir);
173 if (info->name)
174 free(info->name);
175 if (info->vendor)
176 free(info->vendor);
177 if (info->catg)
178 free(info->catg);
181 info->pkginst = NULL;
182 info->arch = info->version = NULL;
183 info->basedir = info->name = NULL;
184 info->vendor = info->catg = NULL;
185 info->status = PI_UNKNOWN;
189 rdconfig(struct pkginfo *info, char *pkginst, char *ckvers)
198 return (svr4info(info, pkginst, ckvers));
221 memloc = &info->name;
223 memloc = &info->version;
225 memloc = &info->arch;
227 memloc = &info->vendor;
229 memloc = &info->basedir;
231 memloc = &info->catg;
251 info->status = (strcmp(pkgdir, get_PKGLOC()) ? PI_SPOOLED :
254 if (info->status == PI_INSTALLED) {
258 info->status = PI_PARTIAL;
263 info->status = PI_PARTIAL;
266 info->pkginst = strdup(pkginst);
271 svr4info(struct pkginfo *info, char *pkginst, char *ckvers)
313 if (info) {
314 info->name = strdup(line);
315 info->pkginst = strdup(temp);
316 if (!info->name || !info->pkginst) {
320 info->status = PI_PRESVR4;
321 info->version = NULL;
333 if (info && *pt)
334 info->version = strdup(pt);
407 * If we are searching the directory which contains info about