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

Function cachefilemmap

modules/cache/mod_file_cache.c:217–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215 return NULL;
216}
217static const char *cachefilemmap(cmd_parms *cmd, void *dummy, const char *filename)
218{
219#if APR_HAS_MMAP
220 cache_the_file(cmd, filename, 1);
221#else
222 /* MMAP not supported by this OS */
223 ap_log_error(APLOG_MARK, APLOG_WARNING, 0, cmd->server, APLOGNO(00801)
224 "unable to cache file: %s. MMAP is not supported by this OS", filename);
225#endif
226 return NULL;
227}
228
229static int file_cache_post_config(apr_pool_t *p, apr_pool_t *plog,
230 apr_pool_t *ptemp, server_rec *s)

Callers

nothing calls this directly

Calls 2

cache_the_fileFunction · 0.85
ap_log_errorFunction · 0.50

Tested by

no test coverage detected