message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Fix some issues on BSD and Windows. | #include <stdio.h>
#include <string.h>
#include <sys/stat.h>
+#include <signal.h>
#ifdef JANET_APPLE
#include <AvailabilityMacros.h>
@@ -438,9 +439,11 @@ static Janet os_execute(int32_t argc, Janet *argv) {
janet_panic("expected at least 1 command line argument");
}
+ /* Optional stdio redirections */
+ JanetFile *new_... |
shm main UPDATE create SHM dir if needed | @@ -453,7 +453,7 @@ sr_shmmain_open(sr_shm_t *shm, int *created)
{
sr_error_info_t *err_info = NULL;
sr_main_shm_t *main_shm;
- char *shm_name = NULL;
+ char *shm_name = NULL, buf[128];
int creat = 0;
err_info = sr_path_main_shm(&shm_name);
@@ -470,6 +470,12 @@ sr_shmmain_open(sr_shm_t *shm, int *created)
return NULL;
... |
[ya] support DISTBUILD_RAM_DISK_PATH environment variable in pytest for further usage in yatest.common.get_param; [distbuild] RAMDISK -> DISTBUILD_RAM_DISK_PATH | @@ -767,6 +767,11 @@ class Ya(object):
self._test_params = {}
self._context = {}
self._test_metrics = {}
+
+ ram_disk_path = os.environ.get("DISTBUILD_RAM_DISK_PATH")
+ if ram_disk_path:
+ self._test_params["ram_disk_path"] = ram_disk_path
+
if test_params:
for p in test_params:
k, v = p.split("=", 1)
|
This is the right way to bind the parameter | @@ -13,5 +13,8 @@ Rectangle {
to: param.maxValue
value: param.value
inputMode: Dial.Vertical
+ onMoved: {
+ param.value = value;
+ }
}
}
\ No newline at end of file
|
add utils path to header search path in linux makefile, for log.h | @@ -99,7 +99,7 @@ flags = -std=gnu11 -O3 -DDFSTOOLS -DCHEATCOIN -DNDEBUG -g -lpthread -lcrypto -ls
all: xdag
xdag: $(sources) $(headers) Makefile
- gcc -o xdag $(sources) -DSHA256_USE_OPENSSL_TXFM -DSHA256_OPENSSL_MBLOCK -I$(SRCROOT) $(flags)
+ gcc -o xdag $(sources) -DSHA256_USE_OPENSSL_TXFM -DSHA256_OPENSSL_MBLOCK -I... |
remove unneeded lines from cma.c | @@ -78,9 +78,7 @@ static int __init cma_init(void)
dma_device = cma_device.this_device;
- dma_device->archdata.dma_coherent = true;
- set_dma_ops(dma_device, &arm_coherent_dma_ops);
- dma_device->archdata.dma_ops_setup = true;
+ dma_device->dma_ops = &arm_coherent_dma_ops;
dma_device->coherent_dma_mask = DMA_BIT_MASK(3... |
stream: remove unused timestamp field | @@ -16,7 +16,6 @@ package stream
import (
"sync"
- "time"
)
const (
@@ -24,30 +23,29 @@ const (
SubChannelSize = 250
)
-type TimestampedLine struct {
+type Record struct {
Line string
- Timestamp time.Time
EventLost bool
}
type GadgetStream struct {
mu sync.RWMutex
- previousLines []TimestampedLine
+ previousLines []Re... |
99-com.rules: fix error invalid substitution type
fix below error:
/etc/udev/rules.d/99-com.rules:10 Invalid value "/bin/sh -c
'ALIASES=/proc/device-tree/aliases; if cmp -s $ALIASES/uart0
$ALIASES/serial0; then echo 0;elif cmp -s $ALIASES/uart0
$ALIASES/serial1; then echo 1; else exit 1; fi'" for PROGRAM (char 58:
inva... | KERNEL=="ttyAMA[01]", PROGRAM="/bin/sh -c '\
ALIASES=/proc/device-tree/aliases; \
- if cmp -s $ALIASES/uart0 $ALIASES/serial0; then \
+ if cmp -s $$ALIASES/uart0 $$ALIASES/serial0; then \
echo 0;\
- elif cmp -s $ALIASES/uart0 $ALIASES/serial1; then \
+ elif cmp -s $$ALIASES/uart0 $$ALIASES/serial1; then \
echo 1; \
els... |
Fix typo in struct typedef.
This worked because the type is never declared as struct ExecPub. | @@ -27,7 +27,7 @@ Exec *execNew(const String *command, const StringList *param, const String *name
/***********************************************************************************************************************************
Getters/Setters
************************************************************************... |
remove munmap from dac-player.c | @@ -76,9 +76,5 @@ int main(int argc, char *argv[])
for(i = 0; i < size / 8; ++i) *dac = buffer[i];
}
- munmap(cfg, sysconf(_SC_PAGESIZE));
- munmap(sts, sysconf(_SC_PAGESIZE));
- munmap(dac, sysconf(_SC_PAGESIZE));
-
return EXIT_SUCCESS;
}
|
Added macOS 12 Ventura. | @@ -213,7 +213,9 @@ get_real_win (const char *win) {
* returned. */
static char *
get_real_mac_osx (const char *osx) {
- if (strstr (osx, "12.0"))
+ if (strstr (osx, "13.0"))
+ return alloc_string ("macOS 12 Ventura");
+ else if (strstr (osx, "12.0"))
return alloc_string ("macOS 12 Monterey");
else if (strstr (osx, "11... |
symtrack: adding edge case test for invalid excess bandwidth factor | @@ -120,6 +120,7 @@ void autotest_symtrack_cccf_config()
//CONTEND_ISNULL(symtrack_cccf_create(LIQUID_FIRFILT_UNKNOWN, 2, 12, 0.25f, LIQUID_MODEM_QPSK));
CONTEND_ISNULL(symtrack_cccf_create(LIQUID_FIRFILT_RRC, 1, 12, 0.25f, LIQUID_MODEM_QPSK));
CONTEND_ISNULL(symtrack_cccf_create(LIQUID_FIRFILT_RRC, 2, 0, 0.25f, LIQUID... |
Use POSIX2001 clock.gettime for higher resolution | @@ -128,8 +128,13 @@ int main(int argc, char *argv[]){
int to = 200;
int step = 1;
+#if defined(__WIN32__) || defined(__WIN64__) || !defined(_POSIX_TIMERS)
struct timeval start, stop;
double time1,timeg;
+#else
+ struct timespec start = { 0, 0 }, stop = { 0, 0 };
+ double time1, timeg;
+#endif
argc--;argv++;
@@ -160,26... |
Add warning about time on very low TTL's. | @@ -89,6 +89,9 @@ of seconds in 30 days); if the number sent by a client is larger than
that, the server will consider it to be real Unix time value rather
than an offset from current time.
+Note that a TTL of 1 will sometimes immediately expire. Time is internally
+updated on second boundaries, which makes expiration ... |
sdl: video: Add Window.SetResizable() | @@ -411,6 +411,15 @@ func (window *Window) GetPosition() (x, y int) {
return int(_x), int(_y)
}
+// Window (https://wiki.libsdl.org/SDL_SetWindowResizable)
+func (window *Window) SetResizable(resizable bool) {
+ var _resizable C.SDL_bool = C.SDL_FALSE
+ if resizable {
+ _resizable = C.SDL_TRUE
+ }
+ C.SDL_SetWindowResi... |
Add device count print from target as host | #include <stdio.h>
+#include <omp.h>
int arr[100];
int nt =12;
int main()
{
+ fprintf(stderr, "Omp host get_num_devices %d\n", omp_get_num_devices());
#pragma omp target teams distribute parallel for num_threads(nt)
for (int i=0; i<100;i++)
arr[i] =i;
|
Fix too strict checks of ossl_cmp_calc_protection() | @@ -26,8 +26,8 @@ DEFINE_STACK_OF(X509)
* Calculate protection for given PKImessage utilizing the given credentials
* and the algorithm parameters set inside the message header's protectionAlg.
*
- * Either secret or pkey must be set, the other must be NULL. Attempts doing
- * PBMAC in case 'secret' is set and signatur... |
AMTRELAY also in python bindings | case LDNS_RDF_TYPE_EUI64: return "EUI64";
case LDNS_RDF_TYPE_TAG: return "TAG";
case LDNS_RDF_TYPE_LONG_STR: return "LONG_STR";
+ case LDNS_RDF_TYPE_AMTRELAY: return "AMTRELAY";
case LDNS_RDF_TYPE_CERTIFICATE_USAGE:
return "CERTIFICATE_USAGE";
case LDNS_RDF_TYPE_SELECTOR: return "SELECTOR";
|
partition_table: Fix encoding for Python 2.7.3
struct.pack can handle Unicode argument in latest Python 2.7 but cannot
(at least) in 2.7.3. | @@ -355,7 +355,7 @@ class PartitionDefinition(object):
if self.name in all_subtype_names and SUBTYPES.get(self.type, {}).get(self.name, "") != self.subtype:
critical("WARNING: Partition has name '%s' which is a partition subtype, but this partition has non-matching type 0x%x and subtype 0x%x. Mistake in partition table... |
news: add release notes | @@ -345,7 +345,7 @@ This section keeps you up-to-date with the multi-language support provided by El
- <<TODO>>
- <<TODO>>
- <<TODO>>
-- <<TODO>>
+- Many small fixes to adapt to documentation guidelines and new decision process. _(Markus Raab)_
- <<TODO>>
- <<TODO>>
- <<TODO>>
|
Have writeCtorSignature return an error.
It's redundant, but consistent with all of the other writeXxx methods. | @@ -446,7 +446,7 @@ func (g *gen) writeStruct(n *a.Struct) error {
return nil
}
-func (g *gen) writeCtorSignature(n *a.Struct, public bool, ctor bool) {
+func (g *gen) writeCtorSignature(n *a.Struct, public bool, ctor bool) error {
structName := n.Name().String(g.tm)
ctorName := "destructor"
if ctor {
@@ -465,6 +465,7 ... |
apps/bletiny: Handle identity resolved event | @@ -1013,6 +1013,13 @@ bletiny_gap_event(struct ble_gap_event *event, void *arg)
event->mtu.value);
return 0;
+ case BLE_GAP_EVENT_IDENTITY_RESOLVED:
+ console_printf("identity resolved ");
+ rc = ble_gap_conn_find(event->identity_resolved.conn_handle, &desc);
+ assert(rc == 0);
+ print_conn_desc(&desc);
+ return 0;
+
... |
[arch][arm64] Fix barriers in startup code
After a TLBI instruction the right thing to do is to execute DSB
followed by ISB. DSB ensures that the TLBI is seen by all observers of
the system and ISB ensures that the DSB has finished before continuing. | @@ -286,8 +286,8 @@ arm_reset:
/* Invalidate TLB */
tlbi vmalle1is
- isb
dsb sy
+ isb
/* Initialize Memory Attribute Indirection Register */
ldr tmp, =MMU_MAIR_VAL
@@ -331,6 +331,7 @@ arm_reset:
/* Invalidate TLB */
tlbi vmalle1
+ dsb sy
isb
#if WITH_SMP
|
BugID:16851775: Add a constant to indicate the partitions amount for mk3080 | @@ -70,6 +70,9 @@ const hal_logic_partition_t hal_partitions[] =
},
};
+/* Declare a constant to indicate the defined partitions amount */
+const size_t hal_partitions_amount = (sizeof(hal_partitions)/sizeof(hal_logic_partition_t));
+
#define KEY_AWSS 12
static uint64_t awss_time = 0;
|
admin/ohpc-release: updating for use with leap15 and centos8 major distro versions | %if 0%{?centos_version} || 0%{?rhel_version}
%if 0%{?centos_version} == 700
-%define disttag .el7
+%define disttag .el8
%endif
%endif
%if 0%{?sles_version} || 0%{?suse_version}
%if 0%{?suse_version} == 1315
-%define disttag .sle12
+%define disttag .leap15
%endif
%endif
Summary: OpenHPC release files
Name: ohpc-release
... |
pppos_client: Fix power_down dce immediately after got IP
This was accidently commited bug when convert to use esp-netif, fix it.
Fixes: ("pppos_client: udated example code to use esp-netif in PPP configuration")
Merges | @@ -263,7 +263,6 @@ void app_main(void)
esp_netif_attach(esp_netif, modem_netif_adapter);
/* Wait for IP address */
xEventGroupWaitBits(event_group, CONNECT_BIT, pdTRUE, pdTRUE, portMAX_DELAY);
- ESP_ERROR_CHECK(dce->power_down(dce));
/* Config MQTT */
esp_mqtt_client_config_t mqtt_config = {
.uri = BROKER_URL,
|
test/hooks.c: Format with clang-format
BRANCH=none
TEST=none | @@ -62,9 +62,7 @@ static void non_deferred_func(void)
deferred_call_count++;
}
-static const struct deferred_data non_deferred_func_data = {
- non_deferred_func
-};
+static const struct deferred_data non_deferred_func_data = { non_deferred_func };
static int test_init_hook(void)
{
@@ -85,8 +83,7 @@ static int test_tick... |
fix GYRO_FACTOR | #include <sensor_msgs/BatteryState.h>
#include <sensor_msgs/MagneticField.h>
-#define ACCEL_FACTOR -0.000598 // 2.0 * -9.8 / 32768
-#define GYRO_FACTOR 0.000133 // pi / (131 * 180)
+#define ACCEL_FACTOR -0.000598 // 2.0 * -9.8 / 32768 adc * 2/32768 = g
+#define GYRO_FACTOR 0.000133 // pi / (131 * 180) adc * 1/16.4 = de... |
Clear music cache from memory if cache music folder does not exist
Finaly rebuilds music tracks if you empty cache folder with button or manualy | @@ -29,6 +29,9 @@ const compileMusic = async ({
const cacheRoot = Path.normalize(`${getTmp()}/_gbscache/music`);
const buildToolsVersion = await readFile(`${buildToolsPath}/tools_version`, "utf8");
+ if(!await pathExists(`${buildRoot}/src/music`)) {
+ trackBuildCache = {}; // Clear memory copy of chache music
+ }
await... |
[build] prefer pkg-config for postgres (fixes
x-ref:
"pg_config is deprecated to build postgres client applications" | @@ -303,11 +303,16 @@ PGSQL_LIBS=
if test "$WITH_PGSQL" != no; then
if test "$WITH_PGSQL" = yes; then
+ PKG_CHECK_MODULES([PGSQL],[libpq],[
+ PGSQL_CONFIG=$PKG_CONFIG
+ ],[
AC_PATH_PROG([PGSQL_CONFIG], [pg_config])
+ ])
else
PGSQL_CONFIG=$WITH_PGSQL
fi
+ if test "$PGSQL_CONFIG" != "$PKG_CONFIG"; then
if test -z "$PGSQL... |
[ctr/lua] rebase and master change apply | @@ -37,12 +37,12 @@ func init() {
func getContractState(t *testing.T) *state.ContractState {
aid, _ := base58.Decode(accountId)
- state, err := sdb.GetAccountStateClone(types.ToAccountID(aid))
+ accountState, err := sdb.GetAccountStateClone(types.ToAccountID(aid))
if err != nil {
t.Errorf("getAccount error : %s\n", err... |
LEDC: fix bit error in ledc_struct.h | @@ -30,8 +30,7 @@ typedef volatile struct {
uint32_t ovf_cnt_en: 1;
uint32_t ovf_cnt_rst: 1;
uint32_t ovf_cnt_rst_st: 1;
- uint32_t reserved18: 13;
- uint32_t clk_en: 1; /*This bit is clock gating control signal. when software configure LED_PWM internal registers it controls the register clock.*/
+ uint32_t reserved18:... |
Link coding conventions to wiki page
[ci skip] | @@ -138,60 +138,4 @@ To reformat Python code:
Python scripts should be written to be compatible with both Python 2
and Python 3.
-The OpenCores guidelines give a good set of rules for SystemVerilog sources,
-which this project generally follows (with some exceptions, which should be
-obvious)
-
-http://cdn.opencores.or... |
STORE: Add info on the expected post_process callback behavior | @@ -55,6 +55,10 @@ The given B<ui_method> and B<ui_data_data> will be reused by all
functions that use B<OSSL_STORE_CTX> when interaction is needed.
The given B<post_process> and B<post_process_data> will be reused by
OSSL_STORE_load() to manipulate or drop the value to be returned.
+The B<post_process> function drops ... |
[io] replace the file if it exists | @@ -42,7 +42,7 @@ import time
import getopt
import random
import h5py
-
+import os
class FrictionContactTraceParams():
def __init__(self, dump_itermax=10, dump_probability=None, fileName="filename", title = "title", description = "description", mathInfo= "mathInfo"):
@@ -136,6 +136,10 @@ class FrictionContactTrace(Fric... |
Update device list in ReadMe
JerryScript-DCO-1.0-Signed-off-by: Daniella Barsony | @@ -22,11 +22,10 @@ Additional information can be found on our [project page](http://jerryscript.net
Memory usage and Binary footprint are measured at [here](https://jerryscript-project.github.io/jerryscript-test-results) with real target daily.
-The following table shows the latest results on the devices:
+The latest ... |
doc: PG 13 relnotes: add documentation section and reformat
Add section about function table reformatting. | @@ -2331,7 +2331,7 @@ Use the directory of the pg_upgrade binary as the default new 'bindir' location
</sect3>
<sect3>
- <title>Source Code</title>
+ <title>Documentation</title>
<itemizedlist>
@@ -2347,6 +2347,27 @@ Add a glossary to the documentation (Corey Huinker, Jürgen Purtz, Roger Har
</listitem>
+<listitem... |
Water images now fill the screen below the horizon.
Improved the controls for joystick and D-pad. | @@ -154,7 +154,11 @@ void render(uint32_t time_ms) {
screen.alpha = 55;
- screen.blit(water, Rect(0, 0, 64, 64), Point(0, 50));
+ for (uint8_t y = 50; y < 120; y += 64) {
+ for (uint8_t x = 0; x < 160; x += 64) {
+ screen.blit(water, Rect(0, 0, 64, 64), Point(x, y));
+ }
+ }
mode7(&screen, sprites, &map.layers["ground"... |
Log warning when using outgoing-port-permit and outgoing-port-avoid
while explicit port randomisation is disabled. | @@ -1530,6 +1530,11 @@ int
cfg_mark_ports(const char* str, int allow, int* avail, int num)
{
char* mid = strchr(str, '-');
+#ifdef DISABLE_EXPLICIT_PORT_RANDOMISATION
+ log_warn("Explicit port randomisation disabled, ignoring "
+ "outgoing-port-permit and outgoing-port-avoid configuration "
+ "options");
+#endif
if(!mi... |
pic32: Stop COUNTER when debugger stops
COUNTER used for tick timer now stops when execution
is stopped by debugger. | @@ -194,6 +194,9 @@ os_arch_os_init(void)
/* vector spacing 0x20 */
_CP0_SET_INTCTL(_CP0_GET_INTCTL() | (1 << _CP0_INTCTL_VS_POSITION));
+ /* Stop core timer while debugger stops */
+ _CP0_BIC_DEBUG(_CP0_DEBUG_COUNTDM_MASK);
+
/* enable core timer interrupt */
IEC0SET = _IEC0_CTIE_MASK;
/* set interrupt priority */
|
Fix FSCMD_OUTPUT usage mistake
INVALID_ARGS, MISSING_ARGS use only one arg | @@ -171,13 +171,13 @@ static int tash_cat(int argc, char **args)
}
if (argc < 2) {
- FSCMD_OUTPUT(MISSING_ARGS, " : [> or >>] [file] [contents]\n", args[0]);
+ FSCMD_OUTPUT(MISSING_ARGS " : [> or >>] [file] [contents]\n", args[0]);
return 0;
} else if (argc == 2) {
/* Below is basic case, cat <filepath> */
if (directio... |
[lr] fix file_attr is dir | @@ -201,6 +201,7 @@ short file_attr(const OEMCHAR *path) {
if(path_is_directory(path)) {
OEMCHAR testpath[MAX_PATH];
+ attr |= FILEATTR_DIRECTORY;
file_cpyname(testpath, MAX_PATH, path);
file_catname(testpath, "/_np2test", MAX_PATH);
fh = file_create(path);
|
misc: configurator: validate user settings before writing down
After clicking save button, validate settings before writing down
scenario.xml, otherwise broken scenario.xml will be generated. | @@ -342,13 +342,13 @@ export default {
let errorFlag = false
errorFlag = this.confirmVmName()
this.assignVMID()
- let msg = ["Scenario xml saved\n",
- ".xml settings validated\n",
+ let msg = [ "Settings validated\n",
+ "scenario xml saved\n",
"launch scripts generated\n"];
- let errmsg = ["Scenario xml save failed\n",... |
Fix exactTitle | @@ -143,6 +143,7 @@ public class DatafariUpdateProcessor extends UpdateRequestProcessor {
language = "en";
}
doc.addField("title_" + language, filename);
+ doc.addField("exactTitle", filename);
String extension = "";
String mime = "";
|
Add rounding to aq offsets. Fix typo | @@ -333,13 +333,13 @@ void kvz_set_lcu_lambda_and_qp(encoder_state_t * const state,
pos.y + state->tile->lcu_offset_y
};
int id = lcu.x + lcu.y * state->tile->frame->width_in_lcu;
- int aq_offset = (int)state->frame->aq_offsets[id]; // TODO: Number stored in aq_offsets may need rounding
+ int aq_offset = round(state->f... |
Configuration: ensure that 'no-tests' works correctly
'no-tests' wasn't entirely respected when specifying subdirs in the
top build.info. | # Note that some of these directories are filtered in Configure. Look for
# %skipdir there for further explanations.
-SUBDIRS=crypto ssl apps test util tools fuzz providers doc
+SUBDIRS=crypto ssl apps util tools fuzz providers doc
+IF[{- !$disabled{tests} -}]
+ SUBDIRS=test
+ENDIF
IF[{- !$disabled{'deprecated-3.0'} -}... |
Fixed missing node install packet und bumped homebridge hue version to 0.11.37 | #!/bin/bash
UPDATE_VERSION_HB="0.4.50"
-UPDATE_VERSION_HB_HUE="0.11.28"
-UPDATE_VERSION_HB_LIB="4.2.7"
+UPDATE_VERSION_HB_HUE="0.11.37"
+UPDATE_VERSION_HB_LIB="4.4.4"
UPDATE_VERSION_NPM="6.9.0"
-UPDATE_VERSION_NODE="10.16.0"
+UPDATE_VERSION_NODE="10.16.3"
# use install name to install the specific node version via apt.... |
cmake: mark more variables as internal | @@ -453,10 +453,11 @@ set(DISCLAMER "
MARK_AS_ADVANCED(FORCE
- # might be relevant to users:
+ # might be relevant to a few users:
GTEST_ROOT
COVERAGE_PREFIX
- Boost_DIR
+ CMAKE_PIC_FLAGS
+ CMAKE_STATIC_FLAGS
# are kind of internal:
SWIG_DIR SWIG_EXECUTABLE SWIG_VERSION
@@ -480,4 +481,11 @@ MARK_AS_ADVANCED(FORCE
Qt5Te... |
twai: Fix size of RX msg count field on the esp32
This commit fixes the size of the RX message count register field
on the esp32. | @@ -183,8 +183,8 @@ typedef volatile struct twai_dev_s {
//Misc Registers
union {
struct {
- uint32_t rmc: 5; /* RMC[4:0] RX Message Counter */
- uint32_t reserved27: 27; /* Internal Reserved */
+ uint32_t rmc: 7; /* RMC[6:0] RX Message Counter */
+ uint32_t reserved25: 25; /* Internal Reserved */
};
uint32_t val;
} rx... |
OpenCanopy: Apply intro animation to the BootPicker container
May improve performance with an overfull list. Implicitly fixes a regression where the default entry may end up being cut off. | @@ -1528,9 +1528,9 @@ InitBpAnimIntro (
mBpAnimInfoSinMove.EndValue = 35;
//
// FIXME: This assumes that only relative changes of X are performed on
- // mBootPicker between animation initialisation and start.
+ // mBootPickerContainer between animation initialisation and start.
//
- mBootPicker.Hdr.Obj.OffsetX += 35;
... |
Fixed the plugin config read size to account for a null terminator. | @@ -323,7 +323,7 @@ STATIC int process_plugin(const char *name, json_object *j_config)
return 1;
}
- cfg->cfg_size = strlen(stringified);
+ cfg->cfg_size = strlen(stringified) + 1;
cfg->cfg = malloc(cfg->cfg_size);
if (!cfg->cfg) {
OPAE_ERR("error allocating memory for plugin configuration");
|
Add 2k3 version removed with commit | @@ -17,6 +17,7 @@ extern ULONG WindowsVersion;
#define WINDOWS_ANCIENT 0
#define WINDOWS_XP 51 // August, 2001
+#define WINDOWS_SERVER_2003 52 // April, 2003
#define WINDOWS_VISTA 60 // November, 2006
#define WINDOWS_7 61 // July, 2009
#define WINDOWS_8 62 // August, 2012
|
[mod_mbedtls] restore ALPN chk after client hello
(removed two commits ago)
must check selected ALPN after client hello has completed
for case where hctx->conf.ssl_acme_tls_1 is not enabled
or else ALPN "h2" will not be detected | @@ -1063,6 +1063,48 @@ mod_mbedtls_acme_tls_1 (handler_ctx *hctx)
#endif
+static int
+mod_mbedtls_alpn_selected (handler_ctx * const hctx, const char * const in)
+{
+ const int n = (int)strlen(in);
+ const int i = 0;
+ unsigned short proto;
+
+ switch (n) {
+ case 2: /* "h2" */
+ if (in[i] == 'h' && in[i+1] == '2') {
+... |
Fix for minor versions | @@ -16,7 +16,7 @@ from __future__ import annotations
from UIKit import UIDevice, UIFont as __UIFont__, UIImage as UIImage
from rubicon.objc import ObjCClass, CGFloat, objc_method
-if UIDevice != None and float(str(UIDevice.currentDevice.systemVersion)) < 13:
+if UIDevice != None and int(str(UIDevice.currentDevice.syste... |
Add ccache and python-termcolor to bootstrap | @@ -69,7 +69,7 @@ echo -e "Using DPDK version $cc${DPDK_VSN}$nn"
echo
# Download libraries
-sudo apt-get update && sudo apt-get -y install g++ automake libtool libgc-dev bison flex libfl-dev libgmp-dev libboost-dev libboost-iostreams-dev pkg-config python python-scapy python-ipaddr tcpdump cmake python-setuptools libpr... |
skip profiling if we don't yet have an arvo kernel | @@ -578,6 +578,12 @@ u3t_boot(void)
if ( u3C.wag_w & u3o_debug_cpu ) {
_ct_lop_o = c3n;
#if defined(U3_OS_osx) || defined(U3_OS_linux)
+ // skip profiling if we don't yet have an arvo kernel
+ //
+ if ( 0 == u3A->roc ) {
+ return;
+ }
+
// Register _ct_sigaction to be called on `SIGPROF`.
{
struct sigaction sig_s = {{0... |
RTX5: minor enhancements in configuration | * -----------------------------------------------------------------------------
*/
+#include "cmsis_compiler.h"
#include "rtx_os.h"
#include "RTX_Config.h"
@@ -325,6 +326,7 @@ __attribute__((section(".bss.os.msgqueue.mem")));
// OS Configuration
// ================
+__USED
__attribute__((section(".rodata")))
const osRt... |
OcAcpiLib: Fix ACPI patch failure after first missed base lookup | @@ -1181,19 +1181,21 @@ AcpiApplyPatch (
&BaseOffset,
Context->Dsdt->Length
);
- if (EFI_ERROR (Status)) {
+ if (!EFI_ERROR (Status)) {
+ ReplaceLimit = MIN (ReplaceLimit, Context->Dsdt->Length - BaseOffset);
+ } else {
DEBUG ((
DEBUG_INFO,
"OCA: Patching DSDT of %u bytes failed to find base %a\n",
Context->Dsdt->Lengt... |
Note about need for keymaps with no pad at a matrix location. | @@ -27,6 +27,7 @@ Basic WIP website to learn more: https://zmk.netlify.app/
- Encoders
- Battery reporting.
- Low power mode, with wakeup from interrupt?
+- Better keymaps to avoid needing extra KC_NO for locations in the matrix that don't even exist!
## Long Term
|
acrn-config: fix the bug of resolved nested mmio address
Multiple devices could be nested under the same range. Skip remove if
the device is removed already | @@ -165,6 +165,8 @@ def removed_nested(list1, list2):
for w1 in resolvedList:
for w2 in list2:
if w2.start <= w1.start <= w2.end and w2.start <= w1.end <= w2.end:
+ if w1 not in resolvedList:
+ continue
resolvedList.remove(w1)
return sorted(resolvedList)
|
Move duplicated behaviour in get_files to own function | @@ -290,26 +290,20 @@ class CodeParser():
# exclude_wildcards may be None. Also, consider the global exclusions.
exclude_wildcards = (exclude_wildcards or []) + self.excluded_files
- # Perform set union on the glob results. Memoise individual sets.
- for include_wildcard in include_wildcards:
- if include_wildcard not ... |
sysdeps/managarm: Add support for POLLHUP | @@ -987,6 +987,8 @@ int sys_poll(struct pollfd *fds, nfds_t count, int timeout, int *num_events) {
fds[i].revents |= POLLIN;
if(resp.events(i) & EPOLLOUT)
fds[i].revents |= POLLOUT;
+ if(resp.events(i) & EPOLLHUP)
+ fds[i].revents |= POLLHUP;
}
*num_events = m;
|
Remove tabs, and fix Py3 syntax error | @@ -21,7 +21,7 @@ def check(status, cosmo=None):
# Check for known error status
if status in pyccl.core.error_types.keys():
- raise RuntimeError , "Error %s: %s" % (pyccl.core.error_types[status], msg)
+ raise RuntimeError("Error %s: %s" % (pyccl.core.error_types[status], msg))
# Check for unknown error
if status != 0:... |
hash: fix hash_delete_free to check input parameters | @@ -707,6 +707,9 @@ int hash_alloc_insert(hash_t *hash, const void *key, const void *data)
void hash_delete_free(hash_t *hash, hnode_t *node)
{
+ if (node == NULL || hash == NULL)
+ return;
+
hash_delete(hash, node);
hash->freenode(node, hash->context);
}
|
filter_kubernetes: raise an error if TLS is not supported | #include <fluent-bit/flb_filter.h>
#include <fluent-bit/flb_hash.h>
+#ifndef FLB_HAVE_TLS
+#error "Fluent Bit was built without TLS support"
+#endif
+
#include "kube_meta.h"
#include "kube_conf.h"
|
move group lists out of test_key_exchange() in preparation for reuse | @@ -4487,19 +4487,19 @@ static int test_ciphersuite_change(void)
* Test 12 = Test all ECDHE with TLSv1.2 client and server
* Test 13 = Test all FFDHE with TLSv1.2 client and server
*/
-static int test_key_exchange(int idx)
-{
- SSL_CTX *sctx = NULL, *cctx = NULL;
- SSL *serverssl = NULL, *clientssl = NULL;
- int testre... |
jenkins: do not use hardcoded path | @@ -567,7 +567,7 @@ def buildFormatChecks() {
tail -n +3 '../tests/shell/check_formatting.sh' > './check_formatting.sh'
chmod +x ./check_formatting.sh"""
}
- sh "tmp/check_formatting.sh"
+ sh "${tmpDir}/check_formatting.sh"
dir(tmpDir) {
deleteDir()
}
|
Fix pylint warnings in JTAG runtest
[ci skip] | @@ -20,7 +20,6 @@ import subprocess
import sys
import time
import struct
-import os
from threading import Thread
sys.path.insert(0, '..')
@@ -60,6 +59,7 @@ class JTAGTestFixture(object):
self.sock = None
self.output = ''
self.reader_thread = None
+ self.last_response = 0
def __enter__(self):
verilator_args = [
@@ -73,7... |
Prepare clap 0.24.0 | @@ -21,7 +21,7 @@ typedef struct clap_version {
#endif
static CLAP_CONSTEXPR const uint32_t CLAP_VERSION_MAJOR = 0;
-static CLAP_CONSTEXPR const uint32_t CLAP_VERSION_MINOR = 23;
+static CLAP_CONSTEXPR const uint32_t CLAP_VERSION_MINOR = 24;
static CLAP_CONSTEXPR const uint32_t CLAP_VERSION_REVISION = 0;
static CLAP_CO... |
build_extras.sh - Add CMAKE_PREFIX_PATH to detect device libs in build directory instead of install directory. | @@ -113,7 +113,7 @@ if [ "$1" != "nocmake" ] && [ "$1" != "install" ] ; then
fi
if [ $AOMP_STANDALONE_BUILD == 1 ] ; then
- MYCMAKEOPTS="-DLLVM_DIR=$LLVM_DIR $AOMP_ORIGIN_RPATH -DCMAKE_BUILD_TYPE=$BUILDTYPE -DCMAKE_INSTALL_PREFIX=$INSTALL_EXTRAS -DROCM_DIR=$ROCM_DIR -DAOMP_STANDALONE_BUILD=$AOMP_STANDALONE_BUILD -DAOMP... |
BugId:17768313:modified the developerkit board to support dual bank ota | @@ -79,6 +79,7 @@ ifeq ($(AOS_DEVELOPERKIT_ENABLE_OTA),1)
GLOBAL_LDFLAGS += -T board/developerkit/STM32L496VGTx_FLASH_OTA.ld
GLOBAL_DEFINES += VECT_TAB_OFFSET=0x4000
GLOBAL_DEFINES += USING_FLAT_FLASH
+GLOBAL_DEFINES += AOS_OTA_BANK_DUAL
else
ifeq ($(MBINS),)
GLOBAL_LDFLAGS += -T board/developerkit/STM32L496VGTx_FLASH.... |
List directory. | @@ -15,6 +15,8 @@ jobs:
with:
command: 'init'
command-args: '-l .'
+ - name: list files
+ run: 'ls ../'
- name: West Update
uses: ./.github/actions/zephyr-west # Uses an action in the root directory
id: west-update
|
Metar: fix test | @@ -125,16 +125,14 @@ static string evaluate_string(grib_expression* g, grib_handle* h, char* buf, siz
start += *size;
if (e->length != 0) {
- if (start > 0)
+ if (start >= 0)
memcpy(buf, mybuf + start, e->length);
buf[e->length] = 0;
}
else {
- if (*size > 0) {
memcpy(buf, mybuf, *size);
if (*size == 1024)
*size = *si... |
[ivshmem] marked the device registers as volatile | @@ -5,11 +5,11 @@ EXTERN_C_START
#pragma align(push,4)
typedef struct IVSHMEMDeviceRegisters
{
- UINT32 irqMask;
- UINT32 irqStatus;
- INT32 ivProvision;
- UINT32 doorbell;
- UINT8 reserved[240];
+ volatile UINT32 irqMask;
+ volatile UINT32 irqStatus;
+ volatile INT32 ivProvision;
+ volatile UINT32 doorbell;
+ volatile... |
fixed more tutorial line numbers | @@ -161,7 +161,7 @@ when certain events occur. We will use that next to tell which function we
want NEAT to call when a client connects:
``` embed:: language::c
-../examples/minimal_server.c:55-56
+../examples/minimal_server.c:63-66
```
The function `on_connected` has not been defined yet, we will do that later.
@@ -16... |
docs: secure-boot-v2: add a section about secure padding | @@ -111,7 +111,7 @@ The Secure Boot V2 process follows these steps:
Signature Block Format
----------------------
-The bootloader and application images are padded to the next 4096 byte boundary, thus the signature has a flash sector of its own. The signature is calculated over all bytes in the image including the padd... |
Build: Only set variable if module exists | @@ -55,9 +55,12 @@ if (INSTALL_SYSTEM_FILES)
set (FISH_COMPLETION_COMPLETIONSDIR "/usr/share/fish/vendor_completions.d")
find_package (PkgConfig)
if (PKG_CONFIG_FOUND)
+ pkg_check_modules (FISH_FOUND fish QUIET)
+ if (FISH_FOUND)
include (LibFindMacros)
pkg_get_variable (FISH_COMPLETION_COMPLETIONSDIR fish completionsd... |
Added fpgainfo errors.c test cases. | @@ -184,7 +184,7 @@ static struct errors_config {
bool clear;
int force_count;
enum verbs_index which;
- int help_only;
+ bool help_only;
} errors_config = {.clear = false, .which = VERB_ALL, .help_only = false};
/*
|
cachefilter: add logging | #include <kdberrors.h>
#include <kdbhelper.h>
+#include <kdblogger.h>
+
int elektraCachefilterGet (Plugin * handle, KeySet * returned, Key * parentKey)
{
@@ -32,6 +34,7 @@ int elektraCachefilterGet (Plugin * handle, KeySet * returned, Key * parentKey)
return 1; // success
}
+ ELEKTRA_LOG ("cachefilter get %s start %zd"... |
CI: Add dependency "fast_template_app" to build jobs | # build-related-pre-check-jobs ------------------------------------------------
# Build at least one project for each target at earliest stage to reduce build cost for obvious failing commits
fast_template_app:
- extends: .build_template_app_template
+ extends:
+ - .build_template_app_template
+ - .rules:build_tests:ta... |
SetupTool: Increase service timeout | @@ -348,7 +348,7 @@ VOID SetupStopService(
{
if (status.dwCurrentState != SERVICE_STOPPED)
{
- ULONG attempts = 10;
+ ULONG attempts = 60;
do
{
|
sysrepo DOC subscr_enabled flag thread clarification | @@ -361,7 +361,8 @@ typedef enum {
* @brief The subscriber wants to be notified about the current configuration at the moment of subscribing.
* It will receive ::SR_EV_ENABLED event, whose applying can fail causing the whole subscription to fail.
* On success this event will be followed by ::SR_EV_DONE. Be careful, ::S... |
Added is connected check | @@ -70,7 +70,7 @@ struct mqtt_client;
* \brief State of MQTT client
*/
typedef enum {
- MQTT_CONN_DISCONNECTED, /*!< Connection with server is not established */
+ MQTT_CONN_DISCONNECTED = 0x00, /*!< Connection with server is not established */
MQTT_CONN_CONNECTING, /*!< Client is connecting to server */
MQTT_CONN_DISC... |
docs: xcat stateful updates | @@ -6,6 +6,10 @@ that will be hosted by the {\em master} host in this example configuration.
% begin_ohpc_run
% ohpc_comment_header Customize system configuration \ref{sec:master_customization}
\begin{lstlisting}[language=bash,literate={-}{-}1,keywords={},upquote=true]
+# Disable /tftpboot and /install export entries
+... |
Update configure.ac to prevent missing symbols
nm shows that those two symbols are undefined, it happens when
./configure --target=host is used and when --enable_debug_frame is set.
nm src/.libs/libunwind-aarch64.so.8.0.1
...
U _Uelf64_find_section
U _Uelf64_load_debuglink
...
This change will prevent build issues unti... | @@ -265,6 +265,9 @@ case "${target_arch}" in
(aarch64) enable_debug_frame=yes;;
(*) enable_debug_frame=no;;
esac])
+if test x$remote_only == xyes; then
+ enable_debug_frame=no
+fi
if test x$enable_debug_frame = xyes; then
AC_DEFINE([CONFIG_DEBUG_FRAME], [], [Enable Debug Frame])
fi
|
Update test_0x10141008.sh | @@ -78,15 +78,14 @@ fi
function test_helloworld {
local size=$1
- cmd="echo \"Hello world. This is my first CAPI SNAP experience. It's real fun!\n\" > tin"
+ cmd="echo \"Hello world. This is my first CAPI SNAP experience. It's real fun.\" > tin"
echo "cmd: ${cmd}"
- cmd="echo \"HELLO WORLD. THIS IS MY FIRST CAPI SNAP E... |
shelter: update README to reflect the usage of boolean option "--mutual"
Fixes: | @@ -75,7 +75,7 @@ OPTIONS:
--verifier set the type of quote verifier(nullquote, sgx_la or sgx_ecdsa)
--tls set the type of tls wrapper(nulltls, wolfssl or wolfssl_sgx)
--crypto set the type of crypto wrapper(nullcrypto, wolfcrypt or wolfcrypt_sgx)
- --mutual set to enable mutual attestation(True, False)
+ --mutual enab... |
input: typo | @@ -339,7 +339,7 @@ bool input_prepareDynamicInput(run_t* run, bool need_mangle) {
return true;
}
-bool input_prepareStaticFile(run_t* run, bool rewind, bool need_mangele) {
+bool input_prepareStaticFile(run_t* run, bool rewind, bool need_mangle) {
char fname[PATH_MAX];
if (!input_getNext(run, fname, /* rewind= */ rewi... |
coll: adding no-search arg | @@ -78,6 +78,7 @@ typedef struct _coll
t_outlet *x_filebangout;
t_outlet *x_dumpbangout;
int x_threaded;
+ int x_nosearch;
struct _coll *x_next;
//for thread-unsafe file i/o operations
@@ -1046,6 +1047,7 @@ static void coll_unbind(t_coll *x)
static void coll_bind(t_coll *x, t_symbol *name)
{
+ int no_search = x->x_nose... |
output importlib .lib file for DLLs with exports | @@ -2129,10 +2129,14 @@ class MSVCLinker(MSVC, Linker):
emit('LINK_EXE_FLAGS', '$LINK_EXE_FLAGS_PER_TYPE')
+ emit('LINK_IMPLIB_VALUE')
+
# TODO(nslus): DEVTOOLS-1868 remove restriction.
if self.tc.under_wine:
emit('LINK_EXTRA_OUTPUT')
+ emit('LINK_IMPLIB')
else:
+ emit('LINK_IMPLIB', '/IMPLIB:${output;noext;rootrel:REA... |
enable page-reset by default | @@ -67,10 +67,10 @@ static mi_option_desc_t options[_mi_option_last] =
{ 0, UNINIT, MI_OPTION(large_os_pages) }, // use large OS pages, use only with eager commit to prevent fragmentation of VMA's
{ 0, UNINIT, MI_OPTION(reserve_huge_os_pages) },
{ 0, UNINIT, MI_OPTION(segment_cache) }, // cache N segments per thread
- ... |
Moving change record to the right place.
The change record was incorectly merged in | @@ -50,13 +50,6 @@ NGINX Unit updated to 1.26.0.
</para>
</change>
-<change type="bugfix">
-<para>
-the router and app processes could crash when reaching requests limit
-in asynchronous or multithreaded apps.
-</para>
-</change>
-
</changes>
@@ -115,6 +108,13 @@ after the corresponding listener had been reconfigured.
... |
use OSSL_PARAM_construct_uint32 for max_early_data
Otherwise, this causes a warning on platforms where 'uint32_t' is
defined as 'unsigned long int' instead of 'unsigned int'. | @@ -1205,7 +1205,7 @@ int ssl_set_new_record_layer(SSL_CONNECTION *s, int version,
max_early_data = ossl_get_max_early_data(s);
if (max_early_data != 0)
- *set++ = OSSL_PARAM_construct_uint(OSSL_LIBSSL_RECORD_LAYER_PARAM_MAX_EARLY_DATA,
+ *set++ = OSSL_PARAM_construct_uint32(OSSL_LIBSSL_RECORD_LAYER_PARAM_MAX_EARLY_DAT... |
Travis Linux: Install library files into lib. | @@ -30,6 +30,7 @@ script:
- if [ "$TRAVIS_OS_NAME" == "windows" ] && [ "$CC" == "clang" ]; then cmake -G "Visual Studio 15 2017" -A x64 .; fi;
- if [ "$TRAVIS_OS_NAME" == "windows" ]; then cmake -DCMAKE_INSTALL_PREFIX=C:/tinyspline -DTINYSPLINE_INSTALL_LIBRARY_DIR=lib .; fi;
- if [ "$TRAVIS_OS_NAME" != "windows" ]; the... |
menu-items.c: fix warning | @@ -74,7 +74,7 @@ change_filespec (gpointer data)
static void save_dirlist_dlg_cb (GtkDialog * dlg, gint responseID, gpointer data)
{
- const char *filename;
+ char *filename;
gftp_window_data * wdata = (gftp_window_data *) data;
if (responseID == GTK_RESPONSE_ACCEPT) {
|
Read engine_version file to get version number if engine.json isn't present | @@ -13,6 +13,12 @@ const readEngineVersion = async (path) => {
return (await fs.readJSON(path, "utf8")).version;
}
+const readEngineVersionLegacy = async (path) => {
+ return (await fs.readFile(path, "utf8"))
+ .replace(/#.*/g, "")
+ .trim();
+}
+
const ejectBuild = async ({
projectType = "gb",
outputRoot = "/tmp",
@@ ... |
Dockerfile: remove Python 2
The only remaining Python 2 script
in the repository is the jn516x motelist.
This shrinks the image from 4.31G to 4.23G. | @@ -35,12 +35,9 @@ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E03280
mosquitto-clients \
net-tools \
openjdk-11-jdk \
- python-dev \
python3-dev \
- python-pip \
python3-pip \
python3-setuptools \
- python-serial \
python3-serial \
rlwrap \
sudo \
@@ -100,8 +97,6 @@ RUN wget -nv https://w... |
STORE 'file' scheme loader: DNS name in URI is case insensitive
... so compare accordingly with "//localhost" | @@ -677,7 +677,7 @@ static OSSL_STORE_LOADER_CTX *file_open(const OSSL_STORE_LOADER *loader,
const char *path = NULL;
if (strncasecmp(uri, "file:", 5) == 0) {
- if (strncmp(&uri[5], "//localhost/", 12) == 0) {
+ if (strncasecmp(&uri[5], "//localhost/", 12) == 0) {
path = &uri[16];
} else if (strncmp(&uri[5], "///", 3) ... |
abis/mlibc: Add missing signal numbers | @@ -58,9 +58,12 @@ extern "C" {
#define SIGVTALRM 26
#define SIGPROF 27
#define SIGWINCH 28
-#define SIGPOLL 29
+#define SIGIO 29
+#define SIGPOLL SIGIO
#define SIGPWR 30
#define SIGSYS 31
+#define SIGRTMIN 32
+#define SIGRTMAX 33
// TODO: replace this by uint64_t
typedef long sigset_t;
|
line 252 tweak some more | @@ -11,7 +11,7 @@ To define a TLS-encrypted connection to LogStream Cloud, just set the `SCOPE_CRI
For example:
```
-SCOPE_CRIBL_CLOUD=tcp://in.logstream.cribl.<cloud_instance>.cloud:10090
+SCOPE_CRIBL_CLOUD=tcp://in.logstream.<cloud_instance>.cribl.cloud:10090
```
By default, LogStream Cloud instances have port `10090... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.