Lines Matching refs:dp
545 struct dirent *dp;
648 for (head = tail = NULL, nitems = 0; dirp && (dp = readdir(dirp));) {
649 if (!ISSET(FTS_SEEDOT) && ISDOT(dp->d_name))
652 if (!(p = fts_alloc(sp, dp->d_name, strlen(dp->d_name))))
654 if (strlen(dp->d_name) >= maxlen) { /* include space for NUL */
656 if (fts_palloc(sp, strlen(dp->d_name) +len + 1)) {
683 p->fts_pathlen = len + strlen(dp->d_name);
709 dp->d_type != DT_DIR && dp->d_type != DT_UNKNOWN)