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);
156 struct dirent *dirp = readdir(dir); in OH_ResourceManager_OpenRawDir() local157 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()
240 int32_t CmCloseDir(void *dirp) in CmCloseDir() argument242 return closedir((DIR *)dirp); in CmCloseDir()245 int32_t CmGetDirFile(void *dirp, struct CmFileDirentInfo *direntInfo) in CmGetDirFile() argument247 DIR *dir = (DIR *)dirp; in CmGetDirFile()463 int32_t CmGetSubDir(void *dirp, struct CmFileDirentInfo *direntInfo) in CmGetSubDir() argument465 DIR *dir = (DIR *)dirp; in CmGetSubDir()500 DIR *dirp = opendir(path); in DirRemove() local501 if (dirp == NULL) { in DirRemove()505 while ((dire = readdir(dirp)) != NULL) { in DirRemove()511 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()
91 int32_t HksCloseDir(void *dirp);93 int32_t HksGetDirFile(void *dirp, struct HksFileDirentInfo *direntInfo);
230 int32_t HksCloseDir(void *dirp) in HksCloseDir() argument232 return closedir((DIR *)dirp); in HksCloseDir()235 int32_t HksGetDirFile(void *dirp, struct HksFileDirentInfo *direntInfo) in HksGetDirFile() argument237 DIR *dir = (DIR *)dirp; in HksGetDirFile()
261 int32_t HksCloseDir(void *dirp) in HksCloseDir() argument263 return closedir((DIR *)dirp); in HksCloseDir()266 int32_t HksGetDirFile(void *dirp, struct HksFileDirentInfo *direntInfo) in HksGetDirFile() argument268 DIR *dir = (DIR *)dirp; in HksGetDirFile()
128 DIR *dirp = opendir(path.c_str()); in GetFilesFromDirectory() local131 while ((dp = readdir(dirp)) != nullptr) { in GetFilesFromDirectory()146 closedir(dirp); in GetFilesFromDirectory()