Home
last modified time | relevance | path

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

/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/
Dcert_manager_file_operator.h46 int32_t CmCloseDir(void *dirp);
48 int32_t CmGetDirFile(void *dirp, struct CmFileDirentInfo *direntInfo);
58 int32_t CmGetSubDir(void *dirp, struct CmFileDirentInfo *direntInfo);
/base/global/resource_management/frameworks/resmgr/src/
Draw_file_manager.cpp156 struct dirent *dirp = readdir(dir); in OH_ResourceManager_OpenRawDir() local
157 while (dirp != nullptr) { in OH_ResourceManager_OpenRawDir()
158 if (std::strcmp(dirp->d_name, ".") == 0 || in OH_ResourceManager_OpenRawDir()
159 std::strcmp(dirp->d_name, "..") == 0) { in OH_ResourceManager_OpenRawDir()
160 dirp = readdir(dir); in OH_ResourceManager_OpenRawDir()
163 if (dirp->d_type == DT_REG || dirp->d_type == DT_DIR) { in OH_ResourceManager_OpenRawDir()
164 result->fileNameCache.names.push_back(tempName + "/" + dirp->d_name); in OH_ResourceManager_OpenRawDir()
167 dirp = readdir(dir); in OH_ResourceManager_OpenRawDir()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_file_operator.c240 int32_t CmCloseDir(void *dirp) in CmCloseDir() argument
242 return closedir((DIR *)dirp); in CmCloseDir()
245 int32_t CmGetDirFile(void *dirp, struct CmFileDirentInfo *direntInfo) in CmGetDirFile() argument
247 DIR *dir = (DIR *)dirp; in CmGetDirFile()
463 int32_t CmGetSubDir(void *dirp, struct CmFileDirentInfo *direntInfo) in CmGetSubDir() argument
465 DIR *dir = (DIR *)dirp; in CmGetSubDir()
500 DIR *dirp = opendir(path); in DirRemove() local
501 if (dirp == NULL) { in DirRemove()
505 while ((dire = readdir(dirp)) != NULL) { in DirRemove()
511 closedir(dirp); in DirRemove()
/base/security/selinux_adapter/test/unittest/common/
Dtest_common.cpp50 DIR *dirp; in RemoveDirectory() local
65 dirp = opendir(path.c_str()); in RemoveDirectory()
66 while ((dp = readdir(dirp)) != nullptr) { in RemoveDirectory()
73 closedir(dirp); in RemoveDirectory()
/base/security/huks/utils/file_operator/
Dhks_file_operator.h91 int32_t HksCloseDir(void *dirp);
93 int32_t HksGetDirFile(void *dirp, struct HksFileDirentInfo *direntInfo);
Dhks_file_operator_lite.c230 int32_t HksCloseDir(void *dirp) in HksCloseDir() argument
232 return closedir((DIR *)dirp); in HksCloseDir()
235 int32_t HksGetDirFile(void *dirp, struct HksFileDirentInfo *direntInfo) in HksGetDirFile() argument
237 DIR *dir = (DIR *)dirp; in HksGetDirFile()
Dhks_file_operator.c261 int32_t HksCloseDir(void *dirp) in HksCloseDir() argument
263 return closedir((DIR *)dirp); in HksCloseDir()
266 int32_t HksGetDirFile(void *dirp, struct HksFileDirentInfo *direntInfo) in HksGetDirFile() argument
268 DIR *dir = (DIR *)dirp; in HksGetDirFile()
/base/update/updater/utils/
Dutils.cpp128 DIR *dirp = opendir(path.c_str()); in GetFilesFromDirectory() local
131 while ((dp = readdir(dirp)) != nullptr) { in GetFilesFromDirectory()
146 closedir(dirp); in GetFilesFromDirectory()