/external/e2fsprogs/lib/ext2fs/ |
D | dirblock.c | 27 struct ext2_dir_entry *dirent; in ext2fs_read_dir_block3() local 38 dirent = (struct ext2_dir_entry *) p; in ext2fs_read_dir_block3() 40 dirent->inode = ext2fs_swab32(dirent->inode); in ext2fs_read_dir_block3() 41 dirent->rec_len = ext2fs_swab16(dirent->rec_len); in ext2fs_read_dir_block3() 42 dirent->name_len = ext2fs_swab16(dirent->name_len); in ext2fs_read_dir_block3() 44 name_len = dirent->name_len; in ext2fs_read_dir_block3() 47 dirent->name_len = ext2fs_swab16(dirent->name_len); in ext2fs_read_dir_block3() 49 if ((retval = ext2fs_get_rec_len(fs, dirent, &rec_len)) != 0) in ext2fs_read_dir_block3() 82 struct ext2_dir_entry *dirent; in ext2fs_write_dir_block3() local 91 dirent = (struct ext2_dir_entry *) p; in ext2fs_write_dir_block3() [all …]
|
D | dir_iterate.c | 27 struct ext2_dir_entry *dirent, in ext2fs_get_rec_len() argument 30 unsigned int len = dirent->rec_len; in ext2fs_get_rec_len() 43 struct ext2_dir_entry *dirent) in ext2fs_set_rec_len() argument 48 dirent->rec_len = len; in ext2fs_set_rec_len() 53 dirent->rec_len = EXT4_MAX_REC_LEN; in ext2fs_set_rec_len() 55 dirent->rec_len = 0; in ext2fs_set_rec_len() 57 dirent->rec_len = (len & 65532) | ((len >> 16) & 3); in ext2fs_set_rec_len() 73 struct ext2_dir_entry *dirent; in ext2fs_validate_entry() local 79 dirent = (struct ext2_dir_entry *)(buf + offset); in ext2fs_validate_entry() 80 if (ext2fs_get_rec_len(fs, dirent, &rec_len)) in ext2fs_validate_entry() [all …]
|
D | unlink.c | 33 static int unlink_proc(struct ext2_dir_entry *dirent, in unlink_proc() argument 43 ls->prev = dirent; in unlink_proc() 46 if ((dirent->name_len & 0xFF) != ls->namelen) in unlink_proc() 48 if (strncmp(ls->name, dirent->name, dirent->name_len & 0xFF)) in unlink_proc() 52 if (dirent->inode != ls->inode) in unlink_proc() 55 if (!dirent->inode) in unlink_proc() 60 prev->rec_len += dirent->rec_len; in unlink_proc() 62 dirent->inode = 0; in unlink_proc()
|
D | link.c | 33 static int link_proc(struct ext2_dir_entry *dirent, in link_proc() argument 49 ls->err = ext2fs_get_rec_len(ls->fs, dirent, &curr_rec_len); in link_proc() 62 ls->err = ext2fs_set_rec_len(ls->fs, curr_rec_len, dirent); in link_proc() 73 if (dirent->inode) { in link_proc() 74 min_rec_len = EXT2_DIR_REC_LEN(dirent->name_len & 0xFF); in link_proc() 78 ls->err = ext2fs_set_rec_len(ls->fs, min_rec_len, dirent); in link_proc() 82 dirent->rec_len); in link_proc() 97 dirent->inode = ls->inode; in link_proc() 98 dirent->name_len = ls->namelen; in link_proc() 99 strncpy(dirent->name, ls->name, ls->namelen); in link_proc() [all …]
|
D | get_pathname.c | 43 static int get_pathname_proc(struct ext2_dir_entry *dirent, in get_pathname_proc() argument 54 if (((dirent->name_len & 0xFF) == 2) && in get_pathname_proc() 55 !strncmp(dirent->name, "..", 2)) in get_pathname_proc() 56 gp->parent = dirent->inode; in get_pathname_proc() 57 if (dirent->inode == gp->search_ino) { in get_pathname_proc() 58 retval = ext2fs_get_mem((dirent->name_len & 0xFF) + 1, in get_pathname_proc() 64 strncpy(gp->name, dirent->name, (dirent->name_len & 0xFF)); in get_pathname_proc() 65 gp->name[dirent->name_len & 0xFF] = '\0'; in get_pathname_proc()
|
D | lookup.c | 31 static int lookup_proc(struct ext2_dir_entry *dirent, in lookup_proc() argument 39 if (ls->len != (dirent->name_len & 0xFF)) in lookup_proc() 41 if (strncmp(ls->name, dirent->name, (dirent->name_len & 0xFF))) in lookup_proc() 43 *ls->inode = dirent->inode; in lookup_proc()
|
/external/e2fsprogs/e2fsck/ |
D | pass2.c | 352 struct ext2_dir_entry *dirent, in check_dot() argument 361 if (!dirent->inode) in check_dot() 363 else if (((dirent->name_len & 0xFF) != 1) || in check_dot() 364 (dirent->name[0] != '.')) in check_dot() 366 else if (dirent->name[1] != '\0') in check_dot() 369 (void) ext2fs_get_rec_len(ctx->fs, dirent, &rec_len); in check_dot() 373 rec_len = dirent->rec_len = 12; in check_dot() 374 dirent->inode = ino; in check_dot() 375 dirent->name_len = 1; in check_dot() 376 dirent->name[0] = '.'; in check_dot() [all …]
|
D | rehash.c | 89 struct ext2_dir_entry *dirent; in fill_dir_block() local 105 dirent = (struct ext2_dir_entry *) dir; in fill_dir_block() 106 (void) ext2fs_set_rec_len(fs, fs->blocksize, dirent); in fill_dir_block() 119 dirent = (struct ext2_dir_entry *) (dir + dir_offset); in fill_dir_block() 120 (void) ext2fs_get_rec_len(fs, dirent, &rec_len); in fill_dir_block() 124 (((dirent->name_len & 0xFF)+8U) > rec_len)) { in fill_dir_block() 129 if (dirent->inode == 0) in fill_dir_block() 131 if (!fd->compress && ((dirent->name_len&0xFF) == 1) && in fill_dir_block() 132 (dirent->name[0] == '.')) in fill_dir_block() 134 if (!fd->compress && ((dirent->name_len&0xFF) == 2) && in fill_dir_block() [all …]
|
D | message.c | 362 struct ext2_dir_entry *dirent; in expand_dirent_expression() local 365 if (!ctx || !ctx->dirent) in expand_dirent_expression() 368 dirent = ctx->dirent; in expand_dirent_expression() 372 fprintf(f, "%u", dirent->inode); in expand_dirent_expression() 375 len = dirent->name_len & 0xFF; in expand_dirent_expression() 376 if ((ext2fs_get_rec_len(fs, dirent, &rec_len) == 0) && in expand_dirent_expression() 379 safe_print(f, dirent->name, len); in expand_dirent_expression() 382 (void) ext2fs_get_rec_len(fs, dirent, &rec_len); in expand_dirent_expression() 386 fprintf(f, "%u", dirent->name_len & 0xFF); in expand_dirent_expression() 389 fprintf(f, "%u", dirent->name_len >> 8); in expand_dirent_expression() [all …]
|
/external/fsck_msdos/ |
D | dir.c | 528 struct dosDirEntry dirent, *d; in readDosDirSection() local 691 memset(&dirent, 0, sizeof dirent); in readDosDirSection() 697 dirent.flags = p[11]; in readDosDirSection() 703 dirent.name[j] = p[j]; in readDosDirSection() 704 dirent.name[8] = '\0'; in readDosDirSection() 705 for (k = 7; k >= 0 && dirent.name[k] == ' '; k--) in readDosDirSection() 706 dirent.name[k] = '\0'; in readDosDirSection() 707 if (dirent.name[k] != '\0') in readDosDirSection() 709 if (dirent.name[0] == SLOT_E5) in readDosDirSection() 710 dirent.name[0] = 0xe5; in readDosDirSection() [all …]
|
/external/autotest/client/profilers/powertop/src/ |
D | usb.c | 38 struct dirent *dirent; in activate_usb_autosuspend() local 46 while ((dirent = readdir(dir))) { in activate_usb_autosuspend() 47 if (dirent->d_name[0]=='.') in activate_usb_autosuspend() 49 sprintf(filename, "/sys/bus/usb/devices/%s/power/autosuspend", dirent->d_name); in activate_usb_autosuspend() 55 sprintf(filename, "/sys/bus/usb/devices/%s/power/level", dirent->d_name); in activate_usb_autosuspend() 69 struct dirent *dirent; in suggest_usb_autosuspend() local 80 while ((dirent = readdir(dir))) { in suggest_usb_autosuspend() 81 if (dirent->d_name[0]=='.') in suggest_usb_autosuspend() 83 sprintf(filename, "/sys/bus/usb/devices/%s/power/autosuspend", dirent->d_name); in suggest_usb_autosuspend() 98 sprintf(filename, "/sys/bus/usb/devices/%s/power/level", dirent->d_name); in suggest_usb_autosuspend()
|
D | sata.c | 40 struct dirent *dirent; in activate_alpm() local 48 while ((dirent = readdir(dir))) { in activate_alpm() 49 if (dirent->d_name[0]=='.') in activate_alpm() 51 sprintf(filename, "/sys/class/scsi_host/%s/link_power_management_policy", dirent->d_name); in activate_alpm() 66 struct dirent *dirent; in suggest_sata_alpm() local 80 while ((dirent = readdir(dir))) { in suggest_sata_alpm() 81 if (dirent->d_name[0]=='.') in suggest_sata_alpm() 83 sprintf(filename, "/sys/class/scsi_host/%s/link_power_management_policy", dirent->d_name); in suggest_sata_alpm()
|
D | cpufreq.c | 38 struct dirent *dirent; in activate_ondemand() local 49 while ((dirent = readdir(dir))) { in activate_ondemand() 50 if (dirent->d_name[0]=='.') in activate_ondemand() 52 sprintf(filename, "/sys/devices/system/cpu/%s/cpufreq/scaling_governor", dirent->d_name); in activate_ondemand() 66 struct dirent *dirent; in suggest_ondemand_governor() local 82 while ((dirent = readdir(dir))) { in suggest_ondemand_governor() 83 if (dirent->d_name[0]=='.') in suggest_ondemand_governor() 85 sprintf(filename, "/sys/devices/system/cpu/%s/cpufreq/scaling_governor", dirent->d_name); in suggest_ondemand_governor()
|
D | wireless.c | 166 struct dirent *dirent; in find_4965() local 173 while (dir && (dirent = readdir(dir))) { in find_4965() 174 if (dirent->d_name[0]=='.') in find_4965() 176 sprintf(pathname, "/sys/bus/pci/drivers/iwl4965/%s/power_level", dirent->d_name); in find_4965() 185 while ((dirent = readdir(dir))) { in find_4965() 186 if (dirent->d_name[0]=='.') in find_4965() 188 sprintf(pathname, "/sys/bus/pci/drivers/iwl3945/%s/power_level", dirent->d_name); in find_4965()
|
D | cpufreqstats.c | 90 struct dirent *dirent; in do_cpufreq_stats() local 110 while ((dirent = readdir(dir))) { in do_cpufreq_stats() 112 if (dirent->d_name[0]=='.') in do_cpufreq_stats() 114 sprintf(filename, "/sys/devices/system/cpu/%s/cpufreq/stats/time_in_state", dirent->d_name); in do_cpufreq_stats()
|
D | urbnum.c | 133 struct dirent *dirent; in count_usb_urbs() local 145 while ((dirent = readdir(dir))) { in count_usb_urbs() 146 if (dirent->d_name[0]=='.') in count_usb_urbs() 148 sprintf(pathname, "/sys/bus/usb/devices/%s", dirent->d_name); in count_usb_urbs() 155 update_urbnum(pathname, strtoull(buffer, NULL, 10), dirent->d_name); in count_usb_urbs()
|
/external/boringssl/src/crypto/ |
D | directory_posix.c | 43 int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result) { in readdir_r() 58 struct dirent dirent; member 62 struct dirent *dirent; in OPENSSL_DIR_read() local 88 if (readdir_r((*ctx)->dir, &(*ctx)->dirent, &dirent) != 0 || in OPENSSL_DIR_read() 89 dirent == NULL) { in OPENSSL_DIR_read() 93 return (*ctx)->dirent.d_name; in OPENSSL_DIR_read()
|
/external/google-breakpad/src/client/linux/minidump_writer/ |
D | minidump_writer.cc | 188 MDRawDirectory dirent; in Dump() local 190 if (!WriteThreadListStream(&dirent)) in Dump() 192 dir.CopyIndex(dir_index++, &dirent); in Dump() 194 if (!WriteMappings(&dirent)) in Dump() 196 dir.CopyIndex(dir_index++, &dirent); in Dump() 201 if (!WriteMemoryListStream(&dirent)) in Dump() 203 dir.CopyIndex(dir_index++, &dirent); in Dump() 205 if (!WriteExceptionStream(&dirent)) in Dump() 207 dir.CopyIndex(dir_index++, &dirent); in Dump() 209 if (!WriteSystemInfoStream(&dirent)) in Dump() [all …]
|
/external/e2fsprogs/debugfs/ |
D | ncheck.c | 38 static int ncheck_proc(struct ext2_dir_entry *dirent, in ncheck_proc() argument 47 int filetype = dirent->name_len >> 8; in ncheck_proc() 54 if (iw->iarray[i] == dirent->inode) { in ncheck_proc() 68 (dirent->name_len & 0xFF), dirent->name); in ncheck_proc() 72 (dirent->name_len & 0xFF), dirent->name); in ncheck_proc() 74 if (!debugfs_read_inode(dirent->inode, &inode, in ncheck_proc()
|
D | htree.c | 37 struct ext2_dir_entry *dirent; in htree_dump_leaf_node() local 68 dirent = (struct ext2_dir_entry *) (buf + offset); in htree_dump_leaf_node() 69 errcode = ext2fs_get_rec_len(fs, dirent, &rec_len); in htree_dump_leaf_node() 79 ((((unsigned) dirent->name_len & 0xFF)+8) > rec_len)) { in htree_dump_leaf_node() 84 thislen = dirent->name_len & 0xFF; in htree_dump_leaf_node() 85 strncpy(name, dirent->name, thislen); in htree_dump_leaf_node() 94 dirent->inode, hash, minor_hash, rec_len, name); in htree_dump_leaf_node() 368 struct ext2_dir_entry *dirent; in search_dir_block() local 386 dirent = (struct ext2_dir_entry *) (p->buf + offset); in search_dir_block() 387 errcode = ext2fs_get_rec_len(fs, dirent, &rec_len); in search_dir_block() [all …]
|
D | ls.c | 46 struct ext2_dir_entry *dirent, in list_dir_proc() argument 63 thislen = dirent->name_len & 0xFF; in list_dir_proc() 64 strncpy(name, dirent->name, thislen); in list_dir_proc() 66 ino = dirent->inode; in list_dir_proc() 102 inode.i_mode, dirent->name_len >> 8, in list_dir_proc() 110 sprintf(tmp, "%c%u%c (%d) %s ", lbr, dirent->inode, rbr, in list_dir_proc() 111 dirent->rec_len, name); in list_dir_proc()
|
/external/compiler-rt/test/asan/TestCases/Linux/ |
D | interception_readdir_r_test.cc | 26 struct dirent *result = (struct dirent *)(0xfeedbeef); in main() 33 ((struct dirent *)entry_buffer)->d_reclen = 9999; in main() 34 if (readdir_r(d, (struct dirent *)entry_buffer, &result) != 0) in main()
|
/external/e2fsprogs/lib/e2p/ |
D | iod.c | 27 int (*func) (const char *, struct dirent *, void *), in iterate_on_dir() argument 31 struct dirent *de, *dep; in iterate_on_dir() 48 max_len += sizeof(struct dirent); in iterate_on_dir() 66 len = sizeof(struct dirent); in iterate_on_dir()
|
/external/libchrome/base/files/ |
D | dir_reader_linux.h | 54 linux_dirent* dirent = reinterpret_cast<linux_dirent*>(&buf_[offset_]); in Next() local 55 offset_ += dirent->d_reclen; in Next() 77 const linux_dirent* dirent = in name() local 79 return dirent->d_name; in name()
|
/external/compiler-rt/test/msan/ |
D | scandir.cc | 20 static int my_filter(const struct dirent *a) { in my_filter() 29 static int my_compar(const struct dirent **a, const struct dirent **b) { in my_compar() 44 struct dirent **d; in main()
|