Lines Matching defs:fmri

73 extern int scf_parse_svc_fmri(char *fmri, const char **scope,
311 choose_color(const char *fmri, int enabled)
315 if (strncmp(fmri, "svc:/", sizeof ("svc:/") - 1) == 0)
316 fmri += sizeof ("svc:/") - 1;
319 if (strncmp(fmri, cp->cat, strlen(cp->cat)) == 0)
332 print_service_node(const char *fmri, const char *label,
341 "label=\"{<foo> %s | {%s}}\"];\n", fmri, fg, bg, fg, label,
346 fmri, fg, bg, fg, label);
356 const char *fmri;
369 fmri = "svc:/system/disabled:default";
370 print_service_node(fmri, fmri + 5, "<dg>dependency_group",
371 choose_color(fmri, 0));
372 fmri = "svc:/system/enabled:default";
373 print_service_node(fmri, fmri + 5, "", choose_color(fmri, 1));
378 fmri = "svc:/network/disabled:default";
379 print_service_node(fmri, fmri + 5, "<dg>dependency_group",
380 choose_color(fmri, 0));
381 fmri = "svc:/network/enabled:default";
382 print_service_node(fmri, fmri + 5, "", choose_color(fmri, 1));
386 fmri = "svc:/milestone/disabled:default";
387 print_service_node(fmri, fmri + 5, "<dg>dependency_group",
388 choose_color(fmri, 0));
389 fmri = "svc:/milestone/enabled:default";
390 print_service_node(fmri, fmri + 5, "", choose_color(fmri, 1));
395 fmri = "svc:/other/disabled:default";
396 print_service_node(fmri, fmri + 5, "<dg>dependency_group",
397 choose_color(fmri, 0));
398 fmri = "svc:/other/enabled:default";
399 print_service_node(fmri, fmri + 5, "", choose_color(fmri, 1));
408 * Return true if we shouldn't omit fmri's dependency on network/loopback or
413 allowable_net_dep(const char *fmri)
415 return (strcmp(fmri, "svc:/system/identity:node") == 0 ||
416 strcmp(fmri, "svc:/system/identity:domain") == 0 ||
417 strcmp(fmri, "svc:/network/initial:default") == 0 ||
418 strcmp(fmri, "svc:/milestone/single-user:default") == 0 ||
419 strcmp(fmri, "svc:/network/inetd:default") == 0 ||
420 strcmp(fmri, "svc:/network/http:apache2") == 0);
438 static char *fmri, *dep_fmri; /* max_fmri_len + 1 long */
469 (void) snprintf(fmri, max_fmri_len + 1, "svc:/%s:%s", svcname,
519 strappend(fmri + sizeof ("svc:/") - 1, &inetd_svcs,
533 strappend(fmri + sizeof ("svc:/") - 1, &rpcbind_svcs,
545 print_service_node(fmri, fmri + sizeof ("svc:/") - 1, allpgs,
546 choose_color(fmri, enabled));
556 print_dependency(fmri, "restarter", depname, "", 1);
634 !allowable_net_dep(fmri))
688 print_dependency(fmri, pgname,
695 print_dependency(fmri, pgname, depname, opts,
843 (fmri = malloc(max_fmri_len + 1)) == NULL ||