Searched refs:dirp (Results 1 – 3 of 3) sorted by relevance
66 extern struct dirent* readdir(DIR* dirp);67 extern int readdir_r(DIR* dirp, struct dirent *entry, struct dirent **result);68 extern int closedir(DIR* dirp);69 extern void rewinddir(DIR *dirp);70 extern int dirfd(DIR* dirp);
548 DIR *dirp; in fts_build() local562 if ((dirp = opendir(cur->fts_accpath)) == NULL) { in fts_build()607 if (fts_safe_changedir(sp, cur, dirfd(dirp), NULL)) { in fts_build()613 (void)closedir(dirp); in fts_build()614 dirp = NULL; in fts_build()648 for (head = tail = NULL, nitems = 0; dirp && (dp = readdir(dirp));) { in fts_build()666 (void)closedir(dirp); in fts_build()692 (void)closedir(dirp); in fts_build()741 if (dirp) in fts_build()742 (void)closedir(dirp); in fts_build()
46 int dirfd(DIR* dirp) in dirfd() argument48 return dirp->_DIR_fd; in dirfd()