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

Function ap_runtime_dir_relative

server/config.c:1610–1626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1608}
1609
1610AP_DECLARE(char *) ap_runtime_dir_relative(apr_pool_t *p, const char *file)
1611{
1612 char *newpath = NULL;
1613 apr_status_t rv;
1614 const char *runtime_dir = ap_runtime_dir ? ap_runtime_dir : ap_server_root_relative(p, DEFAULT_REL_RUNTIMEDIR);
1615
1616 rv = apr_filepath_merge(&newpath, runtime_dir, file,
1617 APR_FILEPATH_TRUENAME, p);
1618 if (newpath && (rv == APR_SUCCESS || APR_STATUS_IS_EPATHWILD(rv)
1619 || APR_STATUS_IS_ENOENT(rv)
1620 || APR_STATUS_IS_ENOTDIR(rv))) {
1621 return newpath;
1622 }
1623 else {
1624 return NULL;
1625 }
1626}
1627
1628
1629AP_DECLARE(const char *) ap_soak_end_container(cmd_parms *cmd, char *directive)

Callers 15

socache_dbm_initFunction · 0.85
socache_shmcb_initFunction · 0.85
initialize_tablesFunction · 0.85
slotmem_createFunction · 0.85
slotmem_attachFunction · 0.85
slotmem_filenamesFunction · 0.85
fixup_uds_filenameFunction · 0.85
lb_hb_create_configFunction · 0.85
cmd_lb_hb_storageFunction · 0.85
cgid_initFunction · 0.85
set_script_socketFunction · 0.85

Calls 1

ap_server_root_relativeFunction · 0.85

Tested by

no test coverage detected