Lines Matching refs:d

175   DIR* d = fdopendir(fd);  in TEST()  local
176 ASSERT_TRUE(d != nullptr); in TEST()
177 dirent* e = readdir(d); in TEST()
179 ASSERT_EQ(closedir(d), 0); in TEST()
195 DIR* d = opendir("/proc/self"); in TEST() local
196 ASSERT_TRUE(d != nullptr); in TEST()
197 dirent* e = readdir(d); in TEST()
199 ASSERT_EQ(closedir(d), 0); in TEST()
203 DIR* d = nullptr; in TEST() local
204 ASSERT_EQ(closedir(d), -1); in TEST()
209 DIR* d = opendir("/proc/self"); in TEST() local
210 ASSERT_TRUE(d != nullptr); in TEST()
211 ASSERT_EQ(closedir(d), 0); in TEST()
215 DIR* d = opendir("/proc/self"); in TEST() local
216 ASSERT_TRUE(d != nullptr); in TEST()
220 while ((e = readdir(d)) != nullptr) { in TEST()
226 ASSERT_EQ(closedir(d), 0); in TEST()
232 DIR* d = opendir("/proc/self"); in TEST() local
233 ASSERT_TRUE(d != nullptr); in TEST()
237 while ((e = readdir64(d)) != nullptr) { in TEST()
243 ASSERT_EQ(closedir(d), 0); in TEST()
249 DIR* d = opendir("/proc/self"); in TEST() local
250 ASSERT_TRUE(d != nullptr); in TEST()
255 while (readdir_r(d, &storage, &e) == 0 && e != nullptr) { in TEST()
261 ASSERT_EQ(closedir(d), 0); in TEST()
267 DIR* d = opendir("/proc/self"); in TEST() local
268 ASSERT_TRUE(d != nullptr); in TEST()
273 while (readdir64_r(d, &storage, &e) == 0 && e != nullptr) { in TEST()
279 ASSERT_EQ(closedir(d), 0); in TEST()
285 DIR* d = opendir("/proc/self"); in TEST() local
286 ASSERT_TRUE(d != nullptr); in TEST()
291 while ((e = readdir(d)) != nullptr) { in TEST()
296 rewinddir(d); in TEST()
300 while ((e = readdir(d)) != nullptr) { in TEST()
304 ASSERT_EQ(closedir(d), 0); in TEST()
314 DIR* d = opendir("/proc/self"); in TEST() local
315 ASSERT_TRUE(d != nullptr); in TEST()
320 offset_list.push_back(telldir(d)); in TEST()
323 while ((e = readdir(d)) != nullptr) { in TEST()
325 offset_list.push_back(telldir(d)); in TEST()
330 long end_offset = telldir(d); in TEST()
336 seekdir(d, offset_list[i]); in TEST()
337 ASSERT_EQ(offset_list[i], telldir(d)); in TEST()
338 e = readdir(d); in TEST()
343 seekdir(d, offset_list[i]); in TEST()
344 ASSERT_EQ(offset_list[i], telldir(d)); in TEST()
345 e = readdir(d); in TEST()
351 seekdir(d, end_offset); in TEST()
352 ASSERT_EQ(end_offset, telldir(d)); in TEST()
354 ASSERT_EQ(nullptr, readdir(d)); in TEST()
357 ASSERT_EQ(0, closedir(d)); in TEST()