Symbol: pkg
sys/dev/acpica/acpi.c
2237
acpi_ForeachPackageObject(ACPI_OBJECT *pkg,
sys/dev/acpica/acpi.c
2243
if (pkg == NULL || pkg->Type != ACPI_TYPE_PACKAGE)
sys/dev/acpica/acpi.c
2248
comp = pkg->Package.Elements;
sys/dev/acpica/acpi.c
2249
for (; i < pkg->Package.Count; i++, comp++)
sys/dev/acpica/acpi_cpu_cstate.c
487
ACPI_OBJECT *pkg;
sys/dev/acpica/acpi_cpu_cstate.c
535
pkg = &top->Package.Elements[i + 1];
sys/dev/acpica/acpi_cpu_cstate.c
536
if (!ACPI_PKG_VALID(pkg, 4) ||
sys/dev/acpica/acpi_cpu_cstate.c
537
acpi_PkgInt32(pkg, 1, &cx_ptr->type) != 0 ||
sys/dev/acpica/acpi_cpu_cstate.c
538
acpi_PkgInt32(pkg, 2, &cx_ptr->trans_lat) != 0 ||
sys/dev/acpica/acpi_cpu_cstate.c
539
acpi_PkgInt32(pkg, 3, &cx_ptr->power) != 0) {
sys/dev/acpica/acpi_cpu_cstate.c
581
acpi_PkgRawGas(pkg, 0, &cx_ptr->gas);
sys/dev/acpica/acpi_cpu_pstate.c
582
ACPI_OBJECT *pkg;
sys/dev/acpica/acpi_cpu_pstate.c
589
pkg = &obj->Package.Elements[i];
sys/dev/acpica/acpi_cpu_pstate.c
590
if (!ACPI_PKG_VALID(pkg, ACPI_PSS_PX_NENTRY)) {
sys/dev/acpica/acpi_cpu_pstate.c
597
if (acpi_PkgInt32(pkg, j, ptr[j]) != 0) {
sys/dev/acpica/acpivar.h
491
#define ACPI_PKG_VALID(pkg, size) \
sys/dev/acpica/acpivar.h
492
((pkg) != NULL && (pkg)->Type == ACPI_TYPE_PACKAGE && \
sys/dev/acpica/acpivar.h
493
(pkg)->Package.Count >= (size))
sys/dev/acpica/acpivar.h
494
#define ACPI_PKG_VALID_EQ(pkg, size) \
sys/dev/acpica/acpivar.h
495
(ACPI_PKG_VALID((pkg), (size)) && (pkg)->Package.Count == (size))
sys/dev/apple/fw/apple_fw_dsm.c
75
ACPI_OBJECT *pkg)
sys/dev/apple/fw/apple_fw_dsm.c
81
if (pkg->Type != ACPI_TYPE_PACKAGE)
sys/dev/apple/fw/apple_fw_dsm.c
84
for (i = 0; i + 1 < pkg->Package.Count; i += 2) {
sys/dev/apple/fw/apple_fw_dsm.c
88
elem = &pkg->Package.Elements[i];
sys/dev/apple/fw/apple_fw_dsm.c
96
elem = &pkg->Package.Elements[i + 1];
sys/dev/drm/i915/intel_acpi.c
104
ACPI_FREE(pkg);
sys/dev/drm/i915/intel_acpi.c
75
union acpi_object *pkg, *connector_count;
sys/dev/drm/i915/intel_acpi.c
77
pkg = acpi_evaluate_dsm_typed(dhandle, &intel_dsm_guid,
sys/dev/drm/i915/intel_acpi.c
80
if (!pkg) {
sys/dev/drm/i915/intel_acpi.c
85
connector_count = &pkg->package.elements[0];
sys/dev/drm/i915/intel_acpi.c
88
for (i = 1; i < pkg->package.count; i++) {
sys/dev/drm/i915/intel_acpi.c
89
union acpi_object *obj = &pkg->package.elements[i];
usr.bin/dsynth/build.c
1066
startworker(pkg_t *pkg, worker_t *work)
usr.bin/dsynth/build.c
1075
childInstallPkgDeps_recurse(NULL, &pkg->idepon_list, 0, 1, 0);
usr.bin/dsynth/build.c
1076
childInstallPkgDeps_recurse(NULL, &pkg->idepon_list, 1, 1, 0);
usr.bin/dsynth/build.c
1081
work->index, pkg->portdir,
usr.bin/dsynth/build.c
1082
pkg->idep_count, pkg->depi_count, pkg->depi_depth,
usr.bin/dsynth/build.c
1086
pkg->flags |= PKGF_RUNNING;
usr.bin/dsynth/build.c
1087
work->pkg = pkg;
usr.bin/dsynth/build.c
1091
doHook(pkg, "hook_pkg_started", HookPkgStarted, 0);
usr.bin/dsynth/build.c
1128
pkg_t *pkg;
usr.bin/dsynth/build.c
1138
if (work->pkg == NULL)
usr.bin/dsynth/build.c
1158
pkg = work->pkg;
usr.bin/dsynth/build.c
1159
if (pkg->flags & (PKGF_ERROR|PKGF_NOBUILD)) {
usr.bin/dsynth/build.c
1169
pkg->flags |= PKGF_SUCCESS;
usr.bin/dsynth/build.c
1171
pkg->flags |= PKGF_FAILURE;
usr.bin/dsynth/build.c
1173
scount = buildskipcount_dueto(pkg, 1);
usr.bin/dsynth/build.c
1174
buildskipcount_dueto(pkg, 0);
usr.bin/dsynth/build.c
1186
if (pkg->flags & PKGF_NOBUILD) {
usr.bin/dsynth/build.c
1189
reason = buildskipreason(NULL, pkg);
usr.bin/dsynth/build.c
1190
if (pkg->flags & PKGF_NOBUILD_I) {
usr.bin/dsynth/build.c
1193
work->index, pkg->portdir,
usr.bin/dsynth/build.c
1195
RunStatsUpdateCompletion(work, DLOG_SKIP, pkg,
usr.bin/dsynth/build.c
1197
doHook(pkg, "hook_pkg_ignored",
usr.bin/dsynth/build.c
1202
work->index, pkg->portdir,
usr.bin/dsynth/build.c
1204
RunStatsUpdateCompletion(work, DLOG_SKIP, pkg,
usr.bin/dsynth/build.c
1206
doHook(pkg, "hook_pkg_skipped",
usr.bin/dsynth/build.c
1215
work->index, pkg->portdir, skipbuf,
usr.bin/dsynth/build.c
1218
RunStatsUpdateCompletion(work, DLOG_FAIL, pkg,
usr.bin/dsynth/build.c
1220
doHook(pkg, "hook_pkg_failure", HookPkgFailure, 0);
usr.bin/dsynth/build.c
1227
key.dptr = pkg->portdir;
usr.bin/dsynth/build.c
1228
key.dsize = strlen(pkg->portdir);
usr.bin/dsynth/build.c
1229
data.dptr = &pkg->crc32;
usr.bin/dsynth/build.c
1230
data.dsize = sizeof(pkg->crc32);
usr.bin/dsynth/build.c
1239
pkg->flags |= PKGF_SUCCESS;
usr.bin/dsynth/build.c
1243
work->index, pkg->portdir, h, m, s);
usr.bin/dsynth/build.c
1244
RunStatsUpdateCompletion(work, DLOG_SUCC, pkg, "", "");
usr.bin/dsynth/build.c
1245
doHook(pkg, "hook_pkg_success", HookPkgSuccess, 0);
usr.bin/dsynth/build.c
1248
pkg->flags &= ~PKGF_BUILDLIST;
usr.bin/dsynth/build.c
1249
pkg->flags &= ~PKGF_RUNNING;
usr.bin/dsynth/build.c
1250
work->pkg = NULL;
usr.bin/dsynth/build.c
1259
work->index, pkg->portdir);
usr.bin/dsynth/build.c
1471
pkg_t *pkg;
usr.bin/dsynth/build.c
1502
ddassert(work->pkg);
usr.bin/dsynth/build.c
1516
if (work->pkg->flags & PKGF_DEBUGSTOP)
usr.bin/dsynth/build.c
1546
work->pkg->portdir, work->pkg->pkgfile,
usr.bin/dsynth/build.c
1566
pkg = work->pkg;
usr.bin/dsynth/build.c
1619
pkg->flags |= PKGF_SUCCESS;
usr.bin/dsynth/build.c
1622
pkg->flags |= PKGF_FAILURE;
usr.bin/dsynth/build.c
1625
pkg->flags |= PKGF_FAILURE;
usr.bin/dsynth/build.c
1706
if (PKGLIST_EMPTY(&work->pkg->idepon_list))
usr.bin/dsynth/build.c
1716
childInstallPkgDeps_recurse(fp, &work->pkg->idepon_list, 0, 1, 0);
usr.bin/dsynth/build.c
1717
childInstallPkgDeps_recurse(fp, &work->pkg->idepon_list, 1, 1, 0);
usr.bin/dsynth/build.c
1743
pkg_t *pkg;
usr.bin/dsynth/build.c
1749
pkg = link->pkg;
usr.bin/dsynth/build.c
1760
ndepth = (pkg->flags & PKGF_DUMMY) ? depth : depth + 1;
usr.bin/dsynth/build.c
1761
nfirst = (pkg->flags & PKGF_DUMMY) ? 1 : 0;
usr.bin/dsynth/build.c
1780
if (pkg->pkgfile == NULL && (pkg->flags & PKGF_DUMMY)) {
usr.bin/dsynth/build.c
1781
pkg_t *spkg = pkg->idepon_list.next->pkg;
usr.bin/dsynth/build.c
1788
pkg->portdir,
usr.bin/dsynth/build.c
1791
pkg = spkg;
usr.bin/dsynth/build.c
1798
pkg->portdir);
usr.bin/dsynth/build.c
1804
if (pkg->dsynth_install_flg == 1) {
usr.bin/dsynth/build.c
1805
pkg->dsynth_install_flg = 0;
usr.bin/dsynth/build.c
1807
&pkg->idepon_list,
usr.bin/dsynth/build.c
1816
if (pkg->dsynth_install_flg) {
usr.bin/dsynth/build.c
1817
if (DebugOpt >= 2 && pkg->pkgfile && fp) {
usr.bin/dsynth/build.c
1819
pkg->pkgfile);
usr.bin/dsynth/build.c
1826
tot += childInstallPkgDeps_recurse(fp, &pkg->idepon_list,
usr.bin/dsynth/build.c
1828
if (pkg->dsynth_install_flg) {
usr.bin/dsynth/build.c
1833
pkg->dsynth_install_flg = 1;
usr.bin/dsynth/build.c
1838
if (fp && pkg->pkgfile) {
usr.bin/dsynth/build.c
1840
pkg->pkgfile);
usr.bin/dsynth/build.c
1843
pkg->pkgfile);
usr.bin/dsynth/build.c
1846
pkg->portdir);
usr.bin/dsynth/build.c
1849
if (pkg->pkgfile) {
usr.bin/dsynth/build.c
1854
asprintf(&path, "%s/%s", RepositoryPath, pkg->pkgfile);
usr.bin/dsynth/build.c
1855
ptr = strrchr(pkg->pkgfile, '.');
usr.bin/dsynth/build.c
1965
pkg_t pkg;
usr.bin/dsynth/build.c
2115
bzero(&pkg, sizeof(pkg));
usr.bin/dsynth/build.c
2116
pkg.portdir = portdir; /* sans flavor */
usr.bin/dsynth/build.c
2117
pkg.pkgfile = pkgfile;
usr.bin/dsynth/build.c
2126
asprintf(&pkg.logfile,
usr.bin/dsynth/build.c
2132
tmpfd = open(pkg.logfile, O_RDWR|O_CREAT|O_TRUNC, 0666);
usr.bin/dsynth/build.c
2136
slot, pkg.portdir, pkg.logfile);
usr.bin/dsynth/build.c
2141
slot, pkg.logfile);
usr.bin/dsynth/build.c
2151
work->pkg = &pkg;
usr.bin/dsynth/build.c
2314
work->basedir, pkg.portdir, pkg.pkgfile);
usr.bin/dsynth/build.c
2315
asprintf(&b2, "%s/%s", RepositoryPath, pkg.pkgfile);
usr.bin/dsynth/build.c
2319
work->index, pkg.portdir, b1, b2);
usr.bin/dsynth/build.c
2374
pkg_t *pkg = work->pkg;
usr.bin/dsynth/build.c
2391
work->index, phase, pkg->portdir, WorkerFlavorPrt);
usr.bin/dsynth/build.c
2396
work->index, pkg->portdir);
usr.bin/dsynth/build.c
2594
snprintf(buf, sizeof(buf), "/xports/%s", pkg->portdir);
usr.bin/dsynth/build.c
2605
snprintf(buf, sizeof(buf), "/xports/%s", pkg->portdir);
usr.bin/dsynth/build.c
2615
work->index, pkg->logfile, strerror(errno));
usr.bin/dsynth/build.c
2622
fdlog = open(pkg->logfile, O_RDWR|O_CREAT|O_APPEND, 0644);
usr.bin/dsynth/build.c
2625
work->index, pkg->portdir,
usr.bin/dsynth/build.c
2626
pkg->logfile, strerror(errno));
usr.bin/dsynth/build.c
2649
work->index, pkg->portdir, phase);
usr.bin/dsynth/build.c
2699
pkg->portdir, phase, wdog_scaled, pid);
usr.bin/dsynth/build.c
2705
work->index, pkg->portdir, phase,
usr.bin/dsynth/build.c
2734
work->index, pkg->portdir, WorkerFlavorPrt);
usr.bin/dsynth/build.c
2783
work->index, pkg->portdir, phase,
usr.bin/dsynth/build.c
2789
work->index, pkg->portdir, phase);
usr.bin/dsynth/build.c
2838
work->index, pkg->portdir,
usr.bin/dsynth/build.c
2922
buildskipreason(pkglink_t *parent, pkg_t *pkg)
usr.bin/dsynth/build.c
2932
if ((pkg->flags & PKGF_NOBUILD_I) && pkg->ignore)
usr.bin/dsynth/build.c
2933
asprintf(&reason, "%s ", pkg->ignore);
usr.bin/dsynth/build.c
2936
PKGLIST_FOREACH(link, &pkg->idepon_list) {
usr.bin/dsynth/build.c
2941
scan = link->pkg;
usr.bin/dsynth/build.c
2947
stack.pkg = scan;
usr.bin/dsynth/build.c
2983
buildskipcount_dueto(pkg_t *pkg, int mode)
usr.bin/dsynth/build.c
2990
PKGLIST_FOREACH(link, &pkg->deponi_list) {
usr.bin/dsynth/build.c
2991
scan = link->pkg;
usr.bin/dsynth/build.c
3106
doHook(pkg_t *pkg, const char *id, const char *path, int waitfor)
usr.bin/dsynth/build.c
3112
if (pkg)
usr.bin/dsynth/build.c
3113
queuebulk(pkg->portdir, id, path, pkg->pkgfile);
usr.bin/dsynth/build.c
421
build_find_leaves(pkg_t *parent, pkg_t *pkg, pkg_t ***build_tailp,
usr.bin/dsynth/build.c
440
depth, pkg->portdir, pkg->flags);
usr.bin/dsynth/build.c
441
if (pkg->flags & PKGF_BUILDLIST) {
usr.bin/dsynth/build.c
444
return (pkg->idep_count);
usr.bin/dsynth/build.c
450
PKGLIST_FOREACH(link, &pkg->idepon_list) {
usr.bin/dsynth/build.c
451
scan = link->pkg;
usr.bin/dsynth/build.c
52
static int build_find_leaves(pkg_t *parent, pkg_t *pkg,
usr.bin/dsynth/build.c
55
static int buildCalculateDepiDepth(pkg_t *pkg);
usr.bin/dsynth/build.c
56
static void build_clear_trav(pkg_t *pkg);
usr.bin/dsynth/build.c
567
idep_count += build_find_leaves(pkg, scan, build_tailp,
usr.bin/dsynth/build.c
585
pkg->idep_count = idep_count;
usr.bin/dsynth/build.c
586
pkg->flags |= PKGF_BUILDTRAV;
usr.bin/dsynth/build.c
591
if ((pkg->flags & PKGF_NOBUILD) == 0 && (*app & PKGF_NOBUILD)) {
usr.bin/dsynth/build.c
593
} else if ((pkg->flags & PKGF_ERROR) == 0 && (*app & PKGF_ERROR)) {
usr.bin/dsynth/build.c
596
pkg->flags |= *app & ~PKGF_NOTREADY;
usr.bin/dsynth/build.c
60
static void startworker(pkg_t *pkg, worker_t *work);
usr.bin/dsynth/build.c
604
if ((pkg->flags & PKGF_PACKAGED) &&
usr.bin/dsynth/build.c
605
((pkg->flags | *app) & (PKGF_NOTREADY|PKGF_ERROR|PKGF_NOBUILD))) {
usr.bin/dsynth/build.c
606
pkg->flags &= ~PKGF_PACKAGED;
usr.bin/dsynth/build.c
607
ddassert(pkg->pkgfile);
usr.bin/dsynth/build.c
608
asprintf(&buf, "%s/%s", RepositoryPath, pkg->pkgfile);
usr.bin/dsynth/build.c
610
pkg->flags |= PKGF_PACKAGED;
usr.bin/dsynth/build.c
614
pkg->portdir, buf);
usr.bin/dsynth/build.c
618
pkg->portdir, buf);
usr.bin/dsynth/build.c
623
pkg->portdir, buf);
usr.bin/dsynth/build.c
632
if (pkg->ignore) {
usr.bin/dsynth/build.c
633
pkg->flags |= PKGF_NOBUILD_I;
usr.bin/dsynth/build.c
639
if (pkg->flags & PKGF_ERROR) {
usr.bin/dsynth/build.c
644
ddprintf(depth, "} (ERROR - %s)\n", pkg->portdir);
usr.bin/dsynth/build.c
661
} else if (pkg->flags & PKGF_SUCCESS) {
usr.bin/dsynth/build.c
662
ddprintf(depth, "} (SUCCESS - %s)\n", pkg->portdir);
usr.bin/dsynth/build.c
663
} else if (pkg->flags & PKGF_DUMMY) {
usr.bin/dsynth/build.c
682
if (pkg->flags & PKGF_NOBUILD) {
usr.bin/dsynth/build.c
688
pkg->flags |= PKGF_SUCCESS;
usr.bin/dsynth/build.c
693
pkg->portdir);
usr.bin/dsynth/build.c
696
pkg->portdir);
usr.bin/dsynth/build.c
697
RunStatsUpdateCompletion(NULL, DLOG_SUCC, pkg, "", "");
usr.bin/dsynth/build.c
700
} else if (pkg->flags & PKGF_PACKAGED) {
usr.bin/dsynth/build.c
707
pkg->flags |= PKGF_SUCCESS;
usr.bin/dsynth/build.c
712
pkg->portdir);
usr.bin/dsynth/build.c
717
pkg->portdir, pkg->flags);
usr.bin/dsynth/build.c
72
static char *buildskipreason(pkglink_t *parent, pkg_t *pkg);
usr.bin/dsynth/build.c
73
static int buildskipcount_dueto(pkg_t *pkg, int mode);
usr.bin/dsynth/build.c
732
if (pkg->flags & PKGF_NOBUILD_I)
usr.bin/dsynth/build.c
734
pkg->portdir);
usr.bin/dsynth/build.c
735
else if (pkg->flags & PKGF_NOBUILD)
usr.bin/dsynth/build.c
737
pkg->portdir);
usr.bin/dsynth/build.c
739
ddprintf(depth, "} (ADDLIST - %s)\n", pkg->portdir);
usr.bin/dsynth/build.c
740
pkg->flags |= PKGF_BUILDLIST;
usr.bin/dsynth/build.c
741
**build_tailp = pkg;
usr.bin/dsynth/build.c
742
*build_tailp = &pkg->build_next;
usr.bin/dsynth/build.c
743
pkg->build_next = NULL;
usr.bin/dsynth/build.c
752
build_clear_trav(pkg_t *pkg)
usr.bin/dsynth/build.c
757
pkg->flags &= ~PKGF_BUILDTRAV;
usr.bin/dsynth/build.c
758
PKGLIST_FOREACH(link, &pkg->idepon_list) {
usr.bin/dsynth/build.c
759
scan = link->pkg;
usr.bin/dsynth/build.c
76
static void doHook(pkg_t *pkg, const char *id, const char *path, int waitfor);
usr.bin/dsynth/build.c
771
buildCalculateDepiDepth(pkg_t *pkg)
usr.bin/dsynth/build.c
778
if (pkg->depi_depth)
usr.bin/dsynth/build.c
779
return(pkg->depi_depth + 1);
usr.bin/dsynth/build.c
780
pkg->flags |= PKGF_BUILDLOOP;
usr.bin/dsynth/build.c
781
PKGLIST_FOREACH(link, &pkg->deponi_list) {
usr.bin/dsynth/build.c
782
scan = link->pkg;
usr.bin/dsynth/build.c
789
pkg->flags &= ~PKGF_BUILDLOOP;
usr.bin/dsynth/build.c
790
pkg->depi_depth = best_depth;
usr.bin/dsynth/build.c
806
pkg_t *pkg;
usr.bin/dsynth/build.c
827
for (pkg = *build_listp; pkg; pkg = pkg->build_next)
usr.bin/dsynth/build.c
833
for (pkg = *build_listp; pkg; pkg = pkg->build_next) {
usr.bin/dsynth/build.c
834
idep_ary[count] = pkg;
usr.bin/dsynth/build.c
835
depi_ary[count] = pkg;
usr.bin/dsynth/dsynth.h
122
struct pkg *pkg;
usr.bin/dsynth/dsynth.h
137
struct pkg *build_next; /* topology inversion build list */
usr.bin/dsynth/dsynth.h
138
struct pkg *bnext; /* linked list from bulk return */
usr.bin/dsynth/dsynth.h
139
struct pkg *hnext1; /* hash based on portdir */
usr.bin/dsynth/dsynth.h
140
struct pkg *hnext2; /* hash based on pkgfile */
usr.bin/dsynth/dsynth.h
307
pkg_t *pkg;
usr.bin/dsynth/dsynth.h
497
void (*updateCompletion)(worker_t *work, int dlogid, pkg_t *pkg,
usr.bin/dsynth/dsynth.h
657
void RunStatsUpdateCompletion(worker_t *work, int logid, pkg_t *pkg,
usr.bin/dsynth/html.c
239
else if (work->pkg)
usr.bin/dsynth/html.c
240
origin = work->pkg->portdir;
usr.bin/dsynth/html.c
389
HtmlUpdateCompletion(worker_t *work, int dlogid, pkg_t *pkg,
usr.bin/dsynth/html.c
422
if (pkg->flags & PKGF_DUMMY)
usr.bin/dsynth/html.c
496
pkg->portdir,
usr.bin/dsynth/monitor.c
149
copy.pkg = NULL; /* safety */
usr.bin/dsynth/monitor.c
150
if (work->pkg)
usr.bin/dsynth/monitor.c
151
SNPRINTF(rs->slots[i].portdir, "%s", work->pkg->portdir);
usr.bin/dsynth/ncurses.c
315
else if (work->pkg)
usr.bin/dsynth/ncurses.c
316
origin = work->pkg->portdir;
usr.bin/dsynth/pkglist.c
1038
pkg = allocpkg();
usr.bin/dsynth/pkglist.c
1040
asprintf(&pkg->portdir, "%s/%s@%s", bulk->s1, bulk->s2, flavor);
usr.bin/dsynth/pkglist.c
1042
asprintf(&pkg->portdir, "%s/%s", bulk->s1, bulk->s2);
usr.bin/dsynth/pkglist.c
1054
asprintf(&pkg->version, "%s", ptr);
usr.bin/dsynth/pkglist.c
1057
asprintf(&pkg->pkgfile, "%s", ptr);
usr.bin/dsynth/pkglist.c
1060
asprintf(&pkg->distfiles, "%s", ptr);
usr.bin/dsynth/pkglist.c
1063
pkg->distsubdir = strdup_or_null(ptr);
usr.bin/dsynth/pkglist.c
1066
pkg->make_jobs_number = strtol(ptr, NULL, 0);
usr.bin/dsynth/pkglist.c
1069
pkg->ignore = strdup_or_null(ptr);
usr.bin/dsynth/pkglist.c
1072
pkg->fetch_deps = strdup_or_null(ptr);
usr.bin/dsynth/pkglist.c
1075
pkg->ext_deps = strdup_or_null(ptr);
usr.bin/dsynth/pkglist.c
1078
pkg->patch_deps = strdup_or_null(ptr);
usr.bin/dsynth/pkglist.c
1081
pkg->build_deps = strdup_or_null(ptr);
usr.bin/dsynth/pkglist.c
1084
pkg->lib_deps = strdup_or_null(ptr);
usr.bin/dsynth/pkglist.c
1087
pkg->run_deps = strdup_or_null(ptr);
usr.bin/dsynth/pkglist.c
1090
pkg->pos_options = strdup_or_null(ptr);
usr.bin/dsynth/pkglist.c
1093
pkg->neg_options = strdup_or_null(ptr);
usr.bin/dsynth/pkglist.c
1097
pkg->use_linux = 1;
usr.bin/dsynth/pkglist.c
1100
asprintf(&pkg->flavors, "%s", ptr);
usr.bin/dsynth/pkglist.c
1103
asprintf(&pkg->uses, "%s", ptr);
usr.bin/dsynth/pkglist.c
1104
if (strstr(pkg->uses, "metaport"))
usr.bin/dsynth/pkglist.c
1105
pkg->flags |= PKGF_META;
usr.bin/dsynth/pkglist.c
1115
pkg->flags |= PKGF_NOTFOUND;
usr.bin/dsynth/pkglist.c
1118
pkg->flags |= PKGF_CORRUPT;
usr.bin/dsynth/pkglist.c
1123
pkg->flags |= PKGF_CORRUPT;
usr.bin/dsynth/pkglist.c
1131
pkg->flags |= PKGF_DEBUGSTOP;
usr.bin/dsynth/pkglist.c
1141
if (flavor == NULL && pkg->flavors && pkg->flavors[0]) {
usr.bin/dsynth/pkglist.c
1142
pkg->flags |= PKGF_DUMMY;
usr.bin/dsynth/pkglist.c
1143
freestrp(&pkg->fetch_deps);
usr.bin/dsynth/pkglist.c
1144
freestrp(&pkg->ext_deps);
usr.bin/dsynth/pkglist.c
1145
freestrp(&pkg->patch_deps);
usr.bin/dsynth/pkglist.c
1146
freestrp(&pkg->build_deps);
usr.bin/dsynth/pkglist.c
1147
freestrp(&pkg->lib_deps);
usr.bin/dsynth/pkglist.c
1148
freestrp(&pkg->run_deps);
usr.bin/dsynth/pkglist.c
1149
freestrp(&pkg->pkgfile);
usr.bin/dsynth/pkglist.c
1157
pkg->crc32 = crcDirTree(portpath);
usr.bin/dsynth/pkglist.c
1164
bulk->list = pkg;
usr.bin/dsynth/pkglist.c
117
pkg_enter(pkg_t *pkg)
usr.bin/dsynth/pkglist.c
1183
pkg_t *pkg;
usr.bin/dsynth/pkglist.c
1214
pkg = pkg_find(buf);
usr.bin/dsynth/pkglist.c
1215
if (pkg == NULL) {
usr.bin/dsynth/pkglist.c
1217
pkg = pkg_find(buf);
usr.bin/dsynth/pkglist.c
1219
if (pkg) {
usr.bin/dsynth/pkglist.c
122
if (pkg->portdir) {
usr.bin/dsynth/pkglist.c
1224
pkg->flags |= PKGF_PACKAGED;
usr.bin/dsynth/pkglist.c
123
pkgp = &PkgHash1[pkghash(pkg->portdir)];
usr.bin/dsynth/pkglist.c
125
if (strcmp(pkg->portdir, scan->portdir) == 0)
usr.bin/dsynth/pkglist.c
133
*pkgp = pkg;
usr.bin/dsynth/pkglist.c
134
pkg->hnext1 = scan->hnext1;
usr.bin/dsynth/pkglist.c
1389
pkgfree(pkg_t *pkg)
usr.bin/dsynth/pkglist.c
1391
freestrp(&pkg->portdir);
usr.bin/dsynth/pkglist.c
1392
freestrp(&pkg->version);
usr.bin/dsynth/pkglist.c
1393
freestrp(&pkg->pkgfile);
usr.bin/dsynth/pkglist.c
1394
freestrp(&pkg->ignore);
usr.bin/dsynth/pkglist.c
1395
freestrp(&pkg->fetch_deps);
usr.bin/dsynth/pkglist.c
1396
freestrp(&pkg->ext_deps);
usr.bin/dsynth/pkglist.c
1397
freestrp(&pkg->patch_deps);
usr.bin/dsynth/pkglist.c
1398
freestrp(&pkg->build_deps);
usr.bin/dsynth/pkglist.c
1399
freestrp(&pkg->lib_deps);
usr.bin/dsynth/pkglist.c
140
*pkgp = pkg;
usr.bin/dsynth/pkglist.c
1400
freestrp(&pkg->run_deps);
usr.bin/dsynth/pkglist.c
1401
freestrp(&pkg->pos_options);
usr.bin/dsynth/pkglist.c
1402
freestrp(&pkg->neg_options);
usr.bin/dsynth/pkglist.c
1403
freestrp(&pkg->flavors);
usr.bin/dsynth/pkglist.c
1404
free(pkg);
usr.bin/dsynth/pkglist.c
143
if (pkg->pkgfile) {
usr.bin/dsynth/pkglist.c
144
pkgp = &PkgHash2[pkghash(pkg->pkgfile)];
usr.bin/dsynth/pkglist.c
146
if (strcmp(pkg->pkgfile, scan->pkgfile) == 0)
usr.bin/dsynth/pkglist.c
151
*pkgp = pkg;
usr.bin/dsynth/pkglist.c
159
pkg_t *pkg;
usr.bin/dsynth/pkglist.c
162
for (pkg = *pkgp; pkg; pkg = pkg->hnext1) {
usr.bin/dsynth/pkglist.c
163
if (strcmp(pkg->portdir, match) == 0)
usr.bin/dsynth/pkglist.c
164
return pkg;
usr.bin/dsynth/pkglist.c
167
for (pkg = *pkgp; pkg; pkg = pkg->hnext2) {
usr.bin/dsynth/pkglist.c
168
if (strcmp(pkg->pkgfile, match) == 0)
usr.bin/dsynth/pkglist.c
169
return pkg;
usr.bin/dsynth/pkglist.c
48
static void resolveFlavors(pkg_t *pkg, char *flavors, int gentopo);
usr.bin/dsynth/pkglist.c
49
static void resolveDepString(pkg_t *pkg, char *depstr,
usr.bin/dsynth/pkglist.c
505
if (link->pkg &&
usr.bin/dsynth/pkglist.c
506
(link->pkg->flags & PKGF_CORRUPT)) {
usr.bin/dsynth/pkglist.c
55
static void pkgfree(pkg_t *pkg);
usr.bin/dsynth/pkglist.c
69
pkg_t *pkg;
usr.bin/dsynth/pkglist.c
71
pkg = calloc(1, sizeof(*pkg));
usr.bin/dsynth/pkglist.c
714
resolveFlavors(pkg_t *pkg, char *flavors, int gentopo)
usr.bin/dsynth/pkglist.c
72
pkg->idepon_list.next = &pkg->idepon_list;
usr.bin/dsynth/pkglist.c
725
if ((pkg->flags & PKGF_DUMMY) == 0)
usr.bin/dsynth/pkglist.c
727
if (pkg->flavors == NULL || pkg->flavors[0] == 0)
usr.bin/dsynth/pkglist.c
73
pkg->idepon_list.prev = &pkg->idepon_list;
usr.bin/dsynth/pkglist.c
74
pkg->deponi_list.next = &pkg->deponi_list;
usr.bin/dsynth/pkglist.c
745
asprintf(&portdir, "%s@%s", pkg->portdir, flavor);
usr.bin/dsynth/pkglist.c
746
s1 = strdup(pkg->portdir);
usr.bin/dsynth/pkglist.c
75
pkg->deponi_list.prev = &pkg->deponi_list;
usr.bin/dsynth/pkglist.c
758
link->pkg = dpkg;
usr.bin/dsynth/pkglist.c
759
link->next = &pkg->idepon_list;
usr.bin/dsynth/pkglist.c
760
link->prev = pkg->idepon_list.prev;
usr.bin/dsynth/pkglist.c
766
link->pkg = pkg;
usr.bin/dsynth/pkglist.c
77
return pkg;
usr.bin/dsynth/pkglist.c
791
resolveDepString(pkg_t *pkg, char *depstr, int gentopo, int dep_type)
usr.bin/dsynth/pkglist.c
829
pkg->portdir, depstr,
usr.bin/dsynth/pkglist.c
867
pkg->portdir, dpkg->portdir);
usr.bin/dsynth/pkglist.c
869
link->pkg = dpkg;
usr.bin/dsynth/pkglist.c
870
link->next = &pkg->idepon_list;
usr.bin/dsynth/pkglist.c
871
link->prev = pkg->idepon_list.prev;
usr.bin/dsynth/pkglist.c
877
link->pkg = pkg;
usr.bin/dsynth/pkglist.c
894
pkg->portdir, copy_base);
usr.bin/dsynth/pkglist.c
908
pkg->portdir, depstr,
usr.bin/dsynth/pkglist.c
930
pkg->portdir, dep, sep, flavor);
usr.bin/dsynth/pkglist.c
933
pkg->portdir, dep, sep);
usr.bin/dsynth/pkglist.c
968
pkg_t *pkg;
usr.bin/dsynth/repo.c
465
removePackagesMetaRecurse(pkg_t *pkg)
usr.bin/dsynth/repo.c
47
static void removePackagesMetaRecurse(pkg_t *pkg);
usr.bin/dsynth/repo.c
471
PKGLIST_FOREACH(link, &pkg->idepon_list) {
usr.bin/dsynth/repo.c
472
scan = link->pkg;
usr.bin/dsynth/runstats.c
195
RunStatsUpdateCompletion(worker_t *work, int logid, pkg_t *pkg,
usr.bin/dsynth/runstats.c
202
rs->updateCompletion(work, logid, pkg, reason, skipbuf);
usr.bin/dsynth/status.c
115
status_find_leaves(pkg_t *parent, pkg_t *pkg, pkg_t ***build_tailp,
usr.bin/dsynth/status.c
128
level, pkg->portdir, pkg->flags);
usr.bin/dsynth/status.c
129
if (pkg->flags & PKGF_BUILDLIST) {
usr.bin/dsynth/status.c
132
return (pkg->idep_count);
usr.bin/dsynth/status.c
139
PKGLIST_FOREACH(link, &pkg->idepon_list) {
usr.bin/dsynth/status.c
140
scan = link->pkg;
usr.bin/dsynth/status.c
211
idep_count += status_find_leaves(pkg, scan, build_tailp,
usr.bin/dsynth/status.c
227
pkg->idep_count = idep_count;
usr.bin/dsynth/status.c
228
pkg->flags |= PKGF_BUILDTRAV;
usr.bin/dsynth/status.c
233
if ((pkg->flags & PKGF_NOBUILD) == 0 && (*app & PKGF_NOBUILD)) {
usr.bin/dsynth/status.c
235
} else if ((pkg->flags & PKGF_ERROR) == 0 && (*app & PKGF_ERROR)) {
usr.bin/dsynth/status.c
238
pkg->flags |= *app & ~PKGF_NOTREADY;
usr.bin/dsynth/status.c
243
if ((pkg->flags & PKGF_PACKAGED) &&
usr.bin/dsynth/status.c
244
(pkg->flags & (PKGF_NOTREADY|PKGF_ERROR|PKGF_NOBUILD))) {
usr.bin/dsynth/status.c
245
pkg->flags &= ~PKGF_PACKAGED;
usr.bin/dsynth/status.c
246
ddassert(pkg->pkgfile);
usr.bin/dsynth/status.c
253
if (pkg->flags & PKGF_ERROR) {
usr.bin/dsynth/status.c
254
ddprintf(level, "} (ERROR - %s)\n", pkg->portdir);
usr.bin/dsynth/status.c
255
} else if (pkg->flags & PKGF_NOBUILD) {
usr.bin/dsynth/status.c
256
ddprintf(level, "} (SKIPPED - %s)\n", pkg->portdir);
usr.bin/dsynth/status.c
265
} else if (pkg->flags & PKGF_SUCCESS) {
usr.bin/dsynth/status.c
266
ddprintf(level, "} (SUCCESS - %s)\n", pkg->portdir);
usr.bin/dsynth/status.c
267
} else if (pkg->flags & PKGF_DUMMY) {
usr.bin/dsynth/status.c
275
pkg->flags |= PKGF_SUCCESS;
usr.bin/dsynth/status.c
280
pkg->portdir);
usr.bin/dsynth/status.c
284
pkg->portdir);
usr.bin/dsynth/status.c
286
} else if (pkg->flags & PKGF_PACKAGED) {
usr.bin/dsynth/status.c
293
pkg->flags |= PKGF_SUCCESS;
usr.bin/dsynth/status.c
298
pkg->portdir);
usr.bin/dsynth/status.c
308
ddprintf(level, "} (ADDLIST - %s)\n", pkg->portdir);
usr.bin/dsynth/status.c
309
pkg->flags |= PKGF_BUILDLIST;
usr.bin/dsynth/status.c
310
**build_tailp = pkg;
usr.bin/dsynth/status.c
311
*build_tailp = &pkg->build_next;
usr.bin/dsynth/status.c
320
status_clear_trav(pkg_t *pkg)
usr.bin/dsynth/status.c
325
pkg->flags &= ~PKGF_BUILDTRAV;
usr.bin/dsynth/status.c
326
PKGLIST_FOREACH(link, &pkg->idepon_list) {
usr.bin/dsynth/status.c
327
scan = link->pkg;
usr.bin/dsynth/status.c
341
pkg_t *pkg;
usr.bin/dsynth/status.c
352
for (pkg = *build_listp; pkg; pkg = pkg->build_next) {
usr.bin/dsynth/status.c
353
if ((pkg->flags & (PKGF_SUCCESS | PKGF_FAILURE |
usr.bin/dsynth/status.c
356
pkg->flags |= PKGF_SUCCESS;
usr.bin/dsynth/status.c
359
pkg->flags &= ~PKGF_BUILDLIST;
usr.bin/dsynth/status.c
360
printf(" N => %s\n", pkg->portdir);
usr.bin/dsynth/status.c
43
static int status_find_leaves(pkg_t *parent, pkg_t *pkg, pkg_t ***build_tailp,
usr.bin/dsynth/status.c
45
static void status_clear_trav(pkg_t *pkg);