Lines Matching refs:dir
87 struct fs_dirent_s *dir = NULL;
110 dir = (struct fs_dirent_s *)calloc(1, sizeof(struct fs_dirent_s));
111 if (!dir)
123 dir->fd_position = 0; /* This is the position in the read stream */
127 ret = vp->vop->Opendir(vp, dir);
135 free(dir);
138 dir->fd_status = DIRENT_MAGIC;
139 dir->fd_root = vp;
141 return ((DIR *)dir);
160 struct fs_dirent_s *dir = NULL;
211 dir = (struct fs_dirent_s *)zalloc(sizeof(struct fs_dirent_s));
212 if (dir == NULL)
217 dir->fd_position = 0; /* This is the position in the read stream */
222 ret = vp->vop->Opendir(vp, dir);
231 free(dir);
235 dir->fd_root = vp;
236 dir->fd_status = DIRENT_MAGIC;
237 filep->f_dir = dir;