2 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH LIBSCF 3LIB "Aug 28, 2007"
8 libscf \- service configuration facility library
12 cc [ \fIflag\fR... ] \fIfile\fR... \fB-lscf\fR [ \fIlibrary\fR... ]
13 #include <\fBlibscf.h\fR>
19 Functions in this library define the interface for reading, writing, and
20 manipulating service configurations.
24 The shared object \fBlibscf.so.1\fR provides the public interfaces defined
25 below. See \fBIntro\fR(3) for additional information on shared object
33 \fBscf_count_ranges_destroy\fR \fBscf_entry_add_value\fR
34 \fBscf_entry_create\fR \fBscf_entry_destroy\fR
35 \fBscf_entry_destroy_children\fR \fBscf_entry_handle\fR
36 \fBscf_entry_reset\fR \fBscf_error\fR
37 \fBscf_handle_bind\fR \fBscf_handle_create\fR
38 \fBscf_handle_decode_fmri\fR \fBscf_handle_decorate\fR
39 \fBscf_handle_destroy\fR \fBscf_handle_get_scope\fR
40 \fBscf_handle_unbind\fR \fBscf_instance_add_pg\fR
41 \fBscf_instance_create\fR \fBscf_instance_delete\fR
42 \fBscf_instance_destroy\fR \fBscf_instance_get_name\fR
43 \fBscf_instance_get_parent\fR \fBscf_instance_get_pg\fR
44 \fBscf_instance_get_pg_composed\fR \fBscf_instance_get_snapshot\fR
45 \fBscf_instance_handle\fR \fBscf_instance_to_fmri\fR
46 \fBscf_int_ranges_destroy\fR \fBscf_iter_create\fR
47 \fBscf_iter_destroy\fR \fBscf_iter_handle\fR
48 \fBscf_iter_handle_scopes\fR \fBscf_iter_instance_pgs\fR
49 \fBscf_iter_instance_pgs_composed\fR \fBscf_iter_instance_pgs_typed_composed\fR
50 \fBscf_iter_instance_pgs_typed\fR \fBscf_iter_instance_snapshots\fR
51 \fBscf_iter_next_instance\fR \fBscf_iter_next_pg\fR
52 \fBscf_iter_next_property\fR \fBscf_iter_next_scope\fR
53 \fBscf_iter_next_service\fR \fBscf_iter_next_snapshot\fR
54 \fBscf_iter_next_value\fR \fBscf_iter_pg_properties\fR
55 \fBscf_iter_property_values\fR \fBscf_iter_reset\fR
56 \fBscf_iter_scope_services\fR \fBscf_iter_service_instances\fR
57 \fBscf_iter_service_pgs\fR \fBscf_iter_service_pgs_typed\fR
58 \fBscf_iter_snaplevel_pgs\fR \fBscf_iter_snaplevel_pgs_typed\fR
59 \fBscf_limit\fR \fBscf_myname\fR
60 \fBscf_pg_create\fR \fBscf_pg_delete\fR
61 \fBscf_pg_destroy\fR \fBscf_pg_get_flags\fR
62 \fBscf_pg_get_name\fR \fBscf_pg_get_parent_instance\fR
63 \fBscf_pg_get_parent_service\fR \fBscf_pg_get_parent_snaplevel\fR
64 \fBscf_pg_get_property\fR \fBscf_pg_get_type\fR
65 \fBscf_pg_get_underlying_pg\fR \fBscf_pg_handle\fR
66 \fBscf_pg_to_fmri\fR \fBscf_pg_update\fR
67 \fBscf_property_create\fR \fBscf_property_destroy\fR
68 \fBscf_property_get_name\fR \fBscf_property_get_value\fR
69 \fBscf_property_handle\fR \fBscf_property_is_type\fR
70 \fBscf_property_to_fmri\fR \fBscf_property_type\fR
71 \fBscf_scope_add_service\fR \fBscf_scope_create\fR
72 \fBscf_scope_destroy\fR \fBscf_scope_get_name\fR
73 \fBscf_scope_get_service\fR \fBscf_scope_handle\fR
74 \fBscf_scope_to_fmri\fR \fBscf_service_add_instance\fR
75 \fBscf_service_add_pg\fR \fBscf_service_create\fR
76 \fBscf_service_delete\fR \fBscf_service_destroy\fR
77 \fBscf_service_get_instance\fR \fBscf_service_get_name\fR
78 \fBscf_service_get_parent\fR \fBscf_service_get_pg\fR
79 \fBscf_service_handle\fR \fBscf_service_to_fmri\fR
80 \fBscf_simple_app_props_free\fR \fBscf_simple_app_props_get\fR
81 \fBscf_simple_app_props_next\fR \fBscf_simple_app_props_search\fR
82 \fBscf_simple_prop_free\fR \fBscf_simple_prop_get\fR
83 \fBscf_simple_prop_name\fR \fBscf_simple_prop_next_astring\fR
84 \fBscf_simple_prop_next_boolean\fR \fBscf_simple_prop_next_count\fR
85 \fBscf_simple_prop_next_integer\fR \fBscf_simple_prop_next_opaque\fR
86 \fBscf_simple_prop_next_reset\fR \fBscf_simple_prop_next_time\fR
87 \fBscf_simple_prop_next_ustring\fR \fBscf_simple_prop_numvalues\fR
88 \fBscf_simple_prop_pgname\fR \fBscf_simple_prop_type\fR
89 \fBscf_simple_walk_instances\fR \fBscf_snaplevel_create\fR
90 \fBscf_snaplevel_destroy\fR \fBscf_snaplevel_get_instance_name\fR
91 \fBscf_snaplevel_get_next_snaplevel\fR \fBscf_snaplevel_get_parent\fR
92 \fBscf_snaplevel_get_pg\fR \fBscf_snaplevel_get_scope_name\fR
93 \fBscf_snaplevel_get_service_name\fR \fBscf_snaplevel_handle\fR
94 \fBscf_snapshot_create\fR \fBscf_snapshot_destroy\fR
95 \fBscf_snapshot_get_base_snaplevel\fR \fBscf_snapshot_get_name\fR
96 \fBscf_snapshot_get_parent\fR \fBscf_snapshot_handle\fR
97 \fBscf_strerror\fR \fBscf_string_to_type\fR
98 \fBscf_tmpl_error_pg\fR \fBscf_tmpl_error_pg_tmpl\fR
99 \fBscf_tmpl_error_prop\fR \fBscf_tmpl_error_prop_tmpl\fR
100 \fBscf_tmpl_error_source_fmri\fR \fBscf_tmpl_error_type\fR
101 \fBscf_tmpl_error_value\fR \fBscf_tmpl_errors_destroy\fR
102 \fBscf_tmpl_get_by_pg\fR \fBscf_tmpl_get_by_pg_name\fR
103 \fBscf_tmpl_get_by_prop\fR \fBscf_tmpl_iter_pgs\fR
104 \fBscf_tmpl_iter_props\fR \fBscf_tmpl_next_error\fR
105 \fBscf_tmpl_pg_common_name\fR \fBscf_tmpl_pg_create\fR
106 \fBscf_tmpl_pg_description\fR \fBscf_tmpl_pg_destroy\fR
107 \fBscf_tmpl_pg_name\fR \fBscf_tmpl_pg_required\fR
108 \fBscf_tmpl_pg_reset\fR \fBscf_tmpl_pg_target\fR
109 \fBscf_tmpl_pg_type\fR \fBscf_tmpl_prop_cardinality\fR
110 \fBscf_tmpl_prop_common_name\fR \fBscf_tmpl_prop_create\fR
111 \fBscf_tmpl_prop_description\fR \fBscf_tmpl_prop_destroy\fR
112 \fBscf_tmpl_prop_internal_seps\fR \fBscf_tmpl_prop_name\fR
113 \fBscf_tmpl_prop_required\fR \fBscf_tmpl_prop_reset\fR
114 \fBscf_tmpl_prop_type\fR \fBscf_tmpl_prop_units\fR
115 \fBscf_tmpl_prop_visibility\fR \fBscf_tmpl_reset_errors\fR
116 \fBscf_tmpl_strerror\fR \fBscf_tmpl_validate_fmri\fR
117 \fBscf_tmpl_value_common_name\fR \fBscf_tmpl_value_count_range_choices\fR
118 \fBscf_tmpl_value_count_range_ constraints\fR \fBscf_tmpl_value_description\fR
119 \fBscf_tmpl_value_in_constraint\fR \fBscf_tmpl_value_int_range_choices\fR
120 \fBscf_tmpl_value_int_range_ constraints\fR \fBscf_tmpl_value_name_choices\fR
121 \fBscf_tmpl_value_name_constraints\fR \fBscf_tmpl_visibility_to_string\fR
122 \fBscf_transaction_commit\fR \fBscf_transaction_create\fR
123 \fBscf_transaction_destroy\fR \fBscf_transaction_destroy_children\fR
124 \fBscf_transaction_handle\fR \fBscf_transacion_property_change\fR
125 \fBscf_transaction_property_change_ type\fR \fBscf_transaction_property_delete\fR
126 \fBscf_transaction_property_new\fR \fBscf_transaction_reset\fR
127 \fBscf_transaction_reset_all\fR \fBscf_transaction_start\fR
128 \fBscf_type_base_type\fR \fBscf_type_to_string\fR
129 \fBscf_value_base_type\fR \fBscf_value_create\fR
130 \fBscf_value_destroy\fR \fBscf_value_get_as_string\fR
131 \fBscf_value_get_as_string_typed\fR \fBscf_value_get_astring\fR
132 \fBscf_value_get_boolean\fR \fBscf_value_get_count\fR
133 \fBscf_value_get_integer\fR \fBscf_value_get_opaque\fR
134 \fBscf_value_get_time\fR \fBscf_value_get_ustring\fR
135 \fBscf_value_handle\fR \fBscf_value_is_type\fR
136 \fBscf_value_reset\fR \fBscf_value_set_astring\fR
137 \fBscf_value_set_boolean\fR \fBscf_value_set_count\fR
138 \fBscf_value_set_from_string\fR \fBscf_value_set_integer\fR
139 \fBscf_value_set_opaque\fR \fBscf_value_set_time\fR
140 \fBscf_value_set_ustring\fR \fBscf_value_type\fR
141 \fBscf_values_destroy\fR \fBsmf_degrade_instance\fR
142 \fBsmf_disable_instance\fR \fBsmf_enable_instance\fR
143 \fBsmf_get_state\fR \fBsmf_maintain_instance\fR
144 \fBsmf_refresh_instance\fR \fBsmf_restart_instance\fR
145 \fBsmf_restore_instance\fR
152 \fB\fB/usr/lib/libscf.so.1\fR\fR
161 \fB\fB/usr/lib/64/libscf.so.1\fR\fR
170 See \fBattributes\fR(5) for descriptions of the following attributes:
178 ATTRIBUTE TYPE ATTRIBUTE VALUE
180 Interface Stability Committed
188 \fBIntro\fR(3), \fBattributes\fR(5), \fBsmf\fR(5)