Lines Matching refs:pool
41 static const char *path_canonicalize (const char *path, apr_pool_t *pool)
52 return apr_pstrndup (pool, path, len);
58 static char *path_remove_last_component (const char *path, apr_pool_t *pool)
60 const char *newpath = path_canonicalize (path, pool);
68 return apr_pstrndup (pool, path, (i < 0) ? 0 : i);
72 apr_pool_t *pool)
88 (*new) = (apr_dir_t *)apr_palloc(pool, sizeof(apr_dir_t));
90 (*new)->pool = pool;
91 (*new)->dirname = apr_pstrdup(pool, dirname);
93 (*new)->entry = apr_pcalloc(pool, dirent_size);
95 apr_pool_cleanup_register((*new)->pool, *new, dir_cleanup,
102 return apr_pool_cleanup_run(thedir->pool, thedir, dir_cleanup);
245 ret = apr_stat(finfo, fspec, APR_FINFO_LINK | wanted, thedir->pool);
257 finfo->pool = thedir->pool;
273 finfo->name = apr_pstrdup(thedir->pool, thedir->entry->d_name);
289 apr_pool_t *pool)
302 apr_pool_t *pool)
306 apr_err = apr_dir_make (path, perm, pool); /* Try to make PATH right out */
311 dir = path_remove_last_component(path, pool);
317 apr_err = apr_dir_make_recursive(dir, perm, pool);
320 apr_err = apr_dir_make (path, perm, pool);
334 apr_status_t apr_dir_remove(const char *path, apr_pool_t *pool)
354 apr_pool_t *pool)
357 (*dir) = (apr_dir_t *)apr_pcalloc(pool, sizeof(apr_dir_t));
358 (*dir)->pool = pool;