Lines Matching refs:dp
56 struct dirent *dp;
75 dp = (struct dirent *)(dirp->dd_buf + dirp->dd_loc);
76 if ((long)dp & 03L) /* bogus pointer check */
78 if (dp->d_reclen <= 0 ||
79 dp->d_reclen > dirp->dd_len + 1 - dirp->dd_loc)
81 dirp->dd_loc += dp->d_reclen;
82 if (dp->d_ino == 0 && skip)
84 if (dp->d_type == DT_WHT && (dirp->dd_flags & DTF_HIDEW))
86 return (dp);
94 struct dirent *dp;
98 dp = _readdir_unlocked(dirp, 1);
102 dp = _readdir_unlocked(dirp, 1);
103 return (dp);
112 struct dirent *dp;
119 if ((dp = _readdir_unlocked(dirp, 1)) != NULL)
120 memcpy(entry, dp, _GENERIC_DIRSIZ(dp));
123 else if ((dp = _readdir_unlocked(dirp, 1)) != NULL)
124 memcpy(entry, dp, _GENERIC_DIRSIZ(dp));
127 if (dp == NULL)
132 if (dp != NULL)