Lines Matching defs:pool
45 static const char *path_canonicalize (const char *path, apr_pool_t *pool)
56 return apr_pstrndup (pool, path, len);
62 static char *path_remove_last_component (const char *path, apr_pool_t *pool)
64 const char *newpath = path_canonicalize (path, pool);
72 return apr_pstrndup (pool, path, (i < 0) ? 0 : i);
76 apr_pool_t *pool)
84 (*new) = (apr_dir_t *)apr_palloc(pool, sizeof(apr_dir_t));
86 (*new)->pool = pool;
87 (*new)->dirname = apr_pstrdup(pool, dirname);
97 (*new)->entry = apr_pcalloc(pool, sizeof(*(*new)->entry) +
104 apr_pool_cleanup_register((*new)->pool, *new, dir_cleanup,
111 return apr_pool_cleanup_run(thedir->pool, thedir, dir_cleanup);
254 ret = apr_stat(finfo, fspec, APR_FINFO_LINK | wanted, thedir->pool);
266 finfo->pool = thedir->pool;
282 finfo->name = apr_pstrdup(thedir->pool, thedir->entry->d_name);
298 apr_pool_t *pool)
311 apr_pool_t *pool)
315 apr_err = apr_dir_make (path, perm, pool); /* Try to make PATH right out */
320 dir = path_remove_last_component(path, pool);
326 apr_err = apr_dir_make_recursive(dir, perm, pool);
329 apr_err = apr_dir_make (path, perm, pool);
343 apr_status_t apr_dir_remove(const char *path, apr_pool_t *pool)
363 apr_pool_t *pool)
366 (*dir) = (apr_dir_t *)apr_pcalloc(pool, sizeof(apr_dir_t));
367 (*dir)->pool = pool;