Lines Matching refs:rootpath
64 APR_DECLARE(apr_status_t) apr_filepath_root(const char **rootpath,
70 *rootpath = apr_pstrdup(p, "/");
82 const char *rootpath,
88 apr_size_t rootlen; /* is the length of the src rootpath */
90 apr_size_t keptlen; /* is the length of the retained rootpath */
101 /* If addpath is rooted, then rootpath is unused.
114 if (!rootpath && !(flags & APR_FILEPATH_NOTABOVEROOT))
115 rootpath = "";
119 * requires a relative result. If the rootpath is
121 * if rootpath was supplied as absolute then fail.
124 if (!rootpath)
125 rootpath = "";
126 else if (rootpath[0] == '/')
131 if (!rootpath) {
138 rootpath = getpath;
143 * must run the rootpath against the user's given flags.
145 * with an empty (not null) rootpath and addpath of the cwd.
149 rootlen = strlen(rootpath);
172 if (rootpath[0] != '/' && (flags & APR_FILEPATH_NOTRELATIVE))
175 /* Base the result path on the rootpath
178 memcpy(path, rootpath, rootlen);
212 * Flag that rootpath was entirely replaced.
279 if (strncmp(rootpath, path, rootlen)) {
282 if (rootpath[rootlen - 1] != '/'