Lines Matching refs:dp

141 static void	pkgusage(struct cfstat *dp, struct cfent *pentry);
142 static void getinfo(struct cfstat *dp);
143 static void dumpinfo(struct cfstat *dp, int pkgLngth);
321 struct cfstat *dp, *choice;
329 for (dp = data; dp; dp = dp->next) {
330 pkgLgth = strlen(dp->pkginst);
334 for (dp = data; dp; dp = dp->next) {
336 if (dp->installed < 0)
339 choice = dp;
342 (strcmp(choice->pkginst, dp->pkginst) > 0))
343 choice = dp;
423 dumpinfo(struct cfstat *dp, int pkgLngth)
502 getinfo(dp);
504 if (dp->spooled)
506 "FILES", dp->spooled);
507 if (dp->installed)
509 "FILES", dp->installed);
510 if (dp->partial)
512 dp->partial);
513 if (dp->shared)
514 (void) printf(gettext("%20d shared pathnames\n"), dp->shared);
515 if (dp->link)
516 (void) printf(gettext("%20d linked files\n"), dp->link);
517 if (dp->dirs)
518 (void) printf(gettext("%20d directories\n"), dp->dirs);
519 if (dp->exec)
520 (void) printf(gettext("%20d executables\n"), dp->exec);
521 if (dp->setuid)
523 dp->setuid);
524 if (dp->info)
526 dp->info+1); /* pkgmap counts! */
528 if (dp->tblks)
530 dp->tblks);
538 struct cfstat *dp, *last;
540 dp = data;
542 while (dp) {
543 if (strcmp(dp->pkginst, pkginst) == NULL)
544 return (dp);
545 last = dp;
546 dp = dp->next;
548 dp = (struct cfstat *)calloc(1, sizeof (struct cfstat));
549 if (!dp) {
554 data = dp;
556 last->next = dp; /* link list */
557 (void) strcpy(dp->pkginst, pkginst);
558 return (dp);
639 struct cfstat *dp;
655 dp = fpkg(pinfo->pkg);
656 pkgusage(dp, &entry);
659 dp->shared++;
669 dp->partial++;
672 dp->installed++;
690 getinfo(struct cfstat *dp)
697 "%s/%s/pkgmap", pkgdir, dp->pkginst);
704 dp->spooled = 1; /* pkgmap counts! */
707 dp->spooled++;
708 pkgusage(dp, &entry);
725 pkgusage(struct cfstat *dp, struct cfent *pentry)
728 dp->info++;
731 dp->link++;
734 dp->dirs++;
739 dp->setuid++;
742 dp->exec++;
747 dp->tblks += nblock(pentry->cinfo.size);