Lines Matching refs:dg

289 	struct dependency_group *dg;
324 dg = safe_malloc(sizeof (*dg));
325 (void) memset(dg, 0, sizeof (*dg));
326 dg->entities = uu_list_create(deps, dg, UU_LIST_DEBUG);
327 if (dg->entities == NULL)
335 dg->grouping = DGG_REQALL;
337 dg->grouping = DGG_REQANY;
339 dg->grouping = DGG_OPTALL;
341 dg->grouping = DGG_EXCALL;
352 dg->type = safe_strdup(g_value);
396 (void) uu_list_append(dg->entities, d);
399 uu_list_node_init(dg, &dg->node, depgroups);
400 r = uu_list_append(svcp->dependencies, dg);
748 process_reqall(inst_t *svcp, struct dependency_group *dg)
756 walk = uu_list_walk_start(dg->entities, UU_WALK_ROBUST);
770 uu_list_remove(dg->entities, d);
821 process_reqany(inst_t *svcp, struct dependency_group *dg)
829 for (d = uu_list_first(dg->entities);
831 d = uu_list_next(dg->entities, d)) {
869 walk = uu_list_walk_start(dg->entities, UU_WALK_ROBUST);
880 uu_list_remove(dg->entities, d);
919 process_optall(inst_t *svcp, struct dependency_group *dg)
927 walk = uu_list_walk_start(dg->entities, UU_WALK_ROBUST);
982 process_excall(inst_t *svcp, struct dependency_group *dg)
989 for (d = uu_list_first(dg->entities);
991 d = uu_list_next(dg->entities, d)) {
1039 process_svc_dg(inst_t *svcp, struct dependency_group *dg)
1041 switch (dg->grouping) {
1043 return (process_reqall(svcp, dg));
1046 return (process_reqany(svcp, dg));
1049 return (process_optall(svcp, dg));
1052 return (process_excall(svcp, dg));
1058 __LINE__, dg->grouping);
1097 process_file_dg(inst_t *svcp, struct dependency_group *dg)
1103 if (dg->grouping == DGG_REQANY) {
1104 deps = calloc(uu_list_numnodes(dg->entities), sizeof (*deps));
1109 walk = uu_list_walk_start(dg->entities, UU_WALK_ROBUST);
1124 switch (dg->grouping) {
1128 uu_list_remove(dg->entities, d);
1143 uu_list_remove(dg->entities, d);
1152 __FILE__, __LINE__, dg->grouping);
1160 if (dg->grouping != DGG_REQANY)
1165 uu_list_remove(dg->entities, deps[i]);
1181 struct dependency_group *dg;
1244 for (dg = uu_list_first(svcp->dependencies);
1245 dg != NULL;
1246 dg = uu_list_next(svcp->dependencies, dg)) {
1247 if (strcmp(dg->type, "path") == 0) {
1248 process_file_dg(svcp, dg);
1249 } else if (strcmp(dg->type, "service") == 0) {
1252 r = process_svc_dg(svcp, dg);
1262 svcp->svcname, svcp->instname, dg->type);