Home
last modified time | relevance | path

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

/base/security/selinux/interfaces/policycoreutils/src/
Dcontexts_trie.c138 const char *tmpName = paraName; in SearchFromParamTrie() local
141 const char *bar = strchr(tmpName, '.'); in SearchFromParamTrie()
143 childNode = GetGroupNode(root, tmpName, bar - tmpName); in SearchFromParamTrie()
152 tmpName = bar + 1; in SearchFromParamTrie()
153 bar = strchr(tmpName, '.'); in SearchFromParamTrie()
156 childNode = GetGroupNode(root, tmpName, strlen(tmpName)); in SearchFromParamTrie()
/base/update/updater/services/
Dupdater_utils.cpp50 std::string tmpName(path); in DeleteUpdaterPath() local
51 tmpName.append("/" + currentName); in DeleteUpdaterPath()
52 if (IsDirExist(tmpName)) { in DeleteUpdaterPath()
53 DeleteUpdaterPath(tmpName); in DeleteUpdaterPath()
56 remove(tmpName.c_str()); in DeleteUpdaterPath()
/base/startup/init/test/unittest/param/
Dparam_stub.cpp270 std::string tmpName(path); in DeleteDir() local
271 tmpName.append("/" + currentName); in DeleteDir()
272 if (IsDir(tmpName)) { in DeleteDir()
273 DeleteDir(tmpName); in DeleteDir()
275 remove(tmpName.c_str()); in DeleteDir()
/base/startup/init/services/begetctl/
Dsandbox.cpp87 std::string tmpName = processName; in EnterExec() local
90 OHOS::SplitStr(tmpName, sep, vtr, true, false); in EnterExec()
/base/startup/init/services/init/standard/
Dinit_cmds.c56 char tmpName[PARAM_NAME_LEN_MAX] = { 0 }; in GetParamValue() local
81 ret = strncpy_s(tmpName, PARAM_NAME_LEN_MAX, begin, left - begin); in GetParamValue()
84 ret = SystemReadParam(tmpName, paramValue + curr, &valueLen); in GetParamValue()
85 INIT_ERROR_CHECK(ret == 0, return -1, "Failed to get param %s", tmpName); in GetParamValue()
/base/startup/init/services/param/manager/
Dparam_server.c40 const char *tmpName = name + bootLen; in GetParamValueFromBuffer() local
41 int ret = GetProcCmdlineValue(tmpName, buffer, value, length); in GetParamValueFromBuffer()
Dparam_manager.c252 const char *tmpName = (paramSpace->selinuxSpace.getParamLabel != NULL) ? in GetParamSecurityAuditData() local
254 if (tmpName != NULL) { in GetParamSecurityAuditData()
255 int ret = strcpy_s(auditData->label, sizeof(auditData->label), tmpName); in GetParamSecurityAuditData()
/base/security/huks/services/huks_standard/huks_service/main/core/src/
Dhks_storage_lite.c546 char *tmpName = (char *)HksMalloc(name->size + 1); /* \0 at the end */ in GetFileName() local
547 HKS_IF_NULL_RETURN(tmpName, HKS_ERROR_MALLOC_FAIL) in GetFileName() local
549 (void)memcpy_s(tmpName, name->size, name->data, name->size); in GetFileName()
550 tmpName[name->size] = '\0'; in GetFileName()
551 *fileName = tmpName; in GetFileName()
/base/startup/init/services/param/base/
Dparam_comm.c46 char *tmpName = (char *)name; in GetWorkSpace() local
48 tmpName = WORKSPACE_NAME_NORMAL; in GetWorkSpace()
51 tmpName = (paramSpace->selinuxSpace.getParamLabel != NULL) ? in GetWorkSpace()
57 HashNode *node = OH_HashMapGet(paramSpace->workSpaceHashHandle, (const void *)tmpName); in GetWorkSpace()
/base/update/updater/utils/
Dutils.cpp107 std::string tmpName = dp->d_name; in GetFilesFromDirectory() local
108 if (tmpName == "." || tmpName == "..") { in GetFilesFromDirectory()