Lines Matching refs:dirp
109 DIR *dirp;
114 if ((dirp = malloc(sizeof(DIR) + sizeof(struct _telldir))) == NULL)
117 dirp->dd_td = (struct _telldir *)((char *)dirp + sizeof(DIR));
118 LIST_INIT(&dirp->dd_td->td_locq);
119 dirp->dd_td->td_loccnt = 0;
174 n = _getdirentries(fd, ddptr, space, &dirp->dd_seek);
197 free(dirp);
207 dirp->dd_buf = buf;
276 dirp->dd_len = len;
277 dirp->dd_size = ddptr - dirp->dd_buf;
279 dirp->dd_len = incr;
280 dirp->dd_size = 0;
281 dirp->dd_buf = malloc(dirp->dd_len);
282 if (dirp->dd_buf == NULL)
284 dirp->dd_seek = 0;
288 dirp->dd_loc = 0;
289 dirp->dd_fd = fd;
290 dirp->dd_flags = flags;
291 dirp->dd_lock = NULL;
296 dirp->dd_rewind = telldir(dirp);
298 return (dirp);
302 free(dirp);