message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
misc: add a nerd knob to skip a sysctl during the .deb installation
In some cases, e.g. in the container installs, it's beneficial to skip
the sysctl portion of the installation.
This commit allows to do that by setting the environment variable
VPP_INSTALL_SKIP_SYSCTL.
Type: feature | #!/bin/sh -e
# try to set the required values now. This may or may not work.
+# Allow for a nerd knob to skip this, e.g. during the container installs
+if [ -z "${VPP_INSTALL_SKIP_SYSCTL}" ]
+then
sysctl --system
+fi
#DEBHELPER#
|
Fix a doc-nits failure
We need blank lines on each side of a section heading. | =pod
=head1 NAME
+
OSSL_thread_stop_handler_fn,
ossl_init_thread_start,
ossl_init_thread_deregister
- internal thread routines
+
=head1 SYNOPSIS
#include "internal/cryptlib_int.h"
|
VERSION bump ot version 1.3.2 | @@ -27,7 +27,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 1)
set(SYSREPO_MINOR_VERSION 3)
-set(SYSREPO_MICRO_VERSION 1)
+set(SYSREPO_MICRO_VERSION 2)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MICR... |
Utility: Fix scope of variable | @@ -153,10 +153,9 @@ char * elektraReplace (char const * const text, char const * const pattern, char
char const * current = text;
char const * before = text;
char * destination = result;
- size_t length;
while ((current = strstr (current, pattern)) != NULL)
{
- length = current - before;
+ size_t length = current - be... |
cache: fix memleak | @@ -70,6 +70,7 @@ static int resolveCacheDirectory (Plugin * handle, CacheHandle * ch, Key * error
cacheDir = elektraStrConcat (cacheDir, "/elektra");
ch->cachePath = keyNew ("system/elektracache", KEY_END);
resolverConfig = ksNew (5, keyNew ("system/path", KEY_VALUE, cacheDir, KEY_END), KS_END);
+ elektraFree (cacheDi... |
[typo] fix a typo to make the comment more precise | * The 48 bits available in the struct are divided as follow:
*
* - the 7 most significant bits stand for which segment file the tuple is in
- * (Limit: 128 (2^8)). This also makes up part of the "block number" when
+ * (Limit: 128 (2^7)). This also makes up part of the "block number" when
* interpreted as a heap TID.
*... |
Hide T2RBUF control for SXR | @@ -592,6 +592,10 @@ void lms7002_pnlSX_view::UpdateGUI()
return;
}
}
+ if(ch == 1)
+ chkPD_LOCH_T2RBUF->Hide();
+ else
+ chkPD_LOCH_T2RBUF->Show();
wxCommandEvent evt;
OnbtnReadComparators(evt);
|
spwaterfall/example: cutting number of samples down by a factor of 10 | @@ -13,7 +13,7 @@ int main()
// spectral periodogram options
unsigned int nfft = 1800; // spectral periodogram FFT size
unsigned int time = 1000; // minimum time buffer
- unsigned int num_samples = 20e6; // number of samples
+ unsigned int num_samples = 2e6; // number of samples
// create spectral waterfall object
spwa... |
Add two more lambda tests. | @@ -29,10 +29,18 @@ Y_UNIT_TEST_SUITE(Demangle) {
Check("_ZUliE_", "'lambda'(int)");
}
+ Y_UNIT_TEST(Lambda2) {
+ Check("_ZUlfdE_", "'lambda'(float, double)");
+ }
+
Y_UNIT_TEST(LambdaGeneric1) {
Check("_ZUlT_E_", "'lambda'(auto)");
}
+ Y_UNIT_TEST(LambdaGeneric2) {
+ Check("_ZUlOT_RT0_E_", "'lambda'(auto&&, auto&)");
... |
proxy: fail on missing FLBPluginRegister symbol | @@ -144,6 +144,9 @@ int flb_plugin_proxy_register(struct flb_plugin_proxy *proxy,
/* Lookup the registration callback */
cb_register = flb_plugin_proxy_symbol(proxy, "FLBPluginRegister");
+ if (!cb_register) {
+ return -1;
+ }
/*
* Create a temporary definition used for registration. This definition
|
fix bug - catboost tries to load available snapshot file even if save_snapshot==False | @@ -185,7 +185,7 @@ void UpdateUndefinedRandomSeed(ETaskType taskType,
NJson::TJsonValue* updatedJsonParams,
std::function<void(TIFStream*, TString&)> paramsLoader) {
const TString snapshotFilename = TOutputFiles::AlignFilePath(outputOptions.GetTrainDir(), outputOptions.GetSnapshotFilename(), /*namePrefix=*/"");
- if (... |
Minor coding style fixes in lib/error.h | @@ -185,22 +185,31 @@ void gumbo_error_destroy(struct GumboInternalParser* parser, GumboError* error);
// responsible for deleting the buffer. (Note that the buffer is allocated with
// the allocator specified in the GumboParser config and hence should be freed
// by gumbo_parser_deallocate().)
-void gumbo_error_to_str... |
Prepare for running new spec tests. | @@ -309,7 +309,7 @@ print(wasm3.version())
blacklist = Blacklist([
"float_exprs.wast:* f32.nonarithmetic_nan_bitpattern*",
"imports.wast:*",
- "names.wast:630 *", # name that starts with '\0'
+ "names.wast:* *.wasm \\x00*", # names that start with '\0'
])
stats = dotdict(total_run=0, skipped=0, failed=0, crashed=0, tim... |
Fix root of | @@ -117,7 +117,6 @@ static void http1_on_data(intptr_t uuid, http1_protocol_s *pr) {
char buff[HTTP_BODY_CHUNK_SIZE];
http1_request_s *request = &pr->request;
char *buffer = request->buffer;
- for (;;) {
// handle requests with no file data
if (request->request.body_file <= 0) {
// request headers parsing
@@ -142,9 +14... |
chore: Add note about copyrights on PR checklist | - [ ] This board/shield is tested working on real hardware
- [ ] Definitions follow the general style of other shields/boards upstream ([Reference](https://zmk.dev/docs/development/new-shield))
- [ ] `.zmk.yml` metadata file added
- - [ ] Proper Copyright + License headers added to applicable files
+ - [ ] Proper Copyr... |
Key update HKDF label is now "quic ku" | @@ -139,7 +139,7 @@ int ngtcp2_crypto_update_traffic_secret(uint8_t *dest,
const ngtcp2_crypto_md *md,
const uint8_t *secret,
size_t secretlen) {
- static const uint8_t LABEL[] = "traffic upd";
+ static const uint8_t LABEL[] = "quic ku";
if (ngtcp2_crypto_hkdf_expand_label(dest, secretlen, md, secret, secretlen,
LABEL,... |
dominik-AD: Clean upwarnings and add a device print of x | @@ -12,17 +12,19 @@ for (i = 0; i < 10; ++i) {
x1[i] = 3;
}
x_d = x1;
-printf("2nd arg x1 should be equal to 3rd %lx %lx %lx\n",x, x1, x_d);
+printf("2nd arg x1 should be equal to 3rd %p %p %p \n",x, x1, x_d);
#pragma omp target enter data map(to:x)
#pragma omp target map(tofrom:x_d)
+{
x_d = x;
-
-printf("1st arg x sh... |
More SceSysconForDriver NIDs | @@ -5724,6 +5724,8 @@ modules:
ksceSysconReadCommand: 0x299B1CE7
ksceSysconSendCommand: 0xE26488B9
ksceSysconSetDebugHandlers: 0xF245CD6F
+ ksceSysconSetLowBatteryCallback: 0x3F0DB7C0
+ ksceSysconSetThermalAlertCallback: 0x773B8126
SceLowio:
nid: 0x17E0D8DF
libraries:
|
wifi test: Add check if WiFi was brought up successfully for MQTT tests
Make use of the error code that we use in startWifi(). | @@ -573,7 +573,7 @@ static int32_t wifiMqttPublishSubscribeTest(bool isSecuredConnection)
return err;
}
-static void startWifi(void)
+static uWifiTestError_t startWifi(void)
{
int32_t waitCtr = 0;
//lint -e(438) suppress testError warning
@@ -596,11 +596,15 @@ static void startWifi(void)
wifiNetworkStatusCallback, NULL... |
Fix microchip bootloader location in CMake file | @@ -332,7 +332,7 @@ endif()
# These locations have to be generalized through the toolchain
# We may have to re-build the bootloader hex file?
-set(bl_hex_file ${CMAKE_CURRENT_LIST_DIR}/bootloader/aws_bootloader.X/dist/pic32mz_ef_curiosity/production/aws_bootloader.X.production.hex)
+set(bl_hex_file ${CMAKE_CURRENT_LIST... |
passwd: check return values and fail properly | @@ -60,18 +60,16 @@ static struct passwd * strToPasswd (char * line)
pwd->pw_name = elektraStrDup (ptoken);
// passwd
- // TODO if x check /etc/shadow
ptoken = strtok (NULL, PWD_DELIMITER);
pwd->pw_passwd = elektraStrDup (ptoken);
// uid
ptoken = strtok (NULL, PWD_DELIMITER);
- sscanf (ptoken, "%u", &pwd->pw_uid); // X... |
launch: left-align "home" in mobile layout
We don't want long patps to overlay the "Home"
title -- to do so without truncating planet names,
we just push "Home" out of the way here. | @@ -49,10 +49,11 @@ export default class Header extends Component {
return (
<header
- className="bg-white bg-gray0-d w-100 justify-between relative tc pt3"
+ className={"bg-white bg-gray0-d w-100 justify-between relative " +
+ "tl tc-m tc-l tc-xl pt3"}
style={{ height: 40 }}>
<span
- className="f9 white-d inter dib"
+... |
Mutex to control threaded access to xterm terminal size variables. | @@ -58,11 +58,13 @@ static struct termios g_old_termios;
#endif
static struct {
+ SDL_mutex *lock;
bool waiting;
int columns;
int rows;
Uint32 timestamp;
} g_terminal_size_state = {
+ .lock = NULL,
.waiting = false,
.columns = 0,
.rows = 0,
@@ -444,6 +446,7 @@ static void xterm_handle_input_escape() {
send_sdl_key_pres... |
docs: Add hw_bcs to BoAT demo protocol | @@ -158,7 +158,7 @@ real node of an Ethereum compatible blockchain network must be available.
$chmod a+x ./build/demo/demo_<protocol>/<demo_name>
$./build/demo/demo_<protocol>/<demo_name>
```
-\<protocol\> can be `ethereum` `fiscobcos` `platone` `fabric` `platon`.
+\<protocol\> can be `ethereum` `fiscobcos` `platone` `... |
add a few ENV options to CLI parser | @@ -413,10 +413,18 @@ static VALUE iodine_cli_parse(VALUE self) {
if (level > 0 && level < 100)
FIO_LOG_LEVEL = level;
}
-
+ if (!fio_cli_get("-w") && getenv("WEB_CONCURRENCY")) {
+ fio_cli_set("-w", getenv("WEB_CONCURRENCY"));
+ }
+ if (!fio_cli_get("-w") && getenv("WORKERS")) {
+ fio_cli_set("-w", getenv("WORKERS"));... |
Add build time to end of console output | @@ -24,6 +24,7 @@ export default store => next => async action => {
if (action.type === BUILD_GAME) {
const { buildType, exportBuild, ejectBuild } = action;
const dispatch = store.dispatch.bind(store);
+ const buildStartTime = Date.now();
dispatch({ type: CMD_START });
@@ -97,6 +98,13 @@ export default store => next =>... |
fix: supress warning | @@ -452,7 +452,7 @@ ws_send_heartbeat(struct discord_ws_s *ws)
{
char payload[64];
int ret = snprintf(payload, sizeof(payload), "{\"op\":1,\"d\":%d}", ws->payload.seq_number);
- ASSERT_S(ret < sizeof(payload), "Out of bounds write attempt");
+ ASSERT_S(ret < (int)sizeof(payload), "Out of bounds write attempt");
D_PRINT... |
fix openssl test fail.
different version openssl client return
different output. remove string check
to workaround it | @@ -11194,10 +11194,10 @@ run_test "TLS 1.3: HRR check, ciphersuite TLS_AES_256_GCM_SHA384 - gnutls" \
-c "Protocol is TLSv1.3" \
-c "HTTP/1.0 200 OK"
+requires_openssl_tls1_3
requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
requires_config_enabled MBEDTLS_DEBUG_C
requires_config_enabled MBEDTLS_SSL_SRV_C
-requires_ope... |
Tweak update docs | ds)
(defn update
- `Accepts a key argument and passes its associated value to a function.
- The key is the re-associated to the function's return value. Returns the updated
- data structure ds.`
+ ``Accepts a key argument and passes its associated value to a function.
+ The key is then re-associated to the function's r... |
threads/low power: Proper time convertion | @@ -1459,13 +1459,14 @@ static void threads_idlethr(void *arg)
wakeup = proc_nextWakeup();
if (wakeup > TIMER_US2CYC(2000)) {
- wakeup = hal_cpuLowPower((wakeup + TIMER_US2CYC(500)) / 1000);
+ wakeup = hal_cpuLowPower((TIMER_CYC2US(wakeup) + TIMER_US2CYC(500)) / TIMER_US2CYC(1000));
#ifdef CPU_STM32
hal_spinlockSet(&th... |
bitcoin: v0.0.2 | glob-http+['https://bootstrap.urbit.org/glob-0v3.7b5q1.gn30e.cpfem.abmqg.qh77v.glob' 0v3.7b5q1.gn30e.cpfem.abmqg.qh77v]
image+'https://urbit.ewr1.vultrobjects.com/hastuc-dibtux/2021.8.24..02.57.38-bitcoin.svg'
base+'bitcoin'
- version+[0 0 1]
+ version+[0 0 2]
license+'MIT'
website+'https://tlon.io'
==
|
profile: amend mobile 'back' link size | @@ -104,6 +104,7 @@ export default function ProfileScreen(props: any) {
alignItems="center"
px={3}
borderBottom={1}
+ fontSize='0'
borderBottomColor="washedGray"
>
<Link to="/~profile">{"<- Back"}</Link>
|
More compile fixes for sock options | @@ -504,11 +504,11 @@ static void* cmsg_format_header_return_data_ptr(struct msghdr* msg, struct cmsgh
if (cmsg != NULL) {
size_t cmsg_required_space = CMSG_SPACE(cmsg_data_len);
- *control_length += (INT)cmsg_required_space;
+ *control_length += (int)cmsg_required_space;
memset(cmsg, 0, cmsg_required_space);
cmsg->cms... |
publish: make dropdown arrow clickable | @@ -64,10 +64,10 @@ export class Dropdown extends Component {
});
return (
- <div className={"options relative dib " + optionsClass}
- ref={(el) => {this.optsButton = el}}>
- <button className="bg-transparent white-d pr3 mb1 pointer br2 pa2 pr4"
+ <div className={"options relative dib pr3 pointer " + optionsClass}
+ re... |
router_readconfig: align carets in case of tabs | @@ -1122,8 +1122,13 @@ router_readconfig(router *orig,
carrets = ra_malloc(ret, carlen + 1);
memset(carrets, '^', carlen);
carrets[carlen] = '\0';
- fprintf(stderr, "%s\n%*s%s\n",
- line, (int)ret->parser_err.start, "", carrets);
+ fprintf(stderr, "%s\n", line);
+ /* deal with tabs in the input */
+ for (p = line; p - ... |
include/power_led.h: Format with clang-format
BRANCH=none
TEST=none | @@ -28,7 +28,9 @@ void powerled_set_state(enum powerled_state state);
#else
-static inline void powerled_set_state(enum powerled_state state) {}
+static inline void powerled_set_state(enum powerled_state state)
+{
+}
#endif
|
Fail the test... | @@ -237,7 +237,7 @@ BOOST_AUTO_TEST_CASE(test_net_builder)
BOOST_REQUIRE(h_orig == h_build_loaded);
// compare the original to the build without saving
-// BOOST_REQUIRE(h_orig == h_build); // this seems to fail :(
+ BOOST_REQUIRE(h_orig == h_build); // this seems to fail :(
}
|
lib/libc/lib_strftime.c : Support %Z for timezone
%Z : The timezone name or abbreviation, or by no bytes if no timezone information exists. | @@ -156,6 +156,7 @@ static const char *const g_monthname[12] = {
* %t A tab character. (SU)
* %y The year as a decimal number without a century (range 00 to 99).
* %Y The year as a decimal number including the century.
+ * %Z The timezone name or abbreviation, or by no bytes if no timezone information exists.
* %% A li... |
OpenCanopy: Do not draw the entry selection twice each frame on intro | @@ -1528,14 +1528,22 @@ InternalBootPickerAnimateOpacity (
ASSERT (BaseY >= mBootPickerContainer.Obj.OffsetY);
ASSERT (BaseY + mBootPickerRightScroll.Hdr.Obj.Height <= mBootPickerContainer.Obj.OffsetY + mBootPickerContainer.Obj.Height);
DEBUG_CODE_END ();
-
- GuiDrawScreen (
+ //
+ // The screen is drawn by the offset ... |
doc: deprecate ENGINE documentation | @@ -46,6 +46,10 @@ ENGINE_unregister_digests
#include <openssl/engine.h>
+Deprecated since OpenSSL 3.0, can be hidden entirely by defining
+B<OPENSSL_API_COMPAT> with a suitable version value, see
+L<openssl_user_macros(7)>:
+
ENGINE *ENGINE_get_first(void);
ENGINE *ENGINE_get_last(void);
ENGINE *ENGINE_get_next(ENGINE... |
Don't wait infinitely for server response, might never come and prevents closing of program | @@ -10522,7 +10522,7 @@ read_message(FILE *fp,
/* value of request_timeout is in seconds, config in milliseconds */
request_timeout = atof(conn->dom_ctx->config[REQUEST_TIMEOUT]) / 1000.0;
} else {
- request_timeout = -1.0;
+ request_timeout = 30.0;
}
if (conn->handled_requests > 0) {
if (conn->dom_ctx->config[KEEP_ALI... |
bugfix acl doesn't disconnect when hfp_client disconnect | @@ -214,7 +214,7 @@ const UINT8 bta_hf_client_st_closing[][BTA_HF_CLIENT_NUM_COLS] = {
/* DISC_OK_EVT */ {BTA_HF_CLIENT_IGNORE, BTA_HF_CLIENT_IGNORE, BTA_HF_CLIENT_CLOSING_ST},
/* DISC_FAIL_EVT */ {BTA_HF_CLIENT_IGNORE, BTA_HF_CLIENT_IGNORE, BTA_HF_CLIENT_CLOSING_ST},
/* SCO_OPEN_EVT */ {BTA_HF_CLIENT_IGNORE, BTA_HF_CL... |
common/usbc/usb_pd_dp_ufp.c: Format with clang-format
BRANCH=none
TEST=none | #include "usb_pd.h"
#include "usb_pd_dp_ufp.h"
-
#define CPRINTF(format, args...) cprintf(CC_USBPD, format, ##args)
#define CPRINTS(format, args...) cprints(CC_USBPD, format, ##args)
@@ -154,10 +153,10 @@ static void hpd_queue_event(enum hpd_event evt)
* are kept in the queue.
*/
if (evt == hpd_irq) {
- if ((hpd.count ... |
YAML CPP: Update MSR test for boolean data | @@ -373,10 +373,17 @@ echo 'truth: true' > `kdb file user/tests/yamlcpp`
kdb get user/tests/yamlcpp/truth
#> 1
+# A boolean in Elektra has the type `boolean`
+kdb meta-get user/tests/yamlcpp/truth type
+#> boolean
+
# Add another boolean value
kdb set user/tests/yamlcpp/success 0
+kdb meta-set user/tests/yamlcpp/succes... |
Tests: added tests for the $request_time variable. | @@ -47,6 +47,35 @@ class TestVariables(TestApplicationProto):
)
check_dollar('path$dollar${dollar}', 'path$$')
+ def test_variables_request_time(self):
+ self.set_format('$uri $request_time')
+
+ sock = self.http(b'', raw=True, no_recv=True)
+
+ time.sleep(1)
+
+ assert self.get(url='/r_time_1', sock=sock)['status'] ==... |
hardware: a few minor comment clarifications
[ci skip] | @@ -164,7 +164,7 @@ module thread_select_stage(
// fills up because there are several stages in-between.
assign ts_fetch_en[thread_idx] = !ififo_almost_full && thread_en[thread_idx];
- /// XXX Treat PC specially for scoreboard?
+ /// XXX PC should not be tracked by the scoreboard
// Generate destination register bitmap... |
put AA null warning behind verbose check, closes | @@ -747,8 +747,10 @@ static ScsWork *init_work(const ScsData *d, const ScsCone *k) {
if (!(w->accel =
aa_init(2 * (w->m + w->n + 1), ABS(w->stgs->acceleration_lookback),
w->stgs->acceleration_lookback >= 0))) {
+ if (w->stgs->verbose) {
scs_printf("WARN: aa_init returned NULL, no acceleration applied.\n");
}
+ }
return... |
Drop data marked by user with None destination | @@ -281,10 +281,14 @@ def _fix_user_data(orig_cmd, shell, user_input, user_output, strategy):
]:
if srcs:
for path in srcs.values():
- if path.startswith('/'):
+ if path and path.startswith('/'):
raise InvalidInputError("Don't use abs path for specifying destination path '{}'".format(path))
dst.update(srcs)
+ # Drop da... |
libbarrelfish: pmap-ll: fix pmap_foreach_child() macro | * Note: this macro requires both root and iter to be 'struct vnode *'.
*/
#define pmap_foreach_child(root, iter) \
- for (iter = root->v.u.vnode.children; iter; iter = iter->v.meta.next)
+ for (iter = (root)->v.u.vnode.children; iter; iter = iter->v.meta.next)
#define INIT_SLAB_BUFFER_SIZE SLAB_STATIC_SIZE(INIT_SLAB_CO... |
set default allocator for GO programs build with MUSL | @@ -5939,7 +5939,12 @@ macro _GO_GRPC_GATEWAY_SWAGGER_SRCS(Files...) {
PEERDIR(vendor/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options)
}
+when ($MUSL == "yes") {
+ _GO_DEFAULT_ALLOCATOR=$DEFAULT_ALLOCATOR
+}
+otherwise {
_GO_DEFAULT_ALLOCATOR=FAKE
+}
### @usage _GO_BASE_UNIT # internal
###
|
odissey: print available users during debug bootstrap | @@ -292,4 +292,14 @@ void od_schemeprint(od_scheme_t *scheme, od_log_t *log)
od_log(log, NULL, " pool_min %d", route->pool_min);
od_log(log, NULL, " pool_max %d", route->pool_max);
}
+ if (! od_listempty(&scheme->users)) {
+ od_log(log, NULL, "users");
+ od_listforeach(&scheme->users, i) {
+ od_schemeuser_t *user;
+ us... |
add case schematic | // sync problem fork height
#define SYNC_FIX_HEIGHT 0
-#define SYNC_FIX_TESTNET_HEIGHT 10000
+#define SYNC_FIX_TESTNET_HEIGHT 0
struct block_backrefs;
struct orphan_block;
@@ -815,6 +815,10 @@ static int add_block_nolock(struct xdag_block *newBlock, xtime_t limit)
xdag_info("Diff : %llx%016llx (+%llx%016llx)", xdag_dif... |
compiled BUGFIX do not access when on nodes without it | @@ -6978,7 +6978,8 @@ lys_compile_check_when_cyclic(struct lyxp_set *set, const struct lysc_node *node
continue;
}
- if ((xp_scnode->type != LYXP_NODE_ELEM) || !xp_scnode->scnode->when) {
+ if ((xp_scnode->type != LYXP_NODE_ELEM) || (xp_scnode->scnode->nodetype & (LYS_ACTION | LYS_NOTIF))
+ || !xp_scnode->scnode->when)... |
[core] simpler loops to run plugin hooks | @@ -291,28 +291,14 @@ int plugins_load(server *srv) {
#define PLUGIN_TO_SLOT(x, y) \
handler_t plugins_call_##y(server *srv, connection *con) {\
- plugin **slot;\
- size_t j;\
- slot = ((plugin ***)(srv->plugin_slots))[x];\
- if (!slot) return HANDLER_GO_ON;\
- for (j = 0; j < srv->plugins.used && slot[j]; j++) { \
- p... |
remove extraneous luaC_checkGC call | @@ -274,7 +274,6 @@ local function codewhile(ctx, node)
else
tmpl = [[
while(1) {
- luaC_checkGC(L);
$CSTATS
if(!($CEXP)) {
break;
|
Clean up warnings about ambiguous grammar. | @@ -159,6 +159,26 @@ static void setupinit(Node *n);
%type <uconlist> unionbody
+/*
+We want to bind more tightly to `Foo unaryexpr
+than to binary operators around it. Eg:
+
+ `Foo +bar
+
+should be interpreted as
+
+ (`Foo (+bar))
+
+and not
+
+ (`Foo) + (bar)
+
+The default action of shifting does the right thing,
+... |
Cppcheck: address of local variable 'value' is accessed at non-zero index | @@ -142,6 +142,7 @@ static int unpack_long(grib_accessor* a, long* val, size_t* len)
long value = 0;
long pos = a->offset * 8;
char* intc = NULL;
+ char* pTemp = NULL;
char expver[5];
char refexpver[5];
size_t llen = a->length + 1;
@@ -158,13 +159,20 @@ static int unpack_long(grib_accessor* a, long* val, size_t* len)
/... |
Added klib vendor directories to CLEANDIRS | @@ -130,3 +130,5 @@ CFLAGS+= $(KERNCFLAGS) $(INCLUDES) -fPIC $(DEFINES)
# TODO should add stack protection to klibs...
CFLAGS+= -fno-stack-protector
LDFLAGS+= -pie -nostdlib -T$(ARCHDIR)/klib.lds
+
+CLEANDIRS+= $(OUTDIR)/klib/vendor $(OUTDIR)/klib/vendor/mbedtls
|
Updated license informations | @@ -229,6 +229,8 @@ img = sensor.snapshot()
output = net.predict(img)
```
-## License information
+## License informations
+
+- The python wrapper i.e the sources files `nn_st.c`, `nn_st.h`, `py_st_nn.c` are under MIT License. See LICENSE file for more information.
+- All files (header file and compiled library) presen... |
Fix cygwin make dependencies | @@ -390,9 +390,13 @@ uninstall: uninstall_docs uninstall_sw
libclean:
@set -e; for s in $(SHLIB_INFO); do \
+ if [ "$$s" = ";" ]; then continue; fi; \
s1=`echo "$$s" | cut -f1 -d";"`; \
s2=`echo "$$s" | cut -f2 -d";"`; \
- $(ECHO) $(RM) $$s1; \
+ $(ECHO) $(RM) $$s1; {- output_off() unless windowsdll(); "" -}\
+ $(RM) a... |
[mod_webdav] cold func if xml reqbody w/o db conf | @@ -2304,6 +2304,21 @@ webdav_fcopyfile_sz (int ifd, int ofd, off_t isz)
}
+#ifdef USE_PROPPATCH
+__attribute_cold__
+__attribute_noinline__
+static handler_t
+webdav_405_no_db (request_st * const r)
+{
+ http_header_response_set(r, HTTP_HEADER_ALLOW,
+ CONST_STR_LEN("Allow"),
+ CONST_STR_LEN("GET, HEAD, PROPFIND, DELE... |
python: fix key args in tests | @@ -50,7 +50,7 @@ static void test_variable_passing (void)
KeySet * conf = ksNew (1, keyNew ("user/script", KEY_VALUE, python_file ("python_plugin.py"), KEY_END),
keyNew ("user/shutdown", KEY_VALUE, "1", KEY_END), keyNew ("user/print", KEY_END),
- keyNew ("user/python/path", ".", KEY_END), KS_END);
+ keyNew ("user/pyth... |
DeviceJS: Update docs for new wrapper attributes | @@ -47,8 +47,11 @@ namespace deCONZ
### Object Methods
- R.item(suffix) --> gets Item object, for example the 'config.offset'
+ R.item(suffix) -> gets Item object, for example the 'config.offset'
Item.val -> ResourceItem value (read/write)
+ Item.name -> ResourceItem name like 'state/on' (read only)
+ Attr.id -> attrib... |
memif: fix rx/txqueue RC on connected
Type: fix
Calling vnet_hw_if_register_tx_queue should
be done with the worker barrier held, as
virtio-pre-input might be grabbing a queue
while a memif connect event is triggered. | @@ -248,6 +248,7 @@ memif_connect (memif_if_t * mif)
u32 n_txqs = 0, n_threads = vlib_get_n_threads ();
clib_error_t *err = NULL;
u8 max_log2_ring_sz = 0;
+ int with_barrier = 0;
memif_log_debug (mif, "connect %u", mif->dev_instance);
@@ -278,6 +279,13 @@ memif_connect (memif_if_t * mif)
template.read_function = memif_... |
Setup the runtime and build the CLI | @@ -4,6 +4,9 @@ on:
workflow_dispatch:
pull_request:
+env:
+ METACALL_BASE_IMAGE: debian:bullseye-slim
+
jobs:
linux-test:
name: Linux (Ubuntu) GCC Test
@@ -51,10 +54,11 @@ jobs:
- name: Set up the runtime
run: |
export "METACALL_PATH=$(pwd)"
- mkdir -p /usr/local/scripts
- sudo ./tools/metacall-configure.sh $METACALL_... |
Update docs/RELEASE.md to reflect new update_latest.yml workflow. | @@ -50,9 +50,10 @@ to a minimum.
prior minor release and provides a starting point for maintenance releases
to the new minor release.
-* We have a `staging` branch for the website content. The
- documentation team updates the website content on that branch, then
- creates PRs to merge their changes into the default bra... |
CCode: Move contract into separate function | @@ -49,6 +49,23 @@ inline int elektraHexcodeConvFromHex (char character)
return 0; /* Unknown escape char */
}
+/**
+ * @brief This function returns a key set containing the contract of this plugin.
+ *
+ * @return A contract describing the functionality of this plugin.
+ */
+inline KeySet * contract (void)
+{
+ return... |
Unix build: for mingw and cygwin, create the right location for DLLs
Mingw and Cygwin builds install the DLLs in the application directory,
not the library directory, so ensure that one is created for them when
installing the DLLs.
Fixes | @@ -644,7 +644,9 @@ install_runtime_libs: build_libs
@[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
@ : {- output_off() if windowsdll(); "" -}
@$(PERL) $(SRCDIR)/util/mkdir-p.pl $(DESTDIR)$(libdir)
- @ : {- output_on() if windowsdll(); "" -}
+ @ : {- output_on() if windowsdll(); output_off() u... |
fix null reference access to emdk3Listener | @@ -599,6 +599,7 @@ public class BarcodeFactory extends RhoApiFactory<Barcode, BarcodeSingleton> imp
if (releaseEMDKOnPause) {
Logger.D( TAG, "Will restore EMDK resources" );
+ if(emdk3Listener)
emdk3Listener.resume();
}
@@ -647,6 +648,7 @@ public class BarcodeFactory extends RhoApiFactory<Barcode, BarcodeSingleton> im... |
correct sudo command
This way it works and users can just copy paste and run it | @@ -138,5 +138,5 @@ located in ``/usr/local/lib``. In some Linux flavors the loader doesn't look for
libraries in this path by default, we must instruct it to do so by adding
``/usr/local/lib`` to the loader configuration file ``/etc/ld.so.conf``::
- sudo echo "/usr/local/lib" >> /etc/ld.so.conf
+ sudo sh -c 'echo "/us... |
driverless: Always output debug message when ippfind terminates successfully | @@ -608,7 +608,8 @@ list_printers (int mode, int reg_type_no, int isFax)
if (exit_status)
fprintf(stderr, "ERROR: ippfind (PID %d) stopped on signal %d!\n",
ippfind_pid, exit_status);
- } else if (debug)
+ }
+ if (!exit_status && debug)
fprintf(stderr, "DEBUG: ippfind (PID %d) exited with no errors.\n",
ippfind_pid);
|
examples/apache: make h2 config http2 only | @@ -12,7 +12,8 @@ LogLevel crit
LogLevel debug
Listen 127.0.0.1:8080
PidFile /tmp/apache-pid
-Protocols h2 h2c http/1.1
+#Protocols h2 h2c http/1.1
+Protocols h2c
H2Direct on
H2Upgrade on
H2SerializeHeaders on
|
travis: Enable test for running native code via mpy. | @@ -66,7 +66,8 @@ jobs:
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests)
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -d thread)
- (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/u... |
fix format string for lifetime | @@ -1009,13 +1009,13 @@ char* _argumentsToCommandLineOptions(const struct arguments* arguments) {
options->free = (void (*)(void*))_secFree;
if (arguments->lifetime) {
- list_rpush(options, list_node_new(oidc_sprintf("--lifetime=%d",
+ list_rpush(options, list_node_new(oidc_sprintf("--lifetime=%ld",
arguments->lifetime... |
Display the bar start and bar number | @@ -4,7 +4,7 @@ import clap 1.0
Rectangle {
width: 450
- height: 470
+ height: 490
color: "#f8f8f8"
Text {
@@ -22,7 +22,11 @@ Rectangle {
text += "Tempo: " + (transport.hasTempo ? (transport.tempo.toFixed(3) + " (bpm)") : "(none)") + "\n";
if (transport.hasBeatsTimeline)
+ {
text += "song position (beats): " + transpor... |
Replace strNewFmt() with TEST_ERROR_FMT() in command/archive-push module.
This test was likely written before TEST_ERROR_FMT() existed. | @@ -512,13 +512,12 @@ testRun(void)
HRN_STORAGE_MODE(storageTest, "repo2/archive/test/11-1/0000000100000001", .mode = 0500);
- TEST_ERROR(
+ TEST_ERROR_FMT(
cmdArchivePush(), CommandError,
- strZ(
- strNewFmt(
"archive-push command encountered error(s):\n"
"repo2: [FileOpenError] unable to open file '" TEST_PATH "/repo... |
Don't start SCTP/UDP receive threads (and don't open corresponding
UDP sockets) when the UDP port specified in scpt_init() is 0.
This helps Howver,
this removes the non-intended behaviour used in | @@ -1200,7 +1200,7 @@ recv_thread_init(void)
}
}
}
- if (SCTP_BASE_VAR(userspace_udpsctp) == -1) {
+ if ((SCTP_BASE_VAR(userspace_udpsctp) == -1) && (SCTP_BASE_SYSCTL(sctp_udp_tunneling_port) != 0)) {
if ((SCTP_BASE_VAR(userspace_udpsctp) = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1) {
#if defined(_WIN32)
SCTPDBG(... |
Fix hashtable macro warning | @@ -2875,13 +2875,9 @@ typedef struct _PH_HASHTABLE
ULONG NextEntry;
} PH_HASHTABLE, *PPH_HASHTABLE;
-#define PH_HASHTABLE_ENTRY_SIZE(InnerSize) (UFIELD_OFFSET(PH_HASHTABLE_ENTRY, Body) + (InnerSize))
-#define PH_HASHTABLE_GET_ENTRY(Hashtable, Index) \
- ((PPH_HASHTABLE_ENTRY)PTR_ADD_OFFSET((Hashtable)->Entries, \
- PH... |
[kernel]Fixed issue that could all timers stop | @@ -148,13 +148,15 @@ static void _timer_init(rt_timer_t timer,
*
* @param timer_list is the array of time list
*
- * @return the next timer's ticks
+ * @param timeout_tick is the next timer's ticks
+ *
+ * @return Return the operation status. If the return value is RT_EOK, the function is successfully executed.
+ * If... |
io-libs/adios: fix description of python package | @@ -76,7 +76,7 @@ Summary: Bindings for %{python_flavor} to adios
Group: %{PROJ_NAME}/io-libs
BuildRequires: %{python_prefix}-numpy-%{compiler_family}%{PROJ_DELIM}
Requires: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM} = %{version}-%{release}
-%description -n %{python_flavor}-%{pname}-%{compiler_family}-%{mpi... |
estdelay tests | @@ -8,6 +8,42 @@ tests/test-estdelay: estdelay traj phantom nrmse
rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
touch $@
+tests/test-estdelay-coils: estdelay traj phantom nrmse
+ set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\
+ $(TOOLDIR)/traj -G -q0.3:-0.1:0.2 -y5 t.ra ;\
+ $(TOOLDIR)/traj -G -r -y5 n.ra ;\
+ $(TOOLDIR)/scale... |
sse: add missing simde_mm_cvttss_si32 (alias for simde_mm_cvtt_ss2si) | @@ -1627,6 +1627,7 @@ simde_mm_cvtt_ss2si (simde__m128 a) {
#endif
#endif
}
+#define simde_mm_cvttss_si32(a) simde_mm_cvtt_ss2si((a))
#if defined(SIMDE_X86_SSE_ENABLE_NATIVE_ALIASES)
# define _mm_cvtt_ss2si(a) simde_mm_cvtt_ss2si((a))
# define _mm_cvttss_si32(a) simde_mm_cvtt_ss2si((a))
|
dummy_afu: retain loopback buffers through reset
Hold a reference to the shared buffer pointers so that they are
not freed before afu reset is asserted. | #include "dummy_afu.h"
using namespace opae::app;
+using opae::fpga::types::shared_buffer;
+
namespace dummy_afu {
class lpbk_test : public test_command
@@ -50,17 +52,21 @@ public:
(void)app;
auto d_afu = dynamic_cast<dummy_afu*>(afu);
auto done = d_afu->register_interrupt();
- auto source = d_afu->allocate(64);
- d_af... |
Add a test to validate copy to read only lifetime | @@ -1401,6 +1401,10 @@ Copy fail: AES, invalid lifetime (unknown location) in attributes
depends_on:PSA_WANT_ALG_CTR:PSA_WANT_KEY_TYPE_AES:MBEDTLS_PSA_CRYPTO_STORAGE_C:!MBEDTLS_PSA_CRYPTO_DRIVERS
copy_fail:PSA_KEY_USAGE_COPY | PSA_KEY_USAGE_ENCRYPT | PSA_KEY_USAGE_EXPORT:PSA_ALG_CTR:0:0:PSA_KEY_TYPE_AES:"40414243444546... |
refactors DER ASN.1 parser | %+ cook |*(a=* `spec:asn1`a)
:: ^- $-(nail (like spec:asn1))
;~ pose
- %+ stag %int
- %+ bass 256
- %+ sear
+ (stag %int (bass 256 (sear int ;~(pfix (tag 2) till))))
+ (stag %bit (boss 256 (cook tail ;~(pfix (tag 3) till)))) :: XX test
+ (stag %oct (boss 256 ;~(pfix (tag 4) till)))
+ (stag %nul (cold ~ ;~(plug (tag 5) ... |
Don't require a default digest from signature algorithms
Some signature algorithms don't need a default digest, so don't fail if
we don't have one. | @@ -172,9 +172,6 @@ static int do_sigver_init(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
locmdname,
sizeof(locmdname)) > 0) {
mdname = canon_mdname(locmdname);
- } else {
- EVPerr(EVP_F_DO_SIGVER_INIT, EVP_R_NO_DEFAULT_DIGEST);
- return 0;
}
}
|
libhfuzz: remove always_inline attribute | #include "instrument.h"
-__attribute__ ((always_inline))
static inline int _strcmp(const char *s1, const char *s2, void *addr)
{
unsigned int v = 0;
@@ -24,7 +23,6 @@ int __wrap_strcmp(const char *s1, const char *s2)
return _strcmp(s1, s2, __builtin_return_address(0));
}
-__attribute__ ((always_inline))
static inline i... |
Fix non-portable u_int64_t | @@ -135,7 +135,7 @@ int CNAME(BLASLONG m, BLASLONG n, IFLOAT *a, BLASLONG lda, IFLOAT *b){
0x0, 0x1, 0x2, 0x3, 0x10, 0x11, 0x12, 0x13, 0x8, 0x9, 0xa, 0xb, 0x18, 0x19, 0x1a, 0x1b,
0x4, 0x5, 0x6, 0x7, 0x14, 0x15, 0x16, 0x17, 0xc, 0xd, 0xe, 0xf, 0x1c, 0x1d, 0x1e, 0x1f,
};
- u_int64_t permute_table2[] = {
+ uint64_t permut... |
Optionally add ReLAPACK to LIB_COMPONENTS | @@ -387,6 +387,9 @@ if (NOT NO_LAPACK)
if (NOT NO_LAPACKE)
set(LIB_COMPONENTS "${LIB_COMPONENTS} LAPACKE")
endif ()
+ if (BUILD_RELAPACK)
+ set(LIB_COMPONENTS "${LIB_COMPONENTS} ReLAPACK")
+ endif ()
endif ()
if (ONLY_CBLAS)
|
[Rust] Install build products to sysroot/usr/applications/ instead of initrd/ | @@ -158,9 +158,9 @@ def build_rust_programs(check_only: bool = False) -> None:
# binary = entry / 'target' / 'x86_64-unknown-axle' / 'release' / entry.name
binary = cargo_workspace_dir / 'target' / 'x86_64-unknown-axle' / 'release' / entry.name
if binary.exists():
- print(f'Moving build result to initrd: {binary}')
- i... |
docs: more items for ChangeLog | @@ -4,6 +4,17 @@ Version 1.3.7 (March 2019)
[Important Highlights/Notices]
+ * The provided SLURM builds have been updated to the 18.08 release series. Please see the SLURM release notes at
+ https://github.com/SchedMD/slurm/blob/slurm-18.08/RELEASE_NOTES for details on upgrade procedures from previous
+ versions; in p... |
Fix handling of infinite results from install_filter. | @@ -467,19 +467,24 @@ change_route(int operation, const struct babel_route *route, int metric,
int new_ifindex, int new_metric)
{
struct filter_result filter_result;
- unsigned char *pref_src = NULL;
unsigned int ifindex = route->neigh->ifp->ifindex;
int m = install_filter(route->src->prefix, route->src->plen,
route->s... |
decision: replace usize with ukey in calculation example | @@ -260,22 +260,22 @@ As an example, let's take `user:/hosts/ipv6/example.com = 2606:2800:220:1:248:18
For a single key, it would take for the COW implementation:
-`sizeof(_Key) + sizeof(_KeyName) + sizeof(_KeyData) + name + 1 /* \0 */ + usize + value + 1 /* \0 */` =
+`sizeof(_Key) + sizeof(_KeyName) + sizeof(_KeyData)... |
http_client: fix header_lookup() to honor the header/body boundery
header_lookup() has a bug that it goes over the boundary line and
finds matches in the body part.
This patch fixes the bug by limiting its search scope to the HTTP
header section. | @@ -58,11 +58,13 @@ static int header_lookup(struct flb_http_client *c,
{
char *p;
char *crlf;
+ char *end;
/* Lookup the beginning of the header */
p = strcasestr(c->resp.data, header);
+ end = strstr(c->resp.data, "\r\n\r\n");
if (!p) {
- if (strstr(c->resp.data, "\r\n\r\n")) {
+ if (end) {
/* The headers are complet... |
Adding explicit braces | @@ -1213,7 +1213,7 @@ oc_ri_invoke_coap_entity_handler(void *request, void *response, uint8_t *buffer,
!resource_is_collection &&
#endif /* OC_COLLECTIONS */
cur_resource && (method == OC_PUT || method == OC_POST) &&
- response_buffer.code < oc_status_code(OC_STATUS_BAD_REQUEST))
+ response_buffer.code < oc_status_code... |
Removing unnecessary include of oc_log.h | #include <stdio.h>
#include "oc_enums.h"
-#include "oc_log.h"
static const char *pos_desc[] = { "unknown", "top", "bottom",
"left", "right", "centre",
|
BugID:17711858: Redefine stat structure to shield the C library difference | @@ -82,21 +82,9 @@ int aos_sync(int fd)
return _vfs_to_aos_res(vfs_sync(fd));
}
-int aos_stat(const char *path, struct stat *st)
+int aos_stat(const char *path, struct aos_stat *st)
{
- int ret;
- vfs_stat_t stat;
-
- memset(&stat, 0, sizeof(vfs_stat_t));
- ret = _vfs_to_aos_res(vfs_stat(path, &stat));
-
- st->st_mode ... |
filter: do not process new buffer if it size is zero | @@ -93,6 +93,12 @@ void flb_filter_do(msgpack_sbuffer *mp_sbuf, msgpack_packer *mp_pck,
/* Override buffer just if it was modified */
if (ret == FLB_FILTER_MODIFIED) {
+ /* all records removed */
+ if (out_size == 0) {
+ mp_sbuf->size = 0;
+ continue;
+ }
+
flb_filter_replace(mp_sbuf, mp_pck, /* msgpack */
bytes, /* pa... |
Remove unused _bt_delitems_delete() argument.
The latestRemovedXid values used by nbtree deletion operations are
determined by _bt_delitems_delete()'s caller, so there is no reason to
pass a separate heapRel argument.
Oversight in commit | @@ -41,8 +41,7 @@ static void _bt_log_reuse_page(Relation rel, BlockNumber blkno,
static void _bt_delitems_delete(Relation rel, Buffer buf,
TransactionId latestRemovedXid,
OffsetNumber *deletable, int ndeletable,
- BTVacuumPosting *updatable, int nupdatable,
- Relation heapRel);
+ BTVacuumPosting *updatable, int nupdat... |
Fix DaemonClient exception propagation for ExecuteCmdSingleAsync | @@ -240,7 +240,7 @@ namespace Miningcore.DaemonInterface
logger.LogInvoke(new[] { "\"" + method + "\"" });
var task = BuildRequestTask(logger, endPoints.First(), method, payload, CancellationToken.None, payloadJsonSerializerSettings);
- await task;
+ await Task.WhenAny(new[] { task });
var result = MapDaemonResponse<TR... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.