Home
last modified time | relevance | path

Searched refs:tmpPath (Results 1 – 10 of 10) sorted by relevance

/base/startup/init/services/param/adapter/
Dparam_persistadp.c59 char *tmpPath = (updaterMode == 0) ? PARAM_PERSIST_SAVE_PATH : "/param/persist_parameters"; in LoadPersistParam() local
60 LoadPersistParam_(tmpPath, buffer, buffSize); in LoadPersistParam()
61 tmpPath = (updaterMode == 0) ? PARAM_PERSIST_SAVE_TMP_PATH : "/param/tmp_persist_parameters"; in LoadPersistParam()
62 LoadPersistParam_(tmpPath, buffer, buffSize); in LoadPersistParam()
/base/update/updater/test/unittest/mount_test/
Dmount_unittest.cpp149 const std::string tmpPath = "/vendor/etc/fstab.updater"; variable
150 std::string vendorSource = GetBlockDeviceByMountPoint(tmpPath);
155 …auto ret = open(tmpPath.c_str(), O_RDONLY | O_CREAT | O_TRUNC, S_IRWXU | S_IRGRP | S_IXGRP | S_IRO…
162 unlink(tmpPath.c_str());
/base/update/updater/services/updater_binary/
Dupdate_partitions.cpp133 std::string tmpPath = "/data/updater" + filePath; in SetNewPartition() local
135 if (realpath(tmpPath.c_str(), realPath) == nullptr) { in SetNewPartition()
136 LOG(ERROR) << "Error to create: " << tmpPath; in SetNewPartition()
154 LOG(ERROR) << "Open " << tmpPath << " failed: " << errno; in SetNewPartition()
/base/update/updater/test/unittest/updater_test/
Dupdater_unittest.cpp42 std::string tmpPath = "/tmp"; in SetUp() local
49 auto ret = mkdir(tmpPath.c_str(), mode); in SetUp()
/base/tee/tee_client/services/tlogcat/src/
Dtlogcat.c475 static void LogTmpDirClear(const char *tmpPath) in LogTmpDirClear() argument
480 DIR *dir = opendir(tmpPath); in LogTmpDirClear()
482 tloge("open dir %s failed, errno:%d\n", tmpPath, errno); in LogTmpDirClear()
494 "%s/%s", tmpPath, de->d_name); in LogTmpDirClear()
505 ret = rmdir(tmpPath); in LogTmpDirClear()
507 tloge("clear %s failed, err:%d, errno:%d\n", tmpPath, ret, errno); in LogTmpDirClear()
511 static int32_t MkdirTmpPath(const char *tmpPath) in MkdirTmpPath() argument
516 ret = rmdir(tmpPath); in MkdirTmpPath()
520 LogTmpDirClear(tmpPath); in MkdirTmpPath()
523 ret = mkdir(tmpPath, TLOGCAT_FILE_MODE); in MkdirTmpPath()
[all …]
/base/update/updater/test/unittest/applypatch_test/
Dapplypatch_unittest.cpp44 std::string tmpPath = "/tmp"; in SetUp() local
50 auto ret = mkdir(tmpPath.c_str(), S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); in SetUp()
/base/global/resource_management/frameworks/resmgr/src/
Dhap_manager.cpp258 char tmpPath[PATH_MAX] = {0}; in FindRawFile() local
266 if (!PathCanonicalizeA(tmpPath, (resourcesIndexPath + "/resources/" + tempName).c_str())) { in FindRawFile()
270 if (realpath((resourcesIndexPath + "/resources/" + tempName).c_str(), tmpPath) == nullptr) { in FindRawFile()
275 const std::string realPath = tmpPath; in FindRawFile()
/base/web/webview/ohos_nweb/src/
Dnweb_helper.cpp1038 char tmpPath[PATH_MAX + 1] = { 0 };
1039 …th || strlen(configPath) == 0 || strlen(configPath) > PATH_MAX || !realpath(configPath, tmpPath)) {
1043 return std::string(tmpPath);
/base/update/updater/utils/
Dutils.cpp653 char tmpPath[PATH_MAX] = {0}; in PathToRealPath() local
654 if (realpath(path.c_str(), tmpPath) == nullptr) { in PathToRealPath()
659 realPath = tmpPath; in PathToRealPath()
/base/security/huks/services/huks_standard/huks_service/main/core/src/
Dhks_storage.c756 static int32_t MakeSubPath(const char *mainPath, const char *tmpPath, char *outPath, uint32_t outPa… in MakeSubPath() argument
764 if (strncat_s(outPath, outPathLen, tmpPath, strlen(tmpPath)) != EOK) { in MakeSubPath()