Lines Matching refs:dirents
31 static uv_dirent_t dirents[1]; variable
83 dir->dirents = dirents; in empty_opendir_cb()
84 dir->nentries = ARRAY_SIZE(dirents); in empty_opendir_cb()
128 dir->dirents = dirents; in TEST_IMPL()
129 dir->nentries = ARRAY_SIZE(dirents); in TEST_IMPL()
299 ASSERT_PTR_EQ(dir->dirents, dirents); in non_empty_readdir_cb()
300 ASSERT(strcmp(dirents[0].name, "file1") == 0 || in non_empty_readdir_cb()
301 strcmp(dirents[0].name, "file2") == 0 || in non_empty_readdir_cb()
302 strcmp(dirents[0].name, "test_subdir") == 0); in non_empty_readdir_cb()
304 if (!strcmp(dirents[0].name, "test_subdir")) in non_empty_readdir_cb()
305 ASSERT_EQ(dirents[0].type, UV_DIRENT_DIR); in non_empty_readdir_cb()
307 ASSERT_EQ(dirents[0].type, UV_DIRENT_FILE); in non_empty_readdir_cb()
309 ASSERT_EQ(dirents[0].type, UV_DIRENT_UNKNOWN); in non_empty_readdir_cb()
314 dir->dirents = dirents; in non_empty_readdir_cb()
315 dir->nentries = ARRAY_SIZE(dirents); in non_empty_readdir_cb()
333 dir->dirents = dirents; in non_empty_opendir_cb()
334 dir->nentries = ARRAY_SIZE(dirents); in non_empty_opendir_cb()
408 dir->dirents = dirents; in TEST_IMPL()
409 dir->nentries = ARRAY_SIZE(dirents); in TEST_IMPL()
416 ASSERT(strcmp(dirents[0].name, "file1") == 0 || in TEST_IMPL()
417 strcmp(dirents[0].name, "file2") == 0 || in TEST_IMPL()
418 strcmp(dirents[0].name, "test_subdir") == 0); in TEST_IMPL()
420 if (!strcmp(dirents[0].name, "test_subdir")) in TEST_IMPL()
421 ASSERT_EQ(dirents[0].type, UV_DIRENT_DIR); in TEST_IMPL()
423 ASSERT_EQ(dirents[0].type, UV_DIRENT_FILE); in TEST_IMPL()
425 ASSERT_EQ(dirents[0].type, UV_DIRENT_UNKNOWN); in TEST_IMPL()
499 dir->dirents = symlink_dirents; in readdir_symlink_opendir_cb()