Home
last modified time | relevance | path

Searched refs:dirp (Results 1 - 8 of 8) sorted by relevance

/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dbundle_scanner.cpp61 DIR *dirp = opendir(dirPath.c_str()); in ScanImpl() local
62 if (dirp == nullptr) { in ScanImpl()
69 dirent = readdir(dirp); in ScanImpl()
83 if (closedir(dirp) == -1) { in ScanImpl()
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/
H A Dstore_util.cpp189 DIR *dirp = opendir(path.c_str()); in GetSubPath() local
190 if (dirp == nullptr) { in GetSubPath()
195 while ((dp = readdir(dirp)) != nullptr) { in GetSubPath()
200 (void)closedir(dirp); in GetSubPath()
207 DIR *dirp = opendir(path.c_str()); in GetFiles() local
208 if (dirp == nullptr) { in GetFiles()
213 while ((dp = readdir(dirp)) != nullptr) { in GetFiles()
225 closedir(dirp); in GetFiles()
294 DIR *dirp = opendir(path.c_str()); in RemoveRWXForOthers() local
296 while ((dp = readdir(dirp)) ! in RemoveRWXForOthers()
[all...]
/foundation/distributeddatamgr/kv_store/kvstoremock/frameworks/innerkitsimpl/kvdb/src/
H A Dstore_util.cpp200 DIR *dirp = opendir(path.c_str()); in GetSubPath() local
201 if (dirp == nullptr) { in GetSubPath()
206 while ((dp = readdir(dirp)) != nullptr) { in GetSubPath()
209 (void)closedir(dirp); in GetSubPath()
216 DIR *dirp = opendir(path.c_str()); in GetFiles() local
217 if (dirp == nullptr) { in GetFiles()
222 while ((dp = readdir(dirp)) != nullptr) { in GetFiles()
231 closedir(dirp); in GetFiles()
/foundation/ability/ability_runtime/frameworks/native/appkit/app/
H A Dextension_plugin_info.cpp118 DIR *dirp = opendir(dirPath.c_str()); in ScanExtensions() local
119 if (dirp == nullptr) { in ScanExtensions()
126 dirf = readdir(dirp); in ScanExtensions()
141 if (closedir(dirp) == -1) { in ScanExtensions()
H A Dmain_thread.cpp2771 DIR *dirp = opendir(dirPath.c_str()); in ScanDir() local
2772 if (dirp == nullptr) { in ScanDir()
2778 df = readdir(dirp); in ScanDir()
2793 if (closedir(dirp) == -1) { in ScanDir()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/heif_hw_decode/common/
H A Dmock_heif_hw_decode_flow.cpp97 DIR *dirp = opendir(source_.c_str()); in FindXpsAndIFrameFile() local
98 IF_TRUE_RETURN_VOID_WITH_MSG(dirp == nullptr, "failed to open: %{public}s, errno=%{public}d", in FindXpsAndIFrameFile()
101 while ((dp = readdir(dirp)) != nullptr) { in FindXpsAndIFrameFile()
117 closedir(dirp); in FindXpsAndIFrameFile()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/src/
H A Ddistributed_test_tools.cpp305 DIR *dirp = nullptr; in RemoveDir() local
328 dirp = opendir(dir); in RemoveDir()
329 if (dirp == nullptr) { in RemoveDir()
333 while ((dp = readdir(dirp)) != nullptr) { in RemoveDir()
340 closedir(dirp); in RemoveDir()
346 closedir(dirp); in RemoveDir()
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_file/class_file/
H A Dfile_n_exporter.cpp598 DIR *dirp = opendir(src.c_str()); in DirMove() local
599 if (dirp == nullptr) { in DirMove()
603 while ((entp = readdir(dirp)) != nullptr) { in DirMove()
610 closedir(dirp); in DirMove()
616 closedir(dirp); in DirMove()
623 closedir(dirp); in DirMove()

Completed in 13 milliseconds