Home
last modified time | relevance | path

Searched refs:dirents (Results 1 – 11 of 11) sorted by relevance

/third_party/libuv/test/
Dtest-fs-readdir.c31 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()
[all …]
/third_party/node/test/parallel/
Dtest-fs-readdir-types.js36 function assertDirents(dirents) { argument
37 assert.strictEqual(files.length, dirents.length);
38 for (const [i, dirent] of dirents.entries()) {
70 }, common.mustSucceed((dirents) => {
71 assertDirents(dirents);
75 const dirents = await fs.promises.readdir(readdirDir, { constant
78 assertDirents(dirents);
106 }, common.mustSucceed((dirents) => {
107 assertDirents(dirents);
/third_party/node/src/
Dnode_dir.cc63 dir_->dirents = nullptr; in DirHandle()
219 dir->dirents, in AfterDirRead()
252 dir->dir_->dirents = dir->dirents_.data(); in Read()
282 dir->dir()->dirents, in Read()
/third_party/libuv/src/
Duv-common.c740 uv_dirent_t* dirents; in uv__fs_readdir_cleanup() local
747 dirents = dir->dirents; in uv__fs_readdir_cleanup()
750 if (dirents == NULL) in uv__fs_readdir_cleanup()
754 uv__free((char*) dirents[i].name); in uv__fs_readdir_cleanup()
755 dirents[i].name = NULL; in uv__fs_readdir_cleanup()
/third_party/libuv/src/win/
Dfs.c1368 uv__dirent_t** dirents = NULL; in fs__scandir() local
1468 uv__realloc(dirents, new_dirents_size * sizeof *dirents); in fs__scandir()
1474 dirents = new_dirents; in fs__scandir()
1485 dirents[dirents_used++] = dirent; in fs__scandir()
1539 req->ptr = dirents; in fs__scandir()
1540 if (dirents != NULL) in fs__scandir()
1570 uv__free(dirents[--dirents_used]); in fs__scandir()
1571 if (dirents != NULL) in fs__scandir()
1572 uv__free(dirents); in fs__scandir()
1636 uv_dirent_t* dirents; in fs__readdir() local
[all …]
/third_party/newfs_msdos/
DREADME_zh.md31 - -e dirents :根目录的条目数(仅限 FAT12 和 FAT16)
/third_party/node/lib/
Drepl.js1340 const dirents = gracefulReaddir(dir, { withFileTypes: true }) || [];
1341 ArrayPrototypeForEach(dirents, (dirent) => {
1405 const dirents = gracefulReaddir(dir, { withFileTypes: true }) || [];
1406 ArrayPrototypeForEach(dirents, (dirent) => {
/third_party/node/deps/uvwasi/src/
Duvwasi.c1280 uv_dirent_t dirents[UVWASI__READDIR_NUM_ENTRIES]; in uvwasi_fd_readdir() local
1322 dir->dirents = dirents; in uvwasi_fd_readdir()
1350 name_len = strlen(dirents[i].name); in uvwasi_fd_readdir()
1357 switch (dirents[i].type) { in uvwasi_fd_readdir()
1393 memcpy((char*)buf + *bufused, dirents[i].name, size_to_cp); in uvwasi_fd_readdir()
/third_party/libuv/docs/src/
Dfs.rst152 :c:func:`uv_fs_closedir()`. `dirents` represents a user provided array of
154 array size of `dirents`.
159 uv_dirent_t* dirents;
287 must set `dir->dirents` and `dir->nentries`, representing the array of
/third_party/libuv/src/unix/
Dfs.c617 dirent = &dir->dirents[dirent_idx]; in uv__fs_readdir()
631 uv__free((char*) dir->dirents[i].name); in uv__fs_readdir()
632 dir->dirents[i].name = NULL; in uv__fs_readdir()
2050 if (dir == NULL || dir->dir == NULL || dir->dirents == NULL) in uv_fs_readdir()
/third_party/libuv/include/
Duv.h1324 uv_dirent_t* dirents; member