Lines Matching refs:cfg
273 find_setnumber_in_libcfg(CFGFILE *cfg, char *ctag, char *tohost, char *tofile) in find_setnumber_in_libcfg() argument
282 if (cfg == NULL) { in find_setnumber_in_libcfg()
289 entries = cfg_get_section(cfg, &entry, "sndr"); in find_setnumber_in_libcfg()
339 get_group_diskq(CFGFILE *cfg, char *group, char *diskq) in get_group_diskq() argument
351 if (cfg_get_cstring(cfg, key, &buf, sizeof (buf)) < 0) in get_group_diskq()
355 if (cfg_get_cstring(cfg, key, diskq, CFG_MAX_BUF) < 0) { in get_group_diskq()
364 get_cfg_setid(CFGFILE *cfg, char *ctag, char *tohost, char *tofile) in get_cfg_setid() argument
371 if (cfg == NULL) { in get_cfg_setid()
373 if ((cfg = cfg_open(NULL)) == NULL) { in get_cfg_setid()
376 if (!cfg_lock(cfg, CFG_RDLOCK)) { in get_cfg_setid()
377 cfg_close(cfg); in get_cfg_setid()
381 setnum = find_setnumber_in_libcfg(cfg, ctag, tohost, tofile); in get_cfg_setid()
386 if (cfg_get_single_option(cfg, CFG_SEC_CONF, key, "setid", in get_cfg_setid()
389 cfg_close(cfg); in get_cfg_setid()
398 cfg_close(cfg); in get_cfg_setid()
405 get_new_cfg_setid(CFGFILE *cfg) in get_new_cfg_setid() argument
412 if ((ctag = cfg_get_resource(cfg)) != NULL) { in get_new_cfg_setid()
414 cfg_resource(cfg, "setid-ctag"); in get_new_cfg_setid()
417 if (cfg_get_cstring(cfg, "setid.set1.value", buf, CFG_MAX_BUF) < 0) { in get_new_cfg_setid()
419 if (cfg_put_cstring(cfg, "setid", "1", CFG_MAX_BUF) < 0) { in get_new_cfg_setid()
432 if (cfg_put_cstring(cfg, "setid.set1.value", buf, CFG_MAX_BUF) < 0) { in get_new_cfg_setid()
438 cfg_resource(cfg, ctag); in get_new_cfg_setid()