Home
last modified time | relevance | path

Searched refs:dirents (Results 1 – 17 of 17) 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/sequential/
Dtest-fs-opendir-recursive.js134 function assertDirents(dirents) { argument
135 dirents.sort((a, b) => (getDirentPath(a) < getDirentPath(b) ? -1 : 1));
136 for (const [i, dirent] of dirents.entries()) {
143 const dirents = [];
146 dirents.push(dirent);
149 assertDirents(dirents);
192 processDirCb(dir, common.mustSucceed((dirents) => {
193 assertDirents(dirents);
200 processDirCb(dir, common.mustSucceed((dirents) => {
201 assertDirents(dirents);
[all …]
Dtest-fs-readdir-recursive.js133 function assertDirents(dirents) { argument
134 dirents.sort((a, b) => (getDirentPath(a) < getDirentPath(b) ? -1 : 1));
135 for (const [i, dirent] of dirents.entries()) {
/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/deps/uv/src/
Duv-common.c742 uv_dirent_t* dirents; in uv__fs_readdir_cleanup() local
749 dirents = dir->dirents; in uv__fs_readdir_cleanup()
752 if (dirents == NULL) in uv__fs_readdir_cleanup()
756 uv__free((char*) dirents[i].name); in uv__fs_readdir_cleanup()
757 dirents[i].name = NULL; in uv__fs_readdir_cleanup()
/third_party/libuv/src/
Duv-common.c742 uv_dirent_t* dirents; in uv__fs_readdir_cleanup() local
749 dirents = dir->dirents; in uv__fs_readdir_cleanup()
752 if (dirents == NULL) in uv__fs_readdir_cleanup()
756 uv__free((char*) dirents[i].name); in uv__fs_readdir_cleanup()
757 dirents[i].name = NULL; in uv__fs_readdir_cleanup()
/third_party/node/src/
Dnode_dir.cc103 dir_->dirents = nullptr; in DirHandle()
264 dir->dirents, in AfterDirRead()
298 dir->dir_->dirents = dir->dirents_.data(); in Read()
329 dir->dir()->dirents, in Read()
/third_party/node/deps/uv/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/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/node/lib/
Drepl.js1339 const dirents = gracefulReaddir(dir, { withFileTypes: true }) || [];
1340 ArrayPrototypeForEach(dirents, (dirent) => {
1402 const dirents = gracefulReaddir(dir, { withFileTypes: true }) || [];
1403 ArrayPrototypeForEach(dirents, (dirent) => {
/third_party/node/deps/uvwasi/src/
Duvwasi.c1283 uv_dirent_t dirents[UVWASI__READDIR_NUM_ENTRIES]; in uvwasi_fd_readdir() local
1325 dir->dirents = dirents; in uvwasi_fd_readdir()
1353 name_len = strlen(dirents[i].name); in uvwasi_fd_readdir()
1360 switch (dirents[i].type) { in uvwasi_fd_readdir()
1402 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/node/deps/uv/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()
2051 if (dir == NULL || dir->dir == NULL || dir->dirents == NULL) in uv_fs_readdir()
/third_party/libuv/src/unix/
Dfs.c638 dirent = &dir->dirents[dirent_idx]; in uv__fs_readdir()
652 uv__free((char*) dir->dirents[i].name); in uv__fs_readdir()
653 dir->dirents[i].name = NULL; in uv__fs_readdir()
2072 if (dir == NULL || dir->dir == NULL || dir->dirents == NULL) in uv_fs_readdir()
/third_party/libuv/include/
Duv.h1351 uv_dirent_t* dirents; member
/third_party/node/deps/uv/include/
Duv.h1324 uv_dirent_t* dirents; member
/third_party/libuv/include/uv_ndk/
Duv.h1308 uv_dirent_t* dirents; member