Lines Matching refs:dr_info
129 } dr_info;
144 dr_info.do_not_continue = 1;
150 return (!dr_info.do_not_continue);
171 pkg_entry = &(dr_info.packages);
178 dr_info.total_pkgs++;
191 pkg_entry = dr_info.packages;
258 (void) fprintf(fp_dra, "DR_TYPE=%s\n", (dr_info.type == REMOVE_TYPE ?
267 wr_OK(fp_dra, "CONTINUE", 1, !(dr_info.do_not_continue));
269 wr_OK(fp_dra, "PARTIAL", dr_info.partial_set, dr_info.partial);
271 wr_OK(fp_dra, "RUNLEVEL", dr_info.runlevel_set, dr_info.runlevel);
273 (void) fprintf(fp_dra, "REQUESTEXITCODE=%d\n", dr_info.reqexit);
275 (void) fprintf(fp_dra, "CHECKINSTALLEXITCODE=%d\n", dr_info.checkexit);
277 wr_OK(fp_dra, "PKGFILES", dr_info.pkgfiles_set, dr_info.pkgfiles);
279 wr_OK(fp_dra, "DEPEND", dr_info.depend_set, dr_info.depend);
281 wr_OK(fp_dra, "SPACE", dr_info.space_set, dr_info.space);
283 wr_OK(fp_dra, "CONFLICT", dr_info.conflict_set, dr_info.conflict);
285 wr_OK(fp_dra, "SETUID", dr_info.setuid_set, dr_info.setuid);
287 wr_OK(fp_dra, "PRIV", dr_info.priv_set, dr_info.priv);
289 wr_OK(fp_dra, "PKGDIRS", dr_info.pkgdirs_set, dr_info.pkgdirs);
291 (void) fprintf(fp_dra, "EXITCODE=%d\n", dr_info.exitcode);
322 dr_info.total_fs_recs = n;
333 dr_info.total_ext_recs = 0;
351 dr_info.total_ext_recs++;
381 if (write(fd_drb, &dr_info, sizeof (struct drinfo)) == -1) {
387 pkg_entry = dr_info.packages;
397 for (n = 0; n < dr_info.total_fs_recs; n++) {
468 if (dr_info.partial != 0)
469 dr_info.partial_set = 0;
471 if (dr_info.runlevel != 0)
472 dr_info.runlevel_set = 0;
474 if (dr_info.pkgfiles != 0)
475 dr_info.pkgfiles_set = 0;
477 if (dr_info.depend != 0)
478 dr_info.depend_set = 0;
480 if (dr_info.space != 0)
481 dr_info.space_set = 0;
483 if (dr_info.conflict != 0)
484 dr_info.conflict_set = 0;
486 if (dr_info.setuid != 0)
487 dr_info.setuid_set = 0;
489 if (dr_info.priv != 0)
490 dr_info.priv_set = 0;
492 if (dr_info.pkgdirs != 0)
493 dr_info.pkgdirs_set = 0;
495 if (dr_info.reqexit == 0)
496 dr_info.reqexit_set = 0;
498 if (dr_info.checkexit == 0)
499 dr_info.checkexit_set = 0;
501 dr_info.packages = NULL;
502 tot_pkgs = dr_info.total_pkgs;
503 dr_info.total_pkgs = 0;
528 if (read(fd_cnb, &dr_info, sizeof (struct drinfo)) == -1) {
535 if (this_type != dr_info.type) {
539 (dr_info.type == REMOVE_TYPE) ?
557 for (n = 0; n < dr_info.total_fs_recs; n++) {
583 for (n = 0; n < dr_info.total_ext_recs; n++) {
599 dr_info.do_not_continue = 1;
773 if (dr_info.partial_set == 0) {
774 dr_info.partial_set = 1;
775 dr_info.partial = (value ? 1 : 0);
780 if (dr_info.runlevel_set == 0) {
781 dr_info.runlevel_set = 1;
782 dr_info.runlevel = (value ? 1 : 0);
787 if (dr_info.pkgfiles_set == 0) {
788 dr_info.pkgfiles_set = 1;
789 dr_info.pkgfiles = (value ? 1 : 0);
794 if (dr_info.depend_set == 0) {
795 dr_info.depend_set = 1;
796 dr_info.depend = (value ? 1 : 0);
801 if (dr_info.space_set == 0) {
802 dr_info.space_set = 1;
803 dr_info.space = (value ? 1 : 0);
808 if (dr_info.conflict_set == 0) {
809 dr_info.conflict_set = 1;
810 dr_info.conflict = (value ? 1 : 0);
815 if (dr_info.setuid_set == 0) {
816 dr_info.setuid_set = 1;
817 dr_info.setuid = (value ? 1 : 0);
822 if (dr_info.priv_set == 0) {
823 dr_info.priv_set = 1;
824 dr_info.priv = (value ? 1 : 0);
830 if (dr_info.pkgdirs_set == 0) {
831 dr_info.pkgdirs_set = 1;
832 dr_info.pkgdirs = (value ? 1 : 0);
838 if (dr_info.reqexit_set == 0) {
839 dr_info.reqexit_set = 1;
840 dr_info.reqexit = value;
846 if (dr_info.checkexit_set == 0) {
847 dr_info.checkexit_set = 1;
848 dr_info.checkexit = value;
854 if (dr_info.exitcode == 0) {
855 dr_info.exitcode = value;
879 dr_info.type = this_type;