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