message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
link libpocl-devices-ttasim.so with -pthread | @@ -33,7 +33,7 @@ install(FILES "tta_device_main.c"
add_pocl_device_library(pocl-devices-ttasim tce_common.h tce_common.cc ttasim/ttasim.h ttasim/ttasim.cc)
if(ENABLE_LOADABLE_DRIVERS)
- target_link_libraries(pocl-devices-ttasim PRIVATE ${TCE_LIBS})
+ target_link_libraries(pocl-devices-ttasim PRIVATE ${TCE_LIBS} ${PTHR... |
Clean up uniqmap by key instead of iteratating over the whole table. | @@ -2551,6 +2551,7 @@ static void
free_key_by_type (GKHashMetric mtrc, uint32_t key) {
khiter_t k;
void *list = NULL;
+ bitmap *bm = NULL;
char *value = NULL;
switch (mtrc.type) {
@@ -2558,6 +2559,14 @@ free_key_by_type (GKHashMetric mtrc, uint32_t key) {
k = kh_get (ii32, mtrc.ii32, key);
kh_del (ii32, mtrc.ii32, k);
... |
erc20: add Multi-Collateral DAI and USDC
Change Single-Collateral DAI to SAI
Add Multi-Collateral DAI
Add USDC | @@ -67,6 +67,13 @@ static const app_eth_erc20_params_t _erc20_params[] = {
"\xda\xc1\x7f\x95\x8d\x2e\xe5\x23\xa2\x20\x62\x06\x99\x45\x97\xc1\x3d\x83\x1e\xc7",
.decimals = 6,
},
+ {
+ .coin = ETHCoin_ETH,
+ .unit = "USDC",
+ .contract_address =
+ "\xa0\xb8\x69\x91\xc6\x21\x8b\x36\xc1\xd1\x9d\x4a\x2e\x9e\xb0\xce\x36\x06\... |
decision: clarifications for query | @@ -139,6 +139,7 @@ We could just point the plugin to `backendsData->keys` or the internal cache if
### Provide an API within `libelektra-kdb`
The API should be useable both by plugins and applications utilizing ELektra.
+It does not matter whether the changetracking is implemented as part of `libelektra-kdb` or as a s... |
Homebridge script: Don't write config file if homebridge pin is missing | @@ -428,11 +428,6 @@ function checkHomebridge {
fi
fi
else
- # create homebridge dir and config and add Mainuser ownership
- mkdir /home/$MAINUSER/.homebridge
- touch /home/$MAINUSER/.homebridge/config.json
- chown -R $MAINUSER /home/$MAINUSER/.homebridge
-
RC=1
while [ $RC -ne 0 ]; do
HOMEBRIDGE_PIN=$(sqlite3 $ZLLDB "... |
noHDK_Makefile: config call now copy | @@ -107,15 +107,9 @@ copy $(BUILD_DIR)/Checkpoint/b_route_design.dcp:
@ln -s $(BUILD_NAME) build;
@ln -s $(DONUT_HARDWARE_ROOT)/setup/noHDK_build.tcl $(BUILD_DIR)/noHDK_build.tcl;
@ln -s $(DONUT_HARDWARE_ROOT)/setup/fw_xpr_build.tcl $(BUILD_DIR)/fw_xpr_build.tcl;
-<<<<<<< HEAD
@cp -p $(PSL_DCP) $(BUILD_DIR)/Checkpoint/... |
commented debug code. | @@ -54,7 +54,7 @@ uint8_t vcp_getch(void)
{
uint8_t ch = CDC_Itf_Getch();
- drv_uart_write(DRV_UART_NUM_4, ch);
+ //drv_uart_write(DRV_UART_NUM_4, ch); //for debugging
return ch;
}
|
Test more sqrt corner cases | @@ -1095,6 +1095,7 @@ describe("Pallene coder /", function()
assert(2.0 == test.square_root(4.0))
assert(3.0 == test.square_root(9.0))
assert(4.0 == test.square_root(16.0))
+ assert(math.huge == test.square_root(math.huge))
]])
end)
@@ -1104,6 +1105,13 @@ describe("Pallene coder /", function()
assert(x ~= x)
]])
end)
+... |
Add link to C++ API documentation; Add Ubuntu Focal Fossa | @@ -7,7 +7,8 @@ A list of supported Zigbee devices can be found on the [Supported Devices](https
To communicate with Zigbee devices the [RaspBee](https://phoscon.de/raspbee?ref=gh) / [RaspBee II](https://phoscon.de/raspbee2?ref=gh) Zigbee shield for Raspberry Pi, or a [ConBee](https://phoscon.de/conbee?ref=gh) / [... |
README.md: Use version 2.05.45 | @@ -44,11 +44,11 @@ https://github.com/dresden-elektronik/deconz-rest-plugin/releases
1. Download deCONZ package
- wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.44-qt5.deb
+ wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.45-qt5.deb
2. Install deCONZ package
- sudo dpkg -i deconz-2... |
Accept line feed to complete input of passphrase | @@ -1840,7 +1840,8 @@ HandleParsingLibDestructor(
return 0;
}
#define MAX_PROMT_INPUT_SZ 1024
-#define RETURN_KEY 13
+#define RETURN_KEY 0xD
+#define LINE_FEED 0xA
/**
Prompted input request
@@ -1878,7 +1879,7 @@ PromptedInput(
for (PromptIndex = 0; PromptIndex < MAX_PROMT_INPUT_SZ; ++PromptIndex)
{
buff[PromptIndex] =... |
zephyr/include/ap_power/ap_power_interface.h: Format with clang-format
BRANCH=none
TEST=none | @@ -93,11 +93,11 @@ enum ap_power_state_mask {
AP_POWER_STATE_ON = BIT(3), /* On (S0) */
AP_POWER_STATE_STANDBY = BIT(4), /* Standby (S0ix) */
/* Common combinations, any off state */
- AP_POWER_STATE_ANY_OFF = (AP_POWER_STATE_HARD_OFF |
- AP_POWER_STATE_SOFT_OFF),
+ AP_POWER_STATE_ANY_OFF =
+ (AP_POWER_STATE_HARD_OFF ... |
fix error: variable 'len' is used uninitialized when NDEBUG is defined | @@ -357,6 +357,7 @@ ble_hci_sock_cmdevt_tx(uint8_t *hci_ev, uint8_t h4_type)
STATS_INC(hci_sock_stats, oevt);
} else {
assert(0);
+ return BLE_ERR_UNKNOWN_HCI_CMD;
}
iov[1].iov_len = len;
|
fix build for Android with USE_STL_SYSTEM=yes | @@ -7,8 +7,12 @@ NO_PLATFORM()
ADDINCL(GLOBAL contrib/libs/cxxsupp/system_stl/include)
IF (NOT OS_IOS AND NOT OS_DARWIN)
+ IF (NOT OS_ANDROID)
LDFLAGS(
-lgcc_s
+ )
+ ENDIF()
+ LDFLAGS(
-lstdc++
)
ELSE()
|
MIT license, 2011 - 2018. | -Copyright (c) 2011-2017 Jesse Ray Adkins
+Copyright (c) 2011-2018 Jesse Adkins (FascinatedBox)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the... |
ssl_tls13_generic.c: adapt guards for MBEDTLS_SHAxxx_C | @@ -1388,7 +1388,7 @@ int mbedtls_ssl_reset_transcript_for_hrr( mbedtls_ssl_context *ssl )
if( ciphersuite_info->mac == MBEDTLS_MD_SHA256 )
{
-#if defined(MBEDTLS_SHA256_C)
+#if defined(MBEDTLS_HAS_ALG_SHA_256_VIA_MD_OR_PSA_BASED_ON_USE_PSA)
MBEDTLS_SSL_DEBUG_BUF( 4, "Truncated SHA-256 handshake transcript",
hash_trans... |
Remove requirement to wait 4 intervals before closing | @@ -250,7 +250,6 @@ typedef struct st_client_loop_cb_t {
int key_update_done;
int zero_rtt_available;
int is_siduck;
- int client_ready_loop;
char const* saved_alpn;
struct sockaddr_storage server_address;
struct sockaddr_storage client_address;
@@ -400,9 +399,7 @@ int client_loop_cb(picoquic_quic_t* quic, picoquic_pac... |
assertions in ++beam-dents-in-dir | ^- (set dent)
?> =(%z ren) :: only %z supported
::
+ =/ folder=dent [%beam bem ren]
+ ::
+ ?. (~(has by sup.a) folder) :: state must have bem
+ ~&(missing-folder+folder !!)
+ ::
+ =- ?. (~(has in -) folder) :: result must keep bem
+ ~&([folder+folder missing-from+-] !!)
+ -
+ ::
%- silt
%+ skim ~(tap in ~(key by sup.a)... |
docs: Fix BPF_HISTGRAM typo in reference guide
Fix typo in reference guide, should be BPF_HISTOGRAM. | @@ -869,7 +869,7 @@ Maps are BPF data stores, and are the basis for higher level object types includ
Syntax: ```BPF_TABLE(_table_type, _key_type, _leaf_type, _name, _max_entries)```
-Creates a map named ```_name```. Most of the time this will be used via higher-level macros, like BPF_HASH, BPF_ARRAY, BPF_HISTGRAM, etc.... |
Added brief instructions to the CONTRIBUTE.md file. | @@ -18,7 +18,8 @@ Things to do if you are adding new features to the CCL C lib
Makefile.am.
3. When adding a new header file (.h), put it in include.
The new file should be listed under include_HEADERS in
- include/Makefile.am
+ include/Makefile.am. It should also have doxygen
+ compatible documentation.
4. When adding... |
Examples: Fix memory leaks and clean up comments | ! below might not work directly for other types of TEMP messages than the one used in the
! example. It is advised to use bufr_dump first to understand the structure of these messages.
!
-program bufr_read_temp
+program bufr_read_tempf
use eccodes
implicit none
integer :: ifile
@@ -44,11 +44,11 @@ program bufr_read_tem... |
kukui_scp: Let the AP setup the UART pinmux correctly
This helps make our images compatible between P1 and P2.
BRANCH=none
TEST=Flash kukui_scp on P1 and P2, UART works in both cases. | #ifndef __CROS_EC_BOARD_H
#define __CROS_EC_BOARD_H
-/* board revision */
-#define BOARD_REV 2
-
-#if BOARD_REV < 1 || BOARD_REV > 2
-#error "Board revision out of range"
-#endif
-
#define CONFIG_FLASH_SIZE 0x40000 /* Image file size: 256KB */
#undef CONFIG_LID_SWITCH
#undef CONFIG_FW_INCLUDE_RO
* 2 - share with AP UAR... |
Version: Fix minor spelling mistakes | @@ -24,7 +24,7 @@ and is described in [src/plugins/doc/doc.c](/src/plugins/doc/doc.c).
## Compatibility
This section describes under which circumstances API
-and ABI incompatiblities may occur. As developer from
+and ABI incompatibilities may occur. As developer from
Elektra your mission is to avoid that.
The tool iche... |
Added new convert for completeness | @@ -241,6 +241,7 @@ void libxsmm_generator_cvtfp32bf16_avx512_microkernel( libxsmm_generated_code*
}
/* Downconvert to BF16 */
+ if (!((use_m_masking == 1) && (im == m_trips-1) && (m % 32 <= 16))) {
libxsmm_x86_instruction_vec_compute_convert( io_generated_code,
i_micro_kernel_config->instruction_set,
LIBXSMM_X86_INSTR... |
test write predictions to streams | @@ -5965,3 +5965,47 @@ def test_train_on_quantized_pool_with_large_grid():
'-i', '10')
yatest.common.execute(cmd)
+
+def test_write_predictions_to_streams():
+ output_model_path = yatest.common.test_output_path('model.bin')
+ output_eval_path = yatest.common.test_output_path('test.eval')
+ calc_output_eval_path_redirec... |
zonemd, fix to harden against failure in pickup zonemd lookups. | @@ -8171,6 +8171,8 @@ void auth_zones_pickup_zonemd_verify(struct auth_zones* az,
key.namelen = savezname_len;
key.name = savezname;
z = (struct auth_zone*)rbtree_search(&az->ztree, &key);
+ if(!z)
+ break;
}
lock_rw_unlock(&az->lock);
}
|
chat-store: immediate handle-read on our %message | ?- -.action
%create (handle-create action)
%delete (handle-delete action)
- %message (handle-message action)
- %messages (handle-messages action)
%read (handle-read action)
+ %messages (handle-messages action)
+ %message
+ ?. =(our.bol author.envelope.action)
+ (handle-message action)
+ =^ message-moves state (handle-m... |
fix assertion, add check for page committed before doing reset | @@ -231,6 +231,7 @@ static void mi_segment_protect(mi_segment_t* segment, bool protect, mi_os_tld_t*
----------------------------------------------------------- */
static void mi_page_reset(mi_segment_t* segment, mi_page_t* page, size_t size, mi_segments_tld_t* tld) {
+ mi_assert_internal(page->is_committed);
if (!mi_o... |
nvhw/pgraph: Get rid of one usage of nv01_pgraph_expand_surf. | @@ -225,6 +225,14 @@ struct pgraph_color nv01_pgraph_expand_surf(struct pgraph_state *state, uint32_t
return res;
}
+uint32_t nv01_pgraph_upconvert_r5g5b5(struct pgraph_state *state, uint32_t pixel) {
+ int factor = extr(state->canvas_config, 20, 1) ? 0x21 : 0x20;
+ uint16_t r = extr(pixel, 10, 5) * factor;
+ uint16_t ... |
Fix chip/imxrt_lpi2c.c:755:1: error: unused function 'imxrt_lpi2c_sem_waitstop' | @@ -243,8 +243,6 @@ static uint32_t imxrt_lpi2c_toticks(int msgc, struct i2c_msg_s *msgs);
static inline int
imxrt_lpi2c_sem_waitdone(struct imxrt_lpi2c_priv_s *priv);
-static inline void
-imxrt_lpi2c_sem_waitstop(struct imxrt_lpi2c_priv_s *priv);
#ifdef CONFIG_I2C_TRACE
static void imxrt_lpi2c_tracereset(struct imxrt_... |
[mod_fastcgi] fix memleak with FastCGI auth,resp (fixes
fix memleak in mod_fastcgi when FastCGI is used for both authentication
and response on the same request
(thx rschmid)
x-ref:
"Memory leak if two fcgi calls with one request (authentication and response)" | @@ -515,8 +515,13 @@ static handler_t fcgi_check_extension(server *srv, connection *con, void *p_d, i
hctx->opts.pdata = hctx;
hctx->stdin_append = fcgi_stdin_append;
hctx->create_env = fcgi_create_env;
+ if (!hctx->rb) {
hctx->rb = chunkqueue_init();
}
+ else {
+ chunkqueue_reset(hctx->rb);
+ }
+ }
return HANDLER_GO_O... |
Sets tls version to 1.2 to avoid use of weaker protocol versions | @@ -125,6 +125,7 @@ static long acvp_curl_http_get (ACVP_CTX *ctx, char *url, void *writefunc) {
curl_easy_setopt(hnd, CURLOPT_URL, url);
curl_easy_setopt(hnd, CURLOPT_NOPROGRESS, 1L);
curl_easy_setopt(hnd, CURLOPT_USERAGENT, "curl/7.27.0");
+ curl_easy_setopt(hnd, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2);
if (slis... |
display: header changes | @@ -150,9 +150,9 @@ static void display_displayLocked(honggfuzz_t* hfuzz)
MX_SCOPED_LOCK(logMutexGet());
display_put(ESC_NAV(13, 1) ESC_CLEAR_ABOVE ESC_NAV(1, 1));
- display_put("------------------------------[ " ESC_BOLD "%s v%s" ESC_RESET
- " ]-------------------------------\n",
- PROG_NAME, PROG_VERSION);
+ display_... |
cvsd/autotest: testing algorithm to run in blocks of 8 samples | #include "autotest/autotest.h"
#include "liquid.internal.h"
-//
-// AUTOTEST: check RMSE for CVSD
-//
-void autotest_cvsd_rmse_sine() {
+// check RMS error
+void autotest_cvsd_rmse_sine()
+{
unsigned int n=256;
unsigned int nbits=3;
float zeta=1.5f;
@@ -35,6 +34,7 @@ void autotest_cvsd_rmse_sine() {
// create cvsd code... |
Fix markdown error. | ## C library
- Deprecated the `native` non-Limber angular power spectrum method (#506).
-- Renamed `ccl\_lsst\_specs.c` to `ccl\_redshifts.c`, deprecated LSST-specific redshift distribution functionality, introduced user-defined true dNdz (changes in call signature of `ccl\_dNdz\_tomog`). (#528).
+- Renamed `ccl_lsst_s... |
Add static scope to sest_bucket_realloc and set_bucket_realloc_iterator. | @@ -86,7 +86,7 @@ size_t set_size(set s)
return 0;
}
-int set_bucket_realloc_iterator(set s, set_key key, set_value value, set_cb_iterate_args args)
+static int set_bucket_realloc_iterator(set s, set_key key, set_value value, set_cb_iterate_args args)
{
set new_set = (set)args;
@@ -113,7 +113,7 @@ int set_bucket_reallo... |
h2olog/quic: support the new_token_receive probe | @@ -316,6 +316,26 @@ int trace_new_token_acked(struct pt_regs *ctx) {
return 0;
}
+
+int trace_new_token_receive(struct pt_regs *ctx) {
+ void *pos = NULL;
+ struct quic_event_t event = {};
+ struct st_quicly_conn_t conn = {};
+ sprintf(event.type, "new_token_receive");
+
+ bpf_usdt_readarg(1, ctx, &pos);
+ bpf_probe_r... |
Fix octave/LimeSuite.cc compilation
GW version now reports both GW version and revision
gw revision info noe longer exists | @@ -55,8 +55,8 @@ void PrintDeviceInfo(lms_device_t* port)
{
octave_stdout << "Connected to device: " << info->deviceName
<< " FW: " << info->firmwareVersion << " HW: " << info->hardwareVersion
- << " Protocol: " << info->protocolVersion << " GW: " << info->gatewareVersion
- << " GW_rev: " << info->gatewareRevision << ... |
Make handles steps individually/incrementally | @@ -89,26 +89,45 @@ btc-test-run: btc-test
#
########################################################################################
+# Test for DEBUG nature of the build requires inspecting
+# the prior `cmake` CMAKE_BUILD_TYPE, presuming cmake has
+# been run. Only `Debug` results in the production of
+# tests and r... |
cleanup: add comment to CONFIG_BATTERY_REVIVE_DISCONNECT
When you define CONFIG_BATTERY_REVIVE_DISCONNECT you also need to define
battery_get_disconnected_state method()
BRANCH=none
TEST=none | /*
* Check for battery in disconnect state (similar to cut-off state). If this
* battery is found to be in disconnect state, take it out of this state by
- * force-applying a charge current.
+ * force-applying a charge current. This option requires
+ * battery_get_disconnect_state() to be defined.
*/
#undef CONFIG_BATT... |
c++: Change the default value of CXX_STANDARD from c++17 to gnu++17
since many 3rd party code use some gnu c++ extension | @@ -87,9 +87,10 @@ endif
config CXX_STANDARD
string "Language standard"
- default "c++17"
+ default "gnu++17"
---help---
- Possible values: c++98, c++11, c++14, c++17 and c++20
+ Possible values:
+ gnu++98/c++98, gnu++11/c++11, gnu++14/c++14, gnu++17/c++17 and gnu++20/c++20
config CXX_EXCEPTION
bool "Enable Exception S... |
[cli] Stop running when an error occurs | @@ -86,6 +86,7 @@ var removeCmd = &cobra.Command{
reply, err := client.ChangeMembership(context.Background(), changeReq)
if err != nil {
cmd.Printf("Failed to remove member: %s\n", err.Error())
+ return
}
cmd.Printf("removed member from cluster: %s\n", reply.Attr.ToString())
|
renames +en-host to +join | ^- spec:asn1
:- %seq
%+ turn hot
- |=(h=(list @t) [%con [& 2] (rip 3 (en-host h))])
+ |=(h=(list @t) [%con [& 2] (rip 3 (join '.' h))])
:: :: +cert:spec:pkcs10
++ cert :: cert request info
|= csr :: XX rename
|= [a=* b=*]
^- ?
(fall (bind (both (find ~[a] lit) (find ~[b] lit)) com) |)
-:: :: +en-host
-++ en-host :: ren... |
py/objtype: Use mp_obj_new_tuple_always() when allocating __slots__ object.
Fixes creating of object with __slots__ = (). | @@ -119,7 +119,7 @@ mp_obj_instance_t *mp_obj_new_instance(const mp_obj_type_t *class, const mp_obj_
const mp_obj_namedtuple_type_t *type = (const mp_obj_namedtuple_type_t *)class;
size_t num_fields = type->n_fields;
- mp_obj_tuple_t *t = MP_OBJ_TO_PTR(mp_obj_new_tuple(num_fields, NULL));
+ mp_obj_tuple_t *t = MP_OBJ_T... |
comment in dockerfile | +# This docker image was loaded manually, since the latest version of cribl in docker
+# hub does not include the changes to the appscope source that are required to parse http1
FROM cribl-dev-c9b1c605
RUN apt update && apt install -y \
|
Add PhGetUserOrMachineDpi | @@ -161,6 +161,34 @@ VOID PhCenterWindow(
}
}
+// rev from EtwRundown.dll!EtwpLogDPISettingsInfo (dmex)
+LONG PhGetUserOrMachineDpi(
+ VOID
+ )
+{
+ static PH_STRINGREF machineKeyName = PH_STRINGREF_INIT(L"System\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts");
+ static PH_STRINGREF userKeyName = PH_S... |
rm bootstrap | @@ -71,6 +71,7 @@ export PATH=${LMOD_DIR}:${PATH}
MODULEPATH= python ./bootstrap_eb.py %{buildroot}/%{install_path}
+rm bootstrap_eb.py*
pushd %{buildroot}%{install_path}/modules/tools/EasyBuild/
rm %version
ln -s ../../all/EasyBuild/%version .
|
examples/bind: faster named.conf | @@ -7,24 +7,38 @@ options {
recursive-clients 1000000;
max-clients-per-query 100000;
max-recursion-queries 100000;
- max-cache-size 1;
- max-acache-size 1;
- acache-enable no;
+ max-recursion-depth 2;
+ max-cache-size 1024;
+ max-acache-size 1024;
+ acache-enable yes;
max-ncache-ttl 1;
max-cache-ttl 1;
- lame-ttl 1;
+ ... |
hw: mcu: pic32mx470f512h: Reduce number of UART TX interrupts
See commit for
explanations. | @@ -155,15 +155,16 @@ uart_receive_ready(int port)
static void
uart_transmit_ready(int port)
{
+ while(!(UxSTA(port) & _U1STA_UTXBF_MASK)) {
int c = uarts[port].u_tx_func(uarts[port].u_func_arg);
if (c < 0) {
uart_disable_tx_int(port);
-
/* call tx done cb */
if (uarts[port].u_tx_done) {
uarts[port].u_tx_done(uarts[por... |
nimble/ll: Remove unused syscfg
We do support extended scanner filter policy and it's always enabled,
there's no need to make it configurable. | @@ -240,13 +240,6 @@ syscfg.defs:
This option is used to enable/disable LL privacy.
value: '1'
- BLE_LL_CFG_FEAT_EXT_SCAN_FILT:
- description: >
- This option is used to enable/disable the extended scanner filter
- policy feature. Currently, this feature is not supported by the
- nimble controller.
- value: '0'
-
BLE_L... |
hv: fix "Array has no bounds specified" in vmsr.c
MISRAC requires that the array size should be declared explicitly.
Acked-by: Anthony Xu | @@ -145,7 +145,8 @@ static const uint32_t emulated_msrs[NUM_EMULATED_MSR] = {
/* MSR 0xC90 ... 0xD8F, not in this array */
};
-static const uint32_t x2apic_msrs[] = {
+#define NUM_X2APIC_MSR 44U
+static const uint32_t x2apic_msrs[NUM_X2APIC_MSR] = {
MSR_IA32_EXT_XAPICID,
MSR_IA32_EXT_APIC_VERSION,
MSR_IA32_EXT_APIC_TPR... |
Update pbuf function documentation | @@ -502,7 +502,8 @@ esp_pbuf_set_ip(esp_pbuf_p pbuf, const esp_ip_t* ip, esp_port_t port) {
* they are not adjusted in length and total length
*
* \param[in] pbuf: Pbuf to advance
- * \param[in] len: Number of bytes to advance. when negative is used, buffer size is increased by only if it was decreased before
+ * \para... |
gpexpand: need to start and stop the primaries with convertMasterDataDirToSegment.
This reverts partial part of commit
as primaries need to be
started once using convertMasterDataDirToSegment. | @@ -745,6 +745,45 @@ class SegmentTemplate:
self.pool.join()
self.pool.check_results()
+ def _start_new_primary_segments(self):
+ newSegments = self.gparray.getExpansionSegDbList()
+ for seg in newSegments:
+ if seg.isSegmentMirror():
+ continue
+ """ Start all the new segments in utilty mode. """
+ segStartCmd = Segme... |
stm32/mboot/main: Use correct formula for DFU download address.
As per ST's DfuSe specification, and following their example code. | @@ -760,7 +760,8 @@ static int dfu_process_dnload(void) {
}
} else if (dfu_state.wBlockNum > 1) {
// write data to memory
- ret = do_write(dfu_state.addr, dfu_state.buf, dfu_state.wLength);
+ uint32_t addr = (dfu_state.wBlockNum - 2) * DFU_XFER_SIZE + dfu_state.addr;
+ ret = do_write(addr, dfu_state.buf, dfu_state.wLen... |
Do not default to first language for new carts
Do not default to the first available language for new carts. | @@ -1115,8 +1115,8 @@ static void onNewCommandConfirmed(Console* console)
}
else
{
- loadDemo(console, 0);
- done = true;
+ printError(console, "\nerror: choose a language for the new cart.");
+ printUsage(console, console->desc->command);
}
if(done) printBack(console, "\nnew cart has been created");
@@ -2549,7 +2549,7... |
Fix return value and const declaration from commit
This fixes the non-OpenSSL compile case.
Reported-by: buildfarm member sifaka
Backpatch-through: master | #include "common/cipher.h"
-static cipher_failure(void);
+static void cipher_failure(void);
PgCipherCtx *
pg_cipher_ctx_create(int cipher, uint8 *key, int klen, bool enc)
@@ -46,12 +46,12 @@ bool
pg_cipher_decrypt(PgCipherCtx *ctx, const unsigned char *ciphertext,
const int inlen, unsigned char *plaintext, int *outlen,... |
disable appveyor test | @@ -10,10 +10,10 @@ environment:
BINPATH: C:\msys64\mingw64\bin
OPENBLAS: https://3f23b170c54c2533c070-1c8a9b3114517dc5fe17b7c3f8c63a43.ssl.cf2.rackcdn.com/openblas-5f998ef_gcc7_1_0_win64.zip
- - platform: x86
- ARCH: 32
- BINPATH: C:\MinGw\bin;C:\msys64\mingw32\bin
- OPENBLAS: https://3f23b170c54c2533c070-1c8a9b311451... |
zuse: added docstring and warning | --
--
::
+:: +mop: constructs and validates ordered ordered map based on key,
+:: val, and comparator gate
+::
++ mop
|* [key=mold value=mold]
|= ord=$-([key key] ?)
:: smallest key can be popped off the head. If $key is `@` and
:: .compare is +lte, then the numerically smallest item is the head.
::
+:: WARNING: ordere... |
DM: Fix deinit_mmio_devs() conflicting type
There is "void deinit_mmio_devs()" in ./devicemodel/hw/mmio/core.c,
but "int deinit_mmio_devs()" in ./devicemodel/include/mmio_dev.h
Acked-by: Wang, Yu1 | @@ -12,6 +12,6 @@ int parse_pt_acpidev(char *arg);
int parse_pt_mmiodev(char *arg);
int init_mmio_devs(struct vmctx *ctx);
-int deinit_mmio_devs(struct vmctx *ctx);
+void deinit_mmio_devs(struct vmctx *ctx);
#endif /* _MMIO_DEV_H_ */
|
Add comment about kci_toss | @@ -253,7 +253,7 @@ struct kvs_cursor_impl {
u32 kci_peek : 1;
u32 kci_toss : 1;
u32 kci_reverse : 1;
- u32 kci_unused : 14;
+ u32 kci_unused : 15;
u32 kci_pfx_len : 8;
u64 kci_pfxhash;
@@ -1867,6 +1867,12 @@ ikvs_cursor_seek(
tombs->kct_update = false;
}
+ /* This flag is used to prevent tossing the last read key in t... |
Fix error reported by in lv_imgbtn | @@ -81,11 +81,10 @@ lv_obj_t * lv_imgbtn_create(lv_obj_t * par, const lv_obj_t * copy)
}
/*Copy an existing image button*/
else {
+ lv_imgbtn_ext_t * copy_ext = lv_obj_get_ext_attr(copy);
#if LV_IMGBTN_TILED == 0
memcpy(ext->img_src, copy_ext->img_src, sizeof(ext->img_src));
#else
- lv_imgbtn_ext_t * copy_ext = lv_obj_... |
nimble/phy: Allow idle state when starting RX
nRF52 radio can ramp-up from idle state so it can be either disabled or
idle (for whatever reason - it happens sometimes) when starting RX.
Similar problem was already fixed on nRF51 by forcing radio disable
since that radio can ramp-up only from disabled state. | @@ -1309,9 +1309,19 @@ ble_phy_init(void)
int
ble_phy_rx(void)
{
- /* Check radio state */
+ /*
+ * Check radio state.
+ *
+ * In case radio is now disabling we'll wait for it to finish, but if for
+ * any reason it's just in idle state we proceed with RX as usual since
+ * nRF52 radio can ramp-up from idle state as we... |
dm: fix mutex lock issue in tpm_rbc.c
In function crb_reg_write() in tpm_rbc.c
'tpm_vdev->request_mutex' will potentially kept
in locked state after crb_reg_write() returns.
Acked-by: Yu Wang | @@ -333,12 +333,10 @@ static void crb_reg_write(struct tpm_crb_vdev *tpm_vdev, uint64_t addr, int size
if (pthread_cond_signal(&tpm_vdev->request_cond)) {
DPRINTF("ERROR: Failed to wait condition\n");
- break;
}
if (pthread_mutex_unlock(&tpm_vdev->request_mutex)) {
DPRINTF("ERROR: Failed to release mutex lock\n");
- br... |
docs: add pointer to more detailed release notes in Release_Notes.txt | OpenHPC Software Stack
-Version 1.2 (12 November 2016)
Introduction:
- This release provides a variety of common, pre-built ingredients
+ OpenHPC provides a variety of common, pre-built ingredients
required to deploy and manage an HPC Linux cluster including
provisioning tools, resource management, I/O clients, develop... |
Add ability to change output archive name | @@ -64,6 +64,7 @@ def generate_dart(unit, as_lib=False):
includes = extract_macro_calls(unit, 'DOCSINCLUDESOURCES')
data = {
+ 'DOCS_NAME': unit.name(),
'PATH': module_dir,
'MODULE_TAG': unit.get('MODULE_TAG'),
'DOCSDIR': docs_dir,
|
remove potential using default i/o handler
device driver should register valid i/o handlers
in any cases, avoid referencing to default handler
remove i/o handler test code as they shall
never be NULL. | @@ -116,9 +116,6 @@ int io_instr_vmexit_handler(struct vcpu *vcpu)
}
if (direction == 0) {
- if (handler->desc.io_write == NULL)
- continue;
-
handler->desc.io_write(handler, vm, port, sz,
cur_context->guest_cpu_regs.regs.rax);
@@ -127,7 +124,7 @@ int io_instr_vmexit_handler(struct vcpu *vcpu)
status = 0;
break;
- } el... |
dojo: remove unnecessary debug output
The tip already communicates to the user that dojo is busy, so the
sigpam output isn't needed anymore. | ^+ +>+>
=^ dat say (~(transceive sole say) cal)
?: |(?=(^ per) ?=(^ pux) ?=(~ pro))
- ~& %dy-edit-busy
=^ lic say (~(transmit sole say) dat)
=/ tip=@t 'dojo: busy (press backspace to abort)'
(dy-diff %mor [%det lic] [%bel ~] [%tan [tip ~]] ~)
|
[numerics] suppress compiler's warning | @@ -277,10 +277,8 @@ void SBM_extract_component_3x3(const SparseBlockStructuredMatrix* const restrict
- /* Column (block) position of the current block*/
- size_t colNumber;
- /* Number of rows/columns of the current block */
- unsigned int nbRows, nbColumns;
+ /* Number of rows of the current block */
+ unsigned int n... |
ci: increase test_flash_psram timeout | @@ -36,4 +36,4 @@ MSPI_F4R4_configs = [p.name.replace('sdkconfig.ci.', '') for p in pathlib.Path(o
@pytest.mark.MSPI_F4R4
@pytest.mark.parametrize('config', MSPI_F4R4_configs, indirect=True)
def test_flash4_psram4(dut: Dut) -> None:
- dut.expect_exact('flash psram test success')
+ dut.expect_exact('flash psram test suc... |
in_dummy: use new flb_pack_json() prototype | @@ -74,6 +74,7 @@ static int configure(struct flb_in_dummy_config *ctx,
struct timespec *tm)
{
char *str = NULL;
+ int root_type;
int ret = -1;
long val = 0;
@@ -101,7 +102,7 @@ static int configure(struct flb_in_dummy_config *ctx,
ret = flb_pack_json(ctx->dummy_message,
ctx->dummy_message_len,
- &ctx->ref_msgpack, &ct... |
Fix markdown syntax in pipeline's README
It was showed strangely in text editors. | # Concourse Pipeline Generation
-To facilitate pipeline maintenance, a Python utility 'gen_pipeline.py`
+To facilitate pipeline maintenance, a Python utility `gen_pipeline.py`
is used to generate the production pipeline. It can also be used to build
custom pipelines for developer use.
|
tup: fully support renaming android package; | @@ -43,7 +43,7 @@ config = {
keystore = '/path/to/keystore',
keystorepass = 'pass:password',
manifest = nil,
- package = nil,
+ package = 'org.lovr.app',
project = nil
}
}
@@ -173,6 +173,7 @@ if target == 'android' then
flags += config.debug and '-funwind-tables' or ''
cflags += '-D_POSIX_C_SOURCE=200809L'
cflags += ('... |
Update bucket location for singlecluster | @@ -460,11 +460,11 @@ resources:
secret_access_key: {{bucket-secret-access-key}}
regexp: deliverables/greenplum-db-(.*)-behave.tar.gz
-- name: singlecluster
+- name: singlecluster-CDH
type: s3
source:
- access_key_id: {{pxf-aws-access-key-id}}
- secret_access_key: {{pxf-aws-secret-access-key}}
+ access_key_id: {{bucket... |
Add tests to cover line numbering edge cases with JRuby | @@ -1262,6 +1262,54 @@ module Nokogiri
end
describe "#line" do
+ it "properly numbers lines with documents containing XML prolog" do
+ xml = Nokogiri::XML(<<~eoxml)
+ <?xml version="1.0" ?>
+ <a>
+ <b>
+ Test
+ </b>
+ </root>
+ eoxml
+
+ set = xml.search("//b")
+ assert_equal(3, set[0].line)
+ end
+
+ it "properly numb... |
Update thread stack window layout | @@ -162,10 +162,10 @@ STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFR
CAPTION "Thread Stack"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
- PUSHBUTTON "Copy",IDC_COPY,111,212,50,14
- PUSHBUTTON "Refresh",IDC_REFRESH,165,212,50,14
- PUSHBUTTON "Close",IDOK,219,212,50,14
- CONTROL "",IDC_TRE... |
dbug fe: separate list query term with space
Allows searching for multiple parts of the item key separately,
returning only items that match all. | @@ -32,7 +32,9 @@ export class SearchableList extends Component {
);
let items = props.items.filter(item => {
- return (state.query === '') || item.key.includes(state.query);
+ return state.query.split(' ').reduce((match, query) => {
+ return match && item.key.includes(query);
+ }, true);
})
if (items.length === 0) {
i... |
Enable assert_exhaustion tests | @@ -518,6 +518,8 @@ for fn in jsonFiles:
test.expected[0]["value"] = "<Arithmetic NaN>"
elif test.type == "assert_trap":
test.expected_trap = cmd["text"]
+ elif test.type == "assert_exhaustion":
+ test.expected_trap = "stack overflow"
else:
stats.skipped += 1
warning(f"Skipped {test.source} ({test.type} not implemented... |
Fix slf4j lib in tomcat-mcf | <exclude name="log4j-*.jar"/>
<exclude name="jasper-*.jar"/>
<exclude name="ecj-*.jar"/>
+ <exclude name="log4j-*.jar"/>
+ <exclude name="slf4j-*.jar"/>
</fileset>
</copy>
<copy flatten="true" toDir="${linux.dist.dir}/tomcat-mcf/lib" overwrite="true" force="true">
<fileset dir="${datafari.core.dir}">
<include name="dep... |
bugfix: malloc retention buffer with MALLOC_CAP_RETENTION caps | @@ -37,8 +37,6 @@ static DRAM_ATTR __attribute__((unused)) sleep_retention_t s_retention;
#if SOC_PM_SUPPORT_TAGMEM_PD
-#define TAGMEM_PD_MEM_TYPE_CAPS (MALLOC_CAP_DMA | MALLOC_CAP_DEFAULT)
-
#if CONFIG_PM_POWER_DOWN_TAGMEM_IN_LIGHT_SLEEP
static int cache_tagmem_retention_setup(uint32_t code_seg_vaddr, uint32_t code_se... |
Find `libjwt`: Reformat CMake code | +# ~~~
# Find the libjwt includes and library
#
# LIBJWT_INCLUDE_DIR - Where to find libjwt include sub-directory.
# LIBJWT_LIBRARY - Path to libjwt library.
# LIBJWT_FOUND - True if libjwt found.
+# ~~~
if (LIBJWT_INCLUDE_DIR)
- # Already in cache, be silent.
- set (LIBJWT_FIND_QUIETLY TRUE)
+ set (LIBJWT_FIND_QUIETLY... |
libopae: remove extraneous function del_dev() | @@ -340,17 +340,6 @@ out_free:
return NULL;
}
-bool del_dev(struct dev_list *pdev, struct dev_list *parent)
-{
- if (!parent || !pdev)
- return false;
-
- parent->next = pdev->next;
- free(pdev);
-
- return true;
-}
-
static fpga_result enum_fme(const char *sysfspath, const char *name,
struct dev_list *parent)
{
@@ -48... |
baseboard/asurada/usb_pd_policy.c: Format with clang-format
BRANCH=none
TEST=none | @@ -79,8 +79,7 @@ __override int svdm_dp_attention(int port, uint32_t *payload)
if (lvl)
gpio_set_level_verbose(CC_USBPD, GPIO_DP_AUX_PATH_SEL, port);
- if (chipset_in_state(CHIPSET_STATE_ANY_SUSPEND) &&
- (irq || lvl))
+ if (chipset_in_state(CHIPSET_STATE_ANY_SUSPEND) && (irq || lvl))
/*
* Wake up the AP. IRQ or level... |
uses %init for all merges up to and including the first remote sync | =. let ?. ?=($w p.p.u.rot) let ud:((hard cass:clay) q.q.r.u.rot)
=/ =wire /kiln/sync/[syd]/(scot %p her)/[sud]
=/ =cass .^(cass:clay %cw /(scot %p our)/[syd]/(scot %da now))
- =/ =germ ?:(=(0 ud.cass) %init %mate)
+ ::
+ :: If we will be syncing in remote changes, we need all our sync merges
+ :: up to and including th... |
SOVERSION bump to version 2.6.3 | @@ -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 6)
-set(LIBYANG_MICRO_SOVERSION 2)
+set(LIBYANG_MICRO_SOVERSION 3)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MI... |
Read config from env variables | @@ -313,6 +313,36 @@ void survive_init_plugins() {
#endif
}
static bool disable_colorization = false;
+static void survive_process_env(SurviveContext *ctx, bool only_print) {
+ char ** env;
+#if defined(WIN) && (_MSC_VER >= 1900)
+ env = *__p__environ();
+#else
+ extern char ** environ;
+ env = environ;
+#endif
+
+#def... |
Update documentation of mbedtls_pk_setup_opaque()
The function now accepts a RSA key pair in addition to an ECC
key pair. | @@ -330,8 +330,8 @@ int mbedtls_pk_setup( mbedtls_pk_context *ctx, const mbedtls_pk_info_t *info );
* storing and manipulating the key material directly.
*
* \param ctx The context to initialize. It must be empty (type NONE).
- * \param key The PSA key to wrap, which must hold an ECC key pair
- * (see notes below).
+ *... |
fix nsh map index error, it will cause vpp appear Segmentation fault when vpp process double packages | @@ -2000,7 +2000,7 @@ nsh_input_map (vlib_main_t * vm,
goto trace1;
}
vnet_buffer (b1)->sw_if_index[VLIB_RX] =
- map0->rx_sw_if_index;
+ map1->rx_sw_if_index;
}
/* Pop NSH header */
|
boot: bootutil: Change ec256 so that it can support multiple interfaces
Change ec256 interface so that it could support multiple interfaces in
the future. | #include "mbedtls/oid.h"
#include "mbedtls/asn1.h"
+#ifdef MCUBOOT_USE_TINYCRYPT
#include "tinycrypt/ecc_dsa.h"
+#endif
#include "bootutil_priv.h"
/*
@@ -40,7 +42,7 @@ static const uint8_t ec_secp256r1_oid[] = MBEDTLS_OID_EC_GRP_SECP256R1;
* Parse the public key used for signing.
*/
static int
-tinycrypt_import_key(uin... |
Increase the size of the stack buffer to prevent an overflow. | @@ -238,7 +238,7 @@ static int print_bin(BIO *fp, const char *name, const unsigned char *buf,
size_t len, int off)
{
size_t i;
- char str[128];
+ char str[128 + 1 + 4];
if (buf == NULL)
return 1;
|
Removed 32-bit x86 target | @@ -203,51 +203,6 @@ let
},
--
- -- Generic Intel ia32 32-bit x86 core
- --
- cpuDriver {
- architectures = [ "x86_32" ],
- assemblyFiles = [ "arch/x86_32/boot.S",
- "arch/x86_32/entry.S",
- "arch/x86_32/pic.S",
- "../usr/drivers/cpuboot/init_ap_x86_32.S" ],
- cFiles = [ "arch/x86_32/debug.c",
- "arch/x86_32/gdb_arch.c... |
fix source file list | @@ -46,6 +46,7 @@ SOURCES_C := $(NP2_PATH)/calendar.c \
$(wildcard $(NP2_PATH)/font/*.c) \
$(wildcard $(NP2_PATH)/generic/*.c) \
$(wildcard $(NP2_PATH)/io/*.c) \
+ $(wildcard $(NP2_PATH)/io/pci/*.c) \
$(wildcard $(NP2_PATH)/lio/*.c) \
$(wildcard $(NP2_PATH)/mem/*.c) \
$(wildcard $(NP2_PATH)/sdl2/*.c) \
|
Hopefully fix Appveyor builds. | version: "{build}"
-image: Visual Studio 2017
+image: Visual Studio 2019
+clone_script:
+ - ps: >-
+ if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER) {
+ git clone -q --branch=$env:APPVEYOR_REPO_BRANCH https://github.com/$env:APPVEYOR_REPO_NAME.git $env:APPVEYOR_BUILD_FOLDER
+ cd $env:APPVEYOR_BUILD_FOLDER
+ git checkout -q... |
oc_discovery: fix bug while filtering eps list | @@ -619,11 +619,12 @@ oc_ri_process_discovery_payload(uint8_t *payload, int len,
*/
bool ep_ipv6 = (temp_ep.flags & IPV6) ? true : false;
bool ep_link_local =
- (oc_ipv6_endpoint_is_link_local(&temp_ep)) ? true : false;
+ (oc_ipv6_endpoint_is_link_local(&temp_ep) == 0) ? true
+ : false;
/* 1) */
if (sender_ipv6 && send... |
esp32: do not try to load PHY data if fail to open NVS | @@ -446,6 +446,7 @@ esp_err_t esp_phy_load_cal_data_from_nvs(esp_phy_calibration_data_t* out_cal_dat
if (err == ESP_ERR_NVS_NOT_INITIALIZED) {
ESP_LOGE(TAG, "%s: NVS has not been initialized. "
"Call nvs_flash_init before starting WiFi/BT.", __func__);
+ return err;
} else if (err != ESP_OK) {
ESP_LOGD(TAG, "%s: failed... |
Fix a warning which showed up on NetBSD. | @@ -3269,7 +3269,7 @@ sctp_inpcb_bind(struct socket *so, struct sockaddr *addr,
/* bind a ep to a socket address */
struct sctppcbhead *head;
struct sctp_inpcb *inp, *inp_tmp;
-#if defined(INET) || (defined(INET6) && defined(__APPLE__)) || defined(__FreeBSD__) || defined(__APPLE__)
+#if defined(__FreeBSD__) || defined(... |
update flow links | @@ -377,15 +377,17 @@ oidc-agent.
## Response Type
The following response types must be registered:
-- 'token' when using the Password Flow (see also [flow](oidc-gen.md#flow)) #TODO
-- 'code' when using the Authorization Code Flow (see also [flow](oidc-gen.md#flow)) #TODO
+- 'token' when using the Password Flow (see al... |
Fix tilemap generation for logo scenes | @@ -8,7 +8,7 @@ import {
Trigger,
} from "store/features/entities/entitiesTypes";
import { FontData } from "../fonts/fontData";
-import { hexDec } from "../helpers/8bit";
+import { hexDec, wrap8Bit } from "../helpers/8bit";
import { PrecompiledSpriteSheetData } from "./compileSprites";
import { dirEnum } from "./helper... |
CMakeLists: Add back support for Luarocks 2.x since that doesn't have the LUALIB var
See | @@ -88,7 +88,26 @@ if (LUA)
SET(INSTALL_LIB_DIR ${LIBDIR})
if (LUA_LIBDIR)
+ if (NOT LUA_LIBFILE)
+ # If LIBDIR is set but LIBFILE is not, then that means
+ # Luarocks 2.x is being used, and we'll need to find the lib
+ # ourselves
+ GET_FILENAME_COMPONENT(LUA_EXEC_NAME ${LUA_EXECUTABLE} NAME_WE)
+ IF(LUA_EXEC_NAME STR... |
tests: subscriber ames gets kick | ==
==
:- t7 |. :- %|
- :: ames hears ack from gall, sends over the network
+ :: publisher ames hears ack from gall, sends over the network
=^ t8 ames.bud
%: ames-check-take:v ames.bud
[~1111.1.2 0xbeef.dead *roof]
== ==
==
:- t8 |. :- %|
- :: ames hears watch-ack packet, gives to gall
+ :: subscriber ames hears watch-a... |
gitlab: Add lazor build
We currently have only volteer building on gitlab. Since trogdor is
under active development, add a build for that as well.
BRANCH=none
TEST=pass at | @@ -41,17 +41,24 @@ before_script:
- export ZEPHYR_DIR=/zephyr
- export PATH="$PATH:$HOME/.local/bin"
-test:
+volteer:
script:
- echo "It works"
+ - zmake --zephyr-base "${ZEPHYR_BASE}" --modules-dir "${MODULES_DIR}"
+ -l DEBUG configure -b -B "${BUILD_DIR}/volteer" -t zephyr
+ zephyr/projects/volteer/volteer
+ - ls "$... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.