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