Home
last modified time | relevance | path

Searched refs:INIT_CHECK_RETURN_VALUE (Results 1 – 9 of 9) sorted by relevance

/base/startup/init/services/init/
Dinit_service_socket.c153INIT_CHECK_RETURN_VALUE(snprintf_s(pubName, sizeof(pubName), sizeof(pubName) - 1, HOS_SOCKET_ENV_P… in SetSocketEnv()
155 INIT_CHECK_RETURN_VALUE(snprintf_s(val, sizeof(val), sizeof(val) - 1, "%d", fd) >= 0, -1); in SetSocketEnv()
215 INIT_CHECK_RETURN_VALUE(fd >= 0, -1); in CreateServiceSocket()
219 INIT_CHECK_RETURN_VALUE(ret == 0, -1); in CreateServiceSocket()
223 INIT_CHECK_RETURN_VALUE(ret == 0, -1); in CreateServiceSocket()
227 INIT_CHECK_RETURN_VALUE(ret >= 0, -1); in CreateServiceSocket()
Dinit_common_cmds.c104 INIT_CHECK_RETURN_VALUE(cmdContent != NULL, NULL); in GetCmdArg()
105 INIT_CHECK_RETURN_VALUE(delim != NULL, NULL); in GetCmdArg()
383 INIT_CHECK_RETURN_VALUE(targetStr != NULL && mountflag != NULL, 0); in GetMountFlag()
612 INIT_CHECK_RETURN_VALUE(name != NULL, NULL); in GetCmdByName()
614 INIT_CHECK_RETURN_VALUE(startCmd != NULL, NULL); in GetCmdByName()
634 INIT_CHECK_RETURN_VALUE(cmdStr != NULL && index != NULL, NULL); in GetMatchCmd()
636 INIT_CHECK_RETURN_VALUE(startCmd != NULL, NULL); in GetMatchCmd()
692 INIT_CHECK_RETURN_VALUE(cmdCnt > 0, -1); in GetCmdLinesFromJson()
695 INIT_CHECK_RETURN_VALUE(*cmdLines != NULL, -1); in GetCmdLinesFromJson()
Dinit_service_manager.c201 INIT_CHECK_RETURN_VALUE(*arrSize > 0, NULL); in GetArrayItem()
242 INIT_CHECK_RETURN_VALUE(json != NULL, SERVICE_SUCCESS); in GetUid()
252 INIT_CHECK_RETURN_VALUE(*uid != (uid_t)(-1), SERVICE_FAILURE); in GetUid()
258 INIT_CHECK_RETURN_VALUE(json != NULL, SERVICE_SUCCESS); in GetGid()
396 INIT_CHECK_RETURN_VALUE(cJSON_IsString(typeItem), SERVICE_FAILURE); in ParseSocketOption()
841 INIT_CHECK_RETURN_VALUE(curItem != NULL && service != NULL, SERVICE_FAILURE); in ParseOneService()
Dinit_common_service.c159 INIT_CHECK_RETURN_VALUE(KeepCapability() == 0, SERVICE_FAILURE); in SetPerms()
/base/startup/init/services/utils/
Dinit_utils.c68 INIT_CHECK_RETURN_VALUE(errno == 0, -1); in StringToUint()
75 INIT_CHECK_RETURN_VALUE(name != NULL, -1); in DecodeUid()
100 INIT_CHECK_RETURN_VALUE(name != NULL, -1); in DecodeGid()
133 INIT_CHECK_RETURN_VALUE(configFile != NULL && *configFile != '\0', NULL); in ReadFileToBuf()
302 INIT_CHECK_RETURN_VALUE(srcPtr != NULL && dstPtr != NULL && del != NULL, -1); in SplitString()
330INIT_CHECK_RETURN_VALUE((maxItemCount >= 0) && (buffer != NULL) && (del != NULL) && (returnCount !… in SplitStringExt()
394 INIT_CHECK_RETURN_VALUE(buffer != NULL && fd >= 0 && *buffer != '\0', 0); in WriteAll()
414 INIT_CHECK_RETURN_VALUE(source != NULL, NULL); in GetRealPath()
457 INIT_CHECK_RETURN_VALUE(memcpy_s(buffer, PATH_MAX, dir, p - dir - 1) == 0, -1); in MakeDirRecursive()
459 INIT_CHECK_RETURN_VALUE(rc >= 0, rc); in MakeDirRecursive()
[all …]
/base/startup/init/services/modules/bootevent/
Dbootevent.c130 INIT_CHECK_RETURN_VALUE(obj != NULL, -1); in AddItemToJson()
158 INIT_CHECK_RETURN_VALUE(AddItemToJson((cJSON *)root, item->paramName, 0, in BootEventTraversal()
162 INIT_CHECK_RETURN_VALUE(AddItemToJson((cJSON *)root, item->paramName, forkTime, in BootEventTraversal()
171 INIT_CHECK_RETURN_VALUE(nowTime > 0, -1); in SaveServiceBootEvent()
173 INIT_CHECK_RETURN_VALUE(p != NULL, -1); in SaveServiceBootEvent()
175INIT_CHECK_RETURN_VALUE(snprintf_s(bootEventFileName, BOOT_EVENT_FILEPATH_MAX_LEN, BOOT_EVENT_FILE… in SaveServiceBootEvent()
180 INIT_CHECK_RETURN_VALUE(tmpFile != NULL, -1); in SaveServiceBootEvent()
/base/startup/init/ueventd/
Dueventd_read_cfg.c157 INIT_CHECK_RETURN_VALUE(!INVALIDSTRING(section), SECTION_INVALID); in GetSection()
183 INIT_CHECK_RETURN_VALUE(!INVALIDSTRING(buffer), -1); in ParseUeventConfig()
276 INIT_CHECK_RETURN_VALUE(target != NULL, false); in IsMatch()
277 INIT_CHECK_RETURN_VALUE(pattern != NULL, true); in IsMatch()
/base/startup/init/services/log/
Dinit_log.h114 #define INIT_CHECK_RETURN_VALUE(ret, result) \ macro
/base/startup/init/services/init/standard/
Dinit_cmds.c57 INIT_CHECK_RETURN_VALUE((symValue != NULL) && (paramValue != NULL) && (paramLen != 0), -1); in GetParamValue()
78 INIT_CHECK_RETURN_VALUE(*begin != '\0', -1); in GetParamValue()
83 INIT_CHECK_RETURN_VALUE(left != NULL, -1); in GetParamValue()