Lines Matching refs:dirp
110 DIR *dirp;
115 if ((dirp = malloc(sizeof(DIR) + sizeof(struct _telldir))) == NULL)
118 dirp->dd_td = (struct _telldir *)((char *)dirp + sizeof(DIR));
119 LIST_INIT(&dirp->dd_td->td_locq);
120 dirp->dd_td->td_loccnt = 0;
176 n = (int)__getdirentries64(fd, ddptr, space, &dirp->dd_td->seekoff);
178 n = _getdirentries(fd, ddptr, space, &dirp->dd_seek);
201 free(dirp);
211 dirp->dd_buf = buf;
280 dirp->dd_len = len;
281 dirp->dd_size = ddptr - dirp->dd_buf;
283 dirp->dd_len = incr;
284 dirp->dd_size = 0;
285 dirp->dd_buf = malloc(dirp->dd_len);
286 if (dirp->dd_buf == NULL)
289 dirp->dd_td->seekoff = 0;
291 dirp->dd_seek = 0;
296 dirp->dd_loc = 0;
297 dirp->dd_fd = fd;
298 dirp->dd_flags = flags;
299 dirp->dd_lock = (pthread_mutex_t)PTHREAD_MUTEX_INITIALIZER;
304 dirp->dd_rewind = telldir(dirp);
306 return (dirp);
310 free(dirp);