Lines Matching defs:cfg
37 #include <sys/nsctl/cfg.h>
40 static CFGFILE *cfg;
80 if (cfg != NULL) {
91 if ((cfg = cfg_open(NULL)) == NULL) {
98 if (!cfg_lock(cfg, lk)) {
105 cfg_resource(cfg, hostid);
112 if (cfg_changed && cfg_commit(cfg) < 0) {
119 cfg_close(cfg);
120 cfg = NULL;
136 if (cfg_get_cstring(cfg, "ncallcore.set1", buf, sizeof (buf)) >= 0) {
180 if (cfg_get_cstring(cfg, "ncallcore.set1", buf, sizeof (buf)) >= 0) {
182 if (cfg_put_cstring(cfg, "ncallcore.set1", NULL, 0) < 0) {
197 if (cfg_put_cstring(cfg, "ncallcore", buf, sizeof (buf)) < 0) {