Lines Matching refs:APPSPAWN_CHECK

38     APPSPAWN_CHECK(context != NULL && hsps != NULL, return -1, "Invalid context or hsps");
44 APPSPAWN_CHECK(bundles != NULL && cJSON_IsArray(bundles), return -1, "MountAllHsp: invalid bundles");
45 APPSPAWN_CHECK(modules != NULL && cJSON_IsArray(modules), return -1, "MountAllHsp: invalid modules");
46 APPSPAWN_CHECK(versions != NULL && cJSON_IsArray(versions), return -1, "MountAllHsp: invalid versions");
48 APPSPAWN_CHECK(count == cJSON_GetArraySize(modules), return -1, "MountAllHsp: sizes are not same");
49 APPSPAWN_CHECK(count == cJSON_GetArraySize(versions), return -1, "MountAllHsp: sizes are not same");
56 APPSPAWN_CHECK(CheckPath(libBundleName) && CheckPath(libModuleName) && CheckPath(libVersion),
62 APPSPAWN_CHECK(len > 0, return -1, "Failed to format install path");
66 APPSPAWN_CHECK(len > 0, return -1, "Failed to format install path");
73 APPSPAWN_CHECK(ret == 0, return ret, "mount library failed %{public}d", ret);
86 APPSPAWN_CHECK(context != NULL && groups != NULL, return -1, "Invalid context or group");
97 APPSPAWN_CHECK(dataGroupIds != NULL && cJSON_IsArray(dataGroupIds),
99 APPSPAWN_CHECK(gids != NULL && cJSON_IsArray(gids), return -1, "MountAllGroup: invalid gids");
100 APPSPAWN_CHECK(dirs != NULL && cJSON_IsArray(dirs), return -1, "MountAllGroup: invalid dirs");
102 APPSPAWN_CHECK(count == cJSON_GetArraySize(gids), return -1, "MountAllGroup: sizes are not same");
103 APPSPAWN_CHECK(count == cJSON_GetArraySize(dirs), return -1, "MountAllGroup: sizes are not same");
108 APPSPAWN_CHECK(dirJson != NULL && cJSON_IsString(dirJson), return -1, "MountAllGroup: invalid dirJson");
110 APPSPAWN_CHECK(!CheckPath(libPhysicalPath), return -1, "MountAllGroup: path error");
115 APPSPAWN_CHECK(len > 0, return -1, "Failed to format install path");
121 APPSPAWN_CHECK(ret == 0, return ret, "mount library failed %{public}d", ret);
145 APPSPAWN_CHECK(ret == 0, return ret, "mount library failed %{public}d", ret);
152 APPSPAWN_CHECK(ret == 0, return ret, "Fail to add src path to set %{public}s", "|");
154 APPSPAWN_CHECK(ret == 0, return ret, "Fail to add src path to set %{public}s", sandboxContext->buffer[0].buffer);
163 APPSPAWN_CHECK(len > 0, return -1, "Failed to format install path");
165 APPSPAWN_CHECK(ret == 0, return ret, "mount library failed %{public}d", ret);
183 APPSPAWN_CHECK(context != NULL && overlayInfo != NULL, return -1, "Invalid context or overlayInfo");
188 APPSPAWN_CHECK(overlayContext.mountedSrcSet != NULL, return -1, "Failed to create mountedSrcSet");
205 APPSPAWN_CHECK(root != NULL, return NULL, "Invalid ext info %{public}s for %{public}s", extInfo, name);
271 APPSPAWN_CHECK(node != NULL, return APPSPAWN_SYSTEM_ERROR, "Failed to create sandbox");
277 APPSPAWN_CHECK(ret == 0, free(node);