Lines Matching refs:prop

399 libscf_read_single_astring(scf_handle_t *h, scf_property_t *prop, char **ret)
404 if (scf_property_get_value(prop, val) == -1) {
511 scf_property_t *prop;
516 prop = safe_scf_property_create(h);
518 if (scf_pg_get_property(pg, prop_name, prop) == -1) {
524 ret = libscf_read_single_astring(h, prop, &char_state);
535 scf_property_destroy(prop);
594 scf_property_t *prop;
598 prop = safe_scf_property_create(h);
601 scf_property_destroy(prop);
606 ret = scf_iter_next_property(iter, prop);
608 scf_property_destroy(prop);
616 scf_property_destroy(prop);
625 scf_property_t *prop;
629 prop = safe_scf_property_create(h);
631 if (scf_pg_get_property(pg, SCF_PROPERTY_TYPE, prop) == -1 ||
632 libscf_read_single_astring(h, prop, &scheme) != 0) {
633 scf_property_destroy(prop);
646 scf_property_destroy(prop);
655 scf_property_t *prop = safe_scf_property_create(h);
657 if (scf_pg_get_property(pg, SCF_PROPERTY_GROUPING, prop) == -1 ||
658 libscf_read_single_astring(h, prop, &grouping) != 0) {
659 scf_property_destroy(prop);
676 scf_property_destroy(prop);
683 scf_property_t *prop = safe_scf_property_create(h);
687 if (scf_pg_get_property(pg, SCF_PROPERTY_RESTART_ON, prop) == -1 ||
688 libscf_read_single_astring(h, prop, &restart_on) != 0) {
690 scf_property_destroy(prop);
706 scf_property_destroy(prop);
726 scf_property_t *prop;
732 prop = safe_scf_property_create(h);
735 if (scf_pg_get_property(pg, propname, prop) != 0) {
757 if (scf_property_type(prop, &type) != 0) {
778 if (scf_property_get_value(prop, val) != 0) {
808 scf_property_destroy(prop);
849 scf_property_t *prop;
854 prop = safe_scf_property_create(h);
857 if (scf_pg_get_property(pg, propname, prop) != 0) {
879 if (scf_property_is_type(prop, SCF_TYPE_COUNT) != 0) {
901 if (scf_property_get_value(prop, val) != 0) {
934 scf_property_destroy(prop);
942 scf_property_t *prop = safe_scf_property_create(h);
944 if (scf_pg_get_property(pg, SCF_PROPERTY_RESTARTER, prop) == -1 ||
945 libscf_read_single_astring(h, prop, restarter) != 0)
948 scf_property_destroy(prop);
1701 pg_get_milestone(scf_propertygroup_t *pg, scf_property_t *prop,
1704 if (scf_pg_get_property(pg, SCF_PROPERTY_MILESTONE, prop) != 0) {
1723 if (scf_property_get_value(prop, val) != 0) {
1762 libscf_get_milestone(scf_instance_t *inst, scf_property_t *prop,
1771 switch (r = pg_get_milestone(pg, prop, val, buf, buf_sz)) {
1806 r = pg_get_milestone(pg, prop, val, buf, buf_sz);
1839 * ECANCELED - prop's property group was deleted
1846 libscf_extract_runlevel(scf_property_t *prop, char *rlp)
1851 val = safe_scf_value_create(scf_property_handle(prop));
1853 if (scf_property_get_value(prop, val) != 0) {
2075 scf_property_t *prop = NULL;
2084 prop = safe_scf_property_create(h);
2116 if (scf_pg_get_property(pg, st->st_locale, prop) == -1) {
2133 if ((r = libscf_read_single_astring(h, prop, &cname)) !=
2149 if (scf_pg_get_property(pg, "C", prop) == -1) {
2169 if ((r = libscf_read_single_astring(h, prop, &c_cname)) != 0) {
2185 scf_property_destroy(prop);
2209 scf_property_t *prop = NULL;
2216 prop = safe_scf_property_create(h);
2246 if (scf_pg_get_property(pg, SCF_PROPERTY_DURATION, prop) == -1) {
2267 if ((r = libscf_read_single_astring(h, prop, &style_str))
2283 if (scf_pg_get_property(pg, SCF_PROPERTY_UTMPX_PREFIX, prop) == 0) {
2285 if ((r = libscf_read_single_astring(h, prop, prefixp)) != 0) {
2315 scf_property_destroy(prop);
2333 scf_property_t *prop = NULL;
2343 prop = safe_scf_property_create(h);
2445 scf_property_destroy(prop);
2863 scf_property_t *prop = NULL;
2874 prop = safe_scf_property_create(h);
2912 if (scf_pg_get_property(pg, SCF_PROPERTY_EXEC, prop) == -1) {
2920 error = libscf_read_single_astring(h, prop, &method);
2984 prop) == -1) {
2992 error = libscf_read_single_astring(h, prop, &ig);
3065 if (scf_pg_get_property(pg, SCF_PROPERTY_RESTART_ON, prop) == -1) {
3073 error = libscf_read_single_astring(h, prop, &restart);
3097 scf_property_destroy(prop);
3143 scf_property_t *prop;
3150 prop = safe_scf_property_create(h);
3198 if (scf_pg_get_property(pg, admin_actions[a], prop) == -1) {
3217 if (scf_property_get_value(prop, val) == -1) {
3292 scf_property_destroy(prop);
3478 * Call cb for each of the string values of prop. cb is invoked with
3486 walk_property_astrings(scf_property_t *prop, callback_t cb, void *arg)
3495 if (scf_property_is_type(prop, SCF_TYPE_ASTRING) != 0) {
3513 h = scf_property_handle(prop);
3518 if (scf_iter_property_values(iter, prop) != 0) {