Lines Matching defs:pg

971  * Sets pg to the name property group of s_inst.  If it doesn't exist, it is
984 const char *type, uint32_t flags, scf_propertygroup_t *pg)
987 if (scf_instance_get_pg(inst, name, pg) == 0)
1009 if (scf_instance_add_pg(inst, name, type, flags, pg) == 0)
1044 * ECANCELED - pg was deleted
1136 scf_propertygroup_t *pg = NULL;
1141 (pg = scf_pg_create(h)) == NULL ||
1209 SCF_PG_RESTARTER_TYPE, SCF_PG_RESTARTER_FLAGS, pg)) {
1230 if (scf_transaction_start(t, pg) != 0) {
1324 if (scf_pg_update(pg) == -1) {
1351 scf_pg_destroy(pg);
1375 scf_propertygroup_t *pg = NULL;
1396 pg = scf_pg_create(h);
1401 if (pg == NULL || prop == NULL || iter == NULL || t == NULL) {
1409 SCF_PG_RESTARTER_TYPE, SCF_PG_RESTARTER_FLAGS, pg);
1417 if (scf_transaction_start(t, pg) != 0) {
1448 if (scf_pg_get_property(pg, pname, prop) == 0) {
1630 if (scf_pg_update(pg) == -1) {
1651 scf_pg_destroy(pg);
1675 scf_propertygroup_t *pg = NULL;
1690 pg = scf_pg_create(h);
1695 if (pg == NULL || prop == NULL || iter == NULL || t == NULL) {
1703 SCF_PG_RESTARTER_TYPE, SCF_PG_RESTARTER_FLAGS, pg);
1711 if (scf_transaction_start(t, pg) != 0) {
1746 if (scf_pg_get_property(pg, pname, prop) == 0) {
1932 if (scf_pg_update(pg) == -1) {
1953 scf_pg_destroy(pg);
1982 get_astring_val(scf_propertygroup_t *pg, const char *name, char *buf,
1987 if (pg == NULL)
1990 if (scf_pg_get_property(pg, name, prop) != SCF_SUCCESS) {
2008 get_boolean_val(scf_propertygroup_t *pg, const char *name, uint8_t *b,
2011 if (scf_pg_get_property(pg, name, prop) != SCF_SUCCESS) {
2684 get_environment(scf_handle_t *h, scf_propertygroup_t *pg,
2692 if (scf_pg_get_property(pg, SCF_PROPERTY_ENVIRONMENT, prop) != 0) {
2797 scf_propertygroup_t *pg = NULL;
2854 * may be found either in the pg for the method (methpg),
2855 * or in the instance/service SCF_PG_METHOD_CONTEXT pg (named
2903 pg = methpg;
2905 ret = scf_pg_get_property(pg, SCF_PROPERTY_USE_PROFILE, prop);
2907 pg = NULL;
2928 pg == NULL ? SCF_PG_METHOD_CONTEXT : mname);
2950 pg == NULL ? SCF_PG_METHOD_CONTEXT : mname);
2966 pg == NULL ? SCF_PG_METHOD_CONTEXT : mname);
3004 err = get_profile(pg, instpg, prop, val, cmdline,
3007 err = get_ids(pg, instpg, prop, val, cip, err);
3892 scf_propertygroup_t *pg;
3904 pg = scf_pg_create(h);
3907 if (pg == NULL || prop == NULL || val == NULL)
3912 pg) != SCF_SUCCESS)
3915 if (get_astring_val(pg, SCF_PROPERTY_AUX_FMRI, aux_fmri, size,
3929 scf_pg_destroy(pg);
3941 scf_propertygroup_t *pg;
3948 pg = scf_pg_create(h);
3951 if (pg == NULL || prop == NULL || val == NULL)
3956 pg) != SCF_SUCCESS)
3959 if (get_boolean_val(pg, SCF_PROPERTY_AUX_TTY, &has_tty, prop,
3968 scf_pg_destroy(pg);
3980 scf_propertygroup_t *pg;
3986 pg = scf_pg_create(h);
3989 if (pg == NULL || prop == NULL || val == NULL)
3992 if (scf_instance_get_pg(inst, SCF_PG_RESTARTER_ACTIONS, pg) !=
3999 if (scf_pg_get_property(pg, SCF_PROPERTY_DODUMP, prop) != SCF_SUCCESS) {
4017 scf_pg_destroy(pg);
4026 scf_propertygroup_t *pg;
4034 pg = scf_pg_create(h);
4038 if (pg == NULL || t == NULL || e == NULL || v == NULL)
4041 if (instance_get_or_add_pg(inst, pgname, pgtype, pgflags, pg))
4048 if (scf_transaction_start(t, pg) != 0)
4061 if (scf_pg_update(pg) == -1)
4070 scf_pg_destroy(pg);
4079 scf_propertygroup_t *pg;
4091 pg = scf_pg_create(h);
4094 if (pg == NULL || prop == NULL || val == NULL)
4098 * Get auxiliary_fmri value from restarter_actions pg
4102 pg) != SCF_SUCCESS)
4105 if (get_astring_val(pg, SCF_PROPERTY_AUX_FMRI, aux_fmri, size,
4120 scf_pg_destroy(pg);