Home
last modified time | relevance | path

Searched refs:fmri_buf (Results 1 – 4 of 4) sorted by relevance

/titanic_44/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsvcctl_scm.c364 char *fmri_buf = NULL; in svcctl_scm_get_svcfmri() local
368 if ((fmri_buf = malloc(mgr_ctx->mc_scf_max_fmri_len + 1)) == NULL) in svcctl_scm_get_svcfmri()
372 if (scf_instance_to_fmri(wip->inst, fmri_buf, in svcctl_scm_get_svcfmri()
374 free(fmri_buf); in svcctl_scm_get_svcfmri()
378 (void) strlcpy(fmri_buf, SCF_FMRI_LEGACY_PREFIX, in svcctl_scm_get_svcfmri()
381 fmri_p = fmri_buf + sizeof (SCF_FMRI_LEGACY_PREFIX) - 1; in svcctl_scm_get_svcfmri()
388 (void) strlcat(fmri_buf, LEGACY_UNKNOWN, in svcctl_scm_get_svcfmri()
392 newsize = strlen(fmri_buf) + 1; in svcctl_scm_get_svcfmri()
394 free(fmri_buf); in svcctl_scm_get_svcfmri()
398 (void) snprintf(newbuf, newsize, "%s", fmri_buf); in svcctl_scm_get_svcfmri()
[all …]
/titanic_44/usr/src/lib/libscf/common/
H A Dmidlevel.c80 char *fmri_buf; in assemble_fmri() local
103 if ((fmri_buf = malloc(fmri_sz)) == NULL) { in assemble_fmri()
109 if (scf_myname(h, fmri_buf, fmri_sz) == -1) { in assemble_fmri()
110 free(fmri_buf); in assemble_fmri()
114 (void) strcpy(fmri_buf, base); in assemble_fmri()
117 (void) strcat(fmri_buf, SCF_FMRI_PROPERTYGRP_PREFIX); in assemble_fmri()
120 (void) strcat(fmri_buf, SCF_PG_APP_DEFAULT); in assemble_fmri()
122 (void) strcat(fmri_buf, pg); in assemble_fmri()
124 (void) strcat(fmri_buf, SCF_FMRI_PROPERTY_PREFIX); in assemble_fmri()
125 (void) strcat(fmri_buf, prop); in assemble_fmri()
[all …]
/titanic_44/usr/src/cmd/svc/svcs/
H A Dsvcs.c667 char *fmri_buf; in check_for_restarter() local
675 fmri_buf = safe_malloc(max_scf_fmri_length + 1); in check_for_restarter()
677 SCF_PROPERTY_RESTARTER, SCF_TYPE_ASTRING, fmri_buf, in check_for_restarter()
682 if (scf_canonify_fmri(fmri_buf, fmri_buf_canonified, in check_for_restarter()
686 if (strcmp(fmri_buf, restarter) == 0) in check_for_restarter()
690 free(fmri_buf); in check_for_restarter()
1468 char *fmri_buf = safe_malloc(max_scf_fmri_length + 1); in sprint_fmri() local
1473 if (scf_instance_to_fmri(wip->inst, fmri_buf, in sprint_fmri()
1477 (void) strcpy(fmri_buf, SCF_FMRI_LEGACY_PREFIX); in sprint_fmri()
1479 SCF_TYPE_ASTRING, fmri_buf + in sprint_fmri()
[all …]
/titanic_44/usr/src/cmd/svc/svcadm/
H A Dsvcadm.c1703 char *fmri_buf = malloc(max_scf_fmri_sz); in set_fmri_enabled() local
1704 if (fmri_buf == NULL) in set_fmri_enabled()
1713 (void) strlcpy(fmri_buf, wip->fmri, max_scf_fmri_sz); in set_fmri_enabled()
1715 switch (enable_fmri_rec(fmri_buf, (flags & SET_TEMPORARY))) { in set_fmri_enabled()
1718 "instance specification needed.\n"), fmri_buf); in set_fmri_enabled()
1723 fmri_buf); in set_fmri_enabled()
1727 free(fmri_buf); in set_fmri_enabled()