MCPcopy Create free account
hub / github.com/apache/httpd / ap_pcfg_strerror

Function ap_pcfg_strerror

server/util.c:1063–1075  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1061}
1062
1063AP_DECLARE(const char *) ap_pcfg_strerror(apr_pool_t *p, ap_configfile_t *cfp,
1064 apr_status_t rc)
1065{
1066 if (rc == APR_SUCCESS)
1067 return NULL;
1068
1069 if (rc == APR_ENOSPC)
1070 return apr_psprintf(p, "Error reading %s at line %d: Line too long",
1071 cfp->name, cfp->line_number);
1072
1073 return apr_psprintf(p, "Error reading %s at line %d: %pm",
1074 cfp->name, cfp->line_number, &rc);
1075}
1076
1077/* Read one line from open ap_configfile_t, strip LF, increase line number */
1078/* If custom handler does not define a getstr() function, read char by char */

Callers 3

ap_build_cont_configFunction · 0.85
ap_build_configFunction · 0.85
ap_soak_end_containerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected