Lines Matching refs:cpr_conf
54 int get_cpr_config_path(char **cpr_conf);
430 char *cpr_conf = NULL;
445 if (cpr_conf == NULL && get_cpr_config_path(&cpr_conf) != 0) {
451 if (strlcpy(cpr_conf_dir, cpr_conf, MAXPATHLEN) >= MAXPATHLEN) {
515 if (stat(cpr_conf, &statbuf) != -1) {
518 (fd = open(cpr_conf, O_RDONLY)) != -1) {
523 __FUNCTION__, cpr_conf);
529 __FUNCTION__, cpr_conf);
532 __FUNCTION__, cpr_conf);
548 if ((fd = open(cpr_conf, O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1) {
551 __FUNCTION__, cpr_conf, strerror(errno));
558 __FUNCTION__, cpr_conf, strerror(errno));
571 get_cpr_config_path(char **cpr_conf)
576 if (*cpr_conf == NULL) {
577 *cpr_conf = strdup(CPR_CONFIG);
580 cpsize = snprintf(*cpr_conf, MAXPATHLEN, "%s", CPR_CONFIG);
590 if (*cpr_conf == NULL)
591 *cpr_conf = malloc(MAXPATHLEN);
606 cpsize = snprintf(*cpr_conf, MAXPATHLEN, "%s%s", pool, CPR_CONFIG);