Lines Matching defs:path

106 static int baselen;     /* string length of the path to the proxy directory */
179 static void printstats(char *path, struct stats *s)
213 apr_file_printf(errfile, "Cleaned %s. Statistics:" APR_EOL_STR, path);
266 static void delete_parent(const char *path, const char *basename,
286 nextpath = apr_pstrcat(p, path, "/", name, NULL);
293 nextpath = apr_pstrcat(p, path, "/", apr_pstrndup(p, name, vary
322 static void delete_file(char *path, char *basename, apr_off_t *nodes,
330 nextpath = apr_pstrcat(p, path, "/", basename, NULL);
351 delete_parent(path, basename, nodes, pool);
358 static void delete_entry(char *path, char *basename, apr_off_t *nodes,
367 nextpath = apr_pstrcat(p, path, "/", basename, CACHE_HEADER_SUFFIX, NULL);
378 nextpath = apr_pstrcat(p, path, "/", basename, CACHE_DATA_SUFFIX, NULL);
399 delete_parent(path, basename, nodes, pool);
406 static int list_urls(char *path, apr_pool_t *pool, apr_off_t round)
420 if (apr_dir_open(&dir, path, p) != APR_SUCCESS) {
431 if (list_urls(apr_pstrcat(p, path, "/", info.name, NULL), pool, round)) {
442 nextpath = apr_pstrcat(p, path, "/", info.name, NULL);
478 path,
534 path,
595 static int process_dir(char *path, apr_pool_t *pool, apr_off_t *nodes)
619 if (apr_dir_open(&dir, path, p) != APR_SUCCESS) {
628 d->basename = apr_pstrcat(p, path, "/", info.name, NULL);
748 path[baselen] = '\0';
759 nextpath = apr_pstrcat(p, path, "/", d->basename,
786 delete_file(path, apr_pstrcat(p, path, "/",
807 delete_entry(path, d->basename, nodes, p);
810 delete_file(path, apr_pstrcat(p, path, "/",
819 delete_entry(path, d->basename, nodes, p);
838 delete_entry(path, d->basename, nodes, p);
852 nextpath = apr_pstrcat(p, path, "/", d->basename,
873 delete_entry(path, d->basename, nodes, p);
876 delete_entry(path, d->basename, nodes, p);
909 delete_entry(path, d->basename, nodes, p);
920 delete_entry(path, d->basename, nodes, p);
929 delete_entry(path, d->basename, nodes, p);
938 delete_file(path, d->basename, nodes, p);
964 static void purge(char *path, apr_pool_t *pool, apr_off_t max,
992 printstats(path, &s);
1004 delete_entry(path, e->basename, &s.nodes, pool);
1012 printstats(path, &s);
1029 delete_entry(path, e->basename, &s.nodes, pool);
1037 printstats(path, &s);
1066 delete_entry(path, oldest->basename, &s.nodes, pool);
1075 printstats(path, &s);
1331 "http://<hostname>:<port><path>?[query]. So, for the path \"/\" on the" NL
1387 char *proxypath, *path, *pidfilename;
1673 if (apr_filepath_get(&path, 0, pool) != APR_SUCCESS) {
1676 baselen = strlen(path);
1685 list_urls(path, pool, round);
1725 status = apr_stat(&info, path, APR_FINFO_MTIME, instance);
1743 status = apr_stat(&info, path, APR_FINFO_MTIME, instance);
1760 if (!process_dir(path, instance, &nodes) && !interrupted) {
1761 purge(path, instance, max, inodes, nodes, round);
1776 status = apr_stat(&info, path, APR_FINFO_MTIME, instance);