Lines Matching refs:cfg
44 #include <sys/nsctl/cfg.h>
69 CFGFILE *cfg;
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);
270 (void) cfg_get_cstring(cfg, key,
279 cfg_unlock(cfg);
318 if (!cfg_lock(cfg, CFG_WRLOCK)) {
325 if (cfg_put_cstring(cfg, key, new_shadow, len) < 0) {
330 if (cfg_put_cstring(cfg, key, new_shadow, len) < 0) {
335 if (cfg_put_cstring(cfg, key, new_shadow, len) < 0) {
339 (void) cfg_commit(cfg);
340 cfg_unlock(cfg);