Home
last modified time | relevance | path

Searched refs:path (Results 1 - 25 of 943) sorted by relevance

12345678910>>...38

/base/startup/appspawn/modules/sandbox/
H A Dsandbox_adapter.cpp23 void MakeAtomicServiceDir(const SandboxContext *context, const char *path) in MakeAtomicServiceDir() argument
25 APPSPAWN_CHECK_ONLY_EXPER(context != NULL && path != NULL, return); in MakeAtomicServiceDir()
26 if (access(path, F_OK) == 0) { in MakeAtomicServiceDir()
27 APPSPAWN_LOGV("path %{public}s already exist, no need to recreate", path); in MakeAtomicServiceDir()
30 int ret = mkdir(path, S_IRWXU); in MakeAtomicServiceDir()
31 APPSPAWN_CHECK(ret == 0, return, "mkdir %{public}s failed, errno %{public}d", path, errno); in MakeAtomicServiceDir()
33 if (strstr(path, "/database") != NULL) { in MakeAtomicServiceDir()
34 ret = chmod(path, S_IRWXU | S_IRWXG | S_ISGID); in MakeAtomicServiceDir()
35 } else if (strstr(path, "/lo in MakeAtomicServiceDir()
[all...]
/base/web/webview/
H A Dcopy_files.py21 WORK_SPACE = os.path.dirname(os.path.abspath(__file__))
22 PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.dirname(WORK_SPACE)))
24 sys.path.append(os.path.join(PROJECT_DIR, 'build'))
25 sys.path.append(os.path.join(PROJECT_DIR, 'build/hb'))
30 INTERFACE_DIR = os.path
[all...]
/base/account/os_account/frameworks/common/file_operator/src/
H A Daccount_file_operator.cpp52 ErrCode AccountFileOperator::CreateDir(const std::string &path, mode_t mode) in CreateDir() argument
56 if (!OHOS::ForceCreateDirectory(path)) { in CreateDir()
57 ACCOUNT_LOGE("failed to create %{public}s, errno %{public}d.", path.c_str(), errno); in CreateDir()
60 SetDirDelFlags(path); in CreateDir()
61 bool createFlag = OHOS::ChangeModeDirectory(path, mode); in CreateDir()
63 ACCOUNT_LOGE("failed to change mode for %{public}s, errno %{public}d.", path.c_str(), errno); in CreateDir()
70 ErrCode AccountFileOperator::DeleteDirOrFile(const std::string &path) in DeleteDirOrFile() argument
72 if (IsExistDir(path)) { in DeleteDirOrFile()
73 return DeleteDir(path); in DeleteDirOrFile()
75 if (IsExistFile(path)) { in DeleteDirOrFile()
82 DeleteDir(const std::string &path) DeleteDir() argument
95 DeleteFile(const std::string &path) DeleteFile() argument
210 InputFileByPathAndContent(const std::string &path, const std::string &content) InputFileByPathAndContent() argument
263 GetFileContentByPath(const std::string &path, std::string &content) GetFileContentByPath() argument
308 IsExistFile(const std::string &path) IsExistFile() argument
332 IsJsonFormat(const std::string &path) IsJsonFormat() argument
347 IsJsonFileReady(const std::string &path) IsJsonFileReady() argument
352 IsExistDir(const std::string &path) IsExistDir() argument
[all...]
/base/inputmethod/imf/services/file/src/
H A Dfile_operator.cpp27 bool FileOperator::Create(const std::string &path, mode_t mode) in Create() argument
29 auto ret = mkdir(path.c_str(), mode); in Create()
31 IMSA_HILOGE("%{public}s mkdir failed, errno:%{public}d!", path.c_str(), errno); in Create()
37 bool FileOperator::IsExist(const std::string &path) in IsExist() argument
39 return access(path.c_str(), F_OK) == SUCCESS; in IsExist()
42 bool FileOperator::Read(const std::string &path, std::string &content) in Read() argument
44 std::ifstream file(path); in Read()
46 IMSA_HILOGE("%{public}s open fail!", path.c_str()); in Read()
56 bool FileOperator::Write(const std::string &path, const std::string &content, int32_t flags, mode_t mode) in Write() argument
59 auto fd = open(path in Write()
74 Read(const std::string &path, const std::string &key, std::string &content) Read() argument
100 Read(const std::string &path, const std::string &key) Read() argument
115 GetRealPath(const char *path) GetRealPath() argument
[all...]
/base/security/selinux_adapter/scripts/selinux_check/
H A Dcheck_data_regex.py28 def check_regex_path(path):
30 path = re.sub(r'\\\\', '', path)
31 path = re.sub(r'\\/', '/', path)
33 path_elements = path.split('/')
51 path = split_list[0]
52 normalize_path = os.path.normpath(path)
54 if path i
[all...]
H A Dselinux_check_main.py31 request_args.append(os.path.join(args.output_path, "file_contexts"))
34 request_args.append(os.path.join(args.output_path, "all.cil"))
36 request_args.append(os.path.join(args.output_path, "developer/all.cil"))
41 check_policy_cmd = [os.path.join(args.tool_path, "checkpolicy"),
44 "-o", os.path.join(args.output_path, "all.cil")]
46 check_policy_cmd = [os.path.join(args.tool_path, "checkpolicy"),
49 "-o", os.path.join(args.output_path, "developer/all.cil")]
61 path = os.path.join(args.source_root_dir, i)
62 if (os.path
[all...]
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/
H A Dcert_manager_file_operator.h33 uint32_t CmFileRead(const char *path, const char *fileName, uint32_t offset, uint8_t *buf, uint32_t len);
35 int32_t CmFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len);
38 const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len);
40 int32_t CmFileRemove(const char *path, const char *fileName);
42 uint32_t CmFileSize(const char *path, const char *fileName);
44 int32_t CmIsFileExist(const char *path, const char *fileName);
46 int32_t CmMakeDir(const char *path);
51 * @param[in] path Directory absolute path
58 int32_t CmUserBakupMakeDir(const char *path, cons
[all...]
/base/security/dlp_permission_service/services/dlp_permission/sa/adapt/
H A Dfile_operator.cpp41 int32_t FileOperator::InputFileByPathAndContent(const std::string& path, const std::string& content) in InputFileByPathAndContent() argument
43 std::string str = path; in InputFileByPathAndContent()
54 DLP_LOG_INFO(LABEL, "path need to be canonical, str %{public}s realPath %{public}s.", str.c_str(), realPath); in InputFileByPathAndContent()
58 FILE* fp = fopen(path.c_str(), "wb"); in InputFileByPathAndContent()
60 DLP_LOG_INFO(LABEL, "failed to open %{public}s, errno %{public}d.", path.c_str(), errno); in InputFileByPathAndContent()
65 DLP_LOG_INFO(LABEL, "failed to fwrite %{public}s, errno %{public}d.", path.c_str(), errno); in InputFileByPathAndContent()
70 DLP_LOG_INFO(LABEL, "failed to fflush %{public}s, errno %{public}d.", path.c_str(), errno); in InputFileByPathAndContent()
75 DLP_LOG_INFO(LABEL, "failed to fsync %{public}s, errno %{public}d.", path.c_str(), errno); in InputFileByPathAndContent()
82 if (!ChangeModeFile(path, S_IRUSR | S_IWUSR)) { in InputFileByPathAndContent()
83 DLP_LOG_INFO(LABEL, "failed to change mode for file %{public}s, errno %{public}d.", path in InputFileByPathAndContent()
89 GetFileContentByPath(const std::string& path, std::string& content) GetFileContentByPath() argument
112 IsExistFile(const std::string& path) IsExistFile() argument
128 IsExistDir(const std::string& path) IsExistDir() argument
[all...]
/base/startup/appspawn/test/unittest/app_spawn_standard_test/
H A Dapp_spawn_cgroup_test.cpp65 static int GetTestCGroupFilePath(const AppSpawnedProcess *appInfo, const char *fileName, char *path, bool create) in GetTestCGroupFilePath() argument
67 int ret = GetCgroupPath(appInfo, path, PATH_MAX); in GetTestCGroupFilePath()
68 APPSPAWN_CHECK(ret == 0, return errno, "Failed to get real path errno: %{public}d", errno); in GetTestCGroupFilePath()
69 (void)CreateSandboxDir(path, 0755); // 0755 default mode in GetTestCGroupFilePath()
70 ret = strcat_s(path, PATH_MAX, fileName); in GetTestCGroupFilePath()
73 FILE *file = fopen(path, "w"); in GetTestCGroupFilePath()
74 APPSPAWN_CHECK(file != nullptr, return errno, "Create file fail %{public}s errno: %{public}d", path, errno); in GetTestCGroupFilePath()
88 char path[PATH_MAX] = {}; in HWTEST_F() local
89 ret = GetCgroupPath(appInfo, path, sizeof(path)); in HWTEST_F()
92 break, "Invalid path: %s", path); HWTEST_F() local
109 char path[PATH_MAX] = {}; HWTEST_F() local
162 char path[PATH_MAX] = {}; HWTEST_F() local
188 char path[PATH_MAX] = {}; HWTEST_F() local
224 char path[PATH_MAX] = {}; HWTEST_F() local
253 char path[PATH_MAX] = {}; HWTEST_F() local
301 char path[PATH_MAX] = {}; HWTEST_F() local
345 char path[PATH_MAX] = {}; HWTEST_F() local
368 char path[PATH_MAX] = {}; HWTEST_F() local
[all...]
/base/security/selinux_adapter/scripts/
H A Dbuild_policy_api.py75 folder_list.append(os.path.join(root, dir_i))
85 path = os.path.join(root, each_file)
86 rel_path = os.path.relpath(path, build_root)
149 check_policy_cmd = [os.path.join(args.tool_path, "checkpolicy"),
290 build_policy_cmd = [os.path.join(tool_path, "secilc"),
301 build_policy_list = [os.path.join(sepolicy_path, "base"), os.path.join(sepolicy_path, "ohos_policy")]
307 path
[all...]
/base/update/updater/interfaces/kits/misc_info/
H A Dmisc_info.cpp24 bool WriteUpdaterMessage(const std::string &path, const UpdateMessage &boot) in WriteUpdaterMessage() argument
26 char *realPath = realpath(path.c_str(), NULL); in WriteUpdaterMessage()
56 bool ReadUpdaterMessage(const std::string &path, UpdateMessage &boot) in ReadUpdaterMessage() argument
58 char *realPath = realpath(path.c_str(), NULL); in ReadUpdaterMessage()
92 auto path = GetBlockDeviceByMountPoint(MISC_PATH); in WriteUpdaterMiscMsg() local
93 if (path.empty()) { in WriteUpdaterMiscMsg()
95 path = MISC_FILE; in WriteUpdaterMiscMsg()
97 LOG(INFO) << "WriteUpdaterMiscMsg::misc path : " << path; in WriteUpdaterMiscMsg()
98 return WriteUpdaterMessage(path, boo in WriteUpdaterMiscMsg()
103 auto path = GetBlockDeviceByMountPoint(MISC_PATH); ReadUpdaterMiscMsg() local
113 auto path = GetBlockDeviceByMountPoint(MISC_PATH); WriteUpdaterParaMisc() local
155 auto path = GetBlockDeviceByMountPoint(MISC_PATH); ReadUpdaterParaMisc() local
[all...]
/base/security/selinux_adapter/interfaces/policycoreutils/include/
H A Dpolicycoreutils.h26 int Restorecon(const char *path);
27 int RestoreconRecurse(const char *path);
28 int RestoreconRecurseParallel(const char *path, unsigned int nthreads);
29 int RestoreconRecurseForce(const char *path);
30 int RestoreconFromParentDir(const char *path);
31 int RestoreconCommon(const char *path, unsigned int flag, unsigned int nthreads);
/base/account/os_account/frameworks/common/file_operator/include/
H A Daccount_file_operator.h34 ErrCode CreateDir(const std::string &path, mode_t mode = S_IRWXU);
35 ErrCode DeleteDirOrFile(const std::string &path);
36 ErrCode DeleteDir(const std::string &path);
37 ErrCode DeleteFile(const std::string &path);
38 ErrCode InputFileByPathAndContent(const std::string &path, const std::string &content);
39 ErrCode GetFileContentByPath(const std::string &path, std::string &content);
40 bool IsExistFile(const std::string &path);
41 bool IsJsonFormat(const std::string &path);
42 bool IsJsonFileReady(const std::string &path);
43 bool IsExistDir(const std::string &path);
[all...]
/base/tee/tee_client/services/authentication/
H A Dtee_auth_common.c23 static int ReadCmdLine(const char *path, char *buffer, size_t bufferLen, char *caName, size_t nameLen) in ReadCmdLine() argument
25 FILE *fd = fopen(path, "rb"); in ReadCmdLine()
57 char path[MAX_PATH_LENGTH] = { 0 }; in TeeGetCaName() local
65 int ret = snprintf_s(path, sizeof(path), sizeof(path) - 1, "/proc/%d/cmdline", caPid); in TeeGetCaName()
71 int bytesRead = ReadCmdLine(path, temp, CMD_MAX_SIZE, caName, nameLen); in TeeGetCaName()
76 int TeeGetPkgName(int caPid, char *path, size_t pathLen) in TeeGetPkgName() argument
78 if (path == NULL || pathLen > MAX_PATH_LENGTH) { in TeeGetPkgName()
79 tloge("path i in TeeGetPkgName()
[all...]
/base/security/huks/utils/file_operator/
H A Dhks_file_operator.h76 int32_t HksFileRead(const char *path, const char *fileName, uint32_t offset, struct HksBlob *blob, uint32_t *size);
78 int32_t HksFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len);
80 int32_t HksFileRemove(const char *path, const char *fileName);
82 uint32_t HksFileSize(const char *path, const char *fileName);
84 int32_t HksIsFileExist(const char *path, const char *fileName);
86 int32_t HksIsDirExist(const char *path);
88 int32_t HksMakeDir(const char *path);
90 void *HksOpenDir(const char *path);
98 int32_t HksDeleteDir(const char *path);
100 int32_t HksGetFileName(const char *path, cons
[all...]
H A Dhks_file_operator.c36 static int32_t GetFileName(const char *path, const char *fileName, char *fullFileName, uint32_t fullFileNameLen) in GetFileName() argument
38 if (path != NULL) { in GetFileName()
39 if (strncpy_s(fullFileName, fullFileNameLen, path, strlen(path)) != EOK) { in GetFileName()
43 if (path[strlen(path) - 1] != '/') { in GetFileName()
61 static int32_t GetFullFileName(const char *path, const char *fileName, char **fullFileName) in GetFullFileName() argument
68 int32_t ret = GetFileName(path, fileName, tmpFileName, nameLen); in GetFullFileName()
79 static int32_t IsValidPath(const char *path) in IsValidPath() argument
81 if (path in IsValidPath()
246 HksFileRemove(const char *path, const char *fileName) HksFileRemove() argument
263 HksIsFileExist(const char *path, const char *fileName) HksIsFileExist() argument
280 HksIsDirExist(const char *path) HksIsDirExist() argument
289 HksMakeDir(const char *path) HksMakeDir() argument
307 HksOpenDir(const char *path) HksOpenDir() argument
375 HksDeletDirPartTwo(const char *path) HksDeletDirPartTwo() argument
410 HksDeletDirPartOne(const char *path) HksDeletDirPartOne() argument
447 HksDeleteDir(const char *path) HksDeleteDir() argument
488 HksFileRead(const char *path, const char *fileName, uint32_t offset, struct HksBlob *blob, uint32_t *size) HksFileRead() argument
507 HksFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len) HksFileWrite() argument
526 HksFileSize(const char *path, const char *fileName) HksFileSize() argument
543 HksGetFileName(const char *path, const char *fileName, char *fullFileName, uint32_t fullFileNameLen) HksGetFileName() argument
[all...]
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
H A Dcert_manager_file.c28 inline uint32_t CertManagerFileSize(const char *path, const char *fileName) in CertManagerFileSize() argument
30 return CmFileSize(path, fileName); in CertManagerFileSize()
33 inline uint32_t CertManagerFileRead(const char *path, const char *fileName, uint32_t offset, uint8_t *buf, uint32_t len) in CertManagerFileRead() argument
35 return CmFileRead(path, fileName, offset, buf, len); in CertManagerFileRead()
38 inline int32_t CertManagerFileWrite(const char *path, const char *fileName, in CertManagerFileWrite() argument
41 return CmFileWrite(path, fileName, offset, buf, len); in CertManagerFileWrite()
44 inline int32_t CertManagerFileRemove(const char *path, const char *fileName) in CertManagerFileRemove() argument
46 return CmFileRemove(path, fileName); in CertManagerFileRemove()
49 static int32_t GetNumberOfFiles(const char *path) in GetNumberOfFiles() argument
51 void *dir = CmOpenDir(path); in GetNumberOfFiles()
79 MallocFileNames(struct CmMutableBlob **fNames, const char *path, uint32_t *fileCount) MallocFileNames() argument
110 GetFileNames(const char *path, struct CmMutableBlob *fNames, uint32_t fileCount) GetFileNames() argument
156 CertManagerGetFilenames(struct CmMutableBlob *fileNames, const char *path) CertManagerGetFilenames() argument
200 GetCertCount(const char *path) GetCertCount() argument
[all...]
H A Dcert_manager_file_operator.c32 static int32_t GetFileName(const char *path, const char *fileName, char *fullFileName, uint32_t fullFileNameLen) in GetFileName() argument
34 if (path != NULL && strlen(path) > 0) { in GetFileName()
35 if (strncpy_s(fullFileName, fullFileNameLen, path, strlen(path)) != EOK) { in GetFileName()
39 if (path[strlen(path) - 1] != '/') { in GetFileName()
56 static int32_t GetFullFileName(const char *path, const char *fileName, char **fullFileName) in GetFullFileName() argument
65 int32_t ret = GetFileName(path, fileName, tmpFileName, nameLen); in GetFullFileName()
85 int32_t CmIsDirExist(const char *path) in CmIsDirExist() argument
206 CmFileRemove(const char *path, const char *fileName) CmFileRemove() argument
223 CmMakeDir(const char *path) CmMakeDir() argument
240 CmUserBakupMakeDir(const char *path, const mode_t *mode) CmUserBakupMakeDir() argument
262 CmOpenDir(const char *path) CmOpenDir() argument
294 CmFileRead(const char *path, const char *fileName, uint32_t offset, uint8_t *buf, uint32_t len) CmFileRead() argument
311 CmFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len) CmFileWrite() argument
328 CmUserBackupFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len) CmUserBackupFileWrite() argument
345 CmFileSize(const char *path, const char *fileName) CmFileSize() argument
389 CmUidLayerGetFileCountAndNames(const char *path, struct CmBlob *fileNames, const uint32_t arraySize, uint32_t *fileCount) CmUidLayerGetFileCountAndNames() argument
439 CmUserIdLayerGetFileCountAndNames(const char *path, struct CmBlob *fileNames, const uint32_t arraySize, uint32_t *fileCount) CmUserIdLayerGetFileCountAndNames() argument
488 CmIsFileExist(const char *path, const char *fileName) CmIsFileExist() argument
530 DirRemove(const char *path) DirRemove() argument
567 CmDirRemove(const char *path) CmDirRemove() argument
[all...]
/base/security/selinux_adapter/test/unittest/common/
H A Dtest_common.cpp24 bool CreateDirectory(const std::string &path) in CreateDirectory() argument
29 index = path.find('/', index + 1); in CreateDirectory()
31 subPath = path; in CreateDirectory()
33 subPath = path.substr(0, index); in CreateDirectory()
43 return access(path.c_str(), F_OK) == 0; in CreateDirectory()
46 bool RemoveDirectory(const std::string &path) in RemoveDirectory() argument
54 if (access(path.c_str(), F_OK) != 0) { in RemoveDirectory()
57 int statRet = stat(path.c_str(), &dirStat); in RemoveDirectory()
63 remove(path.c_str()); in RemoveDirectory()
65 dirp = opendir(path in RemoveDirectory()
81 GetDirectory(const std::string &path) GetDirectory() argument
91 CreateFile(const std::string &path) CreateFile() argument
[all...]
/base/security/selinux_adapter/framework/policycoreutils/src/
H A Dselinux_restorecon.c67 int RestoreconCommon(const char *path, unsigned int flag, unsigned int nthreads) in RestoreconCommon() argument
74 return selinux_restorecon_parallel(path, flag, nthreads); in RestoreconCommon()
85 static int RestoreconSb(const char *path, char *newSecontext) in RestoreconSb() argument
88 if (lgetfilecon(path, &oldSecontext) < 0) { in RestoreconSb()
89 selinux_log(SELINUX_ERROR, "Get current secontext failed on: %s, errno: %s\n", path, strerror(errno)); in RestoreconSb()
94 if (lsetfilecon(path, newSecontext) < 0) { in RestoreconSb()
95 selinux_log(SELINUX_ERROR, "Set selinux context failed on: %s, errno: %s\n", path, strerror(errno)); in RestoreconSb()
158 int Restorecon(const char *path) in Restorecon() argument
160 return RestoreconCommon(path, SELINUX_RESTORECON_REALPATH, 1); in Restorecon()
163 int RestoreconRecurse(const char *path) in RestoreconRecurse() argument
168 RestoreconRecurseParallel(const char *path, unsigned int nthreads) RestoreconRecurseParallel() argument
173 RestoreconRecurseForce(const char *path) RestoreconRecurseForce() argument
180 RestoreconFromParentDir(const char *path) RestoreconFromParentDir() argument
[all...]
/base/startup/init/interfaces/innerkits/file/
H A Dinit_file.c34 char path[PATH_MAX] = { 0 }; in GetControlFile() local
35 BEGET_ERROR_CHECK(snprintf_s(path, sizeof(path), sizeof(path) - 1, OHOS_FILE_ENV_PREFIX "%s", pathName) >= 0, in GetControlFile()
37 BEGET_ERROR_CHECK(StringReplaceChr(path, '/', '_') == 0, in GetControlFile()
39 BEGET_LOGI("Environment path is %s ", path); in GetControlFile()
40 const char *val = getenv(path); in GetControlFile()
/base/hiviewdfx/hiview/base/utility/
H A Dfile_util.cpp103 std::string IncludeTrailingPathDelimiter(const std::string& path) in IncludeTrailingPathDelimiter() argument
105 return OHOS::IncludeTrailingPathDelimiter(path); in IncludeTrailingPathDelimiter()
108 std::string ExcludeTrailingPathDelimiter(const std::string& path) in ExcludeTrailingPathDelimiter() argument
110 return OHOS::ExcludeTrailingPathDelimiter(path); in ExcludeTrailingPathDelimiter()
113 void GetDirFiles(const std::string& path, std::vector<std::string>& files, bool isRecursive) in GetDirFiles() argument
115 DIR* dir = opendir(path.c_str()); 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()
139 void GetDirDirs(const std::string& path, std::vector<std::string>& dirs) in GetDirDirs() argument
141 DIR* dir = opendir(path in GetDirDirs()
160 ForceCreateDirectory(const std::string& path) ForceCreateDirectory() argument
165 ForceCreateDirectory(const string& path, mode_t mode) ForceCreateDirectory() argument
180 ForceRemoveDirectory(const std::string& path, bool isNeedDeleteGivenDirSelf) ForceRemoveDirectory() argument
185 GetFileSize(const std::string& path) GetFileSize() argument
196 GetFolderSize(const std::string& path) GetFolderSize() argument
216 ChangeModeDirectory(const std::string& path, const mode_t& mode) ChangeModeDirectory() argument
221 PathToRealPath(const std::string& path, std::string& realPath) PathToRealPath() argument
231 Open(const std::string& path, const int flags, const mode_t mode) Open() argument
236 CreateDirWithDefaultPerm(const std::string& path, uid_t aidRoot, uid_t aidSystem) CreateDirWithDefaultPerm() argument
242 FormatPath2UnixStyle(std::string &path) FormatPath2UnixStyle() argument
247 RemoveFolderBeginWith(const std::string &path, const std::string &folderName) RemoveFolderBeginWith() argument
270 CreateFile(const std::string &path, mode_t mode) CreateFile() argument
333 IsDirectory(const std::string &path) IsDirectory() argument
377 GetFirstLine(const std::string& path) GetFirstLine() argument
389 GetParentDir(const std::string &path) GetParentDir() argument
398 IsLegalPath(const std::string& path) IsLegalPath() argument
[all...]
/base/startup/init/interfaces/innerkits/socket/
H A Dinit_socket.c28 static int GetControlFromEnv(const char *path, int length) in GetControlFromEnv() argument
30 BEGET_CHECK_RETURN_VALUE(path != NULL && length > 0, -1); in GetControlFromEnv()
31 const char *val = getenv(path); in GetControlFromEnv()
32 BEGET_ERROR_CHECK(val != NULL, return -1, "Get environment from %s failed", path); in GetControlFromEnv()
43 char path[MAX_SOCKET_ENV_PREFIX_LEN] = {0}; in GetControlSocket() local
44 BEGET_CHECK_RETURN_VALUE(snprintf_s(path, sizeof(path), sizeof(path) - 1, OHOS_SOCKET_ENV_PREFIX"%s", in GetControlSocket()
46 int fd = GetControlFromEnv(path, MAX_SOCKET_ENV_PREFIX_LEN); in GetControlSocket()
/base/security/huks/services/huks_standard/huks_service/main/hks_storage/src/
H A Dhks_storage_file_lock.c29 char *path; member
45 if (lock->path) { in FreeFileLock()
46 HKS_FREE(lock->path); in FreeFileLock()
47 lock->path = NULL; in FreeFileLock()
76 static HksStorageFileLock *FindFileLock(const char *path) in FindFileLock() argument
80 if (strcmp(path, iter->path) == 0) { in FindFileLock()
89 static HksStorageFileLock *AllocFileLock(const char *path) in AllocFileLock() argument
94 size_t len = strlen(path); in AllocFileLock()
95 lock->path in AllocFileLock()
139 HksStorageFileLockCreate(const char *path) HksStorageFileLockCreate() argument
[all...]
/base/update/packaging_tools/test/
H A Dcreate_package_data.py91 if not os.path.exists(package_name_path):
95 create_file(os.path.join(package_name_path, "system.img"), get_target_vendor_data())
106 create_file(os.path.join(package_name_path, "vendor.img"), vendor_content)
108 create_file(os.path.join(package_name_path, "updater_binary"), UPDATER_BINARY_DATA)
111 create_file(os.path.join(package_name_path, "uImage"), get_target_vendor_data())
112 create_file(os.path.join(package_name_path, "updater.img"), get_target_vendor_data())
113 create_file(os.path.join(package_name_path, "updater_b.img"), get_target_vendor_data())
114 create_file(os.path.join(package_name_path, "updater_uImage"), get_target_vendor_data())
117 if not os.path.exists(updater_config_path):
119 create_file(os.path
[all...]

Completed in 12 milliseconds

12345678910>>...38