Searched refs:dirp (Results 1 – 10 of 10) sorted by relevance
/system/iorap/src/inode2filename/ |
D | system_call.h | 36 virtual struct dirent *readdir(DIR *dirp) = 0; 39 virtual int closedir(DIR *dirp) = 0; 60 virtual struct dirent *readdir(DIR *dirp) override { in readdir() 61 return ::readdir(dirp); in readdir() 65 virtual int closedir(DIR *dirp) override { in closedir() 66 return ::closedir(dirp); in closedir()
|
D | search_directories.cc | 425 DIR *dirp; in ReadDirectoryEntriesFromDirectoryPath() local 430 if ((dirp = system_call->opendir(dirpath.c_str())) == nullptr) { in ReadDirectoryEntriesFromDirectoryPath() 443 if ((dp = system_call->readdir(dirp)) != nullptr) { in ReadDirectoryEntriesFromDirectoryPath() 476 if (system_call->closedir(dirp) < 0) { in ReadDirectoryEntriesFromDirectoryPath()
|
/system/vold/ |
D | vold_prepare_subdirs.cpp | 97 auto dirp = std::unique_ptr<DIR, int (*)(DIR*)>(opendir(path.c_str()), closedir); in rmrf_contents() local 98 if (!dirp) { in rmrf_contents() 105 auto const entry = readdir(dirp.get()); in rmrf_contents() 126 auto dirp = std::unique_ptr<DIR, int (*)(DIR*)>(opendir("/apex"), closedir); in prepare_apex_subdirs() local 127 if (!dirp) { in prepare_apex_subdirs() 132 while ((entry = readdir(dirp.get())) != nullptr) { in prepare_apex_subdirs()
|
D | Loop.cpp | 130 auto dirp = std::unique_ptr<DIR, int (*)(DIR*)>(opendir(root.c_str()), closedir); in destroyAll() local 131 if (!dirp) { in destroyAll() 138 while ((de = readdir(dirp.get()))) { in destroyAll()
|
D | MoveStorage.cpp | 65 auto dirp = std::unique_ptr<DIR, int (*)(DIR*)>(opendir(path.c_str()), closedir); in pushBackContents() local 66 if (!dirp) { in pushBackContents() 72 while ((ent = readdir(dirp.get())) != NULL) { in pushBackContents()
|
D | FsCrypt.cpp | 123 auto dirp = std::unique_ptr<DIR, int (*)(DIR*)>(opendir(directory_path.c_str()), closedir); in get_ce_key_paths() local 124 if (!dirp) { in get_ce_key_paths() 131 auto const entry = readdir(dirp.get()); in get_ce_key_paths() 376 auto dirp = std::unique_ptr<DIR, int (*)(DIR*)>(opendir(de_dir.c_str()), closedir); in load_all_de_keys() local 377 if (!dirp) { in load_all_de_keys() 383 auto entry = readdir(dirp.get()); in load_all_de_keys() 951 auto dirp = std::unique_ptr<DIR, int (*)(DIR*)>(opendir(directory_path.c_str()), closedir); in destroy_volume_keys() local 952 if (!dirp) { in destroy_volume_keys() 959 auto const entry = readdir(dirp.get()); in destroy_volume_keys()
|
D | Utils.cpp | 949 std::unique_ptr<DIR, decltype(&closedir)> dirp(opendir(pathname.c_str()), closedir); in DeleteDirContents() local 950 if (!dirp) { in DeleteDirContents() 957 return delete_dir_contents(dirp.get()); in DeleteDirContents()
|
/system/core/fs_mgr/libfs_avb/ |
D | util.cpp | 132 std::unique_ptr<DIR, int (*)(DIR*)> dirp(opendir(dir.c_str()), closedir); in ListFiles() local 133 if (!dirp) { in ListFiles() 137 while ((de = readdir(dirp.get()))) { in ListFiles()
|
/system/iorap/tests/src/inode2filename/ |
D | search_directories_test.cc | 2486 virtual struct dirent *readdir(DIR *dirp) override { in readdir() argument 2487 DCHECK(dirp != nullptr); in readdir() 2490 State* state = dir_to_state(dirp); in readdir() 2546 virtual int closedir(DIR *dirp) override { in closedir() argument 2547 CHECK(dirp != nullptr); in closedir() 2548 State* state = dir_to_state(dirp); in closedir() 2589 State* dir_to_state(DIR* dirp) { in dir_to_state() argument 2590 return reinterpret_cast<State*>(reinterpret_cast<void*>(dirp)); in dir_to_state()
|
/system/core/init/ |
D | builtins.cpp | 1296 auto dirp = std::unique_ptr<DIR, int (*)(DIR*)>(opendir("/apex"), closedir); in create_apex_data_dirs() local 1297 if (!dirp) { in create_apex_data_dirs() 1301 while ((entry = readdir(dirp.get())) != nullptr) { in create_apex_data_dirs()
|