message
stringlengths 6
474
| diff
stringlengths 8
5.22k
|
---|---|
OcConsoleLib: Add framebuffer base and params logging | @@ -59,6 +59,17 @@ OcSetConsoleResolutionForProtocol (
(UINT32) GraphicsOutput->Mode->MaxMode
));
+ DEBUG ((
+ DEBUG_INFO,
+ "OCC: Current FB at 0x%LX (0x%X), format %d, res %ux%u scan %u\n",
+ GraphicsOutput->Mode->FrameBufferBase,
+ (UINT32) GraphicsOutput->Mode->FrameBufferSize,
+ GraphicsOutput->Mode->Info != NULL ? GraphicsOutput->Mode->Info->PixelFormat : -1,
+ GraphicsOutput->Mode->Info != NULL ? GraphicsOutput->Mode->Info->HorizontalResolution : 0,
+ GraphicsOutput->Mode->Info != NULL ? GraphicsOutput->Mode->Info->VerticalResolution : 0,
+ GraphicsOutput->Mode->Info != NULL ? GraphicsOutput->Mode->Info->PixelsPerScanLine : 0
+ ));
+
//
// Find the resolution we need.
//
|
Fix SAL types | @@ -105,7 +105,7 @@ PPH_OPTIONS_SECTION PhOptionsCreateSection(
_In_ PVOID Instance,
_In_ PWSTR Template,
_In_ DLGPROC DialogProc,
- _In_ PVOID Parameter
+ _In_opt_ PVOID Parameter
);
PPH_OPTIONS_SECTION PhOptionsCreateSectionAdvanced(
@@ -113,7 +113,7 @@ PPH_OPTIONS_SECTION PhOptionsCreateSectionAdvanced(
_In_ PVOID Instance,
_In_ PWSTR Template,
_In_ DLGPROC DialogProc,
- _In_ PVOID Parameter
+ _In_opt_ PVOID Parameter
);
BOOLEAN PhpIsDefaultTaskManager(
@@ -523,7 +523,7 @@ PPH_OPTIONS_SECTION PhOptionsCreateSection(
_In_ PVOID Instance,
_In_ PWSTR Template,
_In_ DLGPROC DialogProc,
- _In_ PVOID Parameter
+ _In_opt_ PVOID Parameter
)
{
PPH_OPTIONS_SECTION section;
@@ -546,7 +546,7 @@ PPH_OPTIONS_SECTION PhOptionsCreateSectionAdvanced(
_In_ PVOID Instance,
_In_ PWSTR Template,
_In_ DLGPROC DialogProc,
- _In_ PVOID Parameter
+ _In_opt_ PVOID Parameter
)
{
PPH_OPTIONS_SECTION section;
@@ -839,7 +839,7 @@ static BOOLEAN PathMatchesPh(
}
// Allow for a quoted value.
else if (
- OldTaskMgrDebugger->Length == fileName->Length + sizeof(WCHAR) * sizeof(WCHAR) &&
+ OldTaskMgrDebugger->Length == (fileName->Length + sizeof(UNICODE_NULL)) * sizeof(WCHAR) &&
OldTaskMgrDebugger->Buffer[0] == '"' &&
OldTaskMgrDebugger->Buffer[OldTaskMgrDebugger->Length / sizeof(WCHAR) - 1] == '"'
)
@@ -847,7 +847,7 @@ static BOOLEAN PathMatchesPh(
PH_STRINGREF partInside;
partInside.Buffer = &OldTaskMgrDebugger->Buffer[1];
- partInside.Length = OldTaskMgrDebugger->Length - sizeof(WCHAR) * sizeof(WCHAR);
+ partInside.Length = (OldTaskMgrDebugger->Length - sizeof(UNICODE_NULL)) * sizeof(WCHAR);
if (PhEqualStringRef(&partInside, &fileName->sr, TRUE))
match = TRUE;
@@ -943,7 +943,7 @@ VOID PhpSetDefaultTaskManager(
0,
REG_SZ,
quotedFileName->Buffer,
- (ULONG)quotedFileName->Length + sizeof(WCHAR)
+ (ULONG)quotedFileName->Length + sizeof(UNICODE_NULL)
);
PhDereferenceObject(applicationFileName);
|
Update privacy documentation. | +> ***NOTE***
+> In the EventProperties class, a `SetPrivacyMetadata` API is provided that allows setting the Privacy Tags
+ and Privacy Diagnostic Level as mentioned below. In absence of an explicitly provided Privac Diagnostic Level,
+ `PDL_Optional` is used. More details below.
# Using Privacy Tags
@@ -43,13 +47,13 @@ logger->LogEvent(event2);
Alternatively, if you want to explicitly set the tags for an event via event property, you can also use this syntax:
```cpp
EventProperties event(eventName);
-event.SetPrivacyTags(PDT_ProductAndServicePerformance);
+event.SetPrivacyMetadata(PDT_ProductAndServicePerformance);
```
If the event requires multiple tags, you can use the binary `OR` operator:
```cpp
EventProperties event(eventName);
-event.SetPrivacyTags(PDT_ProductAndServicePerformance | PDT_ProductAndServiceUsage);
+event.SetPrivacyMetadata(PDT_ProductAndServicePerformance | PDT_ProductAndServiceUsage);
```
Here is a list of the privacy flags available are:
@@ -71,6 +75,7 @@ The tag set on your event will show it the field ext.metadata.privTags. In UTC m
# Diagnostic Level
The C++ SDK provides support for Privacy Diagnostic Level markup for an event. A given event can have only one diagnostic level defined.
+If using the `SetPrivacyMetadata` API and not providing a Diagnostic Level, `PDL_OPTIONAL` value is used.
To set the diagnostic level on an event, you can use the following syntax using the SetProperty method:
@@ -106,7 +111,7 @@ logger->LogEvent(event2);
Alternatively, if you want to explicitly set the tags for an event via event property, you can also use this syntax:
```cpp
EventProperties event(eventName);
-event.SetPrivacyLevel(PDL_REQUIRED);
+event.SetPrivacyMetadata(PDT_ProductAndServiceUsage, PDL_REQUIRED);
```
The list of diagnostic level available are:
@@ -143,18 +148,18 @@ auto logger1 = LogManager::GetLogger();
// Set diagnostic level to OPTIONAL for logger2
auto logger2 = LogManager::GetLogger(TEST_TOKEN, "my_optional_source");
-logger2->SetPrivacyLevel(PDL_OPTIONAL);
+logger2->SetPrivacyLevel(DIAG_LEVEL_OPTIONAL);
// Set diagnostic level to REQUIRED
auto logger3 = LogManager::GetLogger("my_required_source");
-logger3->SetPrivacyLevel(PDL_REQUIRED);
+logger3->SetPrivacyLevel(DIAG_LEVEL_REQUIRED);
// A set that specifies that nothing passes through level filter
-std::set<uint8_t> logNone = { PDL_NONE };
+std::set<uint8_t> logNone = { DIAG_LEVEL_NONE };
// Everything goes through
std::set<uint8_t> logAll = { };
// Only allow REQUIRED level filtering
-std::set<uint8_t> logRequired = { PDL_REQUIRED };
+std::set<uint8_t> logRequired = { DIAG_LEVEL_REQUIRED };
auto filters = { logNone, logAll, logBasic };
@@ -176,13 +181,13 @@ for (auto filter : filters)
// Create an event and set level to REQUIRED
// This overrides the logger level for filtering
EventProperties requiredEvent("My.RequiredEvent");
- requiredEvent.SetPrivacyLevel(PDL_REQUIRED);
+ requiredEvent.SetPrivacyLevel(DIAG_LEVEL_REQUIRED);
logger->LogEvent(requiredEvent);
// Create an event and set level to OPTIONAL
// This overrides the logger level for filtering
EventProperties optionalEvent("My.OptionalEvent");
- optionalEvent.SetPrivacyLevel(PDL_OPTIONAL);
+ optionalEvent.SetPrivacyLevel(DIAG_LEVEL_OPTIONAL);
logger->LogEvent(optionalEvent);
}
}
|
board/kodama/led.c: Format with clang-format
BRANCH=none
TEST=none | @@ -25,31 +25,34 @@ __override const int led_charge_lvl_2 = 97;
__override struct led_descriptor
led_bat_state_table[LED_NUM_STATES][LED_NUM_PHASES] = {
- [STATE_CHARGING_LVL_1] = {{EC_LED_COLOR_RED, LED_INDEFINITE} },
- [STATE_CHARGING_LVL_2] = {{EC_LED_COLOR_AMBER, LED_INDEFINITE} },
- [STATE_CHARGING_FULL_CHARGE] = {{EC_LED_COLOR_GREEN, LED_INDEFINITE} },
+ [STATE_CHARGING_LVL_1] = { { EC_LED_COLOR_RED,
+ LED_INDEFINITE } },
+ [STATE_CHARGING_LVL_2] = { { EC_LED_COLOR_AMBER,
+ LED_INDEFINITE } },
+ [STATE_CHARGING_FULL_CHARGE] = { { EC_LED_COLOR_GREEN,
+ LED_INDEFINITE } },
[STATE_DISCHARGE_S0] = { { LED_OFF, LED_INDEFINITE } },
[STATE_DISCHARGE_S3] = { { LED_OFF, LED_INDEFINITE } },
[STATE_DISCHARGE_S5] = { { LED_OFF, LED_INDEFINITE } },
[STATE_BATTERY_ERROR] = { { EC_LED_COLOR_RED, 1 * LED_ONE_SEC },
{ LED_OFF, 1 * LED_ONE_SEC } },
[STATE_FACTORY_TEST] = { { EC_LED_COLOR_RED, 2 * LED_ONE_SEC },
- {EC_LED_COLOR_GREEN, 2 * LED_ONE_SEC} },
+ { EC_LED_COLOR_GREEN,
+ 2 * LED_ONE_SEC } },
};
__override const struct led_descriptor
led_pwr_state_table[PWR_LED_NUM_STATES][LED_NUM_PHASES] = {
[PWR_LED_STATE_ON] = { { EC_LED_COLOR_WHITE, LED_INDEFINITE } },
- [PWR_LED_STATE_SUSPEND_AC] = {{EC_LED_COLOR_WHITE, 3 * LED_ONE_SEC},
+ [PWR_LED_STATE_SUSPEND_AC] = { { EC_LED_COLOR_WHITE,
+ 3 * LED_ONE_SEC },
{ LED_OFF, LED_ONE_SEC / 2 } },
[PWR_LED_STATE_SUSPEND_NO_AC] = { { LED_OFF, LED_INDEFINITE } },
[PWR_LED_STATE_OFF] = { { LED_OFF, LED_INDEFINITE } },
};
-const enum ec_led_id supported_led_ids[] = {
- EC_LED_ID_POWER_LED,
- EC_LED_ID_BATTERY_LED
-};
+const enum ec_led_id supported_led_ids[] = { EC_LED_ID_POWER_LED,
+ EC_LED_ID_BATTERY_LED };
const int supported_led_ids_count = ARRAY_SIZE(supported_led_ids);
|
YAML Smith: Write key set to file | // -- Imports ------------------------------------------------------------------------------------------------------------------------------
#include <fstream>
+#include <iostream>
#include "yamlsmith.hpp"
#include <kdb.hpp>
#include <kdberrors.h>
+using std::endl;
using std::ofstream;
using ckdb::Key;
@@ -72,9 +74,10 @@ int elektraYamlsmithGet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned, Key
}
/** @see elektraDocSet */
-int elektraYamlsmithSet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned ELEKTRA_UNUSED, Key * parentKey)
+int elektraYamlsmithSet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned, Key * parentKey)
{
CppKey parent{ parentKey };
+ CppKeySet keys{ returned };
ofstream file{ parent.getString () };
if (!file.is_open ())
@@ -83,8 +86,15 @@ int elektraYamlsmithSet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned ELEKT
parent.getString ().c_str ());
}
+ for (auto key : keys)
+ {
+ file << key.getName () << ": " << key.getString () << endl;
+ }
+
parent.release ();
- return ELEKTRA_PLUGIN_STATUS_NO_UPDATE;
+ keys.release ();
+
+ return ELEKTRA_PLUGIN_STATUS_SUCCESS;
}
Plugin * ELEKTRA_PLUGIN_EXPORT (yamlsmith)
|
feat: skip creating or updating the webhook resoruces when the staticWebhookConfig is set | @@ -191,7 +191,7 @@ func (r *ReconcileSPOd) Reconcile(_ context.Context, req reconcile.Request) (rec
updatedSPod := foundSPOd.DeepCopy()
updatedSPod.Spec.Template = configuredSPOd.Spec.Template
updateErr := r.handleUpdate(
- ctx, updatedSPod, webhook, metricsService, certManagerResources,
+ ctx, spod, updatedSPod, webhook, metricsService, certManagerResources,
)
if updateErr != nil {
r.record.Event(spod, event.Warning(reasonCannotUpdateSPOD, updateErr))
@@ -285,10 +285,12 @@ func (r *ReconcileSPOd) handleCreate(
}
}
+ if !cfg.Spec.StaticWebhookConfig {
r.log.Info("Deploying operator webhook")
if err := webhook.Create(ctx, r.client); err != nil {
return fmt.Errorf("creating webhook: %w", err)
}
+ }
r.log.Info("Creating operator resources")
if err := controllerutil.SetControllerReference(cfg, newSPOd, r.scheme); err != nil {
@@ -345,6 +347,7 @@ func (r *ReconcileSPOd) handleCreate(
func (r *ReconcileSPOd) handleUpdate(
ctx context.Context,
+ cfg *spodv1alpha1.SecurityProfilesOperatorDaemon,
spodInstance *appsv1.DaemonSet,
webhook *bindata.Webhook,
metricsService *corev1.Service,
@@ -357,10 +360,12 @@ func (r *ReconcileSPOd) handleUpdate(
}
}
+ if !cfg.Spec.StaticWebhookConfig {
r.log.Info("Updating operator webhook")
if err := webhook.Update(ctx, r.client); err != nil {
return fmt.Errorf("updating webhook: %w", err)
}
+ }
r.log.Info("Updating operator daemonset")
if err := r.client.Patch(ctx, spodInstance, client.Merge); err != nil {
|
Import Semigroup for GHC <= 8.2 compatibility | +{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
{-|
Module : Foreign.Lua.Module.Paths
@@ -29,6 +30,9 @@ module Foreign.Lua.Module.Paths (
)
where
+#if !MIN_VERSION_base(4,11,0)
+import Data.Semigroup (Semigroup(..)) -- includes (<>)
+#endif
import Data.Text (Text)
import Foreign.Lua (Lua, NumResults (..))
import Foreign.Lua.Call
|
components/bt: Fix the different size of name buffer allocation size
Close | @@ -52,7 +52,7 @@ typedef struct {
list_t *list;
list_t *incoming_list;
uint8_t service_uuid[16];
- char service_name[ESP_SPP_SERVER_NAME_MAX];
+ char service_name[ESP_SPP_SERVER_NAME_MAX + 1];
} spp_slot_t;
static struct spp_local_param_t {
|
Fix builds on Arm | @@ -86,8 +86,8 @@ for all users with minimal restrictions.
%endif
%if "%{compiler_family}" == "arm"
-which_armclang=`which armclang`
-where_armclang=`dirname ${which_armclang}`
+which_armclang=$(which armclang)
+where_armclang=$(dirname ${which_armclang})
export PATH=${where_armclang}/../llvm-bin:$PATH
%endif
@@ -125,7 +125,11 @@ EOF
# Perform the compilation
./b2 -d2 -q %{?_smp_mflags} --user-config=./rpm-config.jam \
address-model="64" \
+%ifarch aarch64 %{arm}
+ architecture="arm" \
+%else
architecture="x86" \
+%endif
threading="multi" \
link="shared" \
runtime-link="shared" \
@@ -139,8 +143,8 @@ EOF
mkdir -p %{buildroot}/%{_docdir}
%if "%{compiler_family}" == "arm"
-which_armclang=`which armclang`
-where_armclang=`dirname ${which_armclang}`
+which_armclang=$(which armclang)
+where_armclang=$(dirname ${which_armclang})
export PATH=${where_armclang}/../llvm-bin:$PATH
%endif
|
libcupsfilters: Let pdftopdf() not send NULL to log function
The variable holding the value of FINAL_CONTENT_TYPE is NULL when the
environment variable is not set. At one place the variable value gets
logged using the log function. Do not send NULL here, to avoid a crash
of the log function. | @@ -867,7 +867,8 @@ bool checkFeature(const char *feature, int num_options, cups_option_t *options)
"%s => pdftopdf will %slog pages in "
"page_log.",
(lastfilter ? lastfilter : "None"),
- final_content_type,
+ (final_content_type ? final_content_type :
+ "(not supplied)"),
(param.page_logging == 0 ? "not " : ""));
}
}
|
remove (deprecated) from gpcheck. It has been un-deprecated. | <xref href="gpaddmirrors.xml#topic1" type="topic" format="dita"/>
</p>
<p>
- <xref href="gpcheck.xml#topic1" type="topic" format="dita"/> (deprecated)</p>
+ <xref href="gpcheck.xml#topic1" type="topic" format="dita"/></p>
<p>
<xref href="gpcheckcat.xml#topic1"/>
</p>
|
added initialization for required field | @@ -111,6 +111,7 @@ static int extclk_config(int frequency)
TIMOCHandle.OCPolarity = TIM_OCPOLARITY_HIGH;
TIMOCHandle.OCFastMode = TIM_OCFAST_DISABLE;
TIMOCHandle.OCIdleState = TIM_OCIDLESTATE_RESET;
+ TIMOCHandle.OCNIdleState= TIM_OCIDLESTATE_RESET;
if ((HAL_TIM_PWM_Init(&TIMHandle) != HAL_OK)
|| (HAL_TIM_PWM_ConfigChannel(&TIMHandle, &TIMOCHandle, DCMI_TIM_CHANNEL) != HAL_OK)
|
doc: update build/install instructions | @@ -25,19 +25,17 @@ Then, run the following commands to build Criterion:
.. code-block:: bash
- $ mkdir build
- $ cd build
- $ cmake ..
- $ cmake --build .
+ $ meson build
+ $ ninja -C build
Installing the library and language files (Linux, OS X, FreeBSD)
----------------------------------------------------------------
-From the build directory created above, run with an elevated shell:
+Run with an elevated shell:
.. code-block:: bash
- $ make install
+ $ ninja -C build install
Usage
-----
|
[rtservice] Add `rt_slist_first` and `rt_slist_next` API to slist. | @@ -230,6 +230,16 @@ rt_inline rt_slist_t *rt_slist_remove(rt_slist_t *l, rt_slist_t *n)
return l;
}
+rt_inline rt_slist_t *rt_slist_first(rt_slist_t *l)
+{
+ return l->next;
+}
+
+rt_inline rt_slist_t *rt_slist_next(rt_slist_t *n)
+{
+ return n->next;
+}
+
rt_inline int rt_slist_isempty(rt_slist_t *l)
{
return l->next == RT_NULL;
|
update contact pokes | -import { Path, Patp, Poke, resourceAsPath } from "../lib";
+import { Path, Patp, Poke, resourceAsPath, Scry } from "../lib";
import {
Contact,
ContactUpdateAdd,
@@ -38,7 +38,7 @@ export const removeContact = (ship: Patp): Poke<ContactUpdateRemove> =>
export const share = (recipient: Patp, version: number = CONTACT_UPDATE_VERSION): Poke<ContactShare> => ({
app: "contact-push-hook",
- mark: `contact-update-${version}`,
+ mark: "contact-share",
json: { share: recipient },
});
@@ -94,3 +94,16 @@ export const retrieve = (
}
};
}
+
+export const fetchIsAllowed = (
+ entity: string,
+ name: string,
+ ship: string,
+ personal: boolean
+): Scry => {
+ const isPersonal = personal ? 'true' : 'false';
+ return {
+ app: 'contact-store',
+ path: `/is-allowed/${entity}/${name}/${ship}/${isPersonal}`
+ }
+};
|
mdns: fix static analysis warnings | @@ -1312,6 +1312,7 @@ static mdns_tx_packet_t * _mdns_create_probe_packet(tcpip_adapter_if_t tcpip_if,
q->domain = MDNS_DEFAULT_DOMAIN;
if (!q->host || _mdns_question_exists(q, packet->questions)) {
free(q);
+ continue;
} else {
queueToEnd(mdns_out_question_t, packet->questions, q);
}
@@ -2801,7 +2802,7 @@ void mdns_parse_packet(mdns_rx_packet_t * packet)
col = 1;
} else if (!clas) {
col = -1;
- } else {
+ } else if (service) { // only detect srv collision if service existed
col = _mdns_check_srv_collision(service->service, priority, weight, port, name->host, name->domain);
}
if (col && (parsed_packet->probe || parsed_packet->authoritative)) {
@@ -3831,6 +3832,7 @@ static void _mdns_execute_action(mdns_action_t * action)
break;
case ACTION_SERVICE_DEL:
a = _mdns_server->services;
+ if (action->data.srv_del.service) {
if (_mdns_server->services == action->data.srv_del.service) {
_mdns_server->services = a->next;
_mdns_send_bye(&a, 1, false);
@@ -3850,6 +3852,7 @@ static void _mdns_execute_action(mdns_action_t * action)
free(b);
}
}
+ }
break;
case ACTION_SERVICES_CLEAR:
|
Mark autokill wiki dicumented. | @@ -2479,6 +2479,7 @@ typedef struct entity
//------------------------- a lot of flags ---------------------------
bool arrowon; // Display arrow icon (parrow<player>) ~~
+ bool autokill; // Kill on end animation. ~~
bool blink; // Toggle flash effect. ~~
bool boss; // I'm the BOSS playa, I'm the reason that you lost! ~~
bool blocking; // In blocking state. ~~
@@ -2512,7 +2513,6 @@ typedef struct entity
int frozen; // Flag to determine if an entity is frozen
int invincible; // Flag used to determine if player is currently invincible
- int autokill; // Kill on end animation
int remove_on_attack;
int tocost; // Flag to determine if special costs life if doesn't hit an enemy
int noaicontrol; // pause A.I. control
|
Fix Swift package template | +// swift-tools-version:5.4.0
+
import PackageDescription
let package = Package(
@@ -11,13 +13,13 @@ let package = Package(
targets: ["CartoMobileSDK"]
)
],
+ dependencies: [
+ ],
targets: [
.binaryTarget(
name: "CartoMobileSDK",
url: "https://nutifront.s3.amazonaws.com/sdk_snapshots/$distName",
checksum: "$checksum"
)
- ],
- dependencies: [
]
)
|
peview: Add missing icon to new UI | @@ -583,13 +583,20 @@ INT_PTR CALLBACK PvTabWindowDialogProc(
if (PeEnableThemeSupport) // TODO: fix options dialog theme (dmex)
PhInitializeWindowTheme(hwndDlg, TRUE);
- //if (PhExtractIcon(PvFileName->Buffer, &PvImageLargeIcon, &PvImageSmallIcon))
- //SendMessage(hwndDlg, WM_SETICON, ICON_SMALL, (LPARAM)PvImageSmallIcon);
- //SendMessage(hwndDlg, WM_SETICON, ICON_BIG, (LPARAM)PvImageLargeIcon);
+ {
+ HICON smallIcon;
+ HICON largeIcon;
+ if (!PhExtractIcon(PvFileName->Buffer, &PvImageLargeIcon, &PvImageSmallIcon))
+ {
PhGetStockApplicationIcon(&PvImageSmallIcon, &PvImageLargeIcon);
- SendMessage(hwndDlg, WM_SETICON, ICON_SMALL, (LPARAM)PvImageSmallIcon);
- SendMessage(hwndDlg, WM_SETICON, ICON_BIG, (LPARAM)PvImageLargeIcon);
+ }
+
+ PhGetStockApplicationIcon(&smallIcon, &largeIcon);
+
+ SendMessage(hwndDlg, WM_SETICON, ICON_SMALL, (LPARAM)smallIcon);
+ SendMessage(hwndDlg, WM_SETICON, ICON_BIG, (LPARAM)largeIcon);
+ }
if (PvpLoadDbgHelp(&PvSymbolProvider))
{
|
Fixed size of bank data (was overflowing GB memory) | @@ -6,7 +6,7 @@ import {
const BANKED_DATA_NOT_ARRAY = "BANKED_DATA_NOT_ARRAY";
const BANKED_DATA_TOO_LARGE = "BANKED_DATA_TOO_LARGE";
const BANKED_COUNT_OVERFLOW = "BANKED_COUNT_OVERFLOW";
-const GB_MAX_BANK_SIZE = 16394; // Calculated by adding bytes until address overflow
+const GB_MAX_BANK_SIZE = 16384; // Calculated by adding bytes until address overflow
const MIN_DATA_BANK = 16; // First 16 banks are reserved by game engine
const MAX_BANKS = 512; // GBDK supports max of 512 banks
|
bypassed profiling bug | @@ -261,7 +261,9 @@ u3t_samp(void)
c3_assert(u3R == &u3H->rod_u);
if ( 0 == u3R->pro.day ) {
- u3R->pro.day = u3v_do("doss", 0);
+ /* bunt a +doss
+ */
+ u3R->pro.day = u3nt(u3nq(0, 0, 0, u3nq(0, 0, 0, 0)), 0, 0);
}
u3R->pro.day = u3dt("pi-noon", mot_l, lab, u3R->pro.day);
}
@@ -350,7 +352,9 @@ u3t_damp(void)
u3_noun wol = u3do("pi-tell", u3R->pro.day);
u3_term_wall(wol);
- u3R->pro.day = u3v_do("doss", 0);
+ /* bunt a +doss
+ */
+ u3R->pro.day = u3nt(u3nq(0, 0, 0, u3nq(0, 0, 0, 0)), 0, 0);
}
u3t_print_steps("nocks", u3R->pro.nox_d);
|
link fe: refactor link-view subscriptions api | @@ -16,6 +16,9 @@ class UrbitApi {
decline: this.inviteDecline.bind(this),
invite: this.inviteInvite.bind(this)
};
+
+ this.bind = this.bind.bind(this);
+ this.bindLinkView = this.bindLinkView.bind(this);
}
bind(path, method, ship = this.authTokens.ship, app, success, fail, quit) {
@@ -39,6 +42,13 @@ class UrbitApi {
});
}
+ bindLinkView(path, result, fail, quit) {
+ this.bind.bind(this)(
+ path, 'PUT', this.authTokens.ship, 'link-view',
+ result, fail, quit
+ );
+ }
+
action(appl, mark, data) {
return new Promise((resolve, reject) => {
window.urb.poke(ship, appl, mark, data,
@@ -91,14 +101,10 @@ class UrbitApi {
});
}
- getComments(path, url) {
- return this.getCommentsPage.bind(this)(path, url, 0);
- }
-
getCommentsPage(path, url, page) {
const strictUrl = this.encodeUrl(url);
const endpoint = '/json/' + page + '/discussions/' + strictUrl + path;
- this.bind.bind(this)(endpoint, 'PUT', this.authTokens.ship, 'link-view',
+ this.bindLinkView(endpoint,
(res) => {
if (res.data['initial-discussions']) {
// these aren't returned with the response,
@@ -115,7 +121,7 @@ class UrbitApi {
getPage(path, page) {
const endpoint = '/json/' + page + '/submissions' + path;
- this.bind.bind(this)(endpoint, 'PUT', this.authTokens.ship, 'link-view',
+ this.bindLinkView(endpoint,
(dat)=>{store.handleEvent(dat)},
console.error,
()=>{} // no-op on quit
@@ -125,7 +131,7 @@ class UrbitApi {
getSubmission(path, url, callback) {
const strictUrl = this.encodeUrl(url);
const endpoint = '/json/0/submission/' + strictUrl + path;
- this.bind.bind(this)(endpoint, 'PUT', this.authTokens.ship, 'link-view',
+ this.bindLinkView(endpoint,
(res) => {
if (res.data.submission) {
callback(res.data.submission)
|
use owm1m2roguecount only on M2 | @@ -934,8 +934,11 @@ for(zeiger = ownlist; zeiger < ownlist +OWNLIST_MAX; zeiger++)
if(memcmp(zeiger->client, client, 6) != 0) continue;
zeiger->timestamp = timestamp;
if((zeiger->status &status) == status) return false;
- if(status == OW_M1M2ROGUE) zeiger->owm1m2roguecount += 1;
+ if(status == OW_M1M2ROGUE)
+ {
+ zeiger->owm1m2roguecount += 1;
if(zeiger->owm1m2roguecount < owm1m2roguemax) return true;
+ }
zeiger->status |= status;
return true;
}
|
Improve the plugin template | @@ -24,6 +24,10 @@ static const clap_plugin_descriptor_t s_my_plug_desc = {
typedef struct {
clap_plugin_t plugin;
const clap_host_t *host;
+ const clap_host_latency_t *hostLatency;
+ const clap_host_log_t *hostLog;
+ const clap_host_thread_check_t *hostThreadCheck;
+
uint32_t latency;
} my_plug_t;
@@ -95,7 +99,15 @@ static const clap_plugin_latency_t s_my_plug_latency = {
// clap_plugin //
/////////////////
-static bool my_plug_init(const struct clap_plugin *plugin) { return true; }
+static bool my_plug_init(const struct clap_plugin *plugin) {
+ my_plug_t *plug = plugin->plugin_data;
+
+ // Fetch host's extensions here
+ plug->hostLog = plug->host->get_extension(plug->host, CLAP_EXT_LOG);
+ plug->hostThreadCheck = plug->host->get_extension(plug->host, CLAP_EXT_THREAD_CHECK);
+ plug->hostLatency = plug->host->get_extension(plug->host, CLAP_EXT_LATENCY);
+ return true;
+}
static void my_plug_destroy(const struct clap_plugin *plugin) {}
@@ -233,6 +245,8 @@ static const void *my_plug_get_extension(const struct clap_plugin *plugin, const
return &s_my_plug_audio_ports;
if (!strcmp(id, CLAP_EXT_NOTE_PORTS))
return &s_my_plug_note_ports;
+ // TODO: add support to CLAP_EXT_PARAMS
+ // TODO: add support to CLAP_EXT_STATE
return NULL;
}
@@ -254,6 +268,8 @@ clap_plugin_t *my_plug_create(const clap_host_t *host) {
p->plugin.get_extension = my_plug_get_extension;
p->plugin.on_main_thread = my_plug_on_main_thread;
+ // Don't call into the host here
+
return &p->plugin;
}
@@ -283,10 +299,15 @@ plugin_factory_get_plugin_descriptor(const struct clap_plugin_factory *factory,
static const clap_plugin_t *plugin_factory_create_plugin(const struct clap_plugin_factory *factory,
const clap_host_t *host,
const char *plugin_id) {
- int N = sizeof(s_plugins) / sizeof(s_plugins[0]);
+ if (!clap_version_is_compatible(host->clap_version)) {
+ return NULL;
+ }
+
+ const int N = sizeof(s_plugins) / sizeof(s_plugins[0]);
for (int i = 0; i < N; ++i)
if (!strcmp(plugin_id, s_plugins[i].desc->id))
return s_plugins[i].create(host);
+
return NULL;
}
@@ -301,12 +322,12 @@ static const clap_plugin_factory_t s_plugin_factory = {
////////////////
static bool entry_init(const char *plugin_path) {
- // called only once, and first
+ // called only once, and very first
return true;
}
static void entry_deinit(void) {
- // called last
+ // called before unloading the DSO
}
static const void *entry_get_factory(const char *factory_id) {
|
Probably better order of things | @@ -1697,10 +1697,18 @@ static void search_pu_inter(encoder_state_t * const state,
}
kvz_inter_pred_pu(state, lcu, x_cu, y_cu, width_cu, true, false, i_pu);
+ merge->unit[merge->size] = *cur_pu;
+ merge->unit[merge->size].type = CU_INTER;
+ merge->unit[merge->size].merge_idx = merge_idx;
+ merge->unit[merge->size].merged = true;
+ merge->unit[merge->size].skipped = false;
double bits = merge_flag_cost + merge_idx + CTX_ENTROPY_FBITS(&(state->search_cabac.ctx.cu_merge_idx_ext_model), merge_idx != 0);
if(state->encoder_control->cfg.rdo >= 2 && cur_pu->part_size == SIZE_2Nx2N) {
kvz_cu_cost_inter_rd2(state, x, y, depth, &merge->unit[merge->size], lcu, &merge->cost[merge->size], &bits);
+ if(state->encoder_control->cfg.early_skip && merge->unit[merge->size].skipped) {
+
+ }
}
else {
merge->cost[merge->size] = kvz_satd_any_size(width, height,
@@ -1712,11 +1720,6 @@ static void search_pu_inter(encoder_state_t * const state,
merge->bits[merge->size] = bits;
merge->keys[merge->size] = merge->size;
- merge->unit[merge->size] = *cur_pu;
- merge->unit[merge->size].type = CU_INTER;
- merge->unit[merge->size].merge_idx = merge_idx;
- merge->unit[merge->size].merged = true;
- merge->unit[merge->size].skipped = false;
merge->size++;
}
|
Add nvs part gen utility multi page blob support update | @@ -127,8 +127,8 @@ class Page(object):
chunk_size = 0
# Get the size available in current page
- if self.entry_num < (Page.PAGE_PARAMS["max_entries"] - 1):
tailroom = (Page.PAGE_PARAMS["max_entries"] - self.entry_num - 1) * Page.SINGLE_ENTRY_SIZE
+ assert tailroom >=0, "Page overflow!!"
# Split the binary data into two and store a chunk of available size onto curr page
if tailroom < remaining_size:
|
Makefile: indent | @@ -292,7 +292,9 @@ clean:
.PHONY: indent
indent:
- clang-format -style="{BasedOnStyle: Google, IndentWidth: 4, ColumnLimit: 100, AlignAfterOpenBracket: DontAlign, AllowShortFunctionsOnASingleLine: false, AlwaysBreakBeforeMultilineStrings: false}" -i -sort-includes *.c *.h */*.c */*.h
+ clang-format \
+ -style="{BasedOnStyle: Google, IndentWidth: 4, ColumnLimit: 100, AlignAfterOpenBracket: DontAlign, AllowShortFunctionsOnASingleLine: false, AlwaysBreakBeforeMultilineStrings: false}" \
+ -i -sort-includes *.c *.h */*.c */*.h
.PHONY: depend
depend: all
|
doc: explain what is returned by h2o_socket_ebpf_setup() | @@ -373,7 +373,8 @@ int h2o_socket_set_df_bit(int fd, int domain);
static int h2o_socket_skip_tracing(h2o_socket_t *sock);
/**
- * Prepares eBPF maps. Requires root privileges and thus should be called before dropping the privileges.
+ * Prepares eBPF maps. Requires root privileges and thus should be called before dropping the privileges. Returns a boolean
+ * indicating if operation succeeded.
*/
int h2o_socket_ebpf_setup(void);
/**
|
gpgme: release notes | @@ -62,6 +62,11 @@ The following section lists news about the [modules](https://www.libelektra.org/
for it to mimick the proxied plugin's contract in Elektra. It can be used with simple
plugins like `dump` however, check the limitations in the readme for more details. *(Armin Wurzinger)*
+### gpgme
+
+- The `gpgme` plugin was brought into existence to provide cryptographic functions using GnuGP via the `libgpgme` library. See [#896] *(Peter Nirschl)*
+
+
### <<Plugin1>>
- <<TODO>>
@@ -74,6 +79,7 @@ The following section lists news about the [modules](https://www.libelektra.org/
- <<TODO>>
- <<TODO>>
+
### <<Plugin3>>
- <<TODO>>
|
remove a couple printfs | ^+ [next-bone.ossuary ossuary]
::
?^ existing=(~(get by by-duct.ossuary) duct)
- ~& %ames-existing-bone^u.existing
[u.existing ossuary]
::
- ~& %ames-next-bone^next-bone.ossuary
:- next-bone.ossuary
:+ (add 4 next-bone.ossuary)
(~(put by by-duct.ossuary) duct next-bone.ossuary)
|
host: Add basic taskinfo console command
BRANCH=none
TEST=./build/host/aes/aes.exe
> taskinfo | @@ -301,6 +301,28 @@ task_id_t task_get_running(void)
return running_task_id;
}
+void task_print_list(void)
+{
+ int i;
+
+ ccputs("Name Events\n");
+
+ for (i = 0; i < TASK_ID_COUNT; i++) {
+ ccprintf("%4d %-16s %08x\n", i, task_names[i], tasks[i].event);
+ cflush();
+ }
+}
+
+int command_task_info(int argc, char **argv)
+{
+ task_print_list();
+
+ return EC_SUCCESS;
+}
+DECLARE_SAFE_CONSOLE_COMMAND(taskinfo, command_task_info,
+ NULL,
+ "Print task info");
+
static void _wait_for_task_started(int can_sleep)
{
int i, ok;
|
src: Use code blocks to prevent Latex rendering | @@ -54,7 +54,7 @@ The `index.html` will then try to serve the (dynamic) URL itself.
#### PID file
-Using ${config_root}${config_default_profile}/daemon/lock (i.e., `daemon.lock` in JSON) you can specify which PID file should be used.
+Using `${config_root}${config_default_profile}/daemon/lock` (i.e., `daemon.lock` in JSON) you can specify which PID file should be used.
Default: /run/elektra-@[email protected]
#### APIs (GitHub)
|
SOVERSION bump to version 5.4.12 | @@ -45,7 +45,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 5)
set(SYSREPO_MINOR_SOVERSION 4)
-set(SYSREPO_MICRO_SOVERSION 11)
+set(SYSREPO_MICRO_SOVERSION 12)
set(SYSREPO_SOVERSION_FULL ${SYSREPO_MAJOR_SOVERSION}.${SYSREPO_MINOR_SOVERSION}.${SYSREPO_MICRO_SOVERSION})
set(SYSREPO_SOVERSION ${SYSREPO_MAJOR_SOVERSION})
|
Don't list directories as changed from the last run.
It's not very useful information and just clutters the list. | @@ -416,7 +416,8 @@ eval
"git -C ${strBackRestBase} ls-files -c --others --exclude-standard |" .
" rsync -rtW --out-format=\"\%n\" --delete --ignore-missing-args" .
" --exclude=test/result --exclude=repo.manifest" .
- " ${strBackRestBase}/ --files-from=- ${strRepoCachePath}"))));
+ " ${strBackRestBase}/ --files-from=- ${strRepoCachePath}" .
+ " | grep -E -v '/\$' | cat"))));
if (@stryModifiedList > 0)
{
|
Fix cmake bus for hssi tool
The hssi tool needs the path to Boost for the include files
to compile on my system. | @@ -27,7 +27,8 @@ find_package(Boost 1.41.0 REQUIRED)
include_directories(${OPAE_INCLUDE_DIR}
${CMAKE_SOURCE_DIR}/tools/fpgadiag
${CMAKE_SOURCE_DIR}/tools/c++utils
- ${CMAKE_SOURCE_DIR}/tools/libopae++)
+ ${CMAKE_SOURCE_DIR}/tools/libopae++
+ ${Boost_INCLUDE_DIRS})
add_library(hssi-io SHARED przone.h
accelerator_przone.h
|
Exiting application process in case of pre_init stage error. | @@ -333,10 +333,7 @@ nxt_app_start(nxt_task_t *task, void *data)
ret = nxt_app->pre_init(task, data);
if (nxt_slow_path(ret != NXT_OK)) {
- nxt_debug(task, "application pre_init failed");
-
- } else {
- nxt_debug(task, "application pre_init done");
+ return ret;
}
}
|
king: fix goshdarn typo | @@ -19,7 +19,7 @@ import Urbit.Vere.Ames.UDP (UdpServ(..), fakeUdpServ, realUdpServ)
-- Constants -------------------------------------------------------------------
--- | How many unprocessed ames packets to allow in the queue before we stop
+-- | How many unprocessed ames packets to allow in the queue before we start
-- dropping incoming packets.
queueBound :: Word
queueBound = 1000
|
workflow/restore_from_mnemonic: pick number of words | #include "restore_from_mnemonic.h"
+#include "blocking.h"
#include "confirm.h"
#include "password.h"
#include "status.h"
#include <hardfault.h>
#include <keystore.h>
#include <memory.h>
+#include <ui/component.h>
+#include <ui/components/trinary_choice.h>
#include <ui/components/trinary_input_string.h>
+#include <ui/screen_stack.h>
+#include <ui/ui_util.h>
#include <util.h>
#include <stdio.h>
#define WORKFLOW_RESTORE_FROM_MNEMONIC_MAX_WORDS 24
+static trinary_choice_t _number_of_words_choice;
+static void _number_of_words_picked(component_t* trinary_choice, trinary_choice_t choice)
+{
+ (void)trinary_choice;
+ _number_of_words_choice = choice;
+ workflow_blocking_unblock();
+}
+
+/**
+ * Workflow to pick how many words.
+ * @param[out] number_of_words_out 12, 18 or 24.
+ */
+static bool _pick_number_of_words(uint8_t* number_of_words_out)
+{
+ ui_screen_stack_push(
+ trinary_choice_create("How many words?", "12", "18", "24", _number_of_words_picked, NULL));
+ bool result = workflow_blocking_block();
+ ui_screen_stack_pop();
+ switch (_number_of_words_choice) {
+ case TRINARY_CHOICE_LEFT:
+ *number_of_words_out = 12;
+ break;
+ case TRINARY_CHOICE_MIDDLE:
+ *number_of_words_out = 18;
+ break;
+ case TRINARY_CHOICE_RIGHT:
+ *number_of_words_out = 24;
+ break;
+ default:
+ Abort("restore_from_mnemonic: unreachable");
+ }
+ return result;
+}
+
static void _cleanup_wordlist(char*** wordlist)
{
for (size_t i = 0; i < BIP39_WORDLIST_LEN; i++) {
@@ -65,7 +104,14 @@ static bool _get_mnemonic(char* mnemonic_out)
}
}
- const uint8_t num_words = 24;
+ uint8_t num_words;
+ if (!_pick_number_of_words(&num_words)) {
+ return false;
+ }
+ char num_words_success_msg[20];
+ snprintf(num_words_success_msg, sizeof(num_words_success_msg), "Enter %d words", num_words);
+ workflow_status_create(num_words_success_msg, true);
+
for (uint8_t word_idx = 0; word_idx < num_words; word_idx++) {
char word[WORKFLOW_TRINARY_INPUT_MAX_WORD_LENGTH] = {0};
char title[50] = {0};
|
Make test_nsalloc_realloc_long_ge_name() robust.
Make test robust against memory allocation pattern changes | @@ -11605,15 +11605,9 @@ START_TEST(test_nsalloc_realloc_long_ge_name)
{ NULL, NULL }
};
int i;
-#define MAX_REALLOC_COUNT 5
- int repeat = 0;
+#define MAX_REALLOC_COUNT 10
for (i = 0; i < MAX_REALLOC_COUNT; i++) {
- /* Repeat some counts to defeat caching */
- if (i == 2 && repeat < 3) {
- i--;
- repeat++;
- }
reallocation_count = i;
XML_SetUserData(parser, options);
XML_SetParamEntityParsing(parser, XML_PARAM_ENTITY_PARSING_ALWAYS);
@@ -11621,7 +11615,9 @@ START_TEST(test_nsalloc_realloc_long_ge_name)
if (_XML_Parse_SINGLE_BYTES(parser, text, strlen(text),
XML_TRUE) != XML_STATUS_ERROR)
break;
- XML_ParserReset(parser, NULL);
+ /* See comment in test_nsalloc_xmlns() */
+ nsalloc_teardown();
+ nsalloc_setup();
}
if (i == 0)
fail("Parsing worked despite failing reallocations");
|
Add buffer check for named group | @@ -438,6 +438,7 @@ static int ssl_tls13_hrr_check_key_share_ext( mbedtls_ssl_context *ssl,
MBEDTLS_SSL_DEBUG_BUF( 3, "key_share extension", p, end - buf );
/* Read selected_group */
+ MBEDTLS_SSL_CHK_BUF_READ_PTR( p, end, 2 );
tls_id = MBEDTLS_GET_UINT16_BE( p, 0 );
MBEDTLS_SSL_DEBUG_MSG( 3, ( "selected_group ( %d )", tls_id ) );
|
adjusting comment on sliding window memory usage.
The comment now uses '**' as exponentiation operator. | * Maximum window size used for modular exponentiation. Default: 6
* Minimum value: 1. Maximum value: 6.
*
- * Result is an array of ( 2 << MBEDTLS_MPI_WINDOW_SIZE ) MPIs used
+ * Result is an array of ( 2 ** MBEDTLS_MPI_WINDOW_SIZE ) MPIs used
* for the sliding window calculation. (So 64 by default)
*
* Reduction in size, reduces speed.
|
Fix internalstyle inconsistency between QD and QEs
Add GUC_GPDB_ADDOPT flag for internalstyle so it can be dispatched to QEs | @@ -2113,7 +2113,7 @@ static struct config_string ConfigureNamesString[] =
{"IntervalStyle", PGC_USERSET, CLIENT_CONN_LOCALE,
gettext_noop("Sets the display format for interval values."),
NULL,
- GUC_REPORT
+ GUC_REPORT | GUC_GPDB_ADDOPT
},
&IntervalStyle_string,
"postgres", assign_IntervalStyle, show_IntervalStyle
|
zephyr/subsys/ap_pwrseq/x86_non_dsx_mtl_pwrseq_sm.c: Format with clang-format
BRANCH=none
TEST=none | @@ -33,8 +33,8 @@ static void generate_pwrok_handler(void)
power_signal_set(PWR_EC_PCH_SYS_PWROK, all_sys_pwrgd_in);
/* PCH_PWROK is set to combined result of ALL_SYS_PWRGD and SLP_S3 */
- power_signal_set(PWR_PCH_PWROK, all_sys_pwrgd_in &&
- !power_signal_get(PWR_SLP_S3));
+ power_signal_set(PWR_PCH_PWROK,
+ all_sys_pwrgd_in && !power_signal_get(PWR_SLP_S3));
}
/* Chipset specific power state machine handler */
|
fix assert logging | @@ -461,7 +461,7 @@ extern int FIO_LOG_LEVEL;
#define FIO_ASSERT(cond, ...) \
if (!(cond)) { \
- FIO_LOG_FATAL(__FILE__ ":" FIO_MACRO2STR(__LINE__) __VA_ARGS__); \
+ FIO_LOG_FATAL("(" __FILE__ ":" FIO_MACRO2STR(__LINE__) ") "__VA_ARGS__); \
perror(" errno"); \
exit(-1); \
}
|
Fix SCCB/I2C timing for F7 & H7. | @@ -21,8 +21,10 @@ int cambus_init()
/* Configure I2C */
I2CHandle.Instance = SCCB_I2C;
I2CHandle.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT;
- #if defined(MCU_SERIES_F7) || defined(MCU_SERIES_H7)
- I2CHandle.Init.Timing = 0x40912732; // 100KHz
+ #if defined(MCU_SERIES_F7)
+ I2CHandle.Init.Timing = 0x1090699B; // 100KHz, rise time = 100ns, fall time = 20ns
+ #elif defined(MCU_SERIES_H7)
+ I2CHandle.Init.Timing = 0x40604E73; // 100KHz, rise time = 100ns, fall time = 20ns
#else
I2CHandle.Init.ClockSpeed = I2C_FREQUENCY;
I2CHandle.Init.DutyCycle = I2C_DUTYCYCLE_2;
|
Add GetModState that seemed to have been forgotten | @@ -29,6 +29,11 @@ func GetKeyboardState() []uint8 {
return *(*[]uint8)(unsafe.Pointer(&sh))
}
+// GetModState (https://wiki.libsdl.org/SDL_GetModState)
+func GetModState() Keymod {
+ return (Keymod)(C.SDL_GetModState())
+}
+
// SetModState (https://wiki.libsdl.org/SDL_SetModState)
func SetModState(mod Keymod) {
C.SDL_SetModState(mod.c())
|
collector: workaround gcc-4.6 value computed is not used error | @@ -138,7 +138,7 @@ collector_runner(void *s)
*m = '\0';
sizem = sizeof(metric) - (m - metric);
- __sync_and_and_fetch(&pending_router, NULL);
+ (void)__sync_and_and_fetch(&pending_router, NULL);
}
assert(srvs != NULL);
sleep(1);
@@ -319,7 +319,7 @@ collector_writer(void *unused)
aggrs = router_getaggregators(prtr);
numaggregators = aggregator_numaggregators(aggrs);
collector_interval = router_getcollectorinterval(prtr);
- __sync_and_and_fetch(&pending_router, NULL);
+ (void)__sync_and_and_fetch(&pending_router, NULL);
}
assert(srvs != NULL);
sleep(1);
|
Enable VGA MJPEG. | @@ -93,7 +93,7 @@ void mjpeg_add_frame(FIL *fp, uint32_t *frames, uint32_t *bytes, image_t *img, i
{
write_data(fp, "00dc", 4); // FOURCC fcc;
*frames += 1;
- if (IM_IS_JPEG(img)) {
+ if (img->bpp >= IMAGE_BPP_JPEG) {
int pad = (((img->bpp + 3) / 4) * 4) - img->bpp;
write_long(fp, img->bpp + pad); // DWORD cb;
write_data(fp, img->pixels, img->bpp + pad); // reading past okay
|
fix: replace BoatIotSdkDeInit(); with BoatEthWalletDeInit(wallet_ptr); in test_002InitWallet_0005SetNodeUrlSuccess
fix the issue aitos-io#1050 | @@ -633,7 +633,7 @@ START_TEST(test_002InitWallet_0005SetNodeUrlSuccess)
/* 2-2. verify the global variables that be affected */
ck_assert_str_eq(wallet_ptr->network_info.node_url_ptr, wallet.node_url_str);
- BoatIotSdkDeInit();
+ BoatEthWalletDeInit(wallet_ptr);
}
END_TEST
|
build: run unit tests early on linux | @@ -74,6 +74,11 @@ jobs:
name: ares
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
+ # run unit tests early on linux (x-compilation will skip them)
+ - name: build dynamic binary (and run tests)
+ if: ${{ matrix.type == 'linux' }}
+ run: nix-build -A urbit
+
- name: build static binary
run: |
nix-build -A urbit \
|
dm: update acrn-dm built-in list and description of args
Update and light clean-up of the buit-in list of arguments from 'acrn-dm'
* Added options in the top part (list with no explanation)
* Remove a couple of arguments that are no longer valid ('vmcfg' and 'dump') | @@ -145,8 +145,8 @@ usage(int code)
" %*s [--part_info part_info_name] [--enable_trusty] [--intr_monitor param_setting]\n"
" %*s [--acpidev_pt HID] [--mmiodev_pt MMIO_Regions]\n"
" %*s [--vtpm2 sock_path] [--virtio_poll interval] [--mac_seed seed_string]\n"
- " %*s [--vmcfg sub_options] [--dump vm_idx] [--debugexit] \n"
- " %*s [--logger-setting param_setting] [--pm_notify_channel]\n"
+ " %*s [--cpu_affinity pCPUs] [--lapic_pt] [--rtvm] [--windows]\n"
+ " %*s [--debugexit] [--logger-setting param_setting] [--pm_notify_channel]\n"
" %*s [--psram]\n"
" %*s [--pm_by_vuart vuart_node] <vm>\n"
" -A: create ACPI tables\n"
@@ -165,10 +165,6 @@ usage(int code)
" -W: force virtio to use single-vector MSI\n"
" -Y: disable MPtable generation\n"
" --mac_seed: set a platform unique string as a seed for generate mac address\n"
-#ifdef CONFIG_VM_CFG
- " --vmcfg: build-in VM configurations\n"
- " --dump: show build-in VM configurations\n"
-#endif
" --vsbl: vsbl file path\n"
" --psram: Enable pSRAM passthrough\n"
" --ovmf: ovmf file path\n"
|
Markdown Link Converter: Use fences for code | @@ -11,7 +11,9 @@ happens in 2 passes, which is needed because there can be files with no title.
## Usage for Manual Invocation
+```sh
markdownlinkconverter [<cmake-cache-file>] <input-file>
+```
**The <input-file> parameter must be an absolute path!**
@@ -42,7 +44,9 @@ which the link refers to.
Every link starting with `http`, `https` or `ftp` will be written to a file named `external-links.txt` located in your
build folder. With the following syntax:
+```
<file>:<line>:0 <url>
+```
Note: Due to the nature of the Markdown Link Converter the file can only be opened in append mode. So delete it and rerun the
html build process (`make clean` could be needed) to get a list without duplicates.
|
vioserial: fix SDV issues
EvtIoStopCancel:
Requires EvtIoStop to unmark request cancellable
EvtIoStopCompleteOrStopAck:
Requires EvIoStop to complete/cancel/postpone request | @@ -1352,16 +1352,20 @@ VOID VIOSerialPortWriteIoStop(IN WDFQUEUE Queue,
TraceEvents(TRACE_LEVEL_ERROR, DBG_WRITE, "--> %s\n", __FUNCTION__);
- WdfSpinLockAcquire(pport->OutVqLock);
- if (ActionFlags & WdfRequestStopActionSuspend)
+ if (WdfRequestUnmarkCancelable(Request) == STATUS_CANCELLED)
{
WdfRequestStopAcknowledge(Request, FALSE);
}
- else if (ActionFlags & WdfRequestStopActionPurge)
+ else if (ActionFlags & WdfRequestStopActionSuspend)
{
- if (WdfRequestUnmarkCancelable(Request) != STATUS_CANCELLED)
+ WdfRequestStopAcknowledge(Request, FALSE);
+ }
+ else if (ActionFlags & WdfRequestStopActionPurge)
{
- PSINGLE_LIST_ENTRY iter = &pport->WriteBuffersList;
+ PSINGLE_LIST_ENTRY iter;
+
+ WdfSpinLockAcquire(pport->OutVqLock);
+ iter = &pport->WriteBuffersList;
while ((iter = iter->Next) != NULL)
{
PWRITE_BUFFER_ENTRY entry = CONTAINING_RECORD(iter, WRITE_BUFFER_ENTRY, ListEntry);
@@ -1372,9 +1376,12 @@ VOID VIOSerialPortWriteIoStop(IN WDFQUEUE Queue,
}
}
WdfRequestComplete(Request, STATUS_OBJECT_NO_LONGER_EXISTS);
+ WdfSpinLockRelease(pport->OutVqLock);
}
+ else
+ {
+ WdfRequestComplete(Request, STATUS_UNSUCCESSFUL);
}
- WdfSpinLockRelease(pport->OutVqLock);
TraceEvents(TRACE_LEVEL_ERROR, DBG_WRITE, "<-- %s\n", __FUNCTION__);
}
|
Fix warning, no functional change. | @@ -334,7 +334,7 @@ handle_upcall(struct socket *upcall_socket, void *upcall_data, int upcall_flags)
snd_info.snd_flags |= SCTP_UNORDERED;
}
- while ((n = usrsctp_sendv(upcall_socket, tsctp_meta->buffer, tsctp_meta->par_message_length, NULL, 0, &snd_info, (socklen_t)sizeof(struct sctp_sndinfo), SCTP_SENDV_SNDINFO, 0)) > 0) {
+ while (usrsctp_sendv(upcall_socket, tsctp_meta->buffer, tsctp_meta->par_message_length, NULL, 0, &snd_info, (socklen_t)sizeof(struct sctp_sndinfo), SCTP_SENDV_SNDINFO, 0) > 0) {
if (tsctp_meta->stat_messages == 0) {
gettimeofday(&tsctp_meta->stat_start, NULL);
}
|
Reduce max scheduling delay to 1ms | @@ -31,7 +31,7 @@ extern "C" {
#define PICOQUIC_PACKET_LOOP_SOCKETS_MAX 2
#define PICOQUIC_PACKET_LOOP_SEND_MAX 10
-#define PICOQUIC_PACKET_LOOP_SEND_DELAY_MAX 5000
+#define PICOQUIC_PACKET_LOOP_SEND_DELAY_MAX 1000
/* The packet loop will call the application back after specific events.
*/
|
more pretty error message | @@ -211,7 +211,7 @@ namespace NCatboostCuda {
CB_ENSURE(FeaturesManager.IsCtr(split.FeatureId));
const auto& ctr = FeaturesManager.GetCtr(split.FeatureId);
auto& borders = FeaturesManager.GetBorders(split.FeatureId);
- CB_ENSURE(split.BinIdx < borders.size());
+ CB_ENSURE(split.BinIdx < borders.size(), "Split " << split.BinIdx << ", borders: " << borders.size());
modelSplit.Type = ESplitType::OnlineCtr;
modelSplit.OnlineCtr.Border = borders[split.BinIdx];
|
Coding: Add tool integration section for Prettier | @@ -31,7 +31,7 @@ s/([^.`/])git[hH]ub([^.][^\w])/\1GitHub\2/g
s/\<[Ll]ibreoffice/LibreOffice/g
-s/([^/[-])\<mark[Dd]own\>/\1Markdown/g
+s/([^./[-])\<mark[Dd]own\>/\1Markdown/g
s/\<([Mm]ac )?OS X\>/macOS/g
s/\<unix|UNIX/Unix/g
|
Disable Session Caching if Client Auth is enabled | @@ -253,7 +253,8 @@ int s2n_conn_set_handshake_type(struct s2n_connection *conn)
/* A handshake type has been negotiated */
conn->handshake.handshake_type = NEGOTIATED;
- if (s2n_is_caching_enabled(conn->config)) {
+ /* Only check cache for Session ID if Client Auth is not configured */
+ if (conn->client_cert_auth_type == S2N_CERT_AUTH_NONE && s2n_is_caching_enabled(conn->config)) {
if (!s2n_resume_from_cache(conn)) {
return 0;
}
|
Adjust max ack blocks | @@ -97,7 +97,8 @@ typedef union {
ngtcp2_frame fr;
struct {
ngtcp2_ack ack;
- ngtcp2_ack_blk blks[NGTCP2_MAX_ACK_BLKS];
+ /* ack includes 1 ngtcp2_ack_blk. */
+ ngtcp2_ack_blk blks[NGTCP2_MAX_ACK_BLKS - 1];
} ackfr;
} ngtcp2_max_frame;
|
[hg] release a new version for windows
This PR releases a new version of hg for windows which contains fixes for the remaining problems. We need to udpate wiki page with couple of issues and things should work fine now. | },
"hg": {
"formula": {
- "sandbox_id": [384697982, 384698485, 386697305],
+ "sandbox_id": [384697982, 384698485, 398945090],
"match": "Hg"
},
"executable": {
|
options/posix: Implement execlp | @@ -123,9 +123,24 @@ int execle(const char *path, const char *arg0, ...) {
return execve(path, argv, envp);
}
-int execlp(const char *, const char *, ...) {
- __ensure(!"Not implemented");
- __builtin_unreachable();
+// This function is taken from musl
+int execlp(const char *file, const char *argv0, ...) {
+ int argc;
+ va_list ap;
+ va_start(ap, argv0);
+ for(argc = 1; va_arg(ap, const char *); argc++);
+ va_end(ap);
+ {
+ int i;
+ char *argv[argc + 1];
+ va_start(ap, argv0);
+ argv[0] = (char *)argv0;
+ for(i = 1; i < argc; i++)
+ argv[i] = va_arg(ap, char *);
+ argv[i] = NULL;
+ va_end(ap);
+ return execvp(file, argv);
+ }
}
int execv(const char *path, char *const argv[]) {
|
Add checks for BAD_STATE before calling psa_pake_setup() in ecjpake_setup() test | @@ -8128,6 +8128,23 @@ void ecjpake_setup( int alg_arg, int primitive_arg, int hash_arg, int role_arg,
psa_pake_cs_set_primitive( &cipher_suite, primitive_arg );
psa_pake_cs_set_hash( &cipher_suite, hash_alg );
+ PSA_ASSERT( psa_pake_abort( &operation ) );
+
+ TEST_EQUAL( psa_pake_set_user( &operation, NULL, 0 ),
+ PSA_ERROR_BAD_STATE );
+ TEST_EQUAL( psa_pake_set_peer( &operation, NULL, 0 ),
+ PSA_ERROR_BAD_STATE );
+ TEST_EQUAL( psa_pake_set_password_key( &operation, key ),
+ PSA_ERROR_BAD_STATE );
+ TEST_EQUAL( psa_pake_set_role( &operation, role ),
+ PSA_ERROR_BAD_STATE );
+ TEST_EQUAL( psa_pake_output( &operation, step, NULL, 0, NULL ),
+ PSA_ERROR_BAD_STATE );
+ TEST_EQUAL( psa_pake_input( &operation, step, NULL, 0),
+ PSA_ERROR_BAD_STATE );
+
+ PSA_ASSERT( psa_pake_abort( &operation ) );
+
status = psa_pake_setup( &operation, &cipher_suite );
if( status != PSA_SUCCESS )
{
|
vppinfra: elog multi-track g2 test pattern
Type: test | #include <vppinfra/serialize.h>
#include <vppinfra/unix.h>
+void
+g2_test_pattern (elog_main_t * em, int g2_test, char *dump_file)
+{
+ int i, j;
+ clib_error_t *error;
+ elog_track_t *tracks = 0;
+
+ elog_init (em, 100000);
+ elog_enable_disable (em, 1 /* enable */ );
+
+ for (i = 0; i < 100; i++)
+ {
+ elog_track_t *t;
+ vec_validate (tracks, i);
+ t = tracks + i;
+ t->name = (char *) format (0, "Track %3d", i + 1);
+ elog_track_register (em, t);
+ }
+
+ for (i = 0; i < 100; i++)
+ {
+ for (j = 0; j < 100; j++)
+ {
+ ELOG_TYPE_DECLARE (e) =
+ {
+ .format = "0: t%d event %d",.format_args = "i4i4",};
+ ELOG_TYPE_DECLARE (e2) =
+ {
+ .format = "1: t%d event %d",.format_args = "i4i4",};
+
+ struct
+ {
+ int track, event;
+ } *ed;
+
+ ed = ELOG_TRACK_DATA (em, e, tracks[j]);
+ ed->track = j + 1;
+ ed->event = i;
+ ed = ELOG_TRACK_DATA (em, e2, tracks[j]);
+ ed->track = j + 1;
+ ed->event = i;
+ }
+ }
+
+ if (dump_file == 0)
+ dump_file = "/tmp/g2_test.elog";
+
+ error = elog_write_file (em, dump_file, 1 /* flush ring */ );
+
+ if (error)
+ clib_error_report (error);
+}
+
+
int
test_elog_main (unformat_input_t * input)
{
@@ -54,6 +108,7 @@ test_elog_main (unformat_input_t * input)
u8 *tag, **tags;
f64 align_tweak;
f64 *align_tweaks;
+ int g2_test;
n_iter = 100;
max_events = 100000;
@@ -65,6 +120,7 @@ test_elog_main (unformat_input_t * input)
tags = 0;
align_tweaks = 0;
min_sample_time = 2;
+ g2_test = 0;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (input, "iter %d", &n_iter))
@@ -88,6 +144,8 @@ test_elog_main (unformat_input_t * input)
;
else if (unformat (input, "align-tweak %f", &align_tweak))
vec_add1 (align_tweaks, align_tweak);
+ else if (unformat (input, "g2-test %=", &g2_test, 1))
+ ;
else
{
error = clib_error_create ("unknown input `%U'\n",
@@ -96,6 +154,12 @@ test_elog_main (unformat_input_t * input)
}
}
+ if (g2_test)
+ {
+ g2_test_pattern (em, g2_test, dump_file);
+ return (0);
+ }
+
#ifdef CLIB_UNIX
if (load_file)
{
|
apps/btshell: Fix compilation with BLE_EXT_ADV disabled
Add missing #if directive to fix use of undeclared variable. | @@ -3618,17 +3618,19 @@ static const struct shell_cmd btshell_commands[] = {
void
cmd_init(void)
{
+#if MYNEWT_VAL(BLE_EXT_ADV)
int rc;
- shell_register(BTSHELL_MODULE, btshell_commands);
- shell_register_default_module(BTSHELL_MODULE);
-
- rc = os_mempool_init(&ext_adv_pool, 1,
- EXT_ADV_POOL_SIZE,
+ rc = os_mempool_init(&ext_adv_pool, 1, EXT_ADV_POOL_SIZE,
ext_adv_mem, "ext_adv_mem");
assert(rc == 0);
rc = os_mbuf_pool_init(&ext_adv_mbuf_pool, &ext_adv_pool,
- EXT_ADV_POOL_SIZE,
- 1);
+ EXT_ADV_POOL_SIZE, 1);
+
+ assert(rc == 0);
+#endif
+
+ shell_register(BTSHELL_MODULE, btshell_commands);
+ shell_register_default_module(BTSHELL_MODULE);
}
|
std/png: add test for multiple IDAT chunks | @@ -194,6 +194,19 @@ test_wuffs_png_decode_interface() {
"test/data/bricks-gray.png", 0, SIZE_MAX, 160, 120, 0xFF060606);
}
+const char* //
+test_wuffs_png_decode_multiple_idats() {
+ CHECK_FOCUS(__func__);
+ wuffs_png__decoder dec;
+ CHECK_STATUS("initialize",
+ wuffs_png__decoder__initialize(
+ &dec, sizeof dec, WUFFS_VERSION,
+ WUFFS_INITIALIZE__LEAVE_INTERNAL_BUFFERS_UNINITIALIZED));
+ return do_test__wuffs_base__image_decoder(
+ wuffs_png__decoder__upcast_as__wuffs_base__image_decoder(&dec),
+ "test/data/bricks-color.png", 0, SIZE_MAX, 160, 120, 0xFF022460);
+}
+
const char* //
test_wuffs_png_decode_bad_crc32_checksum_critical() {
CHECK_FOCUS(__func__);
@@ -1273,6 +1286,7 @@ proc g_tests[] = {
test_wuffs_png_decode_metadata_exif,
test_wuffs_png_decode_metadata_iccp,
test_wuffs_png_decode_metadata_kvp,
+ test_wuffs_png_decode_multiple_idats,
test_wuffs_png_decode_restart_frame,
#ifdef WUFFS_MIMIC
|
fix win64 matlab issue | @@ -95,9 +95,9 @@ extern "C" {
#ifdef DLONG
#ifdef _WIN64
-/* #include <stdint.h> */
-/* typedef int64_t scs_int; */
-typedef long scs_int;
+#include <stdint.h>
+typedef int64_t scs_int;
+/* typedef long scs_int; */
#else
typedef long scs_int;
#endif
|
Add missing resource update from commit | @@ -1299,7 +1299,10 @@ STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSM
CAPTION "WMI Providers"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
- CONTROL "",IDC_LIST,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_ALIGNLEFT | WS_BORDER | WS_TABSTOP,2,2,256,256
+ PUSHBUTTON "Refresh",IDC_REFRESH,53,2,50,14
+ PUSHBUTTON "Options",IDC_OPTIONS,2,2,50,14
+ EDITTEXT IDC_SEARCH,114,3,144,14,ES_AUTOHSCROLL
+ CONTROL "",IDC_LIST,"PhTreeNew",WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_TABSTOP | 0xa,2,19,256,239,WS_EX_CLIENTEDGE
END
IDD_COLUMNSETS DIALOGEX 0, 0, 231, 188
|
Add decorator.
import deprecation
removed_in="2.0",
current_version=__version__,
details="Use the bar function instead")
def foo():
"""Do some stuff"""
return 1 | aenum>= 2.1.2; python_version < '3.6' # BSD
cffi # MIT
cryptography!=2.0 # BSD/Apache-2.0
+deprecation>=2.0.6 # Apache-2.0
faulthandler; python_version < '3.3' # # BSD License (2 clause)
flake8 # MIT
ipaddress; python_version < '3.3' # PSF
|
BugID:17920924:replace disable interupt with mutex 3 | @@ -117,7 +117,7 @@ RHINO_INLINE _pthread_tcb_t *_pthread_get_tcb(pthread_t thread)
int pthread_create(pthread_t *thread, const pthread_attr_t *attr,
void *(*start_routine)(void *), void *arg);
-void pthread_exit(void *retval);
+void pthread_exit(void *value_ptr);
int pthread_detach(pthread_t thread);
int pthread_join(pthread_t thread, void **retval);
int pthread_cancel(pthread_t thread);
|
TestHelloWorld: Code cleanup | SPDX-License-Identifier: BSD-3-Clause
**/
-#include <Uefi.h>
-#include <Library/UefiLib.h>
-#include <Library/UefiApplicationEntryPoint.h>
#include <Library/UefiBootServicesTableLib.h>
+#include <Library/DebugLib.h>
+STATIC
EFI_STATUS
EFIAPI
UefiMain (
@@ -15,11 +14,12 @@ UefiMain (
IN EFI_SYSTEM_TABLE *SystemTable
)
{
- Print (L"Hello world\n");
+ DEBUG ((DEBUG_ERROR, "Hello world\n"));
return EFI_SUCCESS;
}
int main(int argc, const char *argv[]) {
UefiMain (gImageHandle, gST);
+
return 0;
}
|
misc: configurator: add check for uniqueness of cpus in Pre-launched VM
CPUs assigned to Pre-launched VM can not be shared. Add a xsd rule to
check it. | </xs:annotation>
</xs:assert>
+ <xs:assert test="every $pcpu in /acrn-config/vm[load_order = 'PRE_LAUNCHED_VM']//cpu_affinity//pcpu_id satisfies
+ count(/acrn-config/vm[@id != $pcpu/ancestor::vm//companion_vmid ]//cpu_affinity[.//pcpu_id = $pcpu]) <= 1">
+ <xs:annotation acrn:severity="error" acrn:report-on="//vm//cpu_affinity[.//pcpu_id = $pcpu]">
+ <xs:documentation>Physical CPU {$pcpu} is assigned to Pre-launched VM "{$pcpu/ancestor::vm/name}" and thus cannot be shared among multiple VMs. Look for, and probably remove, any affinity assignments to {$pcpu} in this VM's settings: {//vm[cpu_affinity//pcpu_id = $pcpu]/name}.</xs:documentation>
+ </xs:annotation>
+ </xs:assert>
+
<xs:assert test="every $pcpu in /acrn-config/vm[vm_type = 'RTVM']//cpu_affinity//pcpu_id satisfies
count(/acrn-config/vm[@id != $pcpu/ancestor::vm//companion_vmid ]//cpu_affinity[.//pcpu_id = $pcpu]) <= 1">
<xs:annotation acrn:severity="error" acrn:report-on="//vm//cpu_affinity[.//pcpu_id = $pcpu]">
|
byra: Enable I2C_CONTROL host command
BRANCH=none
TEST=with follow-on patches, switched I2C bus speed between 400 kHz
and 1 MHz. | /* I2C speed console command */
#define CONFIG_CMD_I2C_SPEED
+/* I2C control host command */
+#define CONFIG_HOSTCMD_I2C_CONTROL
+
#define CONFIG_USBC_PPC_SYV682X
#define CONFIG_USBC_PPC_NX20P3483
|
SOVERSION bump to version 2.5.4 | @@ -63,7 +63,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
set(LIBYANG_MINOR_SOVERSION 5)
-set(LIBYANG_MICRO_SOVERSION 3)
+set(LIBYANG_MICRO_SOVERSION 4)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MINOR_SOVERSION}.${LIBYANG_MICRO_SOVERSION})
set(LIBYANG_SOVERSION ${LIBYANG_MAJOR_SOVERSION})
|
Remove required flag from zlib
This should enable building of internal copy of zlib as necessary,
hopefully helping default win32 builds | @@ -155,7 +155,7 @@ endif()
option(OPENEXR_FORCE_INTERNAL_ZLIB "Force using an internal zlib" OFF)
if (NOT OPENEXR_FORCE_INTERNAL_ZLIB)
- find_package(ZLIB REQUIRED)
+ find_package(ZLIB)
endif()
if(OPENEXR_FORCE_INTERNAL_ZLIB OR NOT ZLIB_FOUND)
set(zlib_VER "1.2.11")
|
vppapigen: coverity 219549, dead code in generated file
Type: fix | @@ -206,6 +206,8 @@ class ToJSON():
write(' cJSON *array = cJSON_CreateArray();\n')
for b in o.block:
+ if b[1] == 0:
+ continue
write(' if (a & {})\n'.format(b[0]))
write(' cJSON_AddItemToArray(array, cJSON_CreateString("{}"));\n'.format(b[0]))
write(' return array;\n')
|
poor mans link which also works on docker under windows | -../../app/include/lwip/app/espconn.h
\ No newline at end of file
+// poor mans link which also works on docker under windows
+#include "../../app/include/lwip/app/espconn.h"
\ No newline at end of file
|
fix fixme in planner about calculating dNumGroups for grouping sets
1.remove useless codes, the last param is removed in create_groupingsets_path,
so there is no need to calculate dNumGroups before create_groupingsets_path.
2.the last param of consider_groupingsets_paths should be dNumGroupsTotal.
in consider_groupingsets_paths it will calculate dNumGroups in one segment. | @@ -4903,19 +4903,6 @@ consider_groupingsets_paths(PlannerInfo *root,
parse->groupClause,
srd->new_rollups);
- // GPDB_12_MERGE_FIXME: fix computation of dNumGroups
-#if 0
- /*
- * dNumGroupsTotal is the total number of groups across all segments. If the
- * Aggregate is distributed, then the number of groups in one segment
- * is only a fraction of the total.
- */
- if (CdbPathLocus_IsPartitioned(path->locus))
- dNumGroups = clamp_row_est(dNumGroupsTotal /
- CdbPathLocus_NumSegments(path->locus));
- else
- dNumGroups = dNumGroupsTotal;
-#endif
add_path(grouped_rel, (Path *)
create_groupingsets_path(root,
@@ -7269,9 +7256,14 @@ add_paths_to_grouping_rel(PlannerInfo *root, RelOptInfo *input_rel,
/* Now decide what to stick atop it */
if (parse->groupingSets)
{
+ /*
+ * the last param of consider_groupingsets_paths should be
+ * dNumGroupsTotal. In consider_groupingsets_paths it will
+ * calculate dNumGroups in one segment.
+ */
consider_groupingsets_paths(root, grouped_rel,
path, true, can_hash,
- gd, agg_costs, dNumGroups);
+ gd, agg_costs, dNumGroupsTotal);
}
else if (parse->hasAggs || parse->groupClause)
{
|
[components/shell] shell will not work if ch is none zero as random value in stack
The serial getchar will only modify the LSB of ch, the MSB 3 bytes
will be unchanged as the random value on stack, so if MSB 3 bytes
not zero, the value got is wrong. | @@ -139,7 +139,7 @@ static int finsh_getchar(void)
#ifdef RT_USING_POSIX
return getchar();
#else
- int ch;
+ int ch = 0;
RT_ASSERT(shell != RT_NULL);
while (rt_device_read(shell->device, -1, &ch, 1) != 1)
|
Docs: Removing DCA references | @@ -390,7 +390,7 @@ root 29622 29566 0 12:50 pts/16 00:00:00 grep 15673</codeblock>
per host. When using partitioning and columnar storage it is important to balance the
total number of files in the cluster, but it is <i>more</i> important to consider the
number of files per segment and the total number of files on a node. </p>
- <p>Example DCA V2 64GB Memory per Node</p>
+ <p>Example with 64GB Memory per Node</p>
<ul id="ul_nyy_tgb_3r">
<li>Number of nodes: 16</li>
<li>Number of segments per node: 8</li>
|
tests: internal: fuzzer: hash: use new api name | #include <fluent-bit/flb_utils.h>
#include <fluent-bit/flb_slist.h>
#include <fluent-bit/flb_gzip.h>
-#include <fluent-bit/flb_hash.h>
+#include <fluent-bit/flb_hash_table.h>
#include <fluent-bit/flb_uri.h>
#include <fluent-bit/flb_sha512.h>
#include <fluent-bit/flb_regex.h>
@@ -121,16 +121,16 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
}
/* Fuzzing of flb_hash.c */
- struct flb_hash *ht = NULL;
- ht = flb_hash_create((int)(data[2] % 0x04),
+ struct flb_hash_table *ht = NULL;
+ ht = flb_hash_table_create((int)(data[2] % 0x04),
(size_t)data[0],
(int)data[1]);
if (ht != NULL) {
- flb_hash_add(ht, null_terminated, size, null_terminated, size);
+ flb_hash_table_add(ht, null_terminated, size, null_terminated, size);
char *out_buf = NULL;
size_t out_size;
- flb_hash_get(ht, null_terminated, size, (void **)&out_buf, &out_size);
+ flb_hash_table_get(ht, null_terminated, size, (void **)&out_buf, &out_size);
/* now let's create some more instances */
char *instances1[128] = { NULL };
@@ -142,7 +142,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
memcpy(in2, data+(i*4)+2, 2);
in1[2] = '\0';
in2[2] = '\0';
- flb_hash_add(ht, in1, 2, in2, 2);
+ flb_hash_table_add(ht, in1, 2, in2, 2);
instances1[i] = in1;
instances2[i] = in2;
}
@@ -150,16 +150,16 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
for(int i = 0; i < 20; i++) {
char *hash_out_buf;
size_t hash_out_size;
- flb_hash_get_by_id(ht, (int)data[i], null_terminated,
+ flb_hash_table_get_by_id(ht, (int)data[i], null_terminated,
(const char **)&hash_out_buf, &hash_out_size);
}
- flb_hash_del(ht, null_terminated1);
- flb_hash_exists(ht, ran_hash);
- flb_hash_del_ptr(ht, null_terminated2, strlen(null_terminated2), NULL);
- flb_hash_get_ptr(ht, null_terminated3, strlen(null_terminated3));
+ flb_hash_table_del(ht, null_terminated1);
+ flb_hash_table_exists(ht, ran_hash);
+ flb_hash_table_del_ptr(ht, null_terminated2, strlen(null_terminated2), NULL);
+ flb_hash_table_get_ptr(ht, null_terminated3, strlen(null_terminated3));
- flb_hash_destroy(ht);
+ flb_hash_table_destroy(ht);
for (int i =0; i<128; i++) {
flb_free(instances1[i]);
flb_free(instances2[i]);
|
hark: handle "no chat metadata" errors
Fixes urbit/landscape#161. | @@ -40,11 +40,11 @@ export function ChatNotification(props: {
const authors = _.map(contents, "author");
const { chat, mention } = index;
- const association = props.associations.chat[chat];
- const groupPath = association["group-path"];
- const appPath = association["app-path"];
+ const association = props?.associations?.chat?.[chat];
+ const groupPath = association?.["group-path"];
+ const appPath = index?.chat;
- const group = props.groups[groupPath];
+ const group = props?.groups?.[groupPath];
const desc = describeNotification(mention, contents.length);
const groupContacts = props.contacts[groupPath] || {};
@@ -75,7 +75,10 @@ export function ChatNotification(props: {
/>
<Col pb="3" pl="5">
{_.map(_.take(contents, 5), (content, idx) => {
- const workspace = group?.hidden ? '/home' : groupPath;
+ let workspace = groupPath;
+ if (workspace === undefined || group?.hidden) {
+ workspace = '/home';
+ }
const to = `/~landscape${workspace}/resource/chat${appPath}?msg=${content.number}`;
return (
<Link key={idx} to={to}>
|
Fix compile isse when TinyUSB task is not enabled. | #include "tinyusb.h"
#include "tusb_tasks.h"
+#if !CONFIG_TINYUSB_NO_DEFAULT_TASK
+
const static char *TAG = "tusb_tsk";
static TaskHandle_t s_tusb_tskh;
@@ -52,3 +54,5 @@ esp_err_t tusb_stop_task(void)
s_tusb_tskh = NULL;
return ESP_OK;
}
+
+#endif // !CONFIG_TINYUSB_NO_DEFAULT_TASK
\ No newline at end of file
|
imgtool: fix --vector-to-sign usage
`--vector-to-sign` only exports the image payload, or digest, to be
signed externally; it doesn't require any keys to be provided. This
commit moves the code outside a key required block, after the payload
and digest were already calculated from "image + headers + protected
TLVs". | @@ -434,15 +434,9 @@ class Image():
tlv.add('SHA256', digest)
- if key is not None or fixed_sig is not None:
- if public_key_format == 'hash':
- tlv.add('KEYHASH', pubbytes)
- else:
- tlv.add('PUBKEY', pub)
-
if vector_to_sign == 'payload':
# Stop amending data to the image
- # Just keep data vector which is expected to be sigend
+ # Just keep data vector which is expected to be signed
print(os.path.basename(__file__) + ': export payload')
return
elif vector_to_sign == 'digest':
@@ -450,6 +444,12 @@ class Image():
print(os.path.basename(__file__) + ': export digest')
return
+ if key is not None or fixed_sig is not None:
+ if public_key_format == 'hash':
+ tlv.add('KEYHASH', pubbytes)
+ else:
+ tlv.add('PUBKEY', pub)
+
if key is not None and fixed_sig is None:
# `sign` expects the full image payload (sha256 done internally),
# while `sign_digest` expects only the digest of the payload
|
Remove spurious AVX512 requirement and add AVX2/FMA3 guard | -/* need a new enough GCC for avx512 support */
-#if (( defined(__GNUC__) && __GNUC__ > 6 && defined(__AVX512CD__)) || (defined(__clang__) && __clang_major__ >= 9))
+#if defined(HAVE_FMA3) && defined(HAVE_AVX2)
#define HAVE_SROT_KERNEL 1
|
move babel-eslint to dev dependencies | },
"dependencies": {
"babel-core": "^6.14.0",
- "babel-eslint": "^7.1.1",
"babel-loader": "^6.2.5",
"babel-preset-es2015": "^6.14.0",
"babel-preset-react": "^6.11.1",
"webpack": "^1.13.2"
},
"devDependencies": {
+ "babel-eslint": "^7.1.1",
"eslint": "^3.11.1",
"eslint-config-standard": "^6.2.1",
"eslint-plugin-react": "^6.8.0",
|
stm32/mpconfigport.h: Remove unused root pointer for BTstack bindings.
This was a cut-and-paste error from the NimBLE bindings. | @@ -271,7 +271,7 @@ struct _mp_bluetooth_nimble_root_pointers_t;
#if MICROPY_BLUETOOTH_BTSTACK
struct _mp_bluetooth_btstack_root_pointers_t;
-#define MICROPY_PORT_ROOT_POINTER_BLUETOOTH_BTSTACK void **bluetooth_nimble_memory; struct _mp_bluetooth_btstack_root_pointers_t *bluetooth_btstack_root_pointers;
+#define MICROPY_PORT_ROOT_POINTER_BLUETOOTH_BTSTACK struct _mp_bluetooth_btstack_root_pointers_t *bluetooth_btstack_root_pointers;
#else
#define MICROPY_PORT_ROOT_POINTER_BLUETOOTH_BTSTACK
#endif
|
[Kernel] Add object re-initialization check. | @@ -251,6 +251,9 @@ void rt_object_init(struct rt_object *object,
/* initialize object's parameters */
+ /* check object type to avoid re-initialization */
+ RT_ASSERT(object->type != (type | RT_Object_Class_Static));
+
/* set object type to static */
object->type = type | RT_Object_Class_Static;
|
Reformat EventController
Reformated by Android Studio. | @@ -111,7 +111,8 @@ public class EventController {
return false;
}
setPointerCoords(point);
- MotionEvent event = MotionEvent.obtain(lastMouseDown, now, action, 1, pointerProperties, pointerCoords, 0, buttons, 1f, 1f, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0);
+ MotionEvent event = MotionEvent.obtain(lastMouseDown, now, action, 1, pointerProperties, pointerCoords, 0, buttons, 1f, 1f, 0, 0,
+ InputDevice.SOURCE_TOUCHSCREEN, 0);
return injectEvent(event);
}
@@ -124,13 +125,15 @@ public class EventController {
}
setPointerCoords(point);
setScroll(hScroll, vScroll);
- MotionEvent event = MotionEvent.obtain(lastMouseDown, now, MotionEvent.ACTION_SCROLL, 1, pointerProperties, pointerCoords, 0, 0, 1f, 1f, 0, 0, InputDevice.SOURCE_MOUSE, 0);
+ MotionEvent event = MotionEvent.obtain(lastMouseDown, now, MotionEvent.ACTION_SCROLL, 1, pointerProperties, pointerCoords, 0, 0, 1f, 1f, 0,
+ 0, InputDevice.SOURCE_MOUSE, 0);
return injectEvent(event);
}
private boolean injectKeyEvent(int action, int keyCode, int repeat, int metaState) {
long now = SystemClock.uptimeMillis();
- KeyEvent event = new KeyEvent(now, now, action, keyCode, repeat, metaState, KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD);
+ KeyEvent event = new KeyEvent(now, now, action, keyCode, repeat, metaState, KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0,
+ InputDevice.SOURCE_KEYBOARD);
return injectEvent(event);
}
|
snap: upgrade to v1.6.0 | name: fluent-bit
base: core18
-version: '1.5.0'
+version: '1.6.0'
summary: High performance logs and stream processor
description: |
Fluent Bit is a high performance log processor and stream processor for Linux.
It provides a flexible pluggable architecture to collect, enrich and deliver
logs or metrics to multiple databases or cloud providers.
license: 'Apache-2.0'
-icon: fluent-bit.svg
-grade: 'devel'
+icon: ./fluent-bit.svg
confinement: 'strict'
+grade: 'stable'
apps:
- fluent-bit:
- command: bin/fluent-bit
+ service:
+ command: fluent-bit -c $SNAP/etc/fluent-bit/fluent-bit.conf
daemon: simple
+ fluent-bit:
+ command: fluent-bit
parts:
fluent-bit:
@@ -43,3 +45,7 @@ parts:
- -DFLB_EXAMPLES=OFF
- -DFLB_SHARED_LIB=Off
- -DFLB_OUT_PGSQL=On
+
+layout:
+ /etc/fluent-bit:
+ bind: $SNAP/etc/fluent-bit
|
framework/wifi_utils: Registration of scan callback for each scanning
Register scan callback for every scanning trial, because slsi driver deregisters scan callback after finishing scanning | @@ -309,13 +309,18 @@ wifi_utils_result_e wifi_utils_deinit(void)
wifi_utils_result_e wifi_utils_scan_ap(void *arg)
{
wifi_utils_result_e wuret = WIFI_UTILS_FAIL;
- int8_t ret = WiFiScanNetwork();
+ int8_t ret = WiFiRegisterScanCallback(&wifi_scan_result_callback);
+ if (ret != SLSI_STATUS_SUCCESS) {
+ ndbg("[WU] [ERR] Register Scan Callback(%d)\n", ret);
+ return wuret;
+ }
+ ndbg("[WU] Register Scan Callback(%d)\n", ret);
+ ret = WiFiScanNetwork();
if (ret == SLSI_STATUS_SUCCESS) {
- ndbg("[WU] WiFi scan success(%d).", ret);
+ ndbg("[WU] WiFi scan success(%d)\n", ret);
wuret = WIFI_UTILS_SUCCESS;
- } else {
- ndbg("[WU] WiFi scan fail(%d).", ret);
}
+ ndbg("[WU] WiFi scan fail(%d)\n", ret);
return wuret;
}
|
only in Unity5 | @@ -25,6 +25,7 @@ namespace SLua
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
+ using System.Linq;
using System.IO;
using System;
using System.Reflection;
@@ -38,6 +39,7 @@ namespace SLua
public class LuaCodeGen : MonoBehaviour
{
static public string GenPath = SLuaSetting.Instance.UnityEngineGeneratePath;
+ static public string WrapperName = "sluaWrapper.dll";
public delegate void ExportGenericDelegate(Type t, string ns);
static bool autoRefresh = true;
@@ -76,7 +78,7 @@ namespace SLua
// Remind user to generate lua interface code
var remindGenerate = !EditorPrefs.HasKey("SLUA_REMIND_GENERTE_LUA_INTERFACE") || EditorPrefs.GetBool("SLUA_REMIND_GENERTE_LUA_INTERFACE");
- bool ok = System.IO.Directory.Exists(GenPath+"Unity");
+ bool ok = System.IO.Directory.Exists(GenPath + "Unity") || System.IO.File.Exists(GenPath + WrapperName);
if (!ok && remindGenerate)
{
if (EditorUtility.DisplayDialog("Slua", "Not found lua interface for Unity, generate it now?", "Generate", "No"))
@@ -455,13 +457,13 @@ namespace SLua
clear(new string[] { Path.GetDirectoryName(GenPath) });
Debug.Log("Clear all complete.");
}
-
+#if UNITY_5
[MenuItem("SLua/Compile LuaObject To DLL")]
static public void CompileDLL()
{
#region scripts
List<string> scripts = new List<string>();
- string[] guids = AssetDatabase.FindAssets("t:Script", new string[1] { Path.GetDirectoryName(GenPath) });
+ string[] guids = AssetDatabase.FindAssets("t:Script", new string[1] { Path.GetDirectoryName(GenPath) }).Distinct().ToArray();
int guidCount = guids.Length;
for (int i = 0; i < guidCount; i++)
{
@@ -486,9 +488,11 @@ namespace SLua
editorData += "/Frameworks";
#endif
libraries.Add(editorData + "/Managed/UnityEngine.dll");
+
libraries.Add(editorData + "/Mono/lib/mono/unity/System.Runtime.Serialization.dll");
libraries.Add(editorData + "/Mono/lib/mono/unity/System.Xml.Linq.dll");
libraries.Add(editorData + "/Mono/lib/mono/unity/System.Core.dll");
+
// reference other scripts in Project
if (File.Exists("Library/ScriptAssemblies/Assembly-CSharp-firstpass.dll"))
{
@@ -507,10 +511,9 @@ namespace SLua
#endregion
#region mono compile
- string dllFile = "sluaWrapper.dll";
List<string> arg = new List<string>();
arg.Add("/target:library");
- arg.Add(string.Format("/out:\"{0}\"", dllFile));
+ arg.Add(string.Format("/out:\"{0}\"", WrapperName));
arg.Add(string.Format("/r:\"{0}\"", string.Join(";", libraries.ToArray())));
arg.AddRange(scripts);
@@ -595,7 +598,7 @@ namespace SLua
{
Directory.Delete(GenPath, true);
Directory.CreateDirectory(GenPath);
- File.Move (dllFile, GenPath + dllFile);
+ File.Move (WrapperName, GenPath + WrapperName);
}
else
{
@@ -603,7 +606,7 @@ namespace SLua
}
File.Delete(ArgumentFile);
}
-
+#endif
static void clear(string[] paths)
{
try
|
nimble/drivers: Fix loop condition in nrf51 driver
This condition was suggesting that loop can break while om is NULL but
this loop breaks only when copied enough bytes and om is expected to
have enough space. | @@ -238,7 +238,7 @@ ble_phy_rxpdu_copy(uint8_t *dptr, struct os_mbuf *rxpdu)
om = rxpdu;
dst = om->om_data;
- while (om) {
+ while (true) {
/*
* Always copy blocks of length aligned to word size, only last mbuf
* will have remaining non-word size bytes appended.
|
Update signature for AtkResNode.SetPositionFloat | @@ -140,7 +140,7 @@ namespace FFXIVClientStructs.FFXIV.Component.GUI
[MemberFunction("48 85 C9 74 0B 8B 41 44")]
public partial void GetPositionFloat(float* outX, float* outY);
- [MemberFunction("E8 ? ? ? ? 8B 45 B8")]
+ [MemberFunction("E8 ?? ?? ?? ?? 48 83 C5 30")]
public partial void SetPositionFloat(float X, float Y);
[MemberFunction("E8 ? ? ? ? 49 83 C4 0C")]
|
libhfuzz: remove unnecessary read barrier | @@ -60,7 +60,6 @@ extern const char* const LIBHFUZZ_module_memorycmp;
extern const char* const LIBHFUZZ_module_instrument;
static void HonggfuzzRunOneInput(const uint8_t* buf, size_t len) {
instrument8BitCountersClear();
- rmb();
int ret = LLVMFuzzerTestOneInput(buf, len);
if (ret != 0) {
LOG_D("Dereferenced: %s, %s", LIBHFUZZ_module_memorycmp, LIBHFUZZ_module_instrument);
|
UI console: Restore tty settings, do not force ECHO after prompt
The Console UI method always set echo on after prompting without
echo. However, echo might not have been on originally, so just
restore the original TTY settings.
Fixes | @@ -503,17 +503,13 @@ static int echo_console(UI *ui)
{
# if defined(TTY_set) && !defined(OPENSSL_SYS_VMS)
memcpy(&(tty_new), &(tty_orig), sizeof(tty_orig));
- tty_new.TTY_FLAGS |= ECHO;
-# endif
-
-# if defined(TTY_set) && !defined(OPENSSL_SYS_VMS)
if (is_a_tty && (TTY_set(fileno(tty_in), &tty_new) == -1))
return 0;
# endif
# ifdef OPENSSL_SYS_VMS
if (is_a_tty) {
tty_new[0] = tty_orig[0];
- tty_new[1] = tty_orig[1] & ~TT$M_NOECHO;
+ tty_new[1] = tty_orig[1];
tty_new[2] = tty_orig[2];
status = sys$qiow(0, channel, IO$_SETMODE, &iosb, 0, 0, tty_new, 12,
0, 0, 0, 0);
@@ -534,7 +530,6 @@ static int echo_console(UI *ui)
# if defined(_WIN32) && !defined(_WIN32_WCE)
if (is_a_tty) {
tty_new = tty_orig;
- tty_new |= ENABLE_ECHO_INPUT;
SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), tty_new);
}
# endif
|
small fix to compiler options | @@ -10,7 +10,7 @@ local util = require 'titan-compiler.util'
local p = argparse('titan', 'Titan compiler')
p:argument('input', 'Input file.')
p:flag('--print-ast', 'Print the AST.')
-p:option('-o --output', 'Input file.')
+p:option('-o --output', 'Output file.')
local args = p:parse()
-- Work like assert, but don't print the stack trace
|
ixfr-out, fix to delete entries if too many before rename could go wrong. | @@ -1097,6 +1097,24 @@ static int ixfr_rename_it(struct zone* zone, const char* zfile, int oldnum,
return 1;
}
+/* delete if we have too many items in memory */
+static void ixfr_delete_memory_items(struct zone* zone, int dest_num_files)
+{
+ if(!zone->ixfr || !zone->ixfr->data)
+ return;
+ if(dest_num_files == (int)zone->ixfr->data->count)
+ return;
+ if(dest_num_files > (int)zone->ixfr->data->count) {
+ /* impossible, dest_num_files should be smaller */
+ return;
+ }
+
+ /* delete oldest ixfr, until we have dest_num_files entries */
+ while(dest_num_files < (int)zone->ixfr->data->count) {
+ zone_ixfr_remove_oldest(zone->ixfr);
+ }
+}
+
/* rename the ixfr files that need to change name */
static int ixfr_rename_files(struct zone* zone, const char* zfile,
int dest_num_files)
@@ -1410,6 +1428,9 @@ void ixfr_write_to_file(struct zone* zone, const char* zfile)
/* delete if we have more than we need */
ixfr_delete_superfluous_files(zone, zfile, dest_num_files);
+ /* delete if we have too much in memory */
+ ixfr_delete_memory_items(zone, dest_num_files);
+
/* rename the transfers that we have that already have a file */
if(!ixfr_rename_files(zone, zfile, dest_num_files))
return;
|
oc_cloud:persist cloudconf after deregistrations | @@ -232,13 +232,10 @@ cloud_deregistered_internal(oc_client_response_t *data)
cloud_api_param_t *p = (cloud_api_param_t *)data->user_data;
oc_cloud_context_t *ctx = p->ctx;
if (data->code >= OC_STATUS_SERVICE_UNAVAILABLE) {
- cloud_set_last_error(ctx, CLOUD_ERROR_CONNECT);
- ctx->store.status |= OC_CLOUD_FAILURE;
+ ctx->store.status = OC_CLOUD_DEREGISTERED;
} else if (data->code >= OC_STATUS_BAD_REQUEST) {
cloud_set_last_error(ctx, CLOUD_ERROR_RESPONSE);
ctx->store.status |= OC_CLOUD_FAILURE;
- } else {
- ctx->store.status = OC_CLOUD_DEREGISTERED;
}
ctx->store.cps = OC_CPS_READYTOREGISTER;
@@ -249,6 +246,8 @@ cloud_deregistered_internal(oc_client_response_t *data)
free_api_param(p);
ctx->store.status &= ~(OC_CLOUD_FAILURE | OC_CLOUD_DEREGISTERED);
+
+ cloud_store_dump_async(&ctx->store);
}
int
|
subproc: make threads detachable since we're no longer using pthread_join | @@ -490,7 +490,7 @@ bool subproc_runThread(honggfuzz_t* hfuzz, pthread_t* thread, void* (*thread_fun
pthread_attr_t attr;
pthread_attr_init(&attr);
- pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
+ pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
pthread_attr_setstacksize(&attr, _HF_PTHREAD_STACKSIZE);
pthread_attr_setguardsize(&attr, (size_t)sysconf(_SC_PAGESIZE));
|
Apply fix for Reference-LAPACK issue 394
reference to XERBLA extending beyond column 72, breaking builds with compilers that default to traditional punch card format | $ NPLUSONE
* ..
* .. External Subroutines ..
- EXTERNAL SCOPY, SLAORHR_COL_GETRFNP, SSCAL, STRSM, XERBLA
+ EXTERNAL SCOPY, SLAORHR_COL_GETRFNP, SSCAL, STRSM,
+ $XERBLA
* ..
* .. Intrinsic Functions ..
INTRINSIC MAX, MIN
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.