Searched refs:dirp (Results 1 – 8 of 8) sorted by relevance
46 int32_t CmCloseDir(void *dirp);48 int32_t CmGetDirFile(void *dirp, struct CmFileDirentInfo *direntInfo);58 int32_t CmGetSubDir(void *dirp, struct CmFileDirentInfo *direntInfo);
134 struct dirent *dirp = readdir(dir); in OH_ResourceManager_OpenRawDir() local135 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()
236 int32_t CmCloseDir(void *dirp) in CmCloseDir() argument238 return closedir((DIR *)dirp); in CmCloseDir()241 int32_t CmGetDirFile(void *dirp, struct CmFileDirentInfo *direntInfo) in CmGetDirFile() argument243 DIR *dir = (DIR *)dirp; in CmGetDirFile()459 int32_t CmGetSubDir(void *dirp, struct CmFileDirentInfo *direntInfo) in CmGetSubDir() argument461 DIR *dir = (DIR *)dirp; in CmGetSubDir()496 DIR *dirp = opendir(path); in DirRemove() local497 if (dirp == NULL) { in DirRemove()501 while ((dire = readdir(dirp)) != NULL) { in DirRemove()507 closedir(dirp); in DirRemove()
50 DIR *dirp; in RemoveDirectory() local65 dirp = opendir(path.c_str()); in RemoveDirectory()66 while ((dp = readdir(dirp)) != nullptr) { in RemoveDirectory()73 closedir(dirp); in RemoveDirectory()
74 int32_t HksCloseDir(void *dirp);76 int32_t HksGetDirFile(void *dirp, struct HksFileDirentInfo *direntInfo);
209 int32_t HksCloseDir(void *dirp) in HksCloseDir() argument211 return closedir((DIR *)dirp); in HksCloseDir()214 int32_t HksGetDirFile(void *dirp, struct HksFileDirentInfo *direntInfo) in HksGetDirFile() argument216 DIR *dir = (DIR *)dirp; in HksGetDirFile()
256 int32_t HksCloseDir(void *dirp) in HksCloseDir() argument258 return closedir((DIR *)dirp); in HksCloseDir()261 int32_t HksGetDirFile(void *dirp, struct HksFileDirentInfo *direntInfo) in HksGetDirFile() argument263 DIR *dir = (DIR *)dirp; in HksGetDirFile()
100 DIR *dirp = opendir(path.c_str()); in GetFilesFromDirectory() local103 while ((dp = readdir(dirp)) != nullptr) { in GetFilesFromDirectory()118 closedir(dirp); in GetFilesFromDirectory()