Lines Matching refs:g_hndl

199 scf_handle_t *g_hndl = NULL;	/* only valid after lscf_prep_hndl() */
866 if (g_hndl != NULL)
869 g_hndl = scf_handle_create(SCF_VERSION);
870 if (g_hndl == NULL)
880 repo_value = scf_value_create(g_hndl);
887 if (scf_handle_decorate(g_hndl, "door_path", repo_value) !=
894 if (scf_handle_bind(g_hndl) != 0)
898 cur_scope = scf_scope_create(g_hndl);
902 if (scf_handle_get_local_scope(g_hndl, cur_scope) != 0)
909 if (g_hndl != NULL) {
915 scf_handle_destroy(g_hndl);
919 g_hndl = NULL;
1055 v = scf_value_create(g_hndl);
1567 if ((snap = scf_snapshot_create(g_hndl)) == NULL)
1760 if ((pinst = scf_instance_create(g_hndl)) == NULL)
1763 if ((piter = scf_iter_create(g_hndl)) == NULL)
1870 t_prop = scf_tmpl_prop_create(g_hndl);
1871 sc_prop = scf_property_create(g_hndl);
1902 if (sc_pg == NULL && (sc_pg = scf_pg_create(g_hndl)) == NULL) {
1919 if ((t_pg = scf_tmpl_pg_create(g_hndl)) == NULL) {
2011 if ((t_pg = scf_tmpl_pg_create(g_hndl)) == NULL) {
2056 i = scf_instance_create(g_hndl);
2057 s = scf_service_create(g_hndl);
2151 sc_pg = scf_pg_create(g_hndl);
2192 (t_pg = scf_tmpl_pg_create(g_hndl)) == NULL)
2357 val = scf_value_create(g_hndl);
3003 e = scf_entry_create(g_hndl);
3046 ctx.sc_handle = g_hndl;
3071 ctx.sc_handle = g_hndl;
3686 cbdata.sc_handle = g_hndl;
3924 ud_mfsts_pg = scf_pg_create(g_hndl);
3925 ud_prop = scf_property_create(g_hndl);
3926 ud_prop_iter = scf_iter_create(g_hndl);
3927 fname_value = scf_value_create(g_hndl);
3954 cbdata.sc_handle = g_hndl;
4031 cbdata.sc_handle = g_hndl;
4287 serr = fmri_to_entity(g_hndl, ud_ctarg, &target_ent, &tissvc);
4430 ent = scf_entry_create(g_hndl);
4678 serr = fmri_to_entity(g_hndl, ud_ctarg, &target_ent, &tissvc);
4795 serr = fmri_to_entity(g_hndl, ud_ctarg, &target_ent, &tissvc);
5053 cbdata.sc_handle = g_hndl;
5069 if ((ent = scf_entry_create(g_hndl)) == NULL ||
5070 (val = scf_value_create(g_hndl)) == NULL) {
5266 scfe = fmri_to_entity(g_hndl, ud_ctarg, &tptr, &tissvc);
5755 cbdata.sc_handle = g_hndl;
5802 cbdata.sc_handle = g_hndl;
6073 cbdata.sc_handle = g_hndl;
7580 mfcbdata.sc_handle = g_hndl;
7598 cbdata.sc_handle = g_hndl;
7938 serr = fmri_to_entity(g_hndl, fmri, &ent, &issvc);
8048 if ((imp_scope = scf_scope_create(g_hndl)) == NULL ||
8049 (imp_svc = scf_service_create(g_hndl)) == NULL ||
8050 (imp_tsvc = scf_service_create(g_hndl)) == NULL ||
8051 (imp_inst = scf_instance_create(g_hndl)) == NULL ||
8052 (imp_tinst = scf_instance_create(g_hndl)) == NULL ||
8053 (imp_snap = scf_snapshot_create(g_hndl)) == NULL ||
8054 (imp_lisnap = scf_snapshot_create(g_hndl)) == NULL ||
8055 (imp_tlisnap = scf_snapshot_create(g_hndl)) == NULL ||
8056 (imp_rsnap = scf_snapshot_create(g_hndl)) == NULL ||
8057 (imp_snpl = scf_snaplevel_create(g_hndl)) == NULL ||
8058 (imp_rsnpl = scf_snaplevel_create(g_hndl)) == NULL ||
8059 (imp_pg = scf_pg_create(g_hndl)) == NULL ||
8060 (imp_pg2 = scf_pg_create(g_hndl)) == NULL ||
8061 (imp_prop = scf_property_create(g_hndl)) == NULL ||
8062 (imp_iter = scf_iter_create(g_hndl)) == NULL ||
8063 (imp_rpg_iter = scf_iter_create(g_hndl)) == NULL ||
8064 (imp_up_iter = scf_iter_create(g_hndl)) == NULL ||
8065 (imp_tx = scf_transaction_create(g_hndl)) == NULL ||
8071 (ud_inst = scf_instance_create(g_hndl)) == NULL ||
8072 (ud_snpl = scf_snaplevel_create(g_hndl)) == NULL ||
8073 (ud_pg = scf_pg_create(g_hndl)) == NULL ||
8074 (ud_cur_depts_pg = scf_pg_create(g_hndl)) == NULL ||
8075 (ud_run_dpts_pg = scf_pg_create(g_hndl)) == NULL ||
8076 (ud_prop = scf_property_create(g_hndl)) == NULL ||
8077 (ud_dpt_prop = scf_property_create(g_hndl)) == NULL ||
8078 (ud_val = scf_value_create(g_hndl)) == NULL ||
8079 (ud_iter = scf_iter_create(g_hndl)) == NULL ||
8080 (ud_iter2 = scf_iter_create(g_hndl)) == NULL ||
8081 (ud_tx = scf_transaction_create(g_hndl)) == NULL ||
8207 if (scf_handle_get_scope(g_hndl, SCF_SCOPE_LOCAL, imp_scope) != 0) {
8225 if (_scf_set_annotation(g_hndl, "svccfg import", filename) == 0) {
8268 cbdata.sc_handle = g_hndl;
8446 (void) _scf_set_annotation(g_hndl, NULL, NULL);
8592 if ((serr = fmri_to_entity(g_hndl, ud_oldtarg, &tent,
8643 cb.sc_handle = g_hndl;
8693 if (scf_handle_get_scope(g_hndl, SCF_SCOPE_LOCAL, imp_scope) != 0)
8700 if (_scf_set_annotation(g_hndl, "svccfg apply", file) == 0) {
8924 (void) _scf_set_annotation(g_hndl, NULL, NULL);
8973 val = scf_value_create(g_hndl);
9301 eiter = scf_iter_create(g_hndl);
10038 if ((opg = scf_pg_create(g_hndl)) == NULL ||
10039 (iter = scf_iter_create(g_hndl)) == NULL)
10077 serr = fmri_to_entity(g_hndl, fmri, &entity, &isservice);
10826 if ((exp_inst = scf_instance_create(g_hndl)) == NULL ||
10827 (exp_pg = scf_pg_create(g_hndl)) == NULL ||
10828 (exp_prop = scf_property_create(g_hndl)) == NULL ||
10829 (exp_val = scf_value_create(g_hndl)) == NULL ||
10830 (exp_inst_iter = scf_iter_create(g_hndl)) == NULL ||
10831 (exp_pg_iter = scf_iter_create(g_hndl)) == NULL ||
10832 (exp_prop_iter = scf_iter_create(g_hndl)) == NULL ||
10833 (exp_val_iter = scf_iter_create(g_hndl)) == NULL)
10934 if ((ret = scf_walk_fmri(g_hndl, 1, (char **)&fmri,
10966 if ((scope = scf_scope_create(g_hndl)) == NULL ||
10967 (svc = scf_service_create(g_hndl)) == NULL ||
10968 (iter = scf_iter_create(g_hndl)) == NULL ||
10969 (exp_inst = scf_instance_create(g_hndl)) == NULL ||
10970 (exp_pg = scf_pg_create(g_hndl)) == NULL ||
10971 (exp_prop = scf_property_create(g_hndl)) == NULL ||
10972 (exp_val = scf_value_create(g_hndl)) == NULL ||
10973 (exp_inst_iter = scf_iter_create(g_hndl)) == NULL ||
10974 (exp_pg_iter = scf_iter_create(g_hndl)) == NULL ||
10975 (exp_prop_iter = scf_iter_create(g_hndl)) == NULL ||
10976 (exp_val_iter = scf_iter_create(g_hndl)) == NULL)
10988 if (scf_handle_get_scope(g_hndl, SCF_SCOPE_LOCAL, scope) != 0)
11123 if ((scope = scf_scope_create(g_hndl)) == NULL ||
11124 (svc = scf_service_create(g_hndl)) == NULL ||
11125 (inst = scf_instance_create(g_hndl)) == NULL ||
11126 (pg = scf_pg_create(g_hndl)) == NULL ||
11127 (prop = scf_property_create(g_hndl)) == NULL ||
11128 (val = scf_value_create(g_hndl)) == NULL ||
11129 (siter = scf_iter_create(g_hndl)) == NULL ||
11130 (iiter = scf_iter_create(g_hndl)) == NULL)
11133 if (scf_handle_get_local_scope(g_hndl, scope) != SCF_SUCCESS)
11255 inst = scf_instance_create(g_hndl);
11281 svc = scf_service_create(g_hndl);
11307 if ((scope = scf_scope_create(g_hndl)) == NULL ||
11308 (svc = scf_service_create(g_hndl)) == NULL ||
11309 (inst = scf_instance_create(g_hndl)) == NULL)
11312 if (scf_handle_decode_fmri(g_hndl, wip->fmri, scope, svc,
11318 if ((scope = scf_scope_create(g_hndl)) == NULL ||
11319 (svc = scf_service_create(g_hndl)) == NULL)
11322 if (scf_handle_decode_fmri(g_hndl, wip->fmri, scope, svc,
11392 if ((scf_err = scf_walk_fmri(g_hndl, 1, (char **)&fmri, 0,
11404 ret = scf_tmpl_validate_fmri(g_hndl, inst_fmri, snapbuf, &errs,
11562 if ((ret = scf_walk_fmri(g_hndl, 1, (char **)&fmri, SCF_WALK_SERVICE,
11605 if (g_hndl == NULL) {
11774 iter = scf_iter_create(g_hndl);
11784 inst = scf_instance_create(g_hndl);
11824 svc = scf_service_create(g_hndl);
11928 if ((iter = scf_iter_create(g_hndl)) == NULL ||
11929 (pg = scf_pg_create(g_hndl)) == NULL)
11970 if ((inst = scf_instance_create(g_hndl)) == NULL ||
11971 (iter = scf_iter_create(g_hndl)) == NULL)
12018 result = fmri_to_entity(g_hndl, fmri, &entity, &isservice);
12039 pg = scf_pg_create(g_hndl);
12088 if ((inst = scf_instance_create(g_hndl)) == NULL ||
12089 (iter = scf_iter_create(g_hndl)) == NULL)
12103 if ((svc = scf_service_create(g_hndl)) == NULL)
12202 if ((prop = scf_property_create(g_hndl)) == NULL ||
12203 (val = scf_value_create(g_hndl)) == NULL ||
12204 (iter = scf_iter_create(g_hndl)) == NULL)
12269 if ((pg = scf_pg_create(g_hndl)) == NULL ||
12270 (prop = scf_property_create(g_hndl)) == NULL ||
12271 (val = scf_value_create(g_hndl)) == NULL)
12311 if ((prop = scf_property_create(g_hndl)) == NULL ||
12312 (val = scf_value_create(g_hndl)) == NULL)
12380 pg = scf_pg_create(g_hndl);
12396 if ((iter = scf_iter_create(g_hndl)) == NULL ||
12397 (pg = scf_pg_create(g_hndl)) == NULL)
12435 if ((snap = scf_snapshot_create((scf_handle_t *)g_hndl)) ==
12438 if ((iter = scf_iter_create((scf_handle_t *)g_hndl)) == NULL)
12506 if ((inst = scf_instance_create(g_hndl)) == NULL ||
12507 (pg = scf_pg_create(g_hndl)) == NULL ||
12508 (iter = scf_iter_create(g_hndl)) == NULL)
12551 if ((pg = scf_pg_create(g_hndl)) == NULL ||
12552 (iter = scf_iter_create(g_hndl)) == NULL)
12638 inst = scf_instance_create(g_hndl);
12657 svc = scf_service_create(g_hndl);
12678 if ((ret = scf_walk_fmri(g_hndl, 1, (char **)&fmri, SCF_WALK_SERVICE,
12748 if ((iter = scf_iter_create(g_hndl)) == NULL ||
12749 (val = scf_value_create(g_hndl)) == NULL)
12820 if ((stability_prop = scf_property_create(g_hndl)) == NULL ||
12821 (stability_val = scf_value_create(g_hndl)) == NULL)
13053 if ((iter = scf_iter_create(g_hndl)) == NULL ||
13054 (val = scf_value_create(g_hndl)) == NULL)
13268 if ((pg = scf_pg_create(g_hndl)) == NULL ||
13269 (prop = scf_property_create(g_hndl)) == NULL ||
13270 (val = scf_value_create(g_hndl)) == NULL ||
13271 (iter = scf_iter_create(g_hndl)) == NULL)
13351 if ((pgt = scf_tmpl_pg_create(g_hndl)) == NULL ||
13352 (prt = scf_tmpl_prop_create(g_hndl)) == NULL)
13447 if ((pg = scf_pg_create(g_hndl)) == NULL ||
13448 (prop = scf_property_create(g_hndl)) == NULL ||
13449 (iter = scf_iter_create(g_hndl)) == NULL ||
13450 (piter = scf_iter_create(g_hndl)) == NULL ||
13451 (prt = scf_tmpl_prop_create(g_hndl)) == NULL ||
13452 (pgt = scf_tmpl_pg_create(g_hndl)) == NULL)
13540 pg = scf_pg_create(g_hndl);
13543 pgt = scf_tmpl_pg_create(g_hndl);
13608 prop = scf_property_create(g_hndl);
13609 prt = scf_tmpl_prop_create(g_hndl);
13616 pg = scf_pg_create(g_hndl);
13619 pgt = scf_tmpl_pg_create(g_hndl);
13717 pg = scf_pg_create(g_hndl);
13840 if ((e = scf_entry_create(g_hndl)) == NULL ||
13841 (svc = scf_service_create(g_hndl)) == NULL ||
13842 (parent_pg = scf_pg_create(g_hndl)) == NULL ||
13843 (pg = scf_pg_create(g_hndl)) == NULL ||
13844 (parent_prop = scf_property_create(g_hndl)) == NULL ||
13845 (prop = scf_property_create(g_hndl)) == NULL ||
13846 (pgt = scf_tmpl_pg_create(g_hndl)) == NULL ||
13847 (prt = scf_tmpl_prop_create(g_hndl)) == NULL ||
13848 (tx = scf_transaction_create(g_hndl)) == NULL)
14055 pg = scf_pg_create(g_hndl);
14105 e = scf_entry_create(g_hndl);
14106 tx = scf_transaction_create(g_hndl);
14202 if ((pg = scf_pg_create(g_hndl)) == NULL ||
14203 (prop = scf_property_create(g_hndl)) == NULL ||
14204 (val = scf_value_create(g_hndl)) == NULL ||
14205 (iter = scf_iter_create(g_hndl)) == NULL ||
14206 (piter = scf_iter_create(g_hndl)) == NULL ||
14207 (viter = scf_iter_create(g_hndl)) == NULL)
14502 if ((iter = scf_iter_create(g_hndl)) == NULL ||
14503 (val = scf_value_create(g_hndl)) == NULL)
14564 if ((e = scf_entry_create(g_hndl)) == NULL ||
14565 (pg = scf_pg_create(g_hndl)) == NULL ||
14566 (prop = scf_property_create(g_hndl)) == NULL ||
14567 (tx = scf_transaction_create(g_hndl)) == NULL)
14776 if ((pg = scf_pg_create(g_hndl)) == NULL)
14826 pg = scf_pg_create(g_hndl);
14979 if ((pg = scf_pg_create(g_hndl)) == NULL)
15071 if ((snap = scf_snapshot_create(g_hndl)) == NULL ||
15072 (iter = scf_iter_create(g_hndl)) == NULL)
15132 if ((snap = scf_snapshot_create(g_hndl)) == NULL ||
15133 (level = scf_snaplevel_create(g_hndl)) == NULL)
15184 level = scf_snaplevel_create(g_hndl);
15222 tx = scf_transaction_create(g_hndl);
15235 if ((iter = scf_iter_create(g_hndl)) == NULL ||
15236 (prop = scf_property_create(g_hndl)) == NULL ||
15237 (viter = scf_iter_create(g_hndl)) == NULL)
15255 e = scf_entry_create(g_hndl);
15272 v = scf_value_create(g_hndl);
15285 v = scf_value_create(g_hndl);
15347 snap = scf_snapshot_create(g_hndl);
15379 if ((prev = scf_snapshot_create(g_hndl)) == NULL ||
15380 (level = scf_snaplevel_create(g_hndl)) == NULL ||
15381 (iter = scf_iter_create(g_hndl)) == NULL ||
15382 (pg = scf_pg_create(g_hndl)) == NULL ||
15383 (npg = scf_pg_create(g_hndl)) == NULL ||
15384 (prop = scf_property_create(g_hndl)) == NULL ||
15385 (val = scf_value_create(g_hndl)) == NULL)
15507 nlevel = scf_snaplevel_create(g_hndl);
15779 if (g_hndl == NULL) {
16252 inst_iter = scf_iter_create(g_hndl);
16253 inst = scf_instance_create(g_hndl);
16297 (snap = scf_snapshot_create(g_hndl)) == NULL) {
16514 status = find_manifests(g_hndl, dirs[c], &manifests, CHECKEXT);
16632 instance = scf_instance_create(g_hndl);
16633 iter = scf_iter_create(g_hndl);
16963 assert(g_hndl != NULL);
16969 mpg = scf_pg_create(g_hndl);
16970 mp = scf_property_create(g_hndl);
16971 mi = scf_iter_create(g_hndl);
16972 mv = scf_value_create(g_hndl);
16973 instance = scf_instance_create(g_hndl);
17365 svc = scf_service_create(g_hndl);
17366 scope = scf_scope_create(g_hndl);
17367 pg = scf_pg_create(g_hndl);
17368 prop = scf_property_create(g_hndl);
17369 val = scf_value_create(g_hndl);
17370 iter = scf_iter_create(g_hndl);
17392 if (scf_handle_get_scope(g_hndl, SCF_SCOPE_LOCAL, scope) != 0) {
17543 if ((inst = scf_instance_create(g_hndl)) == NULL ||
17544 (iter = scf_iter_create(g_hndl)) == NULL)
17579 if ((svc = scf_service_create(g_hndl)) == NULL ||
17580 (iter = scf_iter_create(g_hndl)) == NULL)