Lines Matching refs:ret

61     int ret = 0;

63 ret = CheckParamName(name, 0);
64 PARAM_CHECK(ret == 0, return ret, "Invalid param name %s", name);
66 ret = WriteParam(name, value, NULL, 0);
67 PARAM_CHECK(ret == 0, return ret, "Failed to write param %s %s", name, value);
68 return ret;
89 int ret = WriteParam(name, data, NULL, 0);
91 PARAM_CHECK(ret == 0, return ret, "Failed to write param %s", name);
92 return ret;
99 int ret = CheckParamName(name, 0);
100 PARAM_CHECK(ret == 0, return ret, "Invalid name %s", name);
103 ret = WriteParam(OHOS_SN_PARAM_NAME, value, NULL, 0);
104 PARAM_CHECK(ret == 0, return ret, "Failed to write param %s %s", name, value);
105 return ret;
108 ret = ReadSnFromFile(OHOS_SN_PARAM_NAME, value);
109 if (ret == 0) {
110 return ret;
113 return ret;
124 int ret = snprintf_s(fullName, sizeof(fullName), sizeof(fullName) - 1,
126 PARAM_CHECK(ret > 0, return ret, "snprinf_s failed");
127 ret = CheckParamName(fullName, 0);
128 PARAM_CHECK(ret == 0, return ret, "Invalid name %s", name);
130 ret = WriteParam(fullName, value, NULL, 0);
131 PARAM_CHECK(ret == 0, return ret, "Failed to write param %s %s", fullName, value);
132 return ret;
140 int ret = 0;
148 ret = snprintf_s(fullName, sizeof(fullName), sizeof(fullName) - 1, ".%s",
155 if (matched[ret] != '\0') {
159 ret = snprintf_s(fullName, sizeof(fullName), sizeof(fullName) - 1,
161 if (ret <= 0) {
172 ret = (container->cmdLineInfo + i)->processor(fullName, nv->value);
173 if (ret == 0) {
235 int ret = ReadSnFromFile(OHOS_CMDLINE_PARA_PREFIX "sn", snFileList[i]);
236 if (ret == 0) {
289 int ret = CheckParamName(name, 0);
290 if (ret != 0) {
348 int ret = GetParamValue(target, strlen(target), tmpParamValue, PARAM_VALUE_LEN_MAX);
349 if (ret == 0) {
352 PARAM_LOGI("Load params from import %s return %d.", tmpParamValue, ret);
355 return ret;
404 int ret = SplitParamString(buffer, exclude, count, loadOneParam, &mode);
405 PARAM_ONLY_CHECK(ret != PARAM_DEFAULT_PARAM_MEMORY_NOT_ENOUGH,
407 if (mode == LOAD_PARAM_ONLY_ADD && ret == PARAM_CODE_READ_ONLY) {
408 PARAM_WARNING_CHECK(ret == 0, continue, "Set param '%s' error:%d with only add mode", buffer, ret);
410 PARAM_CHECK(ret == 0, continue, "Failed to set param '%s' error:%d ", buffer, ret);
424 int ret = LoadDefaultParam_(fileName, mode, exclude, ARRAY_LENGTH(exclude), LoadOneParam_);
425 if (ret == PARAM_DEFAULT_PARAM_MEMORY_NOT_ENOUGH) {
429 return ret;
500 int ret = snprintf_s(buffer, sizeof(buffer), sizeof(buffer) - 1, "u:object_r:%s:s0", name);
501 PARAM_CHECK(ret > 0, return PARAM_CODE_ERROR, "Failed to snprintf workspace name");