/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/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/e2fsprogs/lib/ext2fs/ |
D | dir_iterate.c | 28 struct ext2_dir_entry *dirent, in ext2fs_get_rec_len() argument 31 unsigned int len = dirent->rec_len; in ext2fs_get_rec_len() 44 struct ext2_dir_entry *dirent) in ext2fs_set_rec_len() argument 49 dirent->rec_len = len; in ext2fs_set_rec_len() 54 dirent->rec_len = EXT4_MAX_REC_LEN; in ext2fs_set_rec_len() 56 dirent->rec_len = 0; in ext2fs_set_rec_len() 58 dirent->rec_len = (len & 65532) | ((len >> 16) & 3); in ext2fs_set_rec_len() 74 struct ext2_dir_entry *dirent; in ext2fs_validate_entry() local 80 dirent = (struct ext2_dir_entry *)(buf + offset); in ext2fs_validate_entry() 81 if (ext2fs_get_rec_len(fs, dirent, &rec_len)) in ext2fs_validate_entry() [all …]
|
D | link.c | 34 static int link_proc(struct ext2_dir_entry *dirent, in link_proc() argument 52 ls->err = ext2fs_get_rec_len(ls->fs, dirent, &curr_rec_len); in link_proc() 67 ls->err = ext2fs_set_rec_len(ls->fs, curr_rec_len, dirent); in link_proc() 83 !dirent->inode) { in link_proc() 85 ls->err = ext2fs_set_rec_len(ls->fs, curr_rec_len, dirent); in link_proc() 97 dirent->name[0] == '.' && dirent->name[1] == '.') { in link_proc() 99 ls->err = ext2fs_set_rec_len(ls->fs, curr_rec_len, dirent); in link_proc() 112 if (dirent->inode) { in link_proc() 113 min_rec_len = EXT2_DIR_REC_LEN(ext2fs_dirent_name_len(dirent)); in link_proc() 117 ls->err = ext2fs_set_rec_len(ls->fs, min_rec_len, dirent); in link_proc() [all …]
|
D | unlink.c | 34 static int unlink_proc(struct ext2_dir_entry *dirent, in unlink_proc() argument 44 ls->prev = dirent; in unlink_proc() 47 if (ext2fs_dirent_name_len(dirent) != ls->namelen) in unlink_proc() 49 if (strncmp(ls->name, dirent->name, ext2fs_dirent_name_len(dirent))) in unlink_proc() 53 if (dirent->inode != ls->inode) in unlink_proc() 56 if (!dirent->inode) in unlink_proc() 61 prev->rec_len += dirent->rec_len; in unlink_proc() 63 dirent->inode = 0; in unlink_proc()
|
D | csum.c | 193 struct ext2_dir_entry *dirent, in __get_dx_countlimit() argument 205 rec_len = translate(dirent->rec_len); in __get_dx_countlimit() 207 if (rec_len == fs->blocksize && translate(dirent->name_len) == 0) in __get_dx_countlimit() 210 dp = (struct ext2_dir_entry *)(((char *)dirent) + rec_len); in __get_dx_countlimit() 222 c = (struct ext2_dx_countlimit *)(((char *)dirent) + count_offset); in __get_dx_countlimit() 238 struct ext2_dir_entry *dirent, in ext2fs_get_dx_countlimit() argument 242 return __get_dx_countlimit(fs, dirent, cc, offset, 0); in ext2fs_get_dx_countlimit() 255 struct ext2_dir_entry *dirent, in __get_dirent_tail() argument 266 d = dirent; in __get_dirent_tail() 267 top = EXT2_DIRENT_TAIL(dirent, fs->blocksize); in __get_dirent_tail() [all …]
|
D | lookup.c | 32 static int lookup_proc(struct ext2_dir_entry *dirent, in lookup_proc() argument 40 if (ls->len != ext2fs_dirent_name_len(dirent)) in lookup_proc() 42 if (strncmp(ls->name, dirent->name, ext2fs_dirent_name_len(dirent))) in lookup_proc() 44 *ls->inode = dirent->inode; in lookup_proc()
|
D | swapfs.c | 418 struct ext2_dir_entry *dirent; in ext2fs_dirent_swab_in2() local 425 dirent = (struct ext2_dir_entry *) p; in ext2fs_dirent_swab_in2() 426 dirent->inode = ext2fs_swab32(dirent->inode); in ext2fs_dirent_swab_in2() 427 dirent->rec_len = ext2fs_swab16(dirent->rec_len); in ext2fs_dirent_swab_in2() 428 dirent->name_len = ext2fs_swab16(dirent->name_len); in ext2fs_dirent_swab_in2() 429 name_len = dirent->name_len; in ext2fs_dirent_swab_in2() 431 dirent->name_len = ext2fs_swab16(dirent->name_len); in ext2fs_dirent_swab_in2() 432 retval = ext2fs_get_rec_len(fs, dirent, &rec_len); in ext2fs_dirent_swab_in2() 460 struct ext2_dir_entry *dirent; in ext2fs_dirent_swab_out2() local 466 dirent = (struct ext2_dir_entry *) p; in ext2fs_dirent_swab_out2() [all …]
|
/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/e2fsprogs/e2fsck/ |
D | pass2.c | 376 struct ext2_dir_entry *dirent, in check_dot() argument 385 if (!dirent->inode) in check_dot() 387 else if ((ext2fs_dirent_name_len(dirent) != 1) || in check_dot() 388 (dirent->name[0] != '.')) in check_dot() 390 else if (dirent->name[1] != '\0') in check_dot() 393 (void) ext2fs_get_rec_len(ctx->fs, dirent, &rec_len); in check_dot() 397 rec_len = dirent->rec_len = 12; in check_dot() 398 dirent->inode = ino; in check_dot() 399 ext2fs_dirent_set_name_len(dirent, 1); in check_dot() 400 ext2fs_dirent_set_file_type(dirent, EXT2_FT_UNKNOWN); in check_dot() [all …]
|
D | message.c | 357 struct ext2_dir_entry *dirent; in expand_dirent_expression() local 360 if (!ctx || !ctx->dirent) in expand_dirent_expression() 363 dirent = ctx->dirent; in expand_dirent_expression() 367 fprintf(f, "%u", dirent->inode); in expand_dirent_expression() 370 len = ext2fs_dirent_name_len(dirent); in expand_dirent_expression() 371 if ((ext2fs_get_rec_len(fs, dirent, &rec_len) == 0) && in expand_dirent_expression() 374 safe_print(f, dirent->name, len); in expand_dirent_expression() 377 (void) ext2fs_get_rec_len(fs, dirent, &rec_len); in expand_dirent_expression() 381 fprintf(f, "%u", ext2fs_dirent_name_len(dirent)); in expand_dirent_expression() 384 fprintf(f, "%u", ext2fs_dirent_file_type(dirent)); in expand_dirent_expression() [all …]
|
/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/fsck_msdos/ |
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/e2fsprogs/debugfs/ |
D | ls.c | 47 static int print_filename(FILE *f, struct ext2_dir_entry *dirent, int options) in print_filename() argument 50 const char *cp = dirent->name; in print_filename() 51 int len = ext2fs_dirent_name_len(dirent); in print_filename() 77 struct ext2_dir_entry *dirent, in list_dir_proc() argument 93 struct ext2_dir_entry_tail *t = (struct ext2_dir_entry_tail *) dirent; in list_dir_proc() 95 thislen = ext2fs_dirent_name_len(dirent); in list_dir_proc() 96 ino = dirent->inode; in list_dir_proc() 117 inode.i_uid, inode.i_gid, thislen, dirent->name); in list_dir_proc() 144 ext2fs_dirent_file_type(dirent), in list_dir_proc() 148 print_filename(ls->f, dirent, options); in list_dir_proc() [all …]
|
D | htree.c | 38 struct ext2_dir_entry *dirent; in htree_dump_leaf_node() local 74 dirent = (struct ext2_dir_entry *) (buf + offset); in htree_dump_leaf_node() 75 errcode = ext2fs_get_rec_len(fs, dirent, &rec_len); in htree_dump_leaf_node() 82 thislen = ext2fs_dirent_name_len(dirent); in htree_dump_leaf_node() 91 strncpy(name, dirent->name, thislen); in htree_dump_leaf_node() 101 (dirent->inode == 0) && in htree_dump_leaf_node() 102 (dirent->rec_len == csum_size) && in htree_dump_leaf_node() 103 (dirent->name_len == EXT2_DIR_NAME_LEN_CSUM)) { in htree_dump_leaf_node() 106 t = (struct ext2_dir_entry_tail *) dirent; in htree_dump_leaf_node() 114 dirent->inode, hash, minor_hash, in htree_dump_leaf_node() [all …]
|
D | ncheck.c | 39 static int ncheck_proc(struct ext2_dir_entry *dirent, in ncheck_proc() argument 48 int filetype = ext2fs_dirent_file_type(dirent); in ncheck_proc() 55 if (iw->iarray[i] == dirent->inode) { in ncheck_proc() 69 ext2fs_dirent_name_len(dirent), in ncheck_proc() 70 dirent->name); in ncheck_proc() 74 ext2fs_dirent_name_len(dirent), in ncheck_proc() 75 dirent->name); in ncheck_proc() 77 if (!debugfs_read_inode(dirent->inode, &inode, in ncheck_proc()
|
/third_party/NuttX/fs/dirent/ |
D | fs_readdir.c | 71 static struct dirent *__readdir(DIR *dirp, int *lencnt) in __readdir() 116 *lencnt = file_cnt * sizeof(struct dirent); in __readdir() 130 return (struct dirent *)NULL; in __readdir() 157 struct dirent *readdir(DIR *dirp) in readdir() 162 struct dirent *de = NULL; in readdir() 180 idir->end_pos = dirent_len / sizeof(struct dirent); in readdir() 200 int do_readdir(int fd, struct dirent **de, unsigned int count) in do_readdir() 202 struct dirent *de_src = NULL; in do_readdir()
|
/third_party/glib/glib/dirent/ |
D | dirent-zip | 5 ZIP=/tmp/dirent.zip 8 cp dirent.h dist/include 9 cp dirent.lib dist/lib 14 include/dirent.h 15 lib/dirent.lib
|
/third_party/boringssl/src/decrepit/ssl/ |
D | ssl_decrepit.c | 136 struct dirent *dirent = readdir(dir); in SSL_add_dir_cert_subjects_to_stack() local 137 if (dirent == NULL) { in SSL_add_dir_cert_subjects_to_stack() 148 if (strlen(path) + strlen(dirent->d_name) + 2 > sizeof(buf)) { in SSL_add_dir_cert_subjects_to_stack() 153 int r = BIO_snprintf(buf, sizeof(buf), "%s/%s", path, dirent->d_name); in SSL_add_dir_cert_subjects_to_stack()
|
/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()
|
/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 …]
|
/third_party/e2fsprogs/lib/e2p/ |
D | iod.c | 28 int (*func) (const char *, struct dirent *, void *), in iterate_on_dir() argument 32 struct dirent *de, *dep; in iterate_on_dir() 49 max_len += sizeof(struct dirent); in iterate_on_dir() 67 len = sizeof(struct dirent); in iterate_on_dir()
|