Lines Matching defs:dp
47 #define ISDOT(dp) \
48 (dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \
49 (dp->d_name[1] == '.' && dp->d_name[2] == '\0')))
54 struct dirent *dp;
162 if (!(dp = readdir(dir)))
164 if (dp->d_fileno == ino)
169 if (!(dp = readdir(dir)))
171 if (ISDOT(dp))
173 memcpy(bup, dp->d_name, dp->d_namlen + 1);
190 if (bpt - pt < dp->d_namlen + (first ? 1 : 2)) {
209 bpt -= dp->d_namlen;
210 memcpy(bpt, dp->d_name, dp->d_namlen);