Lines Matching refs:d

163   DIR* d = fdopendir(fd);  in TEST()  local
164 ASSERT_TRUE(d != nullptr); in TEST()
165 dirent* e = readdir(d); in TEST()
167 ASSERT_EQ(closedir(d), 0); in TEST()
183 DIR* d = opendir("/proc/self"); in TEST() local
184 ASSERT_TRUE(d != nullptr); in TEST()
185 dirent* e = readdir(d); in TEST()
187 ASSERT_EQ(closedir(d), 0); in TEST()
191 DIR* d = nullptr; in TEST() local
192 ASSERT_EQ(closedir(d), -1); in TEST()
197 DIR* d = opendir("/proc/self"); in TEST() local
198 ASSERT_TRUE(d != nullptr); in TEST()
199 ASSERT_EQ(closedir(d), 0); in TEST()
203 DIR* d = opendir("/proc/self"); in TEST() local
204 ASSERT_TRUE(d != nullptr); in TEST()
208 while ((e = readdir(d)) != nullptr) { in TEST()
214 ASSERT_EQ(closedir(d), 0); in TEST()
220 DIR* d = opendir("/proc/self"); in TEST() local
221 ASSERT_TRUE(d != nullptr); in TEST()
225 while ((e = readdir64(d)) != nullptr) { in TEST()
231 ASSERT_EQ(closedir(d), 0); in TEST()
237 DIR* d = opendir("/proc/self"); in TEST() local
238 ASSERT_TRUE(d != nullptr); in TEST()
243 while (readdir_r(d, &storage, &e) == 0 && e != nullptr) { in TEST()
249 ASSERT_EQ(closedir(d), 0); in TEST()
255 DIR* d = opendir("/proc/self"); in TEST() local
256 ASSERT_TRUE(d != nullptr); in TEST()
261 while (readdir64_r(d, &storage, &e) == 0 && e != nullptr) { in TEST()
267 ASSERT_EQ(closedir(d), 0); in TEST()
273 DIR* d = opendir("/proc/self"); in TEST() local
274 ASSERT_TRUE(d != nullptr); in TEST()
279 while ((e = readdir(d)) != nullptr) { in TEST()
284 rewinddir(d); in TEST()
288 while ((e = readdir(d)) != nullptr) { in TEST()
292 ASSERT_EQ(closedir(d), 0); in TEST()
302 DIR* d = opendir("/proc/self"); in TEST() local
303 ASSERT_TRUE(d != nullptr); in TEST()
308 offset_list.push_back(telldir(d)); in TEST()
311 while ((e = readdir(d)) != nullptr) { in TEST()
313 offset_list.push_back(telldir(d)); in TEST()
318 long end_offset = telldir(d); in TEST()
324 seekdir(d, offset_list[i]); in TEST()
325 ASSERT_EQ(offset_list[i], telldir(d)); in TEST()
326 e = readdir(d); in TEST()
331 seekdir(d, offset_list[i]); in TEST()
332 ASSERT_EQ(offset_list[i], telldir(d)); in TEST()
333 e = readdir(d); in TEST()
339 seekdir(d, end_offset); in TEST()
340 ASSERT_EQ(end_offset, telldir(d)); in TEST()
342 ASSERT_EQ(nullptr, readdir(d)); in TEST()
345 ASSERT_EQ(0, closedir(d)); in TEST()