Lines Matching refs:len
175 ssize_t len;
190 len = strlen(fmristr) + 1;
191 if ((fixed = topo_mod_zalloc(mod, len + 1)) == NULL) {
197 for (i = 0, j = 0; i < len; i++)
207 topo_mod_free(mod, fixed, len + 1);
210 topo_mod_free(mod, fixed, len + 1);
355 size_t len;
385 len = 5 + strlen(svc_name) +
388 if ((search = topo_mod_alloc(mod, len)) == NULL)
391 (void) snprintf(search, len, "svc:/%s", svc_name);
395 topo_mod_free(mod, search, len);
400 (void) snprintf(search, len, "svc:/%s:%s", svc_name, svc_inst);
403 topo_mod_free(mod, search, len);
408 topo_mod_free(mod, search, len);
711 ssize_t len;
781 if ((len = scf_value_get_astring(val, NULL, 0)) < 0)
784 state = alloca(len + 1);
785 if (scf_value_get_astring(val, state, len + 1) < 0)