Lines Matching defs:cfg
51 fcfg *cfg = apr_pcalloc(p, sizeof *cfg);
53 cfg->logname = NULL;
54 cfg->fd = NULL;
56 return cfg;
61 fcfg *cfg = apr_pcalloc(p, sizeof *cfg);
65 cfg->logname = apr_pstrdup(p, nc->logname ? nc->logname : pc->logname);
66 cfg->fd = NULL;
68 return cfg;
73 fcfg *cfg = ap_get_module_config(s->module_config, &log_forensic_module);
75 if (!cfg->logname || cfg->fd)
78 if (*cfg->logname == '|') {
80 const char *pname = ap_server_root_relative(p, cfg->logname + 1);
85 "couldn't spawn forensic log pipe %s", cfg->logname);
88 cfg->fd = ap_piped_log_write_fd(pl);
91 const char *fname = ap_server_root_relative(p, cfg->logname);
94 if ((rv = apr_file_open(&cfg->fd, fname,
184 fcfg *cfg = ap_get_module_config(r->server->module_config,
190 if (!cfg->fd || r->prev) {
223 rv = apr_file_write_full(cfg->fd, h.log, h.count-1, NULL);
233 fcfg *cfg = ap_get_module_config(r->server->module_config,
241 if (!cfg->fd || id == NULL) {
247 rv = apr_file_write_full(cfg->fd, s, n, NULL);
255 fcfg *cfg = ap_get_module_config(cmd->server->module_config,
258 cfg->logname = fn;