/third_party/node/test/parallel/ |
D | test-fs-opendir.js | 21 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 …]
|
D | test-fs-readdir-types.js | 38 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 …]
|
D | test-fs-utils-get-dirents.js | 76 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/ |
D | dir.c | 539 struct dosDirEntry dirent, *d; in readDosDirSection() local 736 memset(&dirent, 0, sizeof dirent); in readDosDirSection() 742 dirent.flags = p[11]; in readDosDirSection() 748 dirent.name[j] = p[j]; in readDosDirSection() 749 dirent.name[8] = '\0'; in readDosDirSection() 750 for (k = 7; k >= 0 && dirent.name[k] == ' '; k--) in readDosDirSection() 751 dirent.name[k] = '\0'; in readDosDirSection() 752 if (k < 0 || dirent.name[k] != '\0') in readDosDirSection() 754 if (dirent.name[0] == SLOT_E5) in readDosDirSection() 755 dirent.name[0] = 0xe5; in readDosDirSection() [all …]
|
/third_party/musl/porting/uniproton/kernel/include/ |
D | dirent.h | 27 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/ |
D | dirent.h | 27 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/ |
D | dirent.h | 27 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/include/ |
D | dirent.h | 27 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/ |
D | dirent.h | 27 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/libc-test/src/api/ |
D | dirent.c | 8 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/ |
D | dirent-win32.h | 262 struct dirent { struct 281 typedef struct dirent dirent; typedef 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/musl/ndk_musl_include/ |
D | dirent.h | 27 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 #define dirent64 dirent
|
/third_party/rust/crates/rustix/src/backend/libc/fs/ |
D | dir.rs | 39 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/ |
D | fs_readdir.c | 55 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/ |
D | os390-syscalls.c | 34 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 …]
|
D | os390-syscalls.h | 61 int scandir(const char* maindir, struct dirent*** namelist, 62 int (*filter)(const struct dirent *), 63 int (*compar)(const struct dirent **, 64 const struct dirent **));
|
/third_party/musl/src/dirent/ |
D | scandir.c | 8 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()
|
D | readdir_r.c | 7 int readdir_r(DIR *restrict dir, struct dirent *restrict buf, struct dirent **restrict result) in readdir_r() 9 struct dirent *de; in readdir_r()
|
/third_party/ntfs-3g/ntfsprogs/ |
D | ntfsls.c | 127 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/ |
D | scandir.c | 21 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()
|
D | readdir_r.c | 42 struct dirent buf; in readdir_r_0100() 43 struct dirent *res; in readdir_r_0100() 61 struct dirent buf; in readdir_r_0200() 62 struct dirent *res; in readdir_r_0200()
|
/third_party/rust/crates/rustix/src/fs/ |
D | raw_dir.rs | 192 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/ |
D | rm.c | 27 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/ffmpeg/libavformat/ |
D | libsmbclient.c | 211 struct smbc_dirent *dirent = NULL; in libsmbc_read_dir() local 221 dirent = smbc_readdir(libsmbc->dh); in libsmbc_read_dir() 222 if (!dirent) { in libsmbc_read_dir() 226 switch (dirent->smbc_type) { in libsmbc_read_dir() 252 } while (skip_entry || !strcmp(dirent->name, ".") || in libsmbc_read_dir() 253 !strcmp(dirent->name, "..")); in libsmbc_read_dir() 255 entry->name = av_strdup(dirent->name); in libsmbc_read_dir() 261 url = av_append_path_component(h->filename, dirent->name); in libsmbc_read_dir()
|
/third_party/alsa-utils/alsactl/ |
D | utils.c | 293 static int cleanup_filename_filter(const struct dirent *dirent) in cleanup_filename_filter() argument 297 if (dirent == NULL) in cleanup_filename_filter() 299 if (dirent->d_type == DT_DIR) in cleanup_filename_filter() 302 flen = strlen(dirent->d_name); in cleanup_filename_filter() 306 if (strncmp(&dirent->d_name[flen-5], ".conf", 5) == 0) in cleanup_filename_filter() 315 struct dirent **list; in snd_card_clean_cfgdir()
|