conf_file
update_conf(char *conf_file, char *entry)
if ((pfile = fopen(conf_file, "r+")) == NULL) {
cryptodebug("failed to open %s for write.", conf_file);
if (strcmp(conf_file, _PATH_PKCS11_CONF) == 0) {
if (strcmp(conf_file, _PATH_PKCS11_CONF) == 0) {
if (rename(tmpfile_name, conf_file) == -1) {
conf_file, strerror(err));
} else if (chmod(conf_file,
cryptodebug("failed to chmod to %s: %s", conf_file,
static char *conf_file = NULL;
if (conf_file == NULL) {
file = conf_file;
conf_file = argv[1];
if (conf_file != NULL)
conf_file = optarg;
if (conf_file)
if (load_config(conf_file) == -1)
if (conf_file != NULL)
load_config(conf_file);
static char *conf_file = NULL;
const char *conf_file; /* -C: alternate config file. */
conf_file = NULL;
conf_file = optarg;
manconf_parse(&conf, conf_file, defpaths, auxpaths);
if (strcmp(conf_file, pool_dynamic_location()) == 0)
if (pool_conf_export(conf, conf_file, POX_NATIVE) != 0) {
if (pool_conf_open(conf, conf_file, PO_RDWR) != 0) {
static const char *conf_file = NULL; /* Location of target config */
die(gettext(ERR_CONF_LOAD), conf_file,
die(gettext(ERR_CONF_LOAD), conf_file,
conf_file = pool_static_location();
conf_file = pool_dynamic_location();
if (strcmp(conf_file, pool_dynamic_location()) == 0)
conf_file = argv[optind];
if (pool_conf_open(conf, conf_file, PO_RDWR) != 0) {
if (pool_conf_open(conf, conf_file, PO_RDONLY) != 0) {
if (pool_conf_open(conf, conf_file, PO_CREAT) != 0) {
parse_conf_file(char *conf_file)
SYSEVENT_CONFIG_DIR, conf_file);
syslog(LOG_ERR, CANNOT_OPEN_ERR, conf_file, strerror(errno));
conf_file, lineno, user);
conf_file, lineno, reserved1);
conf_file, lineno, reserved2);
conf_file, lineno, path, strerror(errno));
sep->se_conf_file = conf_file;
syslog(LOG_ERR, SYNTAX_ERR, conf_file, lineno);
extern int update_conf(char *conf_file, char *entry);
file_err(struct conf_file *filep, char *fmt, ...)
struct conf_file file;
lex(struct conf_file *filep, char *val, size_t size)
parse_conf_entry(struct conf_file *filep, char *tokbuf, size_t linesize)
struct conf_file file;
lookup_in_conf_file(char *rootdir, char *conf_file, char *path)
"path = \"%s\"\n", rootdir, conf_file, STRVAL(path)));
(void) snprintf(buf, MAXPATHLEN, "%s%s", rootdir, conf_file);
static void init_map_rules(struct gen_p *, const char *conf_file);
irs_gen_acc(const char *options, const char *conf_file) {
init_map_rules(irs, conf_file);
init_map_rules(struct gen_p *irs, const char *conf_file) {
if (conf_file == NULL)
conf_file = _PATH_IRS_CONF ;
if (conf_file[0] == '\0' || (conf = fopen(conf_file, "r")) == NULL) {
extern struct irs_acc * irs_gen_acc __P((const char *, const char *conf_file));
net_data_init(const char *conf_file) {
net_data = net_data_create(conf_file);
net_data_create(const char *conf_file) {
if ((net_data->irs = irs_gen_acc("", conf_file)) == NULL) {
extern struct net_data * net_data_init(const char *conf_file);
const char *conf_file = NULL;
conf_file = full_file ? conf_to_config : alloc_file_name;
if (full_file || stat(conf_file, &buf) == 0)
strcmp(conf_file, gctx->config_path) == 0 &&
conf_file, SASL_VRFY_CONF);
result=sasl_config_init(gctx, conf_file);