Home
last modified time | relevance | path

Searched refs:dirent (Results 1 – 25 of 297) sorted by relevance

12345678910>>...12

/third_party/node/test/parallel/
Dtest-fs-opendir.js21 function assertDirent(dirent) { argument
22 assert(dirent instanceof fs.Dirent);
23 assert.strictEqual(dirent.isFile(), true);
24 assert.strictEqual(dirent.isDirectory(), false);
25 assert.strictEqual(dirent.isSocket(), false);
26 assert.strictEqual(dirent.isBlockDevice(), false);
27 assert.strictEqual(dirent.isCharacterDevice(), false);
28 assert.strictEqual(dirent.isFIFO(), false);
29 assert.strictEqual(dirent.isSymbolicLink(), false);
49 const dirent = dir.readSync(); constant
[all …]
Dtest-fs-readdir-types.js38 for (const [i, dirent] of dirents.entries()) {
39 assert(dirent instanceof fs.Dirent);
40 assert.strictEqual(dirent.name, files[i]);
41 assert.strictEqual(dirent.isFile(), true);
42 assert.strictEqual(dirent.isDirectory(), false);
43 assert.strictEqual(dirent.isSocket(), false);
44 assert.strictEqual(dirent.isBlockDevice(), false);
45 assert.strictEqual(dirent.isCharacterDevice(), false);
46 assert.strictEqual(dirent.isFIFO(), false);
47 assert.strictEqual(dirent.isSymbolicLink(), false);
[all …]
Dtest-fs-utils-get-dirents.js76 common.mustCall((err, dirent) => {
78 assert.strictEqual(dirent.name, filename);
89 common.mustCall((err, dirent) => {
91 assert.strictEqual(dirent.name, filenameBuffer);
102 common.mustCall((err, dirent) => {
104 assert.strictEqual(dirent.name, filenameBuffer);
/third_party/FreeBSD/sbin/fsck_msdosfs/
Ddir.c537 struct dosDirEntry dirent, *d; in readDosDirSection() local
734 memset(&dirent, 0, sizeof dirent); in readDosDirSection()
740 dirent.flags = p[11]; in readDosDirSection()
746 dirent.name[j] = p[j]; in readDosDirSection()
747 dirent.name[8] = '\0'; in readDosDirSection()
748 for (k = 7; k >= 0 && dirent.name[k] == ' '; k--) in readDosDirSection()
749 dirent.name[k] = '\0'; in readDosDirSection()
750 if (k < 0 || dirent.name[k] != '\0') in readDosDirSection()
752 if (dirent.name[0] == SLOT_E5) in readDosDirSection()
753 dirent.name[0] = 0xe5; in readDosDirSection()
[all …]
/third_party/musl/include/
Ddirent.h27 struct dirent *readdir(DIR *);
28 int readdir_r(DIR *__restrict, struct dirent *__restrict, struct dirent **__restrict);
32 int alphasort(const struct dirent **, const struct dirent **);
33 …scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int (*)(const struct dire…
52 int getdents(int, struct dirent *, size_t);
56 int versionsort(const struct dirent **, const struct dirent **);
60 #define dirent64 dirent
/third_party/musl/porting/liteos_m/kernel/include/
Ddirent.h27 struct dirent *readdir(DIR *);
28 int readdir_r(DIR *__restrict, struct dirent *__restrict, struct dirent **__restrict);
32 int alphasort(const struct dirent **, const struct dirent **);
33 …scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int (*)(const struct dire…
52 int getdents(int, struct dirent *, size_t);
56 int versionsort(const struct dirent **, const struct dirent **);
60 #define dirent64 dirent
/third_party/musl/porting/uniproton/kernel/include/
Ddirent.h27 struct dirent *readdir(DIR *);
28 int readdir_r(DIR *__restrict, struct dirent *__restrict, struct dirent **__restrict);
32 int alphasort(const struct dirent **, const struct dirent **);
33 …scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int (*)(const struct dire…
52 int getdents(int, struct dirent *, size_t);
56 int versionsort(const struct dirent **, const struct dirent **);
60 #define dirent64 dirent
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
Ddirent.h27 struct dirent *readdir(DIR *);
28 int readdir_r(DIR *__restrict, struct dirent *__restrict, struct dirent **__restrict);
32 int alphasort(const struct dirent **, const struct dirent **);
33 …scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int (*)(const struct dire…
52 int getdents(int, struct dirent *, size_t);
56 int versionsort(const struct dirent **, const struct dirent **);
60 #define dirent64 dirent
/third_party/musl/porting/liteos_a/kernel/include/
Ddirent.h27 struct dirent *readdir(DIR *);
28 int readdir_r(DIR *__restrict, struct dirent *__restrict, struct dirent **__restrict);
32 int alphasort(const struct dirent **, const struct dirent **);
33 …scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int (*)(const struct dire…
52 int getdents(int, struct dirent *, size_t);
56 int versionsort(const struct dirent **, const struct dirent **);
60 #define dirent64 dirent
/third_party/node/lib/internal/fs/
Ddir.js102 const dirent = ArrayPrototypeShift(this[kDirBufferedEntries]);
104 if (this[kDirOptions].recursive && dirent.isDirectory()) {
105 this.readSyncRecursive(dirent);
109 process.nextTick(callback, null, dirent);
111 callback(null, dirent);
132 const dirent = ArrayPrototypeShift(this[kDirBufferedEntries]);
133 if (this[kDirOptions].recursive && dirent.isDirectory()) {
134 this.readSyncRecursive(dirent);
136 callback(null, dirent);
164 readSyncRecursive(dirent) { argument
[all …]
/third_party/musl/libc-test/src/api/
Ddirent.c8 T(struct dirent) in f()
13 struct dirent x; in f()
19 {int(*p)(const struct dirent**,const struct dirent**) = alphasort;} in f()
24 {struct dirent*(*p)(DIR*) = readdir;} in f()
25 {int(*p)(DIR*restrict,struct dirent*restrict,struct dirent**restrict) = readdir_r;} in f()
27 {int(*p)(const char*,struct dirent***,int(*)(const struct dirent*),int(*)(const struct dirent**,con… in f()
/third_party/libwebsockets/win32port/dirent/
Ddirent-win32.h262 struct dirent { struct
281 typedef struct dirent dirent; argument
284 struct dirent ent;
294 static struct dirent *readdir (DIR *dirp);
298 DIR *dirp, struct dirent *entry, struct dirent **result);
308 static int scandir (const char *dirname, struct dirent ***namelist,
309 int (*filter)(const struct dirent*),
310 int (*compare)(const struct dirent**, const struct dirent**));
312 static int alphasort (const struct dirent **a, const struct dirent **b);
314 static int versionsort (const struct dirent **a, const struct dirent **b);
[all …]
/third_party/node/test/sequential/
Dtest-fs-opendir-recursive.js130 function getDirentPath(dirent) { argument
131 return pathModule.relative(testDir, dirent.path);
136 for (const [i, dirent] of dirents.entries()) {
137 assert(dirent instanceof fs.Dirent);
138 assert.strictEqual(getDirentPath(dirent), expected[i]);
144 let dirent = dir.readSync();
145 while (dirent !== null) {
146 dirents.push(dirent);
147 dirent = dir.readSync();
173 dir.read((err, dirent) => {
[all …]
Dtest-fs-readdir-recursive.js129 function getDirentPath(dirent) { argument
130 return pathModule.relative(readdirDir, pathModule.join(dirent.path, dirent.name));
136 for (const [i, dirent] of dirents.entries()) {
137 assert(dirent instanceof fs.Dirent);
138 assert.notStrictEqual(dirent.name, undefined);
139 assert.strictEqual(getDirentPath(dirent), expected[i]);
/third_party/rust/crates/rustix/src/backend/libc/fs/
Ddir.rs39 use c::dirent as libc_dirent;
123 dirent: read_dirent(&*dirent_ptr.cast()), in read()
246 let mut dirent = libc_dirent { in read_dirent() localVariable
312 let mut dirent = { in read_dirent() localVariable
313 let mut dirent: libc_dirent = zeroed(); in read_dirent() localVariable
314 dirent.d_fileno = d_fileno; in read_dirent()
315 dirent.d_namlen = d_namlen; in read_dirent()
316 dirent.d_type = d_type; in read_dirent()
319 dirent.d_reclen = d_reclen; in read_dirent()
321 dirent in read_dirent()
[all …]
/third_party/NuttX/fs/dirent/
Dfs_readdir.c55 static struct dirent *__readdir(DIR *dirp, int *lencnt) in __readdir()
100 *lencnt = file_cnt * sizeof(struct dirent); in __readdir()
114 return (struct dirent *)NULL; in __readdir()
141 struct dirent *readdir(DIR *dirp) in readdir()
146 struct dirent *de = NULL; in readdir()
164 idir->end_pos = dirent_len / sizeof(struct dirent); in readdir()
184 int do_readdir(int fd, struct dirent **de, unsigned int count) in do_readdir()
186 struct dirent *de_src = NULL; in do_readdir()
/third_party/libuv/src/unix/
Dos390-syscalls.c34 int scandir(const char* maindir, struct dirent*** namelist, in scandir()
35 int (*filter)(const struct dirent*), in scandir() argument
36 int (*compar)(const struct dirent**, in scandir() argument
37 const struct dirent **)) { in scandir()
38 struct dirent** nl; in scandir()
39 struct dirent** nl_copy; in scandir()
40 struct dirent* dirent; in scandir() local
53 dirent = readdir(mdir); in scandir()
54 if (!dirent) in scandir()
56 if (!filter || filter(dirent)) { in scandir()
[all …]
/third_party/node/deps/uv/src/unix/
Dos390-syscalls.c34 int scandir(const char* maindir, struct dirent*** namelist, in scandir()
35 int (*filter)(const struct dirent*), in scandir() argument
36 int (*compar)(const struct dirent**, in scandir() argument
37 const struct dirent **)) { in scandir()
38 struct dirent** nl; in scandir()
39 struct dirent** nl_copy; in scandir()
40 struct dirent* dirent; in scandir() local
53 dirent = readdir(mdir); in scandir()
54 if (!dirent) in scandir()
56 if (!filter || filter(dirent)) { in scandir()
[all …]
/third_party/musl/src/dirent/
Dscandir.c8 int scandir(const char *path, struct dirent ***res, in scandir()
9 int (*sel)(const struct dirent *), in scandir() argument
10 int (*cmp)(const struct dirent **, const struct dirent **)) in scandir() argument
13 struct dirent *de, **names=0, **tmp; in scandir()
/third_party/ntfs-3g/ntfsprogs/
Dntfsls.c127 static int list_dir_entry(ntfsls_dirent * dirent, const ntfschar * name,
374 static int readdir_recursive(ntfs_inode * ni, s64 * pos, ntfsls_dirent * dirent) in readdir_recursive() argument
410 result = ntfs_readdir(ni, pos, dirent, (ntfs_filldir_t) list_dir_entry); in readdir_recursive()
460 result = readdir_recursive(subdir->ni, &pos2, dirent); in readdir_recursive()
490 static int list_dir_entry(ntfsls_dirent * dirent, const ntfschar * name, in list_dir_entry() argument
558 ni = ntfs_inode_open(dirent->vol, mref); in list_dir_entry()
642 ntfsls_dirent dirent; in main() local
672 memset(&dirent, 0, sizeof(dirent)); in main()
673 dirent.vol = vol; in main()
676 readdir_recursive(ni, &pos, &dirent); in main()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/dirent/
Dscandir.c21 int filter(const struct dirent *entry) in filter()
33 struct dirent **namelist; in scandir_0100()
56 struct dirent **namelist; in scandir_0200()
79 struct dirent **namelist; in scandir_0300()
101 struct dirent **namelist; in scandir_0400()
Dreaddir_r.c44 struct dirent buf; in readdir_r_0100()
45 struct dirent *res; in readdir_r_0100()
65 struct dirent buf; in readdir_r_0200()
66 struct dirent *res; in readdir_r_0200()
/third_party/rust/crates/rustix/src/fs/
Draw_dir.rs192 let dirent = unsafe { &*dirent_ptr.cast::<linux_dirent64>() }; in next() localVariable
194 self.offset += usize::from(dirent.d_reclen); in next()
197 file_type: dirent.d_type, in next()
198 inode_number: dirent.d_ino, in next()
199 next_entry_cookie: dirent.d_off, in next()
201 file_name: unsafe { CStr::from_ptr(dirent.d_name.as_ptr().cast()) }, in next()
/third_party/toybox/porting/liteos_a/toys/posix/
Drm.c27 struct dirent *dirent = NULL; in toybox_cmd_do_rmdir() local
44 dirent = readdir(dir); in toybox_cmd_do_rmdir()
45 if (dirent == NULL) break; in toybox_cmd_do_rmdir()
47 size_t fullpath_buf_size = strlen(pathname) + strlen(dirent->d_name) + 2; in toybox_cmd_do_rmdir()
57 ret = snprintf(fullpath, fullpath_buf_size, "%s/%s", pathname, dirent->d_name); in toybox_cmd_do_rmdir()
/third_party/node/tools/
Dupdate-timezone.mjs14 .filter((dirent) => dirent.isDirectory())
15 .map((dirent) => dirent.name);

12345678910>>...12