Lines Matching defs:processName
252 static int CreateBaseMsg(AppSpawnReqMsgNode *reqNode, uint32_t msgType, const char *processName)
255 APPSPAWN_CHECK(block != NULL, return APPSPAWN_SYSTEM_ERROR, "Failed to create block for %{public}s", processName);
264 int ret = strcpy_s(reqNode->msg->processName, sizeof(reqNode->msg->processName), processName);
265 APPSPAWN_CHECK(ret == 0, return APPSPAWN_SYSTEM_ERROR, "Failed to create block for %{public}s", processName);
271 APPSPAWN_CHECK(maxCount > 0, return APPSPAWN_SYSTEM_ERROR, "Invalid max for permission %{public}s", processName);
290 static AppSpawnReqMsgNode *CreateAppSpawnReqMsg(uint32_t msgType, const char *processName)
294 APPSPAWN_CHECK(reqNode != NULL, return NULL, "Failed to create msg node for %{public}s", processName);
304 int ret = CreateBaseMsg(reqNode, msgType, processName);
306 return NULL, "Failed to create base msg for %{public}s", processName);
307 APPSPAWN_LOGV("CreateAppSpawnReqMsg reqId: %{public}d msg type: %{public}u processName: %{public}s",
308 reqNode->reqId, msgType, processName);
342 int AppSpawnReqMsgCreate(AppSpawnMsgType msgType, const char *processName, AppSpawnReqMsgHandle *reqHandle)
346 return APPSPAWN_MSG_INVALID, "Invalid message type %{public}u %{public}s", msgType, processName);
347 int ret = CheckInputString("processName", processName, APP_LEN_PROC_NAME);
349 AppSpawnReqMsgNode *reqNode = CreateAppSpawnReqMsg(msgType, processName);
351 "Failed to create msg node for %{public}s", processName);
371 GetSpecialGid(reqNode->msg->processName, tmpDacInfo.gidTable, &tmpDacInfo.gidCount);