Lines Matching refs:dirp
48 fdclosedir(DIR *dirp) in fdclosedir() argument
53 _pthread_mutex_lock(&dirp->dd_lock); in fdclosedir()
54 fd = dirp->dd_fd; in fdclosedir()
55 dirp->dd_fd = -1; in fdclosedir()
56 dirp->dd_loc = 0; in fdclosedir()
57 free((void *)dirp->dd_buf); in fdclosedir()
58 free(dirp->dd_compat_de); in fdclosedir()
59 _reclaim_telldir(dirp); in fdclosedir()
61 _pthread_mutex_unlock(&dirp->dd_lock); in fdclosedir()
62 _pthread_mutex_destroy(&dirp->dd_lock); in fdclosedir()
64 free((void *)dirp); in fdclosedir()
69 closedir(DIR *dirp) in closedir() argument
72 return (_close(fdclosedir(dirp))); in closedir()