Searched defs:fmri_buf (Results 1 - 4 of 4) sorted by relevance

/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsvcctl_scm.c364 char *fmri_buf = NULL; local
368 if ((fmri_buf = malloc(mgr_ctx->mc_scf_max_fmri_len + 1)) == NULL)
372 if (scf_instance_to_fmri(wip->inst, fmri_buf,
374 free(fmri_buf);
378 (void) strlcpy(fmri_buf, SCF_FMRI_LEGACY_PREFIX,
381 fmri_p = fmri_buf + sizeof (SCF_FMRI_LEGACY_PREFIX) - 1;
388 (void) strlcat(fmri_buf, LEGACY_UNKNOWN,
392 newsize = strlen(fmri_buf) + 1;
394 free(fmri_buf);
398 (void) snprintf(newbuf, newsize, "%s", fmri_buf);
[all...]
/illumos-gate/usr/src/cmd/svc/svcadm/
H A Dsvcadm.c1827 char *fmri_buf = malloc(max_scf_fmri_sz); local
1828 if (fmri_buf == NULL)
1837 (void) strlcpy(fmri_buf, wip->fmri, max_scf_fmri_sz);
1839 switch (enable_fmri_rec(fmri_buf, ed)) {
1842 "instance specification needed.\n"), fmri_buf);
1847 fmri_buf);
1851 free(fmri_buf);
/illumos-gate/usr/src/lib/libscf/common/
H A Dmidlevel.c82 char *fmri_buf; local
105 if ((fmri_buf = malloc(fmri_sz)) == NULL) {
111 if (scf_myname(h, fmri_buf, fmri_sz) == -1) {
112 free(fmri_buf);
116 (void) strcpy(fmri_buf, base);
119 (void) strcat(fmri_buf, SCF_FMRI_PROPERTYGRP_PREFIX);
122 (void) strcat(fmri_buf, SCF_PG_APP_DEFAULT);
124 (void) strcat(fmri_buf, pg);
126 (void) strcat(fmri_buf, SCF_FMRI_PROPERTY_PREFIX);
127 (void) strcat(fmri_buf, pro
1713 char *fmri_buf, *svcfmri = NULL; local
[all...]
/illumos-gate/usr/src/cmd/svc/svcs/
H A Dsvcs.c677 char *fmri_buf; local
685 fmri_buf = safe_malloc(max_scf_fmri_length + 1);
687 SCF_PROPERTY_RESTARTER, SCF_TYPE_ASTRING, fmri_buf,
692 if (scf_canonify_fmri(fmri_buf, fmri_buf_canonified,
696 if (strcmp(fmri_buf, restarter) == 0)
700 free(fmri_buf);
1456 char *fmri_buf = safe_malloc(max_scf_fmri_length + 1); local
1461 if (scf_instance_to_fmri(wip->inst, fmri_buf,
1465 (void) strcpy(fmri_buf, SCF_FMRI_LEGACY_PREFIX);
1467 SCF_TYPE_ASTRING, fmri_buf
[all...]

Completed in 80 milliseconds