Home
last modified time | relevance | path

Searched refs:readdir (Results 1 - 25 of 224) sorted by relevance

123456789

/third_party/node/test/parallel/
H A Dtest-fs-readdir-types.js51 // Check the readdir Sync version
54 fs.readdir(__filename, {
67 // Check the readdir async version
68 fs.readdir(readdirDir, {
75 const dirents = await fs.promises.readdir(readdirDir, {
83 const oldReaddir = binding.readdir;
84 process.on('beforeExit', () => { binding.readdir = oldReaddir; });
85 binding.readdir = common.mustCall((path, encoding, types, req, ctx) => {
104 fs.readdir(readdirDir, {
H A Dtest-fs-null-bytes.js68 check(fs.readdir, fs.readdirSync, 'foo\u0000bar');
69 check(fs.readdir, fs.readdirSync, 'foo\u0000bar', { recursive: true });
103 check(fs.readdir, fs.readdirSync, fileUrl);
104 check(fs.readdir, fs.readdirSync, fileUrl, { recursive: true });
135 check(fs.readdir, fs.readdirSync, fileUrl2);
136 check(fs.readdir, fs.readdirSync, fileUrl2, { recursive: true });
/third_party/musl/libc-test/src/functionalext/supplement/dirent/
H A Dseekdir.c34 * @tc.desc : set the position of the next readdir() call in the directory stream
47 while ((result = readdir(dir)) != NULL) { in seekdir_0100()
56 result = readdir(dir); in seekdir_0100()
58 t_error("%s failed: readdir\n", __func__); in seekdir_0100()
70 result = readdir(dir); in seekdir_0100()
72 t_error("%s failed: readdir\n", __func__); in seekdir_0100()
84 * @tc.desc : set the position of the next readdir() call in the directory stream to zero
94 struct dirent *result = readdir(dir); in seekdir_0200()
96 t_error("%s failed: readdir\n", __func__); in seekdir_0200()
108 result = readdir(di in seekdir_0200()
[all...]
H A Drewinddir.c43 struct dirent *result = readdir(dir); in rewinddir_0100()
45 t_error("%s failed: readdir\n", __func__); in rewinddir_0100()
51 while ((result = readdir(dir)) != NULL) { in rewinddir_0100()
55 result = readdir(dir); in rewinddir_0100()
57 t_error("%s failed: readdir\n", __func__); in rewinddir_0100()
H A Dreaddir.c32 ret = readdir(dir); in readdir_0100()
51 ret = readdir(dir); in readdir_0200()
/third_party/typescript/tests/baselines/reference/
H A DundeclaredModuleError.js3 function readdir(path: string, accept: (stat: fs.Stats, name: string) => boolean, callback: (error: Error, results: { name: string; stat: fs.Stats; }[]) => void ) {} function
9 readdir(covFileDir, () => {
22 function readdir(path, accept, callback) { }
31 readdir(covFileDir, function () {
/third_party/node/test/sequential/
H A Dtest-fs-readdir-recursive.js157 // readdir
159 // readdir { recursive } callback
161 fs.readdir(readdirDir, { recursive: true },
169 fs.readdir(readdirDir, { recursive: true, withFileTypes: true },
175 // fs.promises.readdir
177 // fs.promises.readdir { recursive }
180 const result = await fs.promises.readdir(readdirDir, { recursive: true });
187 // fs.promises.readdir { recursive, withFileTypes }
190 const result = await fs.promises.readdir(readdirDir, { recursive: true, withFileTypes: true });
/third_party/musl/src/dirent/
H A Dreaddir.c13 struct dirent *readdir(DIR *dir) in readdir() function
35 weak_alias(readdir, readdir64);
/third_party/musl/libc-test/src/common/
H A Dcfi_util.h39 while ((ptr = readdir(dir)) != NULL) { in ShowCfiLogFile()
57 while ((ptr = readdir(dir)) != NULL) { in ClearCfiLog()
118 while ((ptr = readdir(dir)) != NULL) { in FindDirAndCheck()
H A Dcheck_log.c79 while ((ptr = readdir(dir)) != NULL) { in find_and_check_file()
103 while ((ptr = readdir(dir)) != NULL) { in clear_log()
/third_party/node/deps/npm/node_modules/init-package-json/lib/
H A Ddefault-input.js16 const dirs = await fs.readdir('node_modules').catch(() => null)
103 const files = await fs.readdir(dirname)
125 const d = await fs.readdir(path.resolve(dirname, 'bin'))
139 const dirs = await fs.readdir(dirname)
173 const d = await fs.readdir(path.join(dirname, 'node_modules')).catch(() => [])
/third_party/libfuse/test/
H A Dreaddir_inode.c2 * Prints each directory entry, its inode and d_type as returned by 'readdir'.
3 * Skips '.' and '..' because readdir is not required to return them and
31 dent = readdir(dirp); in main()
47 dent = readdir(dirp); in main()
/third_party/eudev/src/libudev/
H A Dlibudev-enumerate.c674 for (dent = readdir(dir); dent != NULL; dent = readdir(dir)) { in scan_dir_and_add_devices()
754 for (dent = readdir(dir); dent != NULL; dent = readdir(dir)) { in scan_dir()
805 for (dent = readdir(dir); dent != NULL; dent = readdir(dir)) { in scan_devices_tags()
870 for (dent = readdir(d); dent != NULL; dent = readdir(d)) { in parent_crawl_children()
/third_party/node/lib/internal/fs/
H A Dpromises.js771 await binding.readdir(
784 const { 0: path, 1: readdir } = ArrayPrototypePop(queue);
785 for (const dirent of getDirents(path, readdir)) {
791 await binding.readdir(
803 const { 0: path, 1: readdir } = ArrayPrototypePop(queue);
804 for (const ent of readdir) {
814 await binding.readdir(
829 async function readdir(path, options) {
835 const result = await binding.readdir(
1043 readdir,
[all...]
/third_party/musl/porting/liteos_a/kernel/include/
H A Ddirent.h27 struct dirent *readdir(DIR *);
61 #define readdir64 readdir
/third_party/musl/porting/liteos_m/kernel/include/
H A Ddirent.h27 struct dirent *readdir(DIR *);
61 #define readdir64 readdir
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Ddirent.h27 struct dirent *readdir(DIR *);
61 #define readdir64 readdir
/third_party/musl/porting/uniproton/kernel/include/
H A Ddirent.h27 struct dirent *readdir(DIR *);
61 #define readdir64 readdir
/third_party/musl/include/
H A Ddirent.h27 struct dirent *readdir(DIR *);
61 #define readdir64 readdir
/third_party/node/deps/npm/node_modules/@npmcli/installed-package-contents/lib/
H A Dindex.js7 // - readdir(PATH, with file types)
25 const readdir = promisify(fs.readdir)
121 readdir(path, { withFileTypes: true }),
142 // this is much slower than getting the entries from the readdir call,
/third_party/eudev/src/udev/
H A Dudev-watch.c63 for (ent = readdir(dir); ent != NULL; ent = readdir(dir)) { in udev_watch_restore()
/third_party/node/deps/npm/node_modules/read-package-json-fast/lib/
H A Dindex.js1 const { readFile, lstat, readdir } = require('fs/promises')
33 const entries = await readdir(resolve(root, dir)).catch(() => [])
/third_party/ltp/testcases/kernel/syscalls/getcpu/
H A Dgetcpu01.c86 while ((de = readdir(directory_parent)) != NULL) { in get_nodeid()
92 while ((dn = readdir(directory_node)) != NULL) { in get_nodeid()
/third_party/ltp/testcases/network/nfs/nfs_stress/
H A Dnfs01_open_files.c112 for (entp = readdir(dirp); entp; entp = readdir(dirp)) in delete_files()
/third_party/musl/Benchmark/musl/
H A Dlibc_dirent.cpp81 entry = readdir(dir); in Bm_function_Readdir()
111 while (readdir(dir) != nullptr) {} in Bm_function_Rewinddir()

Completed in 8 milliseconds

123456789