Lines Matching refs:dir
606 uv_dir_t* dir; in uv__fs_opendir() local
608 dir = uv__malloc(sizeof(*dir)); in uv__fs_opendir()
609 if (dir == NULL) in uv__fs_opendir()
612 dir->dir = opendir(req->path); in uv__fs_opendir()
613 if (dir->dir == NULL) in uv__fs_opendir()
616 req->ptr = dir; in uv__fs_opendir()
620 uv__free(dir); in uv__fs_opendir()
626 uv_dir_t* dir; in uv__fs_readdir() local
632 dir = req->ptr; in uv__fs_readdir()
635 while (dirent_idx < dir->nentries) { in uv__fs_readdir()
639 res = readdir(dir->dir); in uv__fs_readdir()
650 dirent = &dir->dirents[dirent_idx]; in uv__fs_readdir()
664 uv__free((char*) dir->dirents[i].name); in uv__fs_readdir()
665 dir->dirents[i].name = NULL; in uv__fs_readdir()
672 uv_dir_t* dir; in uv__fs_closedir() local
674 dir = req->ptr; in uv__fs_closedir()
676 if (dir->dir != NULL) { in uv__fs_closedir()
677 closedir(dir->dir); in uv__fs_closedir()
678 dir->dir = NULL; in uv__fs_closedir()
2090 uv_dir_t* dir, in uv_fs_readdir() argument
2094 if (dir == NULL || dir->dir == NULL || dir->dirents == NULL) in uv_fs_readdir()
2097 req->ptr = dir; in uv_fs_readdir()
2103 uv_dir_t* dir, in uv_fs_closedir() argument
2107 if (dir == NULL) in uv_fs_closedir()
2110 req->ptr = dir; in uv_fs_closedir()