Searched refs:resolvePath (Results 1 – 5 of 5) sorted by relevance
/ohos5.0/commonlibrary/utils_lite/js/builtin/kvstorekit/src/ |
H A D | nativeapi_kv_impl.c | 105 char* resolvePath = (char *)malloc(PATH_MAX); in GetValue() local 106 if (resolvePath == NULL) { in GetValue() 110 free(resolvePath); in GetValue() 113 int fileHandle = open(resolvePath, O_RDONLY, S_IRUSR); in GetValue() 114 free(resolvePath); in GetValue() 115 resolvePath = NULL; in GetValue() 134 char* resolvePath = (char *)malloc(PATH_MAX); in SetValue() local 135 if (resolvePath == NULL) { in SetValue() 139 free(resolvePath); in SetValue() 143 free(resolvePath); in SetValue() [all …]
|
/ohos5.0/commonlibrary/utils_lite/js/builtin/filekit/src/ |
H A D | nativeapi_fs_impl.c | 266 if (resolvePath == NULL) { in WriteTextFile() 270 free(resolvePath); in WriteTextFile() 279 free(resolvePath); in WriteTextFile() 298 free(resolvePath); in WriteArrayFile() 304 free(resolvePath); in WriteArrayFile() 305 resolvePath = NULL; in WriteArrayFile() 311 free(resolvePath); in WriteArrayFile() 312 resolvePath = NULL; in WriteArrayFile() 336 free(resolvePath); in ReadFileImpl() 340 free(resolvePath); in ReadFileImpl() [all …]
|
/ohos5.0/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/ |
H A D | zip_file_reader.cpp | 81 std::string resolvePath; in init() local 82 resolvePath.reserve(PATH_MAX); in init() 83 resolvePath.resize(PATH_MAX - 1); in init() 85 resolvePath = filePath_; in init() 88 if (realpath(filePath_.c_str(), &(resolvePath[0])) == nullptr) { in init() 89 ABILITYBASE_LOGE("realpath error: %{public}s : %{public}d", resolvePath.c_str(), errno); in init() 94 fd_ = open(resolvePath.c_str(), O_RDONLY); in init() 96 ABILITYBASE_LOGE("open file error: %{public}s : %{public}d", resolvePath.c_str(), errno); in init()
|
/ohos5.0/base/hiviewdfx/hicollie/frameworks/native/ |
H A D | xcollie_utils.cpp | 296 char resolvePath[PATH_MAX] = {0}; in KillProcessByPid() local 297 if (realpath(path.c_str(), resolvePath) == nullptr) { in KillProcessByPid() 301 fin.open(resolvePath); in KillProcessByPid() 303 XCOLLIE_LOGI("open file failed, %{public}s.", resolvePath); in KillProcessByPid()
|
/ohos5.0/foundation/ability/ability_runtime/services/appdfr/src/ |
H A D | appfreeze_manager.cpp | 429 char resolvePath[PATH_MAX] = {0}; in GetBinderPeerPids() local 430 if (realpath(path.c_str(), resolvePath) == nullptr) { in GetBinderPeerPids() 434 fin.open(resolvePath); in GetBinderPeerPids() 436 TAG_LOGE(AAFwkTag::APPDFR, "open failed, %{public}s", resolvePath); in GetBinderPeerPids()
|