Lines Matching refs:dir
1561 uv_dir_t* dir; in fs__opendir() local
1564 dir = NULL; in fs__opendir()
1573 dir = uv__malloc(sizeof(*dir)); in fs__opendir()
1574 if (dir == NULL) { in fs__opendir()
1595 dir->dir_handle = FindFirstFileW(find_path, &dir->find_data); in fs__opendir()
1598 if (dir->dir_handle == INVALID_HANDLE_VALUE && in fs__opendir()
1604 dir->need_find_call = FALSE; in fs__opendir()
1605 req->ptr = dir; in fs__opendir()
1610 uv__free(dir); in fs__opendir()
1616 uv_dir_t* dir; in fs__readdir() local
1625 dir = req->ptr; in fs__readdir()
1626 dirents = dir->dirents; in fs__readdir()
1627 memset(dirents, 0, dir->nentries * sizeof(*dir->dirents)); in fs__readdir()
1628 find_data = &dir->find_data; in fs__readdir()
1631 while (dirent_idx < dir->nentries) { in fs__readdir()
1632 if (dir->need_find_call && FindNextFileW(dir->dir_handle, find_data) == 0) { in fs__readdir()
1643 dir->need_find_call = TRUE; in fs__readdir()
1664 dir->need_find_call = TRUE; in fs__readdir()
1680 uv_dir_t* dir; in fs__closedir() local
1682 dir = req->ptr; in fs__closedir()
1683 FindClose(dir->dir_handle); in fs__closedir()
3221 uv_dir_t* dir, in uv_fs_readdir() argument
3225 if (dir == NULL || in uv_fs_readdir()
3226 dir->dirents == NULL || in uv_fs_readdir()
3227 dir->dir_handle == INVALID_HANDLE_VALUE) { in uv_fs_readdir()
3232 req->ptr = dir; in uv_fs_readdir()
3238 uv_dir_t* dir, in uv_fs_closedir() argument
3241 if (dir == NULL) { in uv_fs_closedir()
3245 req->ptr = dir; in uv_fs_closedir()