Lines Matching defs:exp_prop
288 static scf_property_t *exp_prop;
9201 while ((ret = scf_iter_next_property(exp_prop_iter, exp_prop)) == 1) {
9202 if (scf_property_get_name(exp_prop, exp_str, exp_str_sz) < 0)
9212 if (set_attr_from_prop(exp_prop, m, value_attr) == 0) {
9220 export_property(exp_prop, NULL, &elts, flags);
9256 if (scf_pg_get_property(pg, scf_property_external, exp_prop) == 0) {
9257 if (prop_check_type(exp_prop, SCF_TYPE_BOOLEAN) == 0 &&
9258 prop_get_val(exp_prop, exp_val) == 0) {
9278 if (pg_get_prop(pg, SCF_PROPERTY_GROUPING, exp_prop) != 0 ||
9279 set_attr_from_prop(exp_prop, n, "grouping") != 0)
9283 if (pg_get_prop(pg, SCF_PROPERTY_RESTART_ON, exp_prop) != 0 ||
9284 set_attr_from_prop(exp_prop, n, "restart_on") != 0)
9288 if (pg_get_prop(pg, SCF_PROPERTY_TYPE, exp_prop) != 0 ||
9289 set_attr_from_prop(exp_prop, n, type_attr) != 0)
9296 if (pg_get_prop(pg, SCF_PROPERTY_ENTITIES, exp_prop) == 0 &&
9297 prop_check_type(exp_prop, SCF_TYPE_FMRI) == 0) {
9305 if (scf_iter_property_values(eiter, exp_prop) != SCF_SUCCESS)
9347 while ((ret = scf_iter_next_property(exp_prop_iter, exp_prop)) == 1) {
9348 if (scf_property_get_name(exp_prop, exp_str, exp_str_sz) < 0)
9363 if (set_attr_from_prop(exp_prop, m, value_attr) == 0) {
9371 export_property(exp_prop, exp_str, &elts, SCE_ALL_VALUES);
9400 if (pg_get_prop(pg, SCF_PROPERTY_ENVIRONMENT, exp_prop) != 0)
9403 if (scf_iter_property_values(exp_val_iter, exp_prop) != SCF_SUCCESS)
9469 if (pg_get_prop(pg, SCF_PROPERTY_TYPE, exp_prop) != 0 ||
9470 set_attr_from_prop(exp_prop, n, type_attr) != 0)
9474 if (pg_get_prop(pg, SCF_PROPERTY_EXEC, exp_prop) != 0 ||
9475 set_attr_from_prop(exp_prop, n, "exec") != 0)
9479 if (pg_get_prop(pg, SCF_PROPERTY_TIMEOUT, exp_prop) == 0 &&
9480 prop_check_type(exp_prop, SCF_TYPE_COUNT) == 0 &&
9481 prop_get_val(exp_prop, exp_val) == 0) {
9529 if (pg_get_prop(pg, SCF_PROPERTY_WORKING_DIRECTORY, exp_prop) ==
9531 set_attr_from_prop_default(exp_prop, ctxt,
9535 if (pg_get_prop(pg, SCF_PROPERTY_PROJECT, exp_prop) == 0 &&
9536 set_attr_from_prop_default(exp_prop, ctxt, "project",
9540 if (pg_get_prop(pg, SCF_PROPERTY_RESOURCE_POOL, exp_prop) ==
9542 set_attr_from_prop_default(exp_prop, ctxt,
9546 if (pg_get_prop(pg, SCF_PROPERTY_SECFLAGS, exp_prop) == 0 &&
9547 set_attr_from_prop_default(exp_prop, ctxt,
9556 if (pg_get_prop(pg, SCF_PROPERTY_USE_PROFILE, exp_prop) == 0 &&
9557 prop_check_type(exp_prop, SCF_TYPE_BOOLEAN) == 0 &&
9558 prop_get_val(exp_prop, exp_val) == 0) {
9573 exp_prop) != 0 ||
9574 set_attr_from_prop(exp_prop, prof,
9586 exp_prop) != 0 ||
9587 set_attr_from_prop(exp_prop, cred,
9593 exp_prop) == 0 &&
9594 set_attr_from_prop_default(exp_prop, cred,
9599 exp_prop) == 0 &&
9600 set_attr_from_prop_default(exp_prop, cred,
9605 exp_prop) == 0 &&
9606 set_attr_from_prop_default(exp_prop, cred,
9612 exp_prop) == 0 &&
9613 set_attr_from_prop_default(exp_prop, cred,
9641 while ((ret = scf_iter_next_property(exp_prop_iter, exp_prop)) == 1) {
9642 if (scf_property_get_name(exp_prop, exp_str, exp_str_sz) < 0)
9656 if (set_attr_from_prop(exp_prop, m, value_attr) == 0) {
9685 export_property(exp_prop, exp_str, &elts, SCE_ALL_VALUES);
9743 while ((ret = scf_iter_next_property(exp_prop_iter, exp_prop)) == 1) {
9744 if (scf_property_get_name(exp_prop, exp_str, exp_str_sz) < 0)
9748 if (prop_check_type(exp_prop, SCF_TYPE_BOOLEAN) == 0 &&
9749 prop_get_val(exp_prop, exp_val) == 0) {
9778 if (set_attr_from_prop(exp_prop, sfnode,
9793 if (set_attr_from_prop(exp_prop, s, value_attr) == 0) {
9801 export_property(exp_prop, exp_str, &elts, SCE_ALL_VALUES);
9823 if (pg_get_prop(pg, SCF_PROPERTY_USE_PROFILE, exp_prop) == 0 &&
9824 prop_check_type(exp_prop, SCF_TYPE_BOOLEAN) == 0 &&
9825 prop_get_val(exp_prop, exp_val) == 0) {
9845 while ((ret = scf_iter_next_property(exp_prop_iter, exp_prop)) == 1) {
9846 if (scf_property_get_name(exp_prop, exp_str, exp_str_sz) < 0)
9850 if (set_attr_from_prop(exp_prop, n,
9854 if (set_attr_from_prop(exp_prop, n, "project") != 0)
9857 if (set_attr_from_prop(exp_prop, n,
9861 if (set_attr_from_prop(exp_prop, n,
9868 set_attr_from_prop(exp_prop, cred, "user") != 0)
9872 set_attr_from_prop(exp_prop, cred, "group") != 0)
9875 if (use_profile || set_attr_from_prop(exp_prop, cred,
9879 if (use_profile || set_attr_from_prop(exp_prop, cred,
9884 if (use_profile || set_attr_from_prop(exp_prop, cred,
9888 if (!use_profile || set_attr_from_prop(exp_prop,
9925 if (scf_pg_get_property(pg, scf_property_external, exp_prop) != 0 ||
9926 scf_property_get_value(exp_prop, exp_val) != 0 ||
9945 if (pg_get_prop(pg, SCF_PROPERTY_RESTART_ON, exp_prop) != 0 ||
9946 set_attr_from_prop(exp_prop, n, "restart_on") != 0)
9949 if (pg_get_prop(pg, SCF_PROPERTY_GROUPING, exp_prop) != 0 ||
9950 set_attr_from_prop(exp_prop, n, "grouping") != 0)
9953 if (pg_get_prop(pg, SCF_PROPERTY_ENTITIES, exp_prop) == 0 &&
9954 prop_check_type(exp_prop, SCF_TYPE_FMRI) == 0 &&
9955 prop_get_val(exp_prop, exp_val) == 0) {
9979 while ((ret = scf_iter_next_property(exp_prop_iter, exp_prop)) == 1) {
9980 if (scf_property_get_name(exp_prop, exp_str, exp_str_sz) < 0)
9989 if (prop_check_type(exp_prop, SCF_TYPE_ASTRING) == 0 &&
9990 prop_get_val(exp_prop, exp_val) == 0) {
10007 if (set_attr_from_prop(exp_prop, s, value_attr) == 0) {
10015 export_property(exp_prop, exp_str, &pgelts, SCE_ALL_VALUES);
10053 while ((ret = scf_iter_next_property(iter, exp_prop)) == 1) {
10058 if (scf_property_type(exp_prop, &ty) != SCF_SUCCESS)
10062 prop_check_type(exp_prop, SCF_TYPE_FMRI) != 0) ||
10063 prop_get_val(exp_prop, exp_val) != 0) {
10064 export_property(exp_prop, NULL, &pgelts,
10069 if (scf_property_get_name(exp_prop, exp_str, exp_str_sz) < 0)
10088 if (scf_property_to_fmri(exp_prop, fmri,
10096 export_property(exp_prop, exp_str, &pgelts,
10102 if (scf_property_to_fmri(exp_prop, fmri,
10110 export_property(exp_prop, exp_str, &pgelts,
10116 if (scf_property_to_fmri(exp_prop, fmri,
10124 export_property(exp_prop, exp_str, &pgelts,
10144 export_property(exp_prop, NULL, &pgelts,
10159 export_property(exp_prop, NULL, &pgelts,
10166 export_property(exp_prop, exp_str, &pgelts,
10210 while ((ret = scf_iter_next_property(exp_prop_iter, exp_prop)) == 1) {
10211 if (prop_check_type(exp_prop, SCF_TYPE_USTRING) != 0 ||
10212 prop_get_val(exp_prop, exp_val) != 0)
10224 if (scf_property_get_name(exp_prop, exp_str, exp_str_sz) < 0)
10243 if (pg_get_prop(pg, SCF_PROPERTY_TM_TITLE, exp_prop) != 0 ||
10244 set_attr_from_prop(exp_prop, manpage, "title") != 0 ||
10245 pg_get_prop(pg, SCF_PROPERTY_TM_SECTION, exp_prop) != 0 ||
10246 set_attr_from_prop(exp_prop, manpage, "section") != 0) {
10251 if (pg_get_prop(pg, SCF_PROPERTY_TM_MANPATH, exp_prop) == 0)
10252 (void) set_attr_from_prop_default(exp_prop,
10265 if (pg_get_prop(pg, SCF_PROPERTY_TM_NAME, exp_prop) != 0 ||
10266 set_attr_from_prop(exp_prop, doc_link, "name") != 0 ||
10267 pg_get_prop(pg, SCF_PROPERTY_TM_URI, exp_prop) != 0 ||
10268 set_attr_from_prop(exp_prop, doc_link, "uri") != 0) {
10415 while ((ret = scf_iter_next_property(exp_prop_iter, exp_prop)) == 1) {
10418 if (scf_property_get_name(exp_prop, exp_str, exp_str_sz) < 0)
10443 if (set_attr_from_prop(exp_prop, type[i],
10453 export_parameter(exp_prop, p, &eelts[i]);
10497 if (pg_get_prop(pg, scf_property_enabled, exp_prop) == 0 &&
10498 prop_check_type(exp_prop, SCF_TYPE_BOOLEAN) == 0 &&
10499 prop_get_val(exp_prop, exp_val) == 0) {
10513 while ((ret = scf_iter_next_property(exp_prop_iter, exp_prop)) == 1) {
10514 if (scf_property_get_name(exp_prop, exp_str, exp_str_sz) < 0)
10531 if (set_attr_from_prop(exp_prop, sfnode,
10540 export_property(exp_prop, exp_str, &pgelts, SCE_ALL_VALUES);
10828 (exp_prop = scf_property_create(g_hndl)) == NULL ||
10878 scf_property_destroy(exp_prop);
10971 (exp_prop = scf_property_create(g_hndl)) == NULL ||
11017 scf_property_destroy(exp_prop);