Lines Matching defs:pg

75 assemble_fmri(scf_handle_t *h, const char *base, const char *pg,
87 if (pg == NULL)
90 pglen = strlen(pg);
119 if (pg == NULL)
122 (void) strcat(fmri_buf, pg);
434 * SCF_ERROR_DELETED - the pg tx was started on was deleted
717 scf_propertygroup_t *pg = NULL;
725 (pg = scf_pg_create(h)) == NULL ||
733 if (scf_instance_get_pg(inst, SCF_PG_RESTARTER_ACTIONS, pg) == -1) {
754 SCF_PG_RESTARTER_ACTIONS_FLAGS, pg) == -1) {
779 if (scf_pg_get_property(pg, action, prop) != 0) {
822 if (scf_transaction_start(tx, pg) == -1) {
889 if (scf_pg_update(pg) == -1) {
912 scf_pg_destroy(pg);
964 scf_propertygroup_t *pg = NULL;
970 if (((pg = scf_pg_create(h)) == NULL) ||
977 if (scf_instance_get_pg(inst, SCF_PG_RESTARTER, pg) == -1 ||
978 scf_pg_get_property(pg, SCF_PROPERTY_STATE, prop) == -1 ||
1005 scf_pg_destroy(pg);
1108 * Create and return a pg from the instance associated with the given handle.
1141 /* Get pg from instance */
1789 scf_propertygroup_t *pg = NULL;
1845 (pg = scf_pg_create(h)) == NULL ||
1883 while ((pgiter_ret = scf_iter_next_pg(pgiter, pg)) == 1) {
1904 if (scf_pg_get_name(pg, nextpg->pg_name, namelen) < 0) {
1914 if (scf_iter_pg_properties(propiter, pg) != 0) {
1977 while ((pgiter_ret = scf_iter_next_pg(pgiter, pg)) == 1) {
1988 if (scf_pg_get_name(pg, pgname, namelen) < 0) {
2007 if (scf_iter_pg_properties(propiter, pg) != 0) {
2101 scf_pg_destroy(pg);
2123 scf_pg_destroy(pg);
2188 * Walk until we find a pg with a property in it, or we run
2232 struct scf_simple_pg *pg;
2240 pg = propblock->ap_pglist;
2247 while ((pg != NULL) &&
2248 (strcmp(SCF_PG_APP_DEFAULT, pg->pg_name) != 0))
2249 pg = pg->pg_next;
2251 while ((pg != NULL) && (strcmp(pgname, pg->pg_name) != 0))
2252 pg = pg->pg_next;
2255 if (pg == NULL) {
2260 prop = pg->pg_proplist;
2597 scf_propertygroup_t *pg = scf_pg_create(h);
2605 pg == NULL || p == NULL || v == NULL)
2628 if ((instance ? scf_instance_get_pg_composed(i, snap, pgname, pg) :
2629 scf_service_get_pg(s, pgname, pg)) == -1)
2642 if (scf_pg_get_property(pg, prop->pv_prop, p) == -1 ||
2730 scf_pg_destroy(pg);
2763 scf_propertygroup_t *pg = scf_pg_create(h);
2782 if (h == NULL || s == NULL || inst == NULL || pg == NULL || p == NULL ||
2803 if ((instance ? scf_instance_get_pg(inst, pgname, pg) :
2804 scf_service_get_pg(s, pgname, pg)) == -1)
2808 if (scf_transaction_start(tx, pg) == -1)
2871 if (ret == 0 && scf_pg_update(pg) != -1) {
2894 scf_pg_destroy(pg);
2923 scf_propertygroup_t *pg;
2930 if ((pg = scf_pg_create(h)) == NULL) {
2934 if (scf_instance_get_pg(inst, pgname, pg) != 0) {
2936 scf_pg_destroy(pg);
2961 if (scf_transaction_start(tx, pg) != 0) {
2979 if (scf_pg_update(pg) == -1) {
3018 scf_pg_destroy(pg);