Home
last modified time | relevance | path

Searched refs:dirp (Results 1 – 3 of 3) sorted by relevance

/system/extras/ext4_utils/
Dext4fixup.c497 static int is_entry_dir(int fd, struct ext4_dir_entry_2 *dirp, int pass) in is_entry_dir() argument
502 if (dirp->file_type == EXT4_FT_DIR) { in is_entry_dir()
504 } else if (dirp->file_type == EXT4_FT_UNKNOWN) { in is_entry_dir()
512 if ((pass == UPDATE_INODE_NUMS) && !(dirp->inode & 0x80000000)) { in is_entry_dir()
515 read_inode(fd, (dirp->inode & 0x7fffffff), &inode); in is_entry_dir()
529 struct ext4_dir_entry_2 *dirp, *prev_dirp = 0; in recurse_dir() local
580 dirp = (struct ext4_dir_entry_2 *)dirbuf; in recurse_dir()
581 while (dirp < (struct ext4_dir_entry_2 *)(dirbuf + dirsize)) { in recurse_dir()
583 leftover_space = (char *)(dirbuf + dirsize) - (char *)dirp; in recurse_dir()
598 if (dirp->inode == 0) { in recurse_dir()
[all …]
Dext4_crypt.cpp84 auto dirp = std::unique_ptr<DIR, int (*)(DIR*)>(opendir(dirname), closedir); in is_dir_empty() local
85 if (!dirp) { in is_dir_empty()
91 auto entry = readdir(dirp.get()); in is_dir_empty()
/system/vold/
DExt4Crypt.cpp187 auto dirp = std::unique_ptr<DIR, int (*)(DIR*)>(opendir(directory_path.c_str()), closedir); in get_ce_key_paths() local
188 if (!dirp) { in get_ce_key_paths()
195 auto const entry = readdir(dirp.get()); in get_ce_key_paths()
400 auto dirp = std::unique_ptr<DIR, int (*)(DIR*)>(opendir(de_dir.c_str()), closedir); in load_all_de_keys() local
401 if (!dirp) { in load_all_de_keys()
407 auto entry = readdir(dirp.get()); in load_all_de_keys()