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.c1696 char *fmri_buf = malloc(max_scf_fmri_sz); local
1697 if (fmri_buf == NULL)
1706 (void) strlcpy(fmri_buf, wip->fmri, max_scf_fmri_sz);
1708 switch (enable_fmri_rec(fmri_buf, (flags & SET_TEMPORARY))) {
1711 "instance specification needed.\n"), fmri_buf);
1716 fmri_buf);
1720 free(fmri_buf);
/illumos-gate/usr/src/lib/libscf/common/
H A Dmidlevel.c81 char *fmri_buf; local
104 if ((fmri_buf = malloc(fmri_sz)) == NULL) {
110 if (scf_myname(h, fmri_buf, fmri_sz) == -1) {
111 free(fmri_buf);
115 (void) strcpy(fmri_buf, base);
118 (void) strcat(fmri_buf, SCF_FMRI_PROPERTYGRP_PREFIX);
121 (void) strcat(fmri_buf, SCF_PG_APP_DEFAULT);
123 (void) strcat(fmri_buf, pg);
125 (void) strcat(fmri_buf, SCF_FMRI_PROPERTY_PREFIX);
126 (void) strcat(fmri_buf, pro
1654 char *fmri_buf, *svcfmri = NULL; local
[all...]
/illumos-gate/usr/src/cmd/svc/svcs/
H A Dsvcs.c675 char *fmri_buf; local
683 fmri_buf = safe_malloc(max_scf_fmri_length + 1);
685 SCF_PROPERTY_RESTARTER, SCF_TYPE_ASTRING, fmri_buf,
690 if (scf_canonify_fmri(fmri_buf, fmri_buf_canonified,
694 if (strcmp(fmri_buf, restarter) == 0)
698 free(fmri_buf);
1454 char *fmri_buf = safe_malloc(max_scf_fmri_length + 1); local
1459 if (scf_instance_to_fmri(wip->inst, fmri_buf,
1463 (void) strcpy(fmri_buf, SCF_FMRI_LEGACY_PREFIX);
1465 SCF_TYPE_ASTRING, fmri_buf
[all...]

Completed in 174 milliseconds