Lines Matching +defs:val +defs:path
104 start_pg_name(const char *path)
108 if (fnmatch("/etc/rc[0-6S].d/S*", path, FNM_PATHNAME) != 0) {
109 uu_warn(gettext("couldn't parse name %s.\n"), path);
113 out = strdup(path + sizeof ("/etc/") - 1);
131 script_suffix(const char *path)
136 if (fnmatch("/etc/rc[0-6S].d/[SK]*", path, FNM_PATHNAME) != 0) {
137 uu_warn(gettext("couldn't parse name %s.\n"), path);
141 cp = path + sizeof ("/etc/rc0.d/S") - 1;
147 uu_warn(gettext("couldn't parse name %s.\n"), path);
159 * Convert a path to an acceptable SMF (service) name.
162 path_to_svc_name(const char *path)
166 out = strdup(path);
302 scf_value_t *val = NULL;
319 if ((val = scf_value_create(h)) == NULL) {
340 if (scf_property_get_value(prop, val) != 0)
343 len = scf_value_get_astring(val, buf, sizeof (buf));
361 if (scf_property_get_value(prop, val) != 0)
364 if (scf_value_get_count(val, &pval) != 0)
379 scf_value_destroy(val);
647 scf_type_t ty, const void *val)
673 scf_value_set_count(v, (uint64_t)(uintptr_t)val);
677 t = val;
683 r = scf_value_set_astring(v, val);