Lines Matching refs:thedir
31 static apr_status_t dir_cleanup(void *thedir)
33 apr_dir_t *dir = thedir;
109 apr_status_t apr_dir_close(apr_dir_t *thedir)
111 return apr_pool_cleanup_run(thedir->pool, thedir, dir_cleanup);
143 apr_dir_t *thedir)
166 ret = readdir64_r(thedir->dirstruct, thedir->entry, &retent);
171 ret = readdir_r(thedir->dirstruct, thedir->entry, &retent);
195 thedir->entry = readdir(thedir->dirstruct);
196 if (thedir->entry == NULL) {
215 type = filetype_from_dirent_type(thedir->entry->DIRENT_TYPE);
221 if (thedir->entry->DIRENT_INODE && thedir->entry->DIRENT_INODE != -1) {
246 end = apr_cpystrn(fspec, thedir->dirname, sizeof fspec);
251 apr_cpystrn(end, thedir->entry->d_name,
254 ret = apr_stat(finfo, fspec, APR_FINFO_LINK | wanted, thedir->pool);
266 finfo->pool = thedir->pool;
275 if (thedir->entry->DIRENT_INODE && thedir->entry->DIRENT_INODE != -1) {
276 finfo->inode = thedir->entry->DIRENT_INODE;
282 finfo->name = apr_pstrdup(thedir->pool, thedir->entry->d_name);
291 apr_status_t apr_dir_rewind(apr_dir_t *thedir)
293 rewinddir(thedir->dirstruct);
353 apr_status_t apr_os_dir_get(apr_os_dir_t **thedir, apr_dir_t *dir)
358 *thedir = dir->dirstruct;
362 apr_status_t apr_os_dir_put(apr_dir_t **dir, apr_os_dir_t *thedir,
369 (*dir)->dirstruct = thedir;