Searched refs:dire (Results 1 – 3 of 3) sorted by relevance
/base/security/huks/utils/file_operator/ |
D | hks_file_operator.c | 289 struct dirent *dire = readdir(dir); in HksGetDirFile() local 291 while (dire != NULL) { in HksGetDirFile() 292 if (dire->d_type != DT_REG) { /* only care about files. */ in HksGetDirFile() 293 dire = readdir(dir); in HksGetDirFile() 297 uint32_t len = strlen(dire->d_name); in HksGetDirFile() 298 … if (memcpy_s(direntInfo->fileName, sizeof(direntInfo->fileName) - 1, dire->d_name, len) != EOK) { in HksGetDirFile() 353 struct dirent *dire = readdir(dir); in HksRemoveDir() local 354 while (dire != NULL) { in HksRemoveDir() 355 if (dire->d_type == DT_REG) { /* only care about files. */ in HksRemoveDir() 356 ret = HksFileRemove(dirPath, dire->d_name); in HksRemoveDir() [all …]
|
D | hks_file_operator_lite.c | 209 struct dirent *dire = readdir(dir); in HksGetDirFile() local 211 while (dire != NULL) { in HksGetDirFile() 212 if (dire->d_type != DT_REG) { /* only care about files. */ in HksGetDirFile() 213 dire = readdir(dir); in HksGetDirFile() 217 uint32_t len = strlen(dire->d_name); in HksGetDirFile() 218 … if (memcpy_s(direntInfo->fileName, sizeof(direntInfo->fileName) - 1, dire->d_name, len) != EOK) { in HksGetDirFile() 273 struct dirent *dire = readdir(dir); in HksRemoveDir() local 274 while (dire != NULL) { in HksRemoveDir() 275 if (dire->d_type == DT_REG) { /* only care about files. */ in HksRemoveDir() 276 ret = HksFileRemove(dirPath, dire->d_name); in HksRemoveDir() [all …]
|
/base/security/huks/services/huks_standard/huks_service/main/core/src/ |
D | hks_storage.c | 1097 struct HksFileDirentInfo dire = {{0}}; in GetFileCount() local 1098 int32_t ret = HksGetDirFile(dir, &dire); in GetFileCount() 1101 ret = HksGetDirFile(dir, &dire); in GetFileCount() 1123 struct HksFileDirentInfo dire = {{0}}; in GetFileNameList() local 1124 int32_t ret = HksGetDirFile(dir, &dire); in GetFileNameList() 1127 uint32_t nameLen = strlen(dire.fileName); in GetFileNameList() 1134 dire.fileName, nameLen) != EOK) { in GetFileNameList() 1139 ret = HksGetDirFile(dir, &dire); in GetFileNameList()
|