Lines Matching refs:dirents
31 static uv_dirent_t dirents[1]; variable
82 dir->dirents = dirents; in empty_opendir_cb()
83 dir->nentries = ARRAY_SIZE(dirents); in empty_opendir_cb()
127 dir->dirents = dirents; in TEST_IMPL()
128 dir->nentries = ARRAY_SIZE(dirents); in TEST_IMPL()
298 ASSERT(dir->dirents == dirents); in non_empty_readdir_cb()
299 ASSERT(strcmp(dirents[0].name, "file1") == 0 || in non_empty_readdir_cb()
300 strcmp(dirents[0].name, "file2") == 0 || in non_empty_readdir_cb()
301 strcmp(dirents[0].name, "test_subdir") == 0); in non_empty_readdir_cb()
303 if (!strcmp(dirents[0].name, "test_subdir")) in non_empty_readdir_cb()
304 ASSERT(dirents[0].type == UV_DIRENT_DIR); in non_empty_readdir_cb()
306 ASSERT(dirents[0].type == UV_DIRENT_FILE); in non_empty_readdir_cb()
308 ASSERT(dirents[0].type == UV_DIRENT_UNKNOWN); in non_empty_readdir_cb()
313 dir->dirents = dirents; in non_empty_readdir_cb()
314 dir->nentries = ARRAY_SIZE(dirents); in non_empty_readdir_cb()
332 dir->dirents = dirents; in non_empty_opendir_cb()
333 dir->nentries = ARRAY_SIZE(dirents); in non_empty_opendir_cb()
407 dir->dirents = dirents; in TEST_IMPL()
408 dir->nentries = ARRAY_SIZE(dirents); in TEST_IMPL()
415 ASSERT(strcmp(dirents[0].name, "file1") == 0 || in TEST_IMPL()
416 strcmp(dirents[0].name, "file2") == 0 || in TEST_IMPL()
417 strcmp(dirents[0].name, "test_subdir") == 0); in TEST_IMPL()
419 if (!strcmp(dirents[0].name, "test_subdir")) in TEST_IMPL()
420 ASSERT(dirents[0].type == UV_DIRENT_DIR); in TEST_IMPL()
422 ASSERT(dirents[0].type == UV_DIRENT_FILE); in TEST_IMPL()
424 ASSERT(dirents[0].type == UV_DIRENT_UNKNOWN); in TEST_IMPL()