/third_party/libuv/test/ |
D | test-fs-readdir.c | 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() [all …]
|
/third_party/node/test/sequential/ |
D | test-fs-opendir-recursive.js | 134 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 …]
|
D | test-fs-readdir-recursive.js | 133 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/ |
D | test-fs-readdir-types.js | 36 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/ |
D | uv-common.c | 742 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/ |
D | uv-common.c | 742 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/ |
D | node_dir.cc | 103 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/ |
D | fs.c | 1368 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/ |
D | fs.c | 1368 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/ |
D | repl.js | 1339 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/ |
D | uvwasi.c | 1283 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/ |
D | fs.rst | 152 :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/ |
D | fs.c | 617 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/ |
D | fs.c | 638 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/ |
D | uv.h | 1351 uv_dirent_t* dirents; member
|
/third_party/node/deps/uv/include/ |
D | uv.h | 1324 uv_dirent_t* dirents; member
|
/third_party/libuv/include/uv_ndk/ |
D | uv.h | 1308 uv_dirent_t* dirents; member
|