Lines Matching refs:prop

1022 prop_to_typestr(const scf_property_t *prop)
1026 if (scf_property_type(prop, &ty) != SCF_SUCCESS)
1116 pg_get_prop(scf_propertygroup_t *pg, const char *propname, scf_property_t *prop)
1118 if (scf_pg_get_property(pg, propname, prop) == SCF_SUCCESS)
1147 prop_check_type(scf_property_t *prop, scf_type_t ty)
1151 if (scf_property_type(prop, &pty) != SCF_SUCCESS)
1162 len = scf_property_to_fmri(prop, NULL, 0);
1168 if (scf_property_to_fmri(prop, fmri, len + 1) < 0)
1185 prop_get_val(scf_property_t *prop, scf_value_t *val)
1189 if (scf_property_get_value(prop, val) == SCF_SUCCESS)
1203 len = scf_property_to_fmri(prop, NULL, 0);
1209 if (scf_property_to_fmri(prop, fmri, len + 1) < 0)
1849 property_t *prop = p;
1867 if (prop->sc_value_type != SCF_TYPE_INVALID)
1958 pg_get_prop(sc_pg, prop->sc_property_name,
1961 prop->sc_value_type = prop_type;
1967 for (vp = uu_list_first(prop->sc_property_values);
1969 vp = uu_list_next(prop->sc_property_values, vp)) {
1970 vp->sc_type = prop->sc_value_type;
1990 scf_tmpl_get_by_prop(t_pg, prop->sc_property_name,
1993 prop->sc_value_type = prop_type;
1999 for (vp = uu_list_first(prop->sc_property_values);
2001 vp = uu_list_next(prop->sc_property_values, vp)) {
2002 vp->sc_type = prop->sc_value_type;
2105 "from \"%s\"\n"), prop->sc_property_name,
4045 * prop is taken to be a property in the "dependents" property group of snpl,
4047 * to ient. If prop is a valid dependents property, upgrade the dependent it
4078 upgrade_dependent(const scf_property_t *prop, const entity_t *ient,
4109 if (scf_property_type(prop, &ty) != 0) {
4128 * prop represents a dependent in the old manifest. It is named after
4131 if (scf_property_get_name(prop, ud_name, max_scf_name_len + 1) < 0) {
4154 if (scf_property_get_value(prop, ud_val) != 0) {
4467 if (scf_property_get_value(prop, ud_val) != 0) {
5168 * differences (if there are none, be silent). prop is the property which
5175 * EBUSY - ancestor of prop was deleted (error printed)
5182 const scf_property_t * const prop, const pgroup_t * const new_dpt_pgroup)
5191 if (scf_property_get_value(prop, ud_val) != 0) {
8966 set_attr_from_prop_default(scf_property_t *prop, xmlNodePtr n,
8977 if (prop_get_val(prop, val) != 0) {
9005 set_attr_from_prop(scf_property_t *prop, xmlNodePtr n, const char *name)
9007 return (set_attr_from_prop_default(prop, n, name, NULL));
9047 * Create the DOM elements in elts necessary to (generically) represent prop
9052 export_property(scf_property_t *prop, const char *name_arg,
9065 if (scf_property_get_name(prop, exp_str, exp_str_sz) < 0)
9070 type = prop_to_typestr(prop);
9079 if (scf_property_get_value(prop, exp_val) == SCF_SUCCESS) {
9134 if (scf_iter_property_values(exp_val_iter, prop) != SCF_SUCCESS)
10319 export_parameter(scf_property_t *prop, const char *name,
10326 if (scf_property_get_value(prop, exp_val) == SCF_SUCCESS) {
10356 if (scf_iter_property_values(exp_val_iter, prop) != SCF_SUCCESS)
11084 scf_property_t *prop;
11127 (prop = scf_property_create(g_hndl)) == NULL ||
11189 if (pg_get_prop(pg, scf_property_enabled, prop) != 0 ||
11190 prop_check_type(prop, SCF_TYPE_BOOLEAN) != 0 ||
11191 prop_get_val(prop, val) != 0)
12172 scf_property_t *prop;
12202 if ((prop = scf_property_create(g_hndl)) == NULL ||
12213 while ((r = scf_iter_next_property(iter, prop)) == 1) {
12216 if (scf_property_get_name(prop, name, max_scf_name_len + 1) < 0)
12219 if (scf_property_type(prop, &ty) != SCF_SUCCESS)
12223 prop_check_type(prop, SCF_TYPE_FMRI) != 0) ||
12224 prop_get_val(prop, val) != 0)
12232 if (scf_property_to_fmri(prop, fmri,
12251 scf_property_destroy(prop);
12263 scf_property_t *prop;
12270 (prop = scf_property_create(g_hndl)) == NULL ||
12280 if (pg_get_prop(pg, SCF_PROPERTY_STATE, prop) != 0 ||
12281 prop_check_type(prop, SCF_TYPE_ASTRING) != 0 ||
12282 prop_get_val(prop, val) != 0)
12293 scf_property_destroy(prop);
12303 scf_property_t *prop;
12311 if ((prop = scf_property_create(g_hndl)) == NULL ||
12316 if (pg_get_prop(pg, scf_property_external, prop) == 0) {
12317 if (scf_property_get_value(prop, val) != 0)
12326 (void) scf_property_destroy(prop);
12688 * :properties commands. These all end with "pg" or "prop" and generally
12721 prop_has_multiple_values(const scf_property_t *prop, scf_value_t *val)
12723 if (scf_property_get_value(prop, val) == 0) {
12740 list_prop_info(const scf_property_t *prop, const char *name, size_t len)
12752 type = prop_to_typestr(prop);
12757 if (prop_has_multiple_values(prop, val) &&
12762 if (scf_iter_property_values(iter, prop) != SCF_SUCCESS)
13046 list_values_tmpl(scf_prop_tmpl_t *prt, scf_property_t *prop)
13057 if (scf_iter_property_values(iter, prop) != SCF_SUCCESS)
13081 * Displays template data if prop is not NULL, -t option of svccfg describe
13084 list_prop_tmpl(scf_prop_tmpl_t *prt, scf_property_t *prop, int templates)
13095 if (prop == NULL) {
13104 if (prop == NULL || templates == 2) {
13105 if (prop != NULL)
13169 if (prop != NULL)
13170 list_values_tmpl(prt, prop);
13264 scf_property_t *prop;
13269 (prop = scf_property_create(g_hndl)) == NULL ||
13280 if (scf_pg_get_property(pg, locale, prop) == 0 ||
13282 scf_pg_get_property(pg, "C", prop) == 0)) {
13283 if (prop_get_val(prop, val) == 0 &&
13301 if (scf_pg_get_property(pg, locale, prop) == 0 ||
13303 scf_pg_get_property(pg, "C", prop) == 0)) {
13304 if (prop_get_val(prop, val) == 0 &&
13333 scf_property_destroy(prop);
13427 scf_property_t *prop;
13448 (prop = scf_property_create(g_hndl)) == NULL ||
13555 while ((ret = scf_iter_next_property(piter, prop)) == 1) {
13556 prnlen = scf_property_get_name(prop, prnbuf,
13586 objects[i] = prop;
13608 prop = scf_property_create(g_hndl);
13632 scf_property_destroy(prop);
13648 prop = (scf_property_t *)objects[i];
13650 list_prop_info(prop, names[i], max_len);
13651 list_prop_tmpl(prt, prop, templates);
13653 scf_property_destroy(prop);
13826 scf_property_t *prop, *parent_prop;
13845 (prop = scf_property_create(g_hndl)) == NULL ||
13909 ret = scf_pg_get_property(pg, propname, prop);
13911 if (scf_property_type(prop, &current_ty) != SCF_SUCCESS)
14026 scf_property_destroy(prop);
14163 scf_property_t *prop;
14203 (prop = scf_property_create(g_hndl)) == NULL ||
14242 /* # setprop pg/prop = (values) */
14247 while ((ret2 = scf_iter_next_property(piter, prop)) == 1) {
14254 if (scf_property_get_name(prop, pname,
14258 if (scf_property_type(prop, &ty) != 0)
14261 multiple = prop_has_multiple_values(prop, val);
14274 if (scf_iter_property_values(viter, prop) !=
14360 scf_property_destroy(prop);
14495 get_prop_values(scf_property_t *prop, uu_list_t *values,
14506 if (scf_iter_property_values(iter, prop) != 0)
14543 scf_property_t *prop;
14566 (prop = scf_property_create(g_hndl)) == NULL ||
14632 ret = scf_pg_get_property(pg, propname, prop);
14637 if (scf_property_type(prop, &ptype) != 0)
14659 get_prop_values(prop, values, pat);
14735 scf_property_destroy(prop);
14863 char *prop;
15022 prop = uu_msprintf("%s/environment", method);
15025 if (prop == NULL || pattern == NULL)
15028 ret = lscf_delpropvalue(prop, pattern, !isunset);
15032 uu_free(prop);
15033 prop = uu_msprintf("%s/environment", method);
15035 if (prop == NULL || pattern == NULL)
15037 ret = lscf_addpropvalue(prop, "astring:", pattern);
15040 uu_free(prop);
15217 scf_property_t *prop;
15236 (prop = scf_property_create(g_hndl)) == NULL ||
15249 r = scf_iter_next_property(iter, prop);
15259 if (scf_property_type(prop, &ty) != SCF_SUCCESS)
15262 if (scf_property_get_name(prop, nbuf, max_scf_name_len + 1) < 0)
15281 if (scf_iter_property_values(viter, prop) != 0)
15305 scf_property_destroy(prop);
15334 scf_property_t *prop;
15384 (prop = scf_property_create(g_hndl)) == NULL ||
15406 scf_pg_get_property(pg, scf_property_enabled, prop) == 0 &&
15407 scf_property_get_value(prop, val) == 0)
15533 scf_property_destroy(prop);
15606 * describe [-v] [-t] [pg/prop]
17358 scf_property_t *prop;
17368 prop = scf_property_create(g_hndl);
17371 if (pg == NULL || prop == NULL || val == NULL || iter == NULL ||
17377 uu_warn("%s\n", prop == NULL ? "prop is NULL" :
17378 "prop is not NULL");
17448 if (scf_pg_get_property(pg, MFSTFILEPR, prop) != SCF_SUCCESS) {
17452 if (scf_property_get_value(prop, val) != SCF_SUCCESS) {
17500 scf_property_destroy(prop);