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.cpp134 struct dirent *dirp = readdir(dir); in OH_ResourceManager_OpenRawDir() local
135 while (dirp != nullptr) { in OH_ResourceManager_OpenRawDir()
136 if (std::strcmp(dirp->d_name, ".") == 0 || in OH_ResourceManager_OpenRawDir()
137 std::strcmp(dirp->d_name, "..") == 0) { in OH_ResourceManager_OpenRawDir()
138 dirp = readdir(dir); in OH_ResourceManager_OpenRawDir()
141 if (dirp->d_type == DT_REG) { in OH_ResourceManager_OpenRawDir()
142 result->fileNameCache.names.push_back(tempName + "/" + dirp->d_name); in OH_ResourceManager_OpenRawDir()
145 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.c236 int32_t CmCloseDir(void *dirp) in CmCloseDir() argument
238 return closedir((DIR *)dirp); in CmCloseDir()
241 int32_t CmGetDirFile(void *dirp, struct CmFileDirentInfo *direntInfo) in CmGetDirFile() argument
243 DIR *dir = (DIR *)dirp; in CmGetDirFile()
459 int32_t CmGetSubDir(void *dirp, struct CmFileDirentInfo *direntInfo) in CmGetSubDir() argument
461 DIR *dir = (DIR *)dirp; in CmGetSubDir()
496 DIR *dirp = opendir(path); in DirRemove() local
497 if (dirp == NULL) { in DirRemove()
501 while ((dire = readdir(dirp)) != NULL) { in DirRemove()
507 closedir(dirp); in DirRemove()
/base/security/selinux/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.h74 int32_t HksCloseDir(void *dirp);
76 int32_t HksGetDirFile(void *dirp, struct HksFileDirentInfo *direntInfo);
Dhks_file_operator_lite.c209 int32_t HksCloseDir(void *dirp) in HksCloseDir() argument
211 return closedir((DIR *)dirp); in HksCloseDir()
214 int32_t HksGetDirFile(void *dirp, struct HksFileDirentInfo *direntInfo) in HksGetDirFile() argument
216 DIR *dir = (DIR *)dirp; in HksGetDirFile()
Dhks_file_operator.c256 int32_t HksCloseDir(void *dirp) in HksCloseDir() argument
258 return closedir((DIR *)dirp); in HksCloseDir()
261 int32_t HksGetDirFile(void *dirp, struct HksFileDirentInfo *direntInfo) in HksGetDirFile() argument
263 DIR *dir = (DIR *)dirp; in HksGetDirFile()
/base/update/updater/utils/
Dutils.cpp100 DIR *dirp = opendir(path.c_str()); in GetFilesFromDirectory() local
103 while ((dp = readdir(dirp)) != nullptr) { in GetFilesFromDirectory()
118 closedir(dirp); in GetFilesFromDirectory()