/opensolaris-onvv-gate/usr/src/lib/librstp/common/ |
H A D | stp_in.h | 79 #define CHECK_BRIDGE_CONFIG(cfg) \ 80 (2 * (cfg.forward_delay - 1) >= cfg.max_age && \ 81 cfg.max_age >= 2 * (cfg.hello_time + 1)) 86 #define NO_MAXAGE(cfg) ((cfg.forward_delay - 1) < (cfg.hello_time + 1)) 87 #define MIN_FWDELAY_NOM(cfg) \ 88 (cfg [all...] |
/opensolaris-onvv-gate/usr/src/uts/common/io/hxge/ |
H A D | hpi_vmac.c | 67 vmac_tx_cfg_t cfg; local 76 HXGE_REG_RD64(handle, VMAC_TX_CFG, &cfg.value); 81 cfg.bits.tx_en = 1; 83 cfg.bits.crc_insert = 1; 85 cfg.bits.tx_pad = 1; 87 cfg.bits.tx_max_frame_length = max_frame_length; 91 cfg.bits.tx_en = 0; 93 cfg.bits.crc_insert = 0; 95 cfg.bits.tx_pad = 0; 99 cfg 131 vmac_rx_cfg_t cfg; local 156 vmac_rx_cfg_t cfg; local [all...] |
/opensolaris-onvv-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_prop.c | 59 static int ndmpd_config_update(ndmpd_cfg_param_t *cfg, char *value); 103 ndmpd_cfg_param_t *cfg; local 107 cfg = &ndmpd_cfg_table[id]; 108 if ((ndmp_get_prop(cfg->sc_name, &value)) == -1) { 110 cfg->sc_name, ndmp_strerror(ndmp_errno)); 120 if ((cfg->sc_flags & NDMP_CF_DEFINED) || value) { 121 if (ndmpd_config_update(cfg, value)) { 138 ndmpd_config_update(ndmpd_cfg_param_t *cfg, char *value) argument 146 if (cfg->sc_value) { 147 curval = realloc(cfg [all...] |
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Math/BigInt/t/ |
H A D | config.t | 26 my $cfg = $mbi->config(); 28 ok (ref($cfg),'HASH'); 30 ok ($cfg->{lib},'Math::BigInt::Calc'); 31 ok ($cfg->{lib_version}, $Math::BigInt::Calc::VERSION); 32 ok ($cfg->{class},$mbi); 33 ok ($cfg->{upgrade}||'',''); 34 ok ($cfg->{div_scale},40); 36 ok ($cfg->{precision}||0,0); # should test for undef 37 ok ($cfg->{accuracy}||0,0); 39 ok ($cfg [all...] |
H A D | trap.t | 20 my ($cfg,$x); 30 $cfg = $class->config( trap_nan => 1 ); ok ($cfg->{trap_nan},1); 38 $cfg = $class->config( trap_nan => 0 ); ok ($cfg->{trap_nan},0); 41 $cfg = $class->config( trap_inf => 1 ); ok ($cfg->{trap_inf},1); 56 $cfg = $class->config( trap_nan => 1 );
|
/opensolaris-onvv-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | fc-fabric | 35 if [ -s /etc/cfg/fp/fabric_WWN_map ] 38 -f /etc/cfg/fp/fabric_WWN_map 40 if [ -s /etc/cfg/fp/fabric_WWN_map.old ] 43 -f /etc/cfg/fp/fabric_WWN_map.old
|
/opensolaris-onvv-gate/usr/src/lib/libiscsit/common/ |
H A D | libiscsit.h | 101 * cfg A C representation of the current iSCSI configuration 109 it_config_load(it_config_t **cfg); 120 * cfg A C representation of the current iSCSI configuration 130 it_config_commit(it_config_t *cfg); 142 * cfg The current iSCSI configuration obtained from 155 it_config_setprop(it_config_t *cfg, nvlist_t *proplist, nvlist_t **errlist); 163 * cfg A C representation of the current iSCSI configuration 166 it_config_free(it_config_t *cfg); 180 * cfg The current iSCSI configuration obtained from 197 it_tgt_create(it_config_t *cfg, it_tgt_ [all...] |
H A D | libiscsit.c | 104 * cfg A C representation of the current iSCSI configuration 112 it_config_load(it_config_t **cfg) argument 119 if (!cfg) { 123 *cfg = NULL; 139 *cfg = newcfg; 158 * cfg A C representation of the current iSCSI configuration 168 it_config_commit(it_config_t *cfg) argument 178 if (!cfg) { 182 ret = it_config_to_nv(cfg, &cfgnv); 235 tgtp = cfg 316 it_config_setprop(it_config_t *cfg, nvlist_t *proplist, nvlist_t **errlist) argument 496 it_config_free(it_config_t *cfg) argument 529 it_tgt_create(it_config_t *cfg, it_tgt_t **tgt, char *tgt_name) argument 610 it_tgt_setprop(it_config_t *cfg, it_tgt_t *tgt, nvlist_t *proplist, nvlist_t **errlist) argument 729 it_tgt_delete(it_config_t *cfg, it_tgt_t *tgt, boolean_t force) argument 839 it_tpgt_create(it_config_t *cfg, it_tgt_t *tgt, it_tpgt_t **tpgt, char *tpg_name, uint16_t tpgt_tag) argument 936 it_tpgt_delete(it_config_t *cfg, it_tgt_t *tgt, it_tpgt_t *tpgt) argument 1011 it_tpg_create(it_config_t *cfg, it_tpg_t **tpg, char *tpg_name, char *portal_ip_port) argument 1082 it_tpg_delete(it_config_t *cfg, it_tpg_t *tpg, boolean_t force) argument 1182 it_portal_create(it_config_t *cfg, it_tpg_t *tpg, it_portal_t **portal, char *portal_ip_port) argument 1252 it_portal_delete(it_config_t *cfg, it_tpg_t *tpg, it_portal_t *portal) argument 1307 it_ini_create(it_config_t *cfg, it_ini_t **ini, char *ini_node_name) argument 1468 it_ini_delete(it_config_t *cfg, it_ini_t *ini) argument [all...] |
/opensolaris-onvv-gate/usr/src/cmd/avs/dscfglockd/ |
H A D | dscfgcli.c | 37 #include <sys/nsctl/cfg.h> 39 CFGFILE *cfg; variable 52 if (cfg_lock(cfg, CFG_RDLOCK) < 0) 57 cfg_unlock(cfg); 60 if (cfg_lock(cfg, CFG_RDLOCK) < 0) 65 cfg_unlock(cfg); 68 if (cfg_lock(cfg, CFG_WRLOCK) < 0) 73 cfg_unlock(cfg); 107 if (cfg_lock(cfg, CFG_RDLOCK) < 0) 118 cfg_unlock(cfg); [all...] |
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Math/BigRat/t/ |
H A D | trap.t | 19 my ($cfg,$x); 29 $cfg = $class->config( trap_nan => 1 ); ok ($cfg->{trap_nan},1); 32 $cfg = $class->config( { trap_nan => 1 } ); ok ($cfg->{trap_nan},1); 40 $cfg = $class->config( trap_nan => 0 ); ok ($cfg->{trap_nan},0); 43 $cfg = $class->config( trap_inf => 1 ); ok ($cfg->{trap_inf},1); 58 $cfg [all...] |
/opensolaris-onvv-gate/usr/src/cmd/lms/ |
H A D | glue.cpp | 55 static void parser_init(parser_t *cfg) argument 57 if (!cfg) { 61 cfg->count = 0; 64 static int parser_add(parser_t *cfg, char *buf) argument 66 if ((!cfg) || (cfg->count > PARSER_MAX)) { 70 cfg->line[cfg->count] = strdup(buf); 71 if (cfg->line[cfg 78 parser_length(parser_t *cfg) argument 87 parser_get(parser_t *cfg, unsigned int index) argument 97 parser_read(parser_t *cfg, FILE *fp) argument 131 parser_free(parser_t *cfg) argument 215 parser_t cfg; local [all...] |
/opensolaris-onvv-gate/usr/src/lib/librdc/common/ |
H A D | rdcpersist.c | 41 #include <sys/nsctl/cfg.h> 74 load_rdc_vols(CFGFILE *cfg) argument 86 cfg_rewind(cfg, CFG_SEC_CONF); 90 if (cfg_get_cstring(cfg, key, buf, CFG_MAX_BUF)) { 264 do_autosv_enable(CFGFILE *cfg, rdcconfig_t *rdc) argument 269 cfg_load_svols(cfg); 270 cfg_load_dsvols(cfg); 271 cfg_load_shadows(cfg); 272 load_rdc_vols(cfg); 282 if (cfg_vol_enable(cfg, vo 307 do_autosv_disable(CFGFILE *cfg, rdcconfig_t *rdc) argument 358 sv_enable(CFGFILE *cfg, rdcconfig_t *rdcs) argument 379 sv_disable(CFGFILE *cfg, rdcconfig_t *rdcs) argument 405 sv_reconfig(CFGFILE *cfg, rdcconfig_t *rdc, char *oldbmp, char *newbmp) argument 466 CFGFILE *cfg; local 508 cfg_lookup(CFGFILE *cfg, char *shost, char *sfile) argument 542 CFGFILE *cfg; local 579 CFGFILE *cfg; local 648 CFGFILE *cfg; local [all...] |
/opensolaris-onvv-gate/usr/src/cmd/avs/rdc/ |
H A D | rdcadm.h | 53 extern int get_cfg_setid(CFGFILE *cfg, char *ctag, char *tohost, char *tofile); 54 extern int get_new_cfg_setid(CFGFILE *cfg); 55 extern void get_group_diskq(CFGFILE *cfg, char *group, char *diskq);
|
H A D | sndrsubr.c | 47 #include <sys/nsctl/cfg.h> 262 * - a valid cfg handle 265 * cfg - cfg handle 273 find_setnumber_in_libcfg(CFGFILE *cfg, char *ctag, char *tohost, char *tofile) argument 282 if (cfg == NULL) { 284 rdc_warn(NULL, "cfg is NULL while looking up set number"); 289 entries = cfg_get_section(cfg, &entry, "sndr"); 339 get_group_diskq(CFGFILE *cfg, char *group, char *diskq) argument 351 if (cfg_get_cstring(cfg, ke 364 get_cfg_setid(CFGFILE *cfg, char *ctag, char *tohost, char *tofile) argument 405 get_new_cfg_setid(CFGFILE *cfg) argument [all...] |
H A D | sndrsyncd.c | 48 #include <sys/nsctl/cfg.h> 360 CFGFILE *cfg = NULL; local 405 if ((cfg = cfg_open(NULL)) == NULL) { 416 if (!cfg_lock(cfg, CFG_RDLOCK)) { 427 if (cfg_get_cstring(cfg, key, buf, CFG_MAX_BUF) < 0) { 443 if (cfg_get_cstring(cfg, key, buf, CFG_MAX_BUF) < 0) 450 if (cfg_get_cstring(cfg, key, buf, CFG_MAX_BUF) < 0) 456 if (cfg_get_cstring(cfg, key, buf, CFG_MAX_BUF) < 0) 465 * release cfg before diving into the kernel 474 cfg_close(cfg); 706 CFGFILE *cfg = NULL; local 781 CFGFILE *cfg = NULL; local 1165 CFGFILE *cfg = NULL; local 1369 CFGFILE *cfg = NULL; local [all...] |
/opensolaris-onvv-gate/usr/src/lib/libdscfg/common/ |
H A D | cfg.h | 48 int cfg_get_cstring(CFGFILE *cfg, const char *key, void *value, int value_len); 49 int cfg_put_cstring(CFGFILE *cfg, const char *key, void *value, int value_len); 50 int cfg_find_cstring(CFGFILE *cfg, const char *target, const char *section, 52 int cfg_get_options(CFGFILE *cfg, int section, const char *basekey, 54 int cfg_put_options(CFGFILE *cfg, int section, const char *basekey, 59 int cfg_get_num_entries(CFGFILE *cfg, char *section); 61 int cfg_get_tags(CFGFILE *cfg, char ***taglist); 63 int cfg_cfg_isempty(CFGFILE *cfg); 64 int cfg_get_section(CFGFILE *cfg, char ***buf, const char *section); 66 void cfg_rewind(CFGFILE *cfg, in [all...] |
H A D | cfg_vols.c | 38 #include <sys/nsctl/cfg.h> 107 * CFGFILE *cfg: A pointer to the current config file, or NULL if this 121 cfg_add_user(CFGFILE* cfg, char *path, char *cnode, char *user) argument 128 self_open = (cfg == NULL); 133 cfg = cfg_open(NULL); 134 if (cfg == NULL) { 138 if (!cfg_lock(cfg, CFG_WRLOCK)) { 140 cfg_close(cfg); 146 ctag = cfg_get_resource(cfg); 152 cfg_resource(cfg, cnod 281 cfg_rem_user(CFGFILE *cfg, char *path, char *cnode, char *user) argument 481 cfg_vol_enable(CFGFILE *cfg, char *path, char *ctag, char *user) argument 528 cfg_vol_disable(CFGFILE *cfg, char *path, char *ctag, char *user) argument 584 cfg_load_dsvols(CFGFILE *cfg) argument 699 cfg_load_svols(CFGFILE *cfg) argument 794 cfg_get_canonical_name(CFGFILE *cfg, const char *path, char **result) argument 843 cfg_load_shadows(CFGFILE *cfg) argument 986 CFGFILE *cfg; local [all...] |
H A D | cfg.c | 54 #include "cfg.h" 249 cfg_perror_str = dgettext("cfg", 296 * checks cfg->cf_node for filtering 304 cfg_filter_node(CFGFILE *cfg, struct parser *tbl, char *buf, char *tag) argument 311 if (!cfg->cf_node) /* no filter always good */ 329 cfg->cf_node, strlen(cfg->cf_node), ptr, strlen(ptr)); 331 if (strcmp(ptr, cfg->cf_node) == 0) 340 cfg_insert_node(CFGFILE *cfg, struct parser *tbl, char *buf, char *tag) argument 351 if ((fld < 0) && !(cfg 370 cfg_is_cnode(CFGFILE *cfg, struct parser *tbl, char *buf, char *tag) argument 392 cfg_get_cstring(CFGFILE *cfg, const char *key, void *value, int value_len) argument 548 cfg_find_cstring(CFGFILE *cfg, const char *target, const char *section, int numflds, ...) argument 686 cfg_put_cstring(CFGFILE *cfg, const char *key, void *value, int val_len) argument 1149 cfg_get_options(CFGFILE *cfg, int section, const char *basekey, char *tag, int tag_len, char *val, int val_len) argument 1203 cfg_put_options(CFGFILE *cfg, int section, const char *basekey, char *tag, char *val) argument 1311 cfg_get_single_option(CFGFILE *cfg, int section, const char *basekey, char *tag, char *val, int val_len) argument 1393 cfg_del_option(CFGFILE *cfg, int section, const char *basekey, char *tag) argument 1679 cfg_lock(CFGFILE *cfg, CFGLOCK mode) argument 1883 cfg_unlock(CFGFILE *cfg) argument 1899 cfg_rdlock(CFGFILE *cfg) argument 1952 cfg_wrlock(CFGFILE *cfg) argument 2001 cfg_get_lock(CFGFILE *cfg, CFGLOCK *lock, pid_t *pid) argument 2075 cfg_commit(CFGFILE *cfg) argument 2241 cfg_rewind(CFGFILE *cfg, int section) argument 2367 cfg_update_parser_config(CFGFILE *cfg, const char *key, int section) argument 2797 cfg_close(CFGFILE *cfg) argument 2861 cfg_get_resource(CFGFILE *cfg) argument 2878 cfg_resource(CFGFILE *cfg, const char *node) argument 2912 CFGFILE *cfg; local 3072 cfg_cfg_isempty(CFGFILE *cfg) argument 3095 cfg_get_num_entries(CFGFILE *cfg, char *section) argument 3128 cfg_get_section(CFGFILE *cfg, char ***list, const char *section) argument 3203 cfg_get_tags(CFGFILE *cfg, char ***taglist) argument 3247 cfg_is_cfg(CFGFILE *cfg) argument 3331 cfg_get_srtdsec(CFGFILE *cfg, char ***list, const char *section, const char *field) argument [all...] |
/opensolaris-onvv-gate/usr/src/lib/libsrpt/common/ |
H A D | libsrpt.h | 39 * cfg Current SRPT configuration in nvlist form 49 srpt_GetConfig(nvlist_t **cfg, uint64_t *token); 55 * cfg SRPT configuration in nvlist form 67 srpt_SetConfig(nvlist_t *cfg, uint64_t token); 161 * hca:3BA000100CD18 - form from cfgadm and/or /dev/cfg
|
/opensolaris-onvv-gate/usr/src/cmd/avs/dscfg/ |
H A D | dscfg.c | 51 #include <sys/nsctl/cfg.h> 161 parse_parse_config(CFGFILE *cfg) argument 181 cfg_rewind(cfg, CFG_SEC_ALL); 188 rc = cfg_update_parser_config(cfg, buff, CFG_PARSE_CONF); 202 parse_text_config(CFGFILE *cfg) argument 218 cfg_rewind(cfg, CFG_SEC_CONF); 235 rc = cfg_put_cstring(cfg, key, p, strlen(p)); 247 dump_status(CFGFILE *cfg) argument 249 cfp_t *cfp = FP_SUN_CLUSTER(cfg); 288 dump_lockstat(CFGFILE *cfg) argument 312 print_config(CFGFILE *cfg) argument 456 CFGFILE *cfg; local [all...] |
/opensolaris-onvv-gate/usr/src/cmd/avs/dsw/ |
H A D | iiboot.c | 44 #include <sys/nsctl/cfg.h> 314 CFGFILE *cfg; local 332 if (!(cfg = cfg_open(""))) { 338 while (!cfg_lock(cfg, CFG_WRLOCK)) 342 if (cfg_get_cstring(cfg, key, buf, CFG_MAX_BUF) < 0) { 343 cfg_close(cfg); 360 cfg_close(cfg); 374 if (cfg_vol_disable(cfg, mst, cfg_cluster_tag, 382 if (cfg_put_cstring(cfg, key, NULL, 0) < 0) { 391 if (cfg_vol_disable(cfg, sh 457 CFGFILE *cfg; local 555 CFGFILE *cfg; local [all...] |
H A D | iicpshd.c | 44 #include <sys/nsctl/cfg.h> 69 CFGFILE *cfg; variable 98 if ((cfg = cfg_open(NULL)) == NULL) { 107 cfg_close(cfg); 153 gettext("Old shadow not in existing cfg\n")); 177 gettext("Old shadow not in existing cfg\n")); 182 gettext("Old shadow not in existing cfg\n")); 253 if (!cfg_lock(cfg, CFG_RDLOCK)) { 262 if (cfg_get_cstring(cfg, key, buf, DSW_NAMELEN) < 0) { 263 cfg_unlock(cfg); [all...] |
/opensolaris-onvv-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_cfg.c | 150 smb_cfg_param_t *cfg; local 151 cfg = smb_config_getent(id); 152 return (cfg->sc_name); 357 smb_cfg_param_t *cfg; local 364 cfg = smb_config_getent(id); 365 assert(cfg->sc_type == SCF_TYPE_ASTRING); 371 if (cfg->sc_flags & SMB_CF_PROTECTED) { 376 if ((rc = smb_smf_get_string_property(handle, cfg->sc_name, 386 pg = (cfg->sc_flags & SMB_CF_EXEC) ? SMBD_EXEC_PG_NAME : 390 rc = smb_smf_get_string_property(handle, cfg 412 smb_cfg_param_t *cfg; local 468 smb_cfg_param_t *cfg; local 496 smb_cfg_param_t *cfg; local 525 smb_cfg_param_t *cfg; local 561 smb_cfg_param_t *cfg; local 625 smb_cfg_param_t *cfg; local 660 smb_cfg_param_t *cfg; local 696 smb_cfg_param_t *cfg; local [all...] |
/opensolaris-onvv-gate/usr/src/cmd/itadm/ |
H A D | itadm.c | 623 it_config_t *cfg = NULL; local 649 ret = it_config_load(&cfg); 658 ret = it_tgt_create(cfg, &tgtp, tgt); 705 tpg = cfg->config_tpg_list; 725 ret = it_tpgt_create(cfg, tgtp, &tpgt, tags[i], tagid); 741 ret = it_tgt_setprop(cfg, tgtp, proplist, &errlist); 770 ret = it_config_commit(cfg); 782 it_config_free(cfg); 791 it_config_t *cfg; local 812 ret = it_config_load(&cfg); 971 it_config_t *cfg; local 1039 it_config_t *cfg = NULL; local 1285 it_config_t *cfg; local 1406 it_config_t *cfg; local 1509 it_config_t *cfg; local 1568 it_config_t *cfg; local 1702 it_config_t *cfg; local 1795 it_config_t *cfg; local 1842 it_config_t *cfg; local 1910 it_config_t *cfg; local [all...] |
/opensolaris-onvv-gate/usr/src/cmd/avs/sdbc/ |
H A D | scmadm.c | 54 #include <sys/nsctl/cfg.h> 189 convert_config(CFGFILE *cfg, CFGLOCK mode) argument 195 if (cfg_get_cstring(cfg, "scm.set1", buf, sizeof (buf)) >= 0) { 200 cfg_rewind(cfg, CFG_SEC_CONF); 207 cfg_unlock(cfg); 208 if (!cfg_lock(cfg, CFG_WRLOCK)) { 222 if (cfg_put_cstring(cfg, "scm", default_cfg, strlen(default_cfg)) < 0) { 229 if (!cfg_commit(cfg)) { 236 if (!cfg_lock(cfg, mode)) { 244 cfg_rewind(cfg, CFG_SEC_CON 271 CFGFILE *cfg; local 381 CFGFILE *cfg; local 427 CFGFILE *cfg; local 525 CFGFILE *cfg; local 788 CFGFILE *cfg; local 846 CFGFILE *cfg; local 1495 CFGFILE *cfg; local [all...] |