/illumos-gate/usr/src/lib/libscf/common/ |
H A D | midlevel_impl.h | 65 char *pg_name; member in struct:scf_simple_pg
|
H A D | midlevel.c | 1117 char *pg_name; local 1127 if ((pg_name = malloc(namelen)) == NULL) { 1134 if (scf_pg_get_name(simple_h->running_pg, pg_name, namelen) < 0) { 1142 if (scf_instance_get_pg(simple_h->inst, pg_name, ret_pg) == -1) { 1303 * scf_general_pg_setup(fmri, pg_name) 1323 scf_general_pg_setup(const char *fmri, const char *pg_name) argument 1354 if (scf_instance_get_pg_composed(ret->inst, ret->snap, pg_name, 1871 thispg->pg_name = NULL; 1884 if (thispg->pg_name != NULL) { 1889 nextpg->pg_name [all...] |
H A D | scf_tmpl.c | 848 char *name = NULL, *pg_name = NULL; local 862 if ((pg_name = _scf_get_pg_name(t->pt_pg)) == NULL) { 868 if (strncmp(pg_name, SCF_PG_TM_PG_PAT_BASE, prefix_size) != 0) { 871 free(pg_name); 876 pg_name + prefix_size, prop); 881 free(pg_name); 884 free(pg_name); 1454 * Both pg_name and pg_type are optional. 1464 * length name, or pg_name is not a valid property group. 1476 const scf_snapshot_t *snap, const char *pg_name, cons 1475 _find_template_pg_match(scf_service_t *svc, scf_instance_t *inst, const scf_snapshot_t *snap, const char *pg_name, const char *pg_type, const char *target, char **tmpl_pg_name) argument 1719 char *fmribuf = NULL, *snapbuf = NULL, *pg_name = NULL, *pg_type = NULL; local 1936 scf_tmpl_get_by_pg_name(const char *fmri, const char *snapshot, const char *pg_name, const char *pg_type, scf_pg_tmpl_t *pg_tmpl, int flags) argument 2717 char *pg_name = NULL; local 4960 _scf_tmpl_add_error(scf_tmpl_errors_t *errs, scf_tmpl_error_type_t type, const char *pg_name, const char *prop_name, const char *ev1, const char *ev2, const char *actual, const char *tmpl_fmri, const char *tmpl_pg_name, const char *tmpl_pg_type, const char *tmpl_prop_name, const char *tmpl_prop_type) argument 5086 char *pg_name = NULL; local 5140 char *pg_name = NULL; local 5210 char *pg_name = NULL; local 5289 char *pg_name = NULL; local 5399 char *pg_name = NULL; local 5489 char *pg_name = NULL; local 6192 _check_pg(scf_pg_tmpl_t *t, scf_propertygroup_t *pg, char *pg_name, char *type, scf_tmpl_errors_t *errs) argument 6394 char *pg_name = NULL; local 6538 char *pg_name = NULL; local [all...] |
H A D | lowlevel.c | 6350 const char *scope_name, *svc_name, *inst_name, *pg_name; local 6362 &pg_name, &prop_name) != SCF_SUCCESS) 6369 if (pg_name != NULL || prop_name != NULL) {
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/kssl/ksslcfg/ |
H A D | ksslcfg_create.c | 64 const char *pg_name, const char *pg_type) 78 if (scf_instance_add_pg(instance, pg_name, pg_type, 0, pg) != 0) { 177 const char *kssl_entry, const char *pg_name, const char *flags, 189 pg_name, SCF_GROUP_METHOD); 195 KSSL_DEBUG("%s method added\n", pg_name); 217 " been deleted.\n"), pg_name); 225 if (strcmp(pg_name, "stop") == 0) 63 add_property_group_to_instance(scf_handle_t *handle, scf_instance_t *instance, const char *pg_name, const char *pg_type) argument 176 add_pg_method(scf_handle_t *handle, scf_instance_t *instance, const char *kssl_entry, const char *pg_name, const char *flags, const char *value_str) argument
|
/illumos-gate/usr/src/cmd/ipf/svc/ |
H A D | ipfd.c | 571 const char *inst_name, *pg_name; local 618 &pg_name, NULL) != SCF_SUCCESS) 621 if (inst_name != NULL && pg_name == NULL) {
|
/illumos-gate/usr/src/cmd/svc/lsvcrun/ |
H A D | lsvcrun.c | 197 char *pg_name = NULL; local 201 if ((pg_name = start_pg_name(script)) == NULL) 210 if (scf_service_add_pg(svc, pg_name, SCF_GROUP_FRAMEWORK, 213 free(pg_name); 239 if (scf_service_get_pg(svc, pg_name, pg) != 0) { 290 free(pg_name);
|
/illumos-gate/usr/src/cmd/svc/svcadm/ |
H A D | svcadm.c | 791 const char *svc_name, *inst_name, *pg_name; local 807 if (scf_parse_svc_fmri(cfmri, NULL, &svc_name, &inst_name, &pg_name, 817 if (svc_name == NULL || pg_name != NULL) {
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | libdlwlan.c | 1593 const char *pg_name, const char *pg_type) 1601 if (scf_instance_add_pg(instance, pg_name, pg_type, 0, pg) != 0) { 1646 const char *pg_name, const char *flags) 1655 pg_name, SCF_GROUP_METHOD); 1592 add_property_group_to_instance(scf_handle_t *handle, scf_instance_t *instance, const char *pg_name, const char *pg_type) argument 1645 add_pg_method(scf_handle_t *handle, scf_instance_t *instance, const char *pg_name, const char *flags) argument
|
/illumos-gate/usr/src/lib/libinetsvc/common/ |
H A D | inetsvc.c | 1042 const char *pg_name) 1050 if ((sprop = scf_simple_prop_get(h, inst, pg_name, iprop->ip_name)) == 1041 read_prop(scf_handle_t *h, inetd_prop_t *iprop, int index, const char *inst, const char *pg_name) argument
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/ |
H A D | ilbd_scf.c | 1356 char *pg_name = NULL; local 1376 if ((pg_name = malloc(scf_name_len)) == NULL) { 1383 if (scf_pg_get_name(newpg, pg_name, scf_name_len) < 0) { 1398 if (strncmp(ILBD_PG_NAME_RULE, pg_name, 1413 &pg_name[strlen(ILBD_PG_NAME_RULE)], 1423 if (strncmp(ILBD_PG_NAME_SG, pg_name, 1440 &pg_name[strlen(ILBD_PG_NAME_SG)], 1471 if (strncmp(ILBD_PG_NAME_HC, pg_name, 1486 &pg_name[strlen(ILBD_PG_NAME_HC)], 1498 if (pg_name ! 1569 ilbd_change_prop(ilbd_scf_pg_type_t pg_type, const char *pg_name, const char *prop_name, void *new_val) argument [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/ |
H A D | mpd_tables.c | 294 phyint_group_lookup(const char *pg_name) argument 299 logdebug("phyint_group_lookup(%s)\n", pg_name); 302 if (strncmp(pg->pg_name, pg_name, sizeof (pg->pg_name)) == 0) 316 logdebug("phyint_insert(%s '%s')\n", pi->pi_name, pg->pg_name); 518 (void) strlcpy(pg->pg_name, name, sizeof (pg->pg_name)); 598 char pg_name[LIFNAMSIZ + 1]; local 665 (void) strlcpy(pg_name, lif [all...] |
H A D | mpd_tables.h | 153 char pg_name[LIFGRNAMSIZ]; /* Phyint group name */ member in struct:phyint_group 424 extern struct phyint_group *phyint_group_create(const char *pg_name); 425 extern struct phyint_group *phyint_group_lookup(const char *pg_name);
|
/illumos-gate/usr/src/cmd/isns/isnsd/ |
H A D | obj.c | 1783 uchar_t *pg_name; local 1802 pg_name = (uchar_t *)malloc(name->len); 1804 if (pg != NULL && pg_name != NULL && pg_addr != NULL) { 1805 (void) strcpy((char *)pg_name, (char *)name->value.ptr); 1809 attr->value.ptr = pg_name; 1840 free(pg_name);
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_xml.c | 812 const char *pg_name; member in struct:propmeth_data 825 if (topo_prop_method_version_register(ptn, meth->pg_name, 832 meth->meth_name, meth->prop_name, meth->pg_name, 845 pmeth_record(topo_mod_t *mp, const char *pg_name, xmlNodePtr xn, tnode_t *tn, argument 860 "(pgrp=%s)\n", topo_node_name(tn), topo_node_instance(tn), pg_name); 944 meth.pg_name = (const char *)pg_name; 969 meth.pg_name, meth.prop_name, &err) 978 meth.pg_name, meth.prop_name, &err) 993 if (topo_prop_setmutable(tn, meth.pg_name, [all...] |
/illumos-gate/usr/src/cmd/svc/svccfg/ |
H A D | svccfg_xml.c | 2703 char *pg_name; local 2734 pg_name = safe_malloc(max_scf_name_len + 1); 2735 if ((extra = snprintf(pg_name, max_scf_name_len + 1, "%s%s_%s", 2747 pg = internal_pgroup_create_strict(service, pg_name, 2834 free(pg_name); 2965 char *pg_name; local 2969 pg_name = safe_malloc(max_scf_name_len + 1); 2982 if (strlcpy(pg_name, SCF_PG_TM_PG_PATTERN_PREFIX, 2992 if ((out_len = snprintf(pg_name, max_scf_name_len + 1, 3020 if ((out_len = snprintf(pg_name, max_scf_name_le [all...] |
H A D | svccfg_tmpl.c | 2517 char *pg_name; local 2522 pg_name = safe_malloc(name_size); 2523 rv = pg_name; 2536 if (strlcpy(pg_name, SCF_PG_TM_PG_PATTERN_PREFIX, 2545 if (snprintf(pg_name, name_size, "%s%s", 2563 if (snprintf(pg_name, name_size, "%s%s", prefix, name) >= 2571 free(pg_name); 3339 const char *pg_name; local 3358 pg_name = find_astring_value_in_pg(pg, SCF_PROPERTY_TM_NAME); 3362 einfo.ei_u.ei_missing_pg.ei_pg_name = pg_name; [all...] |
H A D | svccfg_libscf.c | 467 get_pg(const char *pg_name, scf_propertygroup_t *pg) argument 472 ret = scf_snaplevel_get_pg(cur_level, pg_name, pg); 474 ret = scf_instance_get_pg(cur_inst, pg_name, pg); 476 ret = scf_service_get_pg(cur_svc, pg_name, pg); 13197 char *pg_name; local 13203 pg_name = safe_malloc(max_scf_name_len + 1); 13205 if (scf_pg_get_name(pg, pg_name, max_scf_name_len + 1) == -1) { 13208 if (strncmp(pg_name, SCF_PG_TM_DOC_PREFIX, doc_len) == 0) { 13224 } else if (strncmp(pg_name, SCF_PG_TM_MAN_PREFIX, 13253 free(pg_name); 13345 char *pg_name = NULL, *prop_name = NULL; local [all...] |
/illumos-gate/usr/src/cmd/svc/configd/ |
H A D | rc_node.c | 3633 * Determine if the combination of the property group at pg_name and the 3639 char *pg_name, int status, int return_val, tx_commit_data_t *tx_data, 3648 search_key.api_pg_name = pg_name; 3765 char pg_name[REP_PROTOCOL_NAME_LEN]; local 3789 pg_name[0] = 0; 3792 (void) strlcpy(pg_name, cp, sizeof (pg_name)); 3823 special_property_event(&audit_data, prop_name, pg_name, 3638 special_property_event(audit_event_data_t *evdp, const char *prop_name, char *pg_name, int status, int return_val, tx_commit_data_t *tx_data, size_t cmd_no) argument
|
/illumos-gate/usr/src/cmd/svc/svcs/ |
H A D | svcs.c | 2075 const char *svc_name, *inst_name, *pg_name, *path; local 2107 &pg_name, NULL) != SCF_SUCCESS) { 2115 if (svc_name == NULL || pg_name != NULL) { 2985 const char *scope_name, *svc_name, *inst_name, *pg_name; local 2999 &inst_name, &pg_name, NULL) != SCF_SUCCESS) { 3079 const char *svc_name, *inst_name, *pg_name, *save; local 3085 if (scf_parse_svc_fmri(fmri, NULL, &svc_name, &inst_name, &pg_name, 3101 if (svc_name == NULL || pg_name != NULL) { 3288 const char *scope_name, *svc_name, *inst_name, *pg_name; local 3294 &pg_name, NUL 3393 const char *pg_name; local [all...] |
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | graph.c | 2318 const char *pg_name; /* Name of dependency pg */ member in struct:depfmri_info 2359 info->pg_name, info->inst_fmri); 2382 info->pg_name, info->inst_fmri); 2399 "\"%s\".\n", info->pg_name, info->inst_fmri, 2408 "service or instance.\n", info->pg_name, 2538 char *fmri, *pg_name; local 2551 pg_name = startd_alloc(max_scf_name_size); 2553 len = scf_pg_get_name(pg, pg_name, max_scf_name_size); 2555 startd_free(pg_name, max_scf_name_size); 2578 pg_name, inf 6477 process_pg_event(scf_handle_t *h, scf_propertygroup_t *pg, scf_instance_t *inst, char *pg_name) argument 6768 const char *pg_name = NULL; local 6824 char *pg_name = startd_alloc(max_scf_value_size); local [all...] |