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

Function ap_server_root_relative

server/config.c:1594–1608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1592{NULL, 0, 0, NULL, -1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL};
1593
1594AP_DECLARE(char *) ap_server_root_relative(apr_pool_t *p, const char *file)
1595{
1596 char *newpath = NULL;
1597 apr_status_t rv;
1598 rv = apr_filepath_merge(&newpath, ap_server_root, file,
1599 APR_FILEPATH_TRUENAME, p);
1600 if (newpath && (rv == APR_SUCCESS || APR_STATUS_IS_EPATHWILD(rv)
1601 || APR_STATUS_IS_ENOENT(rv)
1602 || APR_STATUS_IS_ENOTDIR(rv))) {
1603 return newpath;
1604 }
1605 else {
1606 return NULL;
1607 }
1608}
1609
1610AP_DECLARE(char *) ap_runtime_dir_relative(apr_pool_t *p, const char *file)
1611{

Callers 15

socache_dbm_createFunction · 0.85
cache_the_fileFunction · 0.85
socache_shmcb_createFunction · 0.85
set_cache_lock_pathFunction · 0.85
dav_lock_cmd_davlockdbFunction · 0.85
dav_fs_cmd_davlockdbFunction · 0.85
isapi_cmd_cachefileFunction · 0.85
ap_cgi_build_commandFunction · 0.85
mime_post_configFunction · 0.85
set_bind_passwordFunction · 0.85
authnz_ldap_post_configFunction · 0.85
md_config_add_cert_fileFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_iffile_sectionFunction · 0.68