/base/tee/tee_client/services/teecd/src/ |
H A D | tee_load_dynamic_drv.c | 35 if (strcmp(dirFile->d_name, ".") == 0 || strcmp(dirFile->d_name, "..") == 0) { in LoadOneFile() 40 if (strstr(dirFile->d_name, ".sec") == NULL) { in LoadOneFile() 53 if (strcat_s(name, MAX_FILE_NAME_LEN, dirFile->d_name) != 0) { in LoadOneFile() 54 tloge("drv name too long: %s\n", dirFile->d_name); in LoadOneFile()
|
/base/startup/init/interfaces/innerkits/fs_manager/switch_root/ |
H A D | switch_root.c | 39 if (strcmp(de->d_name, ".") == 0 || strcmp(de->d_name, "..") == 0) { in FreeOldRoot() 45 if (fstatat(dfd, de->d_name, &st, AT_SYMLINK_NOFOLLOW) < 0) { in FreeOldRoot() 46 INIT_LOGE("Failed to get stat of %s", de->d_name); in FreeOldRoot() 56 int fd = openat(dfd, de->d_name, O_RDONLY | O_DIRECTORY); in FreeOldRoot() 69 if (unlinkat(dfd, de->d_name, isDir ? AT_REMOVEDIR : 0) < 0) { in FreeOldRoot() 70 INIT_LOGE("Failed to unlink %s, err = %d", de->d_name, errno); in FreeOldRoot()
|
/base/security/huks/utils/compatibility_bin/ |
H A D | compatibility_small_bin.c | 47 if (strcmp(ptr->d_name, ".") == 0 || strcmp(ptr->d_name, "..") == 0) { in ChangeDirAndFilesPerm() 60 ret = strcat_s(curPath, DEFAULT_PATH_LEN, ptr->d_name); in ChangeDirAndFilesPerm() 127 ret = strcat_s(curPath, DEFAULT_PATH_LEN, ptr->d_name); in ConstructSrcAndTargetPath() 141 ret = strcat_s(desPath, DEFAULT_PATH_LEN, ptr->d_name); in ConstructSrcAndTargetPath() 160 if (strcmp(ptr->d_name, ".") == 0 || strcmp(ptr->d_name, "..") == 0) { in MoveOldFolderToNew()
|
H A D | compatibility_standard_bin.c | 59 if (strcmp(ptr->d_name, ".") == 0 || strcmp(ptr->d_name, "..") == 0) { in ChangeDirAndFilesPerm() 72 ret = strcat_s(curPath, DEFAULT_PATH_LEN, ptr->d_name); in ChangeDirAndFilesPerm()
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
H A D | cm_event_process.c | 149 ret = CmFileRemove(dirPath, dire->d_name); in RemoveDir() 208 if (GetNextLayerPath(path, dire->d_name, uidPath, sizeof(uidPath)) != CM_SUCCESS) { in CmTraversalUidLayerDir() 213 if ((strcmp("..", dire->d_name) != 0) && (strcmp(".", dire->d_name) != 0) && (dire->d_type == DT_REG)) { in CmTraversalUidLayerDir() 214 TraversalUidLayerDir(context, uidPath, dire->d_name, store, isSameUid); in CmTraversalUidLayerDir() 276 if (GetNextLayerPath(path, dire->d_name, userIdPath, sizeof(userIdPath)) != CM_SUCCESS) { in CmTraversalUserIdLayerDir() 281 if (dire->d_type == DT_DIR && (strcmp("..", dire->d_name) != 0) && (strcmp(".", dire->d_name) != 0)) { in CmTraversalUserIdLayerDir() 282 (void)TraversalUserIdLayerDir(context, userIdPath, dire->d_name, store, isUserDeleteEvent); in CmTraversalUserIdLayerDir() 317 if (GetNextLayerPath(path, dire->d_name, deletePat in CmTraversalDir() [all...] |
H A D | cert_manager_file_operator.c | 283 uint32_t len = strlen(dire->d_name); in CmGetDirFile() 284 if (memcpy_s(direntInfo->fileName, sizeof(direntInfo->fileName) - 1, dire->d_name, len) != EOK) { in CmGetDirFile() 420 if (strncat_s(uidPath, sizeof(uidPath), dire->d_name, strlen(dire->d_name)) != EOK) { in CmUidLayerGetFileCountAndNames() 425 if ((dire->d_type == DT_REG) && (strcmp("..", dire->d_name) != 0) && (strcmp(".", dire->d_name) != 0)) { in CmUidLayerGetFileCountAndNames() 468 if (strncat_s(userIdPath, sizeof(userIdPath), dire->d_name, strlen(dire->d_name)) != EOK) { in CmUserIdLayerGetFileCountAndNames() 473 if ((dire->d_type == DT_DIR) && (strcmp("..", dire->d_name) != 0) && (strcmp(".", dire->d_name) ! in CmUserIdLayerGetFileCountAndNames() [all...] |
H A D | cert_manager_updateflag.c | 381 if ((strcmp(dire->d_name, ".") == 0) || (strcmp(dire->d_name, "..") == 0)) { in UpdateUserCerts() 385 if (snprintf_s(uidPath, CERT_MAX_PATH_LEN, CERT_MAX_PATH_LEN - 1, "%s/%s", userIdPath, dire->d_name) < 0) { in UpdateUserCerts() 406 if (CmIsNumeric(dire->d_name, strlen(dire->d_name) + 1, &uid) != CM_SUCCESS) { in UpdateUserCerts() 446 if ((dire->d_type != DT_DIR) || (strcmp(dire->d_name, ".") == 0) || (strcmp(dire->d_name, "..") == 0)) { in UpdateAllUserCerts() 451 if (snprintf_s(userIdPath, CERT_MAX_PATH_LEN, CERT_MAX_PATH_LEN - 1, "%s%s", USER_CA_STORE, dire->d_name) < 0) { in UpdateAllUserCerts() 457 if (CmIsNumeric(dire->d_name, strlen(dire->d_name) in UpdateAllUserCerts() [all...] |
/base/update/updater/utils/ |
H A D | utils_fs.cpp | 82 std::string fileName = path + "/" + dp->d_name; in GetFilesFromDirectory() 85 std::string tmpName = dp->d_name; in GetFilesFromDirectory() 115 if (strcmp(dt->d_name, "..") == 0 || strcmp(dt->d_name, ".") == 0) { in RemoveDir() 120 auto file_name = strPath + std::string(dt->d_name); in RemoveDir()
|
/base/security/huks/utils/file_operator/ |
H A D | hks_file_operator.c | 331 uint32_t len = strlen(dire->d_name);
in HksGetDirFile() 332 if (memcpy_s(direntInfo->fileName, sizeof(direntInfo->fileName) - 1, dire->d_name, len) != EOK) {
in HksGetDirFile() 365 ret = HksFileRemove(dirPath, dire->d_name);
in HksRemoveDir() 395 if (strncat_s(deletePath, sizeof(deletePath), dire->d_name, strlen(dire->d_name)) != EOK) {
in HksDeletDirPartTwo() 400 if ((strcmp("..", dire->d_name) != 0) && (strcmp(".", dire->d_name) != 0)) {
in HksDeletDirPartTwo() 430 if (strncat_s(deletePath, sizeof(deletePath), dire->d_name, strlen(dire->d_name)) != EOK) {
in HksDeletDirPartOne() 435 if (dire->d_type == DT_DIR && (strcmp("..", dire->d_name) ! in HksDeletDirPartOne() [all...] |
/base/startup/appspawn/service/hnp/installer/src/ |
H A D | hnp_installer.c | 140 ret = sprintf_s(srcFile, MAX_FILE_PATH_LEN, "%s/%s", srcPath, entry->d_name);
in HnpGenerateSoftLinkAll() 147 ret = sprintf_s(dstFile, MAX_FILE_PATH_LEN, "%s/%s", dstPath, entry->d_name);
in HnpGenerateSoftLinkAll() 493 if ((strcmp(entry->d_name, ".") == 0) || (strcmp(entry->d_name, "..") == 0)) {
in HnpPackageGetAndInstall() 496 if (sprintf_s(path, MAX_FILE_PATH_LEN, "%s/%s", dirPath, entry->d_name) < 0) {
in HnpPackageGetAndInstall() 497 HNP_LOGE("hnp install sprintf unsuccess, dir[%{public}s], path[%{public}s]", dirPath, entry->d_name);
in HnpPackageGetAndInstall() 503 if (sprintf_s(sunDirNew, MAX_FILE_PATH_LEN, "%s%s/", sunDir, entry->d_name) < 0) {
in HnpPackageGetAndInstall() 518 sunDir, entry->d_name) < 0) {
in HnpPackageGetAndInstall() 519 HNP_LOGE("hnp install sprintf unsuccess,sub[%{public}s],path[%{public}s]", sunDir, entry->d_name);
in HnpPackageGetAndInstall() 552 if (strcmp(entry->d_name, "publi in HapReadAndInstall() [all...] |
/base/security/device_auth/frameworks/deviceauth_lite/inc/struct/ |
H A D | parsedata.h | 27 #define DEFINE_EMPTY_STRUCT_FUNC(d_name) \ 28 void *parse_##d_name(const char *payload, enum json_object_data_type data_type) \ 34 void free_##d_name(void *obj) \ 38 char *make_##d_name(void *data) \
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/ |
H A D | file_util.cpp | 90 if (strcmp(dirInfo->d_name, ".") == 0 || strcmp(dirInfo->d_name, "..") == 0) {
in ForceRemoveDirectory() 93 std::string filePath = GetFilePathByDir(dir, dirInfo->d_name);
in ForceRemoveDirectory() 118 if (!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")) {
in GetDirFiles() 121 std::string filePath = GetFilePathByDir(dir, ent->d_name);
in GetDirFiles()
|
/base/startup/appspawn/service/hnp/base/ |
H A D | hnp_file.c | 143 if ((strcmp(entry->d_name, ".") == 0) || (strcmp(entry->d_name, "..") == 0)) {
in HnpDeleteAllFileInPath() 147 ret = sprintf_s(filePath, MAX_FILE_PATH_LEN, "%s/%s", path, entry->d_name);
in HnpDeleteAllFileInPath() 149 HNP_LOGE("delete folder sprintf path[%{public}s], file[%{public}s] unsuccess.", path, entry->d_name);
in HnpDeleteAllFileInPath() 270 if ((strcmp(entry->d_name, ".") == 0) || (strcmp(entry->d_name, "..") == 0)) {
in HnpPathFileCount()
|
/base/powermgr/battery_manager/charger/src/ |
H A D | power_supply_provider.cpp | 191 if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0) { in InitPowerSupplySysfs() 200 nodeNames_.emplace_back(entry->d_name); in InitPowerSupplySysfs() 261 if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0) { in CheckSubfolderNode() 269 if ((strcmp(entry->d_name, "type") == 0) && (nodeNamePathMap_["type"].empty()) && in CheckSubfolderNode() 275 if ((strcmp(entry->d_name, iter.first.c_str()) == 0) && (nodeNamePathMap_[iter.first].empty())) { in CheckSubfolderNode()
|
/base/hiviewdfx/hidumper/frameworks/native/src/executor/ |
H A D | file_stream_dumper.cpp | 182 std::string d_name = ptr->d_name; in BuildFileNames() local 183 if ((d_name == ".") || (d_name == "..")) { in BuildFileNames() 186 std::string filename = dir_name + d_name; in BuildFileNames()
|
/base/startup/init/services/modules/init_eng/ |
H A D | init_eng.c | 156 if (de->d_name[0] == '.') { in DebugFilesOverlay() 159 if (snprintf_s(srcPath, PATH_MAX, PATH_MAX - 1, "%s/%s", source, de->d_name) == -1) { in DebugFilesOverlay() 166 if (fstatat(dfd, de->d_name, &st, AT_SYMLINK_NOFOLLOW) < 0) { in DebugFilesOverlay()
|
/base/security/huks/test/unittest/modify_old_version_key_test_util/ |
H A D | hks_test_modify_old_key.c | 108 if (strcmp(ptr->d_name, ".") == 0 || strcmp(ptr->d_name, "..") == 0) { in ChangeDirAndFiles() 121 ret = strcat_s(curPath, DEFAULT_PATH_LEN, ptr->d_name); in ChangeDirAndFiles()
|
/base/powermgr/battery_manager/test/utils/ |
H A D | test_utils.cpp | 92 if (strcmp(".", ptr->d_name) != 0 && strcmp("..", ptr->d_name) != 0) {
in IsMock()
|
/base/powermgr/thermal_manager/application/protector/src/ |
H A D | thermal_sensor_provision.cpp | 149 if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0) { in InitThermalZoneSysfs() 153 if (strncmp(entry->d_name, CDEV_DIR_NAME, strlen(CDEV_DIR_NAME)) == 0) { in InitThermalZoneSysfs() 159 sysfsInfo.name = entry->d_name; in InitThermalZoneSysfs()
|
/base/security/device_auth/deps_adapter/os_adapter/impl/src/linux/ |
H A D | hc_file.c | 203 if ((strcmp(entry->d_name, ".") == 0) || (strcmp(entry->d_name, "..") == 0)) { in HcFileGetSubFileName() 207 if (!StringSetPointer(&subFileName, entry->d_name)) { in HcFileGetSubFileName()
|
/base/security/device_auth/deps_adapter/os_adapter/impl/src/liteos/mini/ |
H A D | hc_file_posix.c | 204 if ((strcmp(entry->d_name, ".") == 0) || (strcmp(entry->d_name, "..") == 0)) { in HcFileGetSubFileName() 208 if (!StringSetPointer(&subFileName, entry->d_name)) { in HcFileGetSubFileName()
|
/base/security/selinux_adapter/test/unittest/common/ |
H A D | test_common.cpp | 67 if ((curDir == std::string(dp->d_name)) || (upDir == std::string(dp->d_name))) { in RemoveDirectory() 70 std::string dirName = path + "/" + std::string(dp->d_name); in RemoveDirectory()
|
/base/hiviewdfx/hiview/base/utility/ |
H A D | file_util.cpp | 127 if ((strcmp(ptr->d_name, ".") == 0) || (strcmp(ptr->d_name, "..") == 0)) { in GetDirFiles() 130 std::string pathStringWithDelimiter = IncludeTrailingPathDelimiter(path) + string(ptr->d_name); in GetDirFiles() 133 files.push_back(IncludeTrailingPathDelimiter(path) + string(ptr->d_name)); in GetDirFiles() 151 if (strcmp(ptr->d_name, ".") == 0 || strcmp(ptr->d_name, "..") == 0) { in GetDirDirs() 154 dirs.push_back(IncludeTrailingPathDelimiter(path) + string(ptr->d_name)); in GetDirDirs()
|
/base/powermgr/thermal_manager/test/common/src/ |
H A D | thermal_test.cpp | 113 if (strcmp(".", ptr->d_name) != 0 && strcmp("..", ptr->d_name) != 0) { in IsMock()
|
/base/msdp/device_status/intention/services/device_manager/src/ |
H A D | enumerator.cpp | 54 const std::string devNode { dent->d_name }; in ScanAndAddDevices()
|