Lines Matching defs:dir
29 apr_dir_t *dir = thedir;
30 if (closedir(dir->dirstruct) == 0) {
82 DIR *dir = opendir(dirname);
84 if (!dir) {
92 (*new)->dirstruct = dir;
308 if (apr_err == ENOENT) { /* Missing an intermediate dir */
309 char *dir;
311 dir = path_remove_last_component(path, pool);
313 if (dir[0] == '\0') {
317 apr_err = apr_dir_make_recursive(dir, perm, pool);
325 * apr_dir_make being called on existing dir, therefore this check
344 apr_status_t apr_os_dir_get(apr_os_dir_t **thedir, apr_dir_t *dir)
346 if (dir == NULL) {
349 *thedir = dir->dirstruct;
353 apr_status_t apr_os_dir_put(apr_dir_t **dir, apr_os_dir_t *thedir,
356 if ((*dir) == NULL) {
357 (*dir) = (apr_dir_t *)apr_pcalloc(pool, sizeof(apr_dir_t));
358 (*dir)->pool = pool;
360 (*dir)->dirstruct = thedir;