Lines Matching refs:cfg
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)
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)
351 if (cfg_get_cstring(cfg, key, &buf, sizeof (buf)) < 0)
355 if (cfg_get_cstring(cfg, key, diskq, CFG_MAX_BUF) < 0) {
364 get_cfg_setid(CFGFILE *cfg, char *ctag, char *tohost, char *tofile)
371 if (cfg == NULL) {
373 if ((cfg = cfg_open(NULL)) == NULL) {
376 if (!cfg_lock(cfg, CFG_RDLOCK)) {
377 cfg_close(cfg);
381 setnum = find_setnumber_in_libcfg(cfg, ctag, tohost, tofile);
386 if (cfg_get_single_option(cfg, CFG_SEC_CONF, key, "setid",
389 cfg_close(cfg);
398 cfg_close(cfg);
405 get_new_cfg_setid(CFGFILE *cfg)
412 if ((ctag = cfg_get_resource(cfg)) != NULL) {
414 cfg_resource(cfg, "setid-ctag");
417 if (cfg_get_cstring(cfg, "setid.set1.value", buf, CFG_MAX_BUF) < 0) {
419 if (cfg_put_cstring(cfg, "setid", "1", CFG_MAX_BUF) < 0) {
432 if (cfg_put_cstring(cfg, "setid.set1.value", buf, CFG_MAX_BUF) < 0) {
438 cfg_resource(cfg, ctag);