message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Add parameters for EMAG8180 DYNAMIC_ARCH support with cmake | @@ -332,6 +332,29 @@ if (DEFINED CORE AND CMAKE_CROSSCOMPILING AND NOT (${HOST_OS} STREQUAL "WINDOWSS
set(ZGEMM_UNROLL_M 4)
set(ZGEMM_UNROLL_N 4)
set(SYMV_P 16)
+ elseif ("${TCORE}" STREQUAL "EMAG8180")
+ file(APPEND ${TARGET_CONF_TEMP}
+ "#define ARMV8\n"
+ "#define L1_CODE_SIZE\t32768\n"
+ "#define L1_CODE_LINESIZE\t... |
dm/VBS-U: implement write callback of notify cfg
virtio_notify_cfg_write is called when guest driver performs virtqueue
kick by writing the notificaiton register of the virtqueue.
Acked-by: Eddie Dong | @@ -1340,7 +1340,31 @@ static void
virtio_notify_cfg_write(struct pci_vdev *dev, uint64_t offset, int size,
uint64_t value)
{
- /* TODO: to be implemented */
+ struct virtio_base *base = dev->arg;
+ struct virtio_vq_info *vq;
+ struct virtio_ops *vops;
+ const char *name;
+ uint64_t idx;
+
+ idx = offset / VIRTIO_MODER... |
net/ipv4_input: Set IPv4 flag at the same place as ipv6_input
Set IPv4 flag before processing ipforward, otherwise the ICMP packet responded by ipforward may sometimes be regarded as IPv6. | @@ -184,6 +184,12 @@ int ipv4_input(FAR struct net_driver_s *dev)
dev->d_len -= llhdrlen;
+ /* Make sure that all packet processing logic knows that there is an IPv4
+ * packet in the device buffer.
+ */
+
+ IFF_SET_IPv4(dev->d_flags);
+
/* Check the size of the packet. If the size reported to us in d_len is
* smaller ... |
net/can: add support of iob input | @@ -132,7 +132,7 @@ const uint8_t len_to_can_dlc[65] =
****************************************************************************/
/****************************************************************************
- * Name: can_input
+ * Name: can_in
*
* Description:
* Handle incoming packet input
@@ -151,7 +151,7 @@ cons... |
Use SOL_UDP instead of IPPROTO_UDP | @@ -646,7 +646,7 @@ void picoquic_socks_cmsg_format(
#ifdef IPV6_DONTFRAG
if (!is_null) {
int* pval = (int*)cmsg_format_header_return_data_ptr(msg, &last_cmsg,
- &control_length, IPPROTO_IPV6, IPV6_DONTFRAG, sizeof(int));
+ &control_length, SOL_IPV6, IPV6_DONTFRAG, sizeof(int));
if (pval != NULL) {
*pval = 1;
}
@@ -660... |
Remove Windows from ruby build | @@ -236,37 +236,19 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
- os: [windows-latest, macos-latest]
+ os: [macos-latest]
ruby: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1']
- exclude:
- - os: windows-latest
- ruby: '2.3'
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ ... |
perf-tools/msr-safe: correct kmod package name for SLE | @@ -47,7 +47,11 @@ Allows safer access to model specific registers (MSRs)
Summary: msr-safe slurm spank plugin
Group: Development/Libraries
Requires: %{pname}%{PROJ_DELIM}
+%if 0%{?sles_version} || 0%{?suse_version}
+Requires: %{pname}%{PROJ_DELIM}-kmp-default
+%else
Requires: kmod-%{pname}%{PROJ_DELIM}
+%endif
BuildRe... |
Use =* in ++veri:dawn for easy network reference | ::
?~ net.point
[%| %not-keyed]
+ =* net u.net.point
:: boot keys must match the contract
::
- ?. =(pub:ex:cub pass.u.net.point)
+ ?. =(pub:ex:cub pass.net)
[%| %key-mismatch]
:: life must match the contract
::
- ?. =(lyf.seed life.u.net.point)
+ ?. =(lyf.seed life.net)
[%| %life-mismatch]
:: the boot life must be grea... |
ci test formatting action | @@ -10,7 +10,7 @@ jobs:
- run: echo '${{ toJSON(github) }}'
update-formatting:
continue-on-error: true
- if: github.event.issue.pull_request && github.event.issue.user.login == github.event.pull_request.user.login
+ if: github.event.issue.user.login == 'embeddedt'
runs-on: ubuntu-latest
steps:
- uses: khan/pull-request... |
Fix errors in the "Pyto Screenshots" target | @implementation ExtensionsInitializer
+#if !SCREENSHOTS
-(void) initialize_pil {
init_pil();
}
init_biopython();
}
#endif
+#endif
@end
|
fix(c_compiler) Add dirname | @@ -3,10 +3,6 @@ local util = require "titan-compiler.util"
local c_compiler = {}
-c_compiler.LUA_SOURCE_PATH = "lua/src/"
-c_compiler.CFLAGS = "--std=c99 -O2 -Wall -fPIC"
-c_compiler.CC = "cc"
-
local function shell(cmd)
local p = io.popen(cmd)
out = p:read("*a")
@@ -14,6 +10,11 @@ local function shell(cmd)
return out... |
Update some metadata in Russian translation | #
msgid ""
msgstr ""
-"Project-Id-Version: goaccess 1.4\n"
+"Project-Id-Version: goaccess 1.5.6\n"
"Report-Msgid-Bugs-To: hello@goaccess.io\n"
"POT-Creation-Date: 2022-03-29 21:11-0500\n"
-"PO-Revision-Date: 2020-06-25 17:14+0300\n"
+"PO-Revision-Date: 2022-04-21 10:17+0300\n"
"Last-Translator: Artyom Karlov <artyom.ka... |
Fix VmaSmallVector::push_back | @@ -4301,8 +4301,9 @@ VmaSmallVector<T, AllocatorT, N>::VmaSmallVector(size_t count, const AllocatorT&
template<typename T, typename AllocatorT, size_t N>
void VmaSmallVector<T, AllocatorT, N>::push_back(const T& src)
{
- resize(m_Count + 1);
- data()[m_Count] = src;
+ const size_t newIndex = size();
+ resize(newIndex ... |
sysdeps/linux: Implement sys_sync and friends | @@ -720,4 +720,22 @@ int sys_dup(int fd, int flags, int *newfd) {
return 0;
}
+void sys_sync() {
+ do_syscall(NR_sync);
+}
+
+int sys_fsync(int fd) {
+ auto ret = do_syscall(NR_fsync, fd);
+ if (int e = sc_error(ret); e)
+ return e;
+ return 0;
+}
+
+int sys_fdatasync(int fd) {
+ auto ret = do_syscall(NR_fdatasync, fd)... |
Fix Jenkins Linux AVX2 build | @@ -33,7 +33,7 @@ pipeline {
export CXX=clang++-9
mkdir build_rel
cd build_rel
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ DISA_AVX2=ON -DISA_SSE41=ON -DISA_SSE2=ON -DISA_NONE=ON ..
+ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DISA_AVX2=ON -DIS... |
an end to end test for the "critical" attribute
We push an image so that resource is big enough that the test isn't racy | @@ -37,6 +37,12 @@ hosts:
[399, { "link" => "</index.txt.gz>; rel=preload" }, [] ]
end
proxy.reverse.url: http://127.0.0.1:$upstream_port
+ /mruby-critical:
+ mruby.handler: |
+ Proc.new do |env|
+ [399, { "link" => "</halfdome.jpg?1>; rel=preload, </halfdome.jpg?2>; rel=preload, </halfdome.jpg?3>; rel=preload; critica... |
Allow running single test | @@ -100,6 +100,7 @@ specDir = "core/spec/"
parser = argparse.ArgumentParser()
parser.add_argument("--exec", metavar="<interpreter>", default="../build/wasm3")
+parser.add_argument("--test", metavar="<source:line>")
parser.add_argument("--show-logs", action="store_true")
parser.add_argument("--skip-crashes", action="sto... |
dec_sse2: remove HE8uv_SSE2
with gcc-4.8, clang-4.0.1/5 this is no faster (actually up to 2x slower)
than the code generated for memset (0x01010... * dst[-1]). shuffles in
sse4 recover a bit, but performance is still down. | @@ -1127,15 +1127,6 @@ static void VE8uv_SSE2(uint8_t* dst) { // vertical
}
}
-static void HE8uv_SSE2(uint8_t* dst) { // horizontal
- int j;
- for (j = 0; j < 8; ++j) {
- const __m128i values = _mm_set1_epi8(dst[-1]);
- _mm_storel_epi64((__m128i*)dst, values);
- dst += BPS;
- }
-}
-
// helper for chroma-DC predictions
... |
BugID:24656372:add readme for app\legacy and board\legacy ;board | @@ -432,9 +432,11 @@ static void I2C1_init()
void board_network_init(void)
{
#ifndef WITH_SAL
+#if AOS_NET_WITH_ETH
/*enable ethernet*/
MX_ETH_Init();
lwip_tcpip_init();
+#endif
#endif
hw_start_hal();
|
kernel_shutdown*: refactor, don't assume the kernel lock is held, schedule storage_sync to run from runqueue if it is not held | @@ -367,32 +367,39 @@ closure_function(1, 1, void, sync_complete,
status, s)
{
vm_exit(bound(code));
+ closure_finish();
}
-extern boolean shutting_down;
-void kernel_shutdown(int status)
+closure_function(1, 0, void, do_storage_sync,
+ status_handler, completion)
{
- shutting_down = true;
- if (root_fs) {
- storage_sy... |
* ejdb2_dart_test minors | @@ -27,7 +27,7 @@ void main() async {
await db.put('mycoll', {'foo': 'baz'});
final list = await db.createQuery('@mycoll/*').execute(limit: 1).toList();
- print(list);
+ assert(list.length == 1);
var first = await db.createQuery('@mycoll/*').first();
assert(first != null);
|
hypercall: do not allow hypercall from UOS except trusty
only trusty related hypercall will come from UOS, others should come from VM0
Acked-by: Eddie Dong | @@ -57,6 +57,12 @@ int vmcall_vmexit_handler(struct vcpu *vcpu)
return -1;
}
+ if (!is_vm0(vm) && hypcall_id != HC_WORLD_SWITCH &&
+ hypcall_id != HC_INITIALIZE_TRUSTY) {
+ pr_err("hypercall %d is only allowed from VM0!\n", hypcall_id);
+ return -1;
+ }
+
/* Dispatch the hypercall handler */
switch (hypcall_id) {
case ... |
Update papplClientGetForm to parse GET form data from the options (Issue | @@ -24,7 +24,7 @@ static char *get_cookie(pappl_client_t *client, const char *name, char *buffer,
//
-// 'papplClientGetForm()' - Get POST form data from the web client.
+// 'papplClientGetForm()' - Get GET/POST form data from the web client.
//
int // O - Number of form variables read
@@ -44,6 +44,29 @@ papplClientGet... |
nimble/ll: Fix advertising set termination
When using extended advertising PDUs it is possible that AUX_ADV_IND
was dropped due to being scheduled too late. If that happen for
last event (due to duration or max events count) set wouldn't be
terminated. | @@ -3118,10 +3118,12 @@ ble_ll_adv_done(struct ble_ll_adv_sm *advsm)
#if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_EXT_ADV)
if (advsm->duration &&
advsm->adv_pdu_start_time >= advsm->adv_end_time) {
- /* Legacy PDUs need to be stop here, for ext adv it will be stopped when
- * AUX is done.
+ /* Legacy PDUs need to be stop here.
+ ... |
out_azure: use new upstream prototype for tls handling | @@ -175,7 +175,7 @@ struct flb_azure *flb_azure_conf_create(struct flb_output_instance *ins,
ctx->host,
ctx->port,
FLB_IO_TLS,
- &ins->tls);
+ ins->tls);
if (!upstream) {
flb_plg_error(ctx->ins, "cannot create Upstream context");
flb_azure_conf_destroy(ctx);
|
Improve dependencies in README
Document server and client dependencies separately, to avoid unneeded
packages installation when building using the prebuilt server.
Also remove "zip", since it's only used for building a portable version
(which is not documented in README). | @@ -43,10 +43,13 @@ Install the required packages from your package manager (here, for Debian):
# runtime dependencies
sudo apt install ffmpeg libsdl2-2.0.0
-# build dependencies
-sudo apt install make gcc openjdk-8-jdk pkg-config meson zip \
+# client build dependencies
+sudo apt install make gcc pkg-config meson \
li... |
examples/log_dump: change lldbg to printf
After the addition of log_dump start and stop, we no longer
need to use lldbg to avoid saving log_dump command output to
the compressed logs. | @@ -61,7 +61,7 @@ int log_dump_main(int argc, char *argv[])
printf("This Log Should NOT be saved!!!\n");
sleep(1);
- lldbg("\n********************* LOG DUMP START *********************\n");
+ printf("\n********************* LOG DUMP START *********************\n");
if (START_LOGDUMP_SAVE(fd) < 0) {
printf("Failed to st... |
vnet: remove unused field
It is not used and just confuses people... | @@ -715,8 +715,6 @@ typedef struct
/* this swif is unnumbered, use addresses on unnumbered_sw_if_index... */
u32 unnumbered_sw_if_index;
- u32 link_speed;
-
/* VNET_SW_INTERFACE_TYPE_HARDWARE. */
u32 hw_if_index;
|
ports: use non-yielding broadcast under spinlock | @@ -169,7 +169,7 @@ void port_put(port_t *p, int destroy)
if (p->refs) {
if (destroy)
/* Wake receivers up */
- proc_threadBroadcastYield(&p->threads);
+ proc_threadBroadcast(&p->threads);
hal_spinlockClear(&p->spinlock);
proc_lockClear(&port_common.port_lock);
|
Verify connection ID in SSR and VN packets | @@ -1893,6 +1893,8 @@ static int conn_recv_handshake_pkt(ngtcp2_conn *conn, const uint8_t *pkt,
return NGTCP2_ERR_PROTO;
}
} else {
+ switch (hd.type) {
+ case NGTCP2_PKT_SERVER_CLEARTEXT:
if (conn->flags & NGTCP2_CONN_FLAG_CONN_ID_NEGOTIATED) {
if (conn->conn_id != hd.conn_id) {
return NGTCP2_ERR_PROTO;
@@ -1901,16 +1... |
Add retries to MQTT connect in OTA agent tests | /* Test network header include. */
#include IOT_TEST_NETWORK_HEADER
+/* Test framework includes. */
+#include "aws_test_utils.h"
+
/* Configuration for this test. */
#include "aws_test_ota_config.h"
/**
* @brief Configuration for this test group.
*/
+#define otatestMQTT_RETRIES_START_MS ( 250 )
+#define otatestMQTT_RET... |
If status line not set for some reason, set it. | @@ -12597,6 +12597,9 @@ static apr_status_t wsgi_header_filter(ap_filter_t *f, apr_bucket_brigade *b)
/* Output status line. */
+ if (!r->status_line)
+ r->status_line = ap_get_status_line(r->status);
+
vec1[0].iov_base = (void *)"Status:";
vec1[0].iov_len = strlen("Status:");
vec1[1].iov_base = (void *)" ";
|
Remove non-existing args from the sample
Remove deprecated parameters from bash_profile | @@ -8,8 +8,8 @@ then
ip link set $WLANDEV down
iw dev $WLANDEV set type monitor
ip link set $WLANDEV up
- hcxdumptool --gpio_button=4 --gpio_statusled=17 -i $WLANDEV -o $ARCHIVNAME.pcapng --poweroff --filterlist=blacklistown --filtermode=1 --give_up_ap_attacks=100000 --give_up_deauthentications=100000
-# hcxdumptool --... |
[Cita][#1193]protocol add cita | @@ -45,6 +45,11 @@ add_subdirectory(boatquorum)
set(PROTOS ${PROTOS} $<TARGET_OBJECTS:boatquorum-obj>)
endif()
+if(BOAT_PROTOCOL_USE_CITA)
+add_subdirectory(boatcita)
+set(PROTOS ${PROTOS} $<TARGET_OBJECTS:boatcita-obj>)
+endif()
+
add_library(protocol_obj OBJECT ${PROTOS})
target_link_libraries(protocol_obj ${PROTOS})... |
bufr_compare should fail if passed index files | @@ -167,7 +167,9 @@ int grib_tool(int argc, char **argv)
dump_file=stdout;
}
- if (is_index_file(global_options.infile->name) &&
+ /* ECC-926: Currently only GRIB indexing works. Disable the through_index if BUFR, GTS etc */
+ if (global_options.mode == MODE_GRIB &&
+ is_index_file(global_options.infile->name) &&
( glo... |
add __opencl_c_program_scope_global_variables to cl_offline_compiler | @@ -149,8 +149,8 @@ if [ -e "${CL_DEV_INFO}" ]; then
if [[ "$CL_DEVICE_VERSION" =~ "PoCL" ]] && [ "$CL_IS_30" = "true" ]; then
if [[ "$CL_DEVICE_VERSION" =~ "basic" ]] || [[ "$CL_DEVICE_VERSION" =~ "pthread" ]]; then
- CL_EXT_DEFS="${CL_EXT_DEFS} -D__opencl_c_named_address_space_builtins=1 -D__opencl_c_int64=1 -D__open... |
docs: add Orca logo | -# Orca: a bot framework for Discord etc.
-
-[](https://discord.gg/2jfycwXVM3)
+<div align="center">
+ <br />
+ <p>
+ <a href="https://cee-studio.github.io/orca"><img src="https://raw.githubusercontent.com/cee-studio/orca-docs/541187418158067130f13... |
doc: fixed a formatting issue in the Qt-GUI README | @@ -102,4 +102,3 @@ If you want to add a new key to the database you can choose a namespace in the l
After entering the key information, you can view it in the list view. Just click on the namespace you chose and select the key.

-
|
Handle OPENBLAS_LOOPS and OPENBLAS_TEST options | @@ -72,13 +72,17 @@ int main(int argc, char *argv[]){
FLOAT *a,*work;
FLOAT wkopt[4];
blasint *ipiv;
- blasint m, i, j, info,lwork;
+ blasint m, i, j, l, info,lwork;
int from = 1;
int to = 200;
int step = 1;
+ int loops = 1;
- double time1;
+ double time1,timeg;
+
+ char *p;
+ char btest = 'I';
argc--;argv++;
@@ -86,6 ... |
Remove assertion because it might fail | @@ -160,9 +160,8 @@ static int rob_write_data(ngtcp2_rob *rob, uint64_t offset, const uint8_t *data,
ngtcp2_rob_data_del(d, rob->mem);
return rv;
}
- } else if (d->range.begin + rob->chunk <= offset) {
- assert(0);
}
+
n = ngtcp2_min(len, d->range.begin + rob->chunk - offset);
memcpy(d->begin + (offset - d->range.begin... |
Fix more warnings in tests. | @@ -99,7 +99,7 @@ interpolation_cubic_natural_single_point(CuTest *tc)
___SETUP___
tsBSpline spline = ts_bspline_init();
tsBSpline point = ts_bspline_init();
- tsReal ctrlp[3] = { -5.0, 5.0, 3.2 };
+ tsReal ctrlp[3] = { (tsReal) -5.0, (tsReal) 5.0, (tsReal) 3.2 };
___GIVEN___
C(ts_bspline_new(1, 3, 0, TS_CLAMPED, &poin... |
update library existence tests for mpiP | @@ -58,15 +58,27 @@ rpm=mpiP-$LMOD_FAMILY_COMPILER-$LMOD_FAMILY_MPI${DELIM}
fi
}
-@test "[$testname] Verify static library is available in ${PKG}_LIB ($LMOD_FAMILY_COMPILER/$LMOD_FAMILY_MPI)" {
+@test "[$testname] Verify static library is not present in ${PKG}_LIB ($LMOD_FAMILY_COMPILER/$LMOD_FAMILY_MPI)" {
LIB=${PKG}_... |
Try MACOSX_DEPLOYMENT_TARGET=10.12 | @@ -12,7 +12,7 @@ env:
global:
- LUAROCKS=2.3.0
# For LuaJIT 2.1, see https://github.com/LuaJIT/LuaJIT/commit/8961a92dd1607108760694af3486b4434602f8be
- - MACOSX_DEPLOYMENT_TARGET=10.4
+ - MACOSX_DEPLOYMENT_TARGET=10.12
matrix:
- WITH_LUA_ENGINE=Lua LUA=lua5.3
- WITH_LUA_ENGINE=LuaJIT LUA=luajit2.1
|
Hooked up a remote terminal, it runs but doesn't work yet. | @@ -68,6 +68,7 @@ data Cmd
= CmdNew New Opts
| CmdRun Run Opts
| CmdBug Bug
+ | CmdCon Word16
deriving (Show)
--------------------------------------------------------------------------------
@@ -270,6 +271,13 @@ bugCmd = fmap CmdBug
$ progDesc "Parse all data in event log"
)
+conCmd :: Parser Cmd
+conCmd = do
+ port <-... |
BugID:23251508: Fix DNS compile issue | @@ -1178,7 +1178,7 @@ dns_check_entry(u8_t i)
break;
case DNS_STATE_ASKING:
if (--entry->tmr == 0) {
- if (++entry->retries == DNS_MAX_RETRIES) {
+ if (++entry->retries == DNS_MAX_RETRIES * num_dns) {
if (dns_backupserver_available(entry)
#if LWIP_DNS_SUPPORT_MDNS_QUERIES
&& !entry->is_mdns
@@ -1186,11 +1186,14 @@ dns_... |
papi: add method to retrieve field options
Sample usage:
cls.MEMIF_DEFAULT_BUFFER_SIZE = cls.vapi.vpp.get_field_options(
'memif_create', 'buffer_size')['default']
Type: improvement | @@ -686,6 +686,15 @@ class VPPApiClient:
n[1]['avg'], n[1]['max'])
return s
+ def get_field_options(self, msg, fld_name):
+ # when there is an option, the msgdef has 3 elements.
+ # ['u32', 'ring_size', {'default': 1024}]
+ for _def in self.messages[msg].msgdef:
+ if isinstance(_def, list) and \
+ len(_def) == 3 and \
... |
Relax a KASSERT to allow the timer to be stopped when it is about
to be running off.
Thanks to Timo Voelker for finding and reporting the bug and
suggesting a fix. | #if defined(__FreeBSD__) && !defined(__Userspace__)
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: head/sys/netinet/sctputil.c 362173 2020-06-14 09:50:00Z tuexen $");
+__FBSDID("$FreeBSD: head/sys/netinet/sctputil.c 362277 2020-06-17 15:27:45Z tuexen $");
#endif
#include <netinet/sctp_os.h>
@@ -1799,7 +1799,7 @@ sctp_time... |
shapito: track stats of all cache allocations | @@ -14,6 +14,7 @@ struct shapito_cache
pthread_spinlock_t lock;
int count;
int count_allocated;
+ int total_allocated;
int limit;
int limit_size;
shapito_stream_t *list;
@@ -25,6 +26,7 @@ shapito_cache_init(shapito_cache_t *cache)
cache->list = NULL;
cache->count = 0;
cache->count_allocated = 0;
+ cache->total_allocate... |
Replace tinyspline.js and tinyspline.wasm with variables. | @@ -324,11 +324,15 @@ set(TINYSPLINE_PLATFORM
# TINYSPLINE_CXX_LIBRARY_OUTPUT_NAME
# Output name of the C++ library without prefix/postfix.
#
+# TINYSPLINE_JS_LIBRARY_OUTPUT_NAME
+# Output name of the JavaScript library without prefix/postfix.
+#
# TINYSPLINE_<LANG>_CMAKE_TARGET
# CMake build target of binding <LANG>.
... |
Update LCUIWidget_RefreshStyle() | @@ -250,5 +250,7 @@ void LCUIWidget_Update( void )
void LCUIWidget_RefreshStyle( void )
{
- Widget_AddTaskForChildren( LCUIWidget_GetRoot(), WTT_REFRESH_STYLE );
+ LCUI_Widget root = LCUIWidget_GetRoot();
+ Widget_UpdateStyle( root, TRUE );
+ Widget_AddTaskForChildren( root, WTT_REFRESH_STYLE );
}
|
Changed Geo Location panel display default to show only if db is provided (LIBMAXMINDDB). | @@ -410,6 +410,14 @@ verify_panels (void) {
if (str_inarray ("CACHE_STATUS", conf.ignore_panels, ignore_panel_idx) < 0)
remove_module (CACHE_STATUS);
}
+#ifdef HAVE_GEOLOCATION
+#ifdef HAVE_LIBMAXMINDDB
+ if (!conf.geoip_database && ignore_panel_idx < TOTAL_MODULES) {
+ if (str_inarray ("GEO_LOCATION", conf.ignore_pane... |
iniparser: change sprintf to snprintf
snprintf replaces banned unsecure sprintf
Zeroing of last byte added after snprintf | @@ -502,6 +502,7 @@ static int iniparser_add_entry(
} else {
strncpy(longkey, sec, sizeof(longkey));
}
+ longkey[sizeof(longkey)-1] = 0;
/* Add (key,val) to dictionary */
return dictionary_set(d, longkey, val);
@@ -925,7 +926,8 @@ dictionary * iniparser_new(char *ininame)
if (sscanf(where, "[%[^]]", sec)==1) {
/* Valid... |
more notes on windows overriding | @@ -286,9 +286,13 @@ the [shell](https://stackoverflow.com/questions/43941322/dyld-insert-libraries-i
### Override on Windows
-<span id="override_on_windows">Overriding on Windows</span> is robust but requires that you link your program explicitly with
+<span id="override_on_windows">Overriding on Windows</span> is rob... |
[DFS] Fix the ramfs issue. | @@ -311,12 +311,13 @@ int dfs_ramfs_getdents(struct dfs_fd *file,
struct dfs_ramfs *ramfs;
dirent = (struct ramfs_dirent *)file->data;
- if (dirent != &(ramfs->root))
- return -EINVAL;
ramfs = dirent->fs;
RT_ASSERT(ramfs != RT_NULL);
+ if (dirent != &(ramfs->root))
+ return -EINVAL;
+
/* make integer count */
count = (... |
fix(hid): Clear all matching usages, not just first.
* If various events get dropped, we can end up with duplicate
codes in our report, so tweak to ensure we look for all matches
and clear them when we have a keycode released. | @@ -55,7 +55,9 @@ int zmk_hid_unregister_mod(zmk_mod_t modifier) {
continue; \
} \
keyboard_report.body.keys[idx] = val; \
+ if (val) { \
break; \
+ } \
}
#define TOGGLE_CONSUMER(match, val) \
@@ -64,7 +66,9 @@ int zmk_hid_unregister_mod(zmk_mod_t modifier) {
continue; \
} \
consumer_report.body.keys[idx] = val; \
+ if... |
ci: Run the mirror workflow on generic workers
No need to bottleneck on the self hosted worker(s) when this is a light
job. | @@ -12,7 +12,7 @@ concurrency:
jobs:
yocto-mirror:
name: Yocto Git Mirror
- runs-on: [self-hosted, Linux]
+ runs-on: ubuntu-latest
steps:
- uses: agherzan/git-mirror-me-action@11f54c7186724daafbe5303b5075954f1a19a63e
env:
|
[catboost] remove one TODO and add another | #error "sorry, not expected to work on 32-bit platform"
#endif
+// TODO(yazevnul): current implementation invokes `Get<PrimitiveType>ArrayRegion` with `mode=0`
+// which which asks JRE to make a copy of array [1] and then we invoke
+// `Release<PrimitiveType>ArrayElements` with `mode=0` which asks JRE to copy elements ... |
v2.0.49 landed | -ejdb2 (2.0.49) UNRELEASED; urgency=medium
+ejdb2 (2.0.49) testing; urgency=medium
* Added ability to specify array of primary key values in `/=:?` query clause.
- -- Anton Adamansky <adamansky@gmail.com> Sun, 17 May 2020 01:18:43 +0700
+ -- Anton Adamansky <adamansky@gmail.com> Sun, 17 May 2020 01:21:02 +0700
ejdb2 (2... |
FIX: main_zk is not set yet in arcus_zk_client_init() | @@ -396,7 +396,7 @@ arcus_zk_client_init(zk_info_t *zinfo)
// ZK client ping period is recv_timeout / 3.
arcus_conf.logger->log(EXTENSION_LOG_INFO, NULL,
"ZooKeeper client initialized. (ZK session timeout=%d sec)\n",
- zoo_recv_timeout(main_zk->zh)/1000);
+ zoo_recv_timeout(zinfo->zh)/1000);
return 0;
}
|
handle new findings of find-doc-nits on fn typedefs w/ extra space | @@ -84,7 +84,7 @@ OSSL_CMP_CTX_set1_senderNonce
int OSSL_CMP_CTX_set1_proxyName(OSSL_CMP_CTX *ctx, const char *name);
int OSSL_CMP_CTX_set_proxyPort(OSSL_CMP_CTX *ctx, int port);
#define OSSL_CMP_DEFAULT_PORT 80
- typedef BIO (*OSSL_cmp_http_cb_t) (OSSL_CMP_CTX *ctx, BIO *hbio,
+ typedef BIO *(*OSSL_cmp_http_cb_t)(OSSL... |
Update: minor fix in NLP channel | #Can "parse" English with roughly the following structure to Narsese:
#...[[[adj] subject] ... [adv] predicate] ... [adj] object ... [prep adj object2] conj
+import re
import sys
import time
import subprocess
@@ -75,7 +76,7 @@ outputs = []
def output(negated, text, replaceQuestionWords=True, command=False):
if replaceQ... |
OSSL_STORE_open_ex(): Prevent spurious error: unregistered scheme=file | @@ -114,13 +114,17 @@ OSSL_STORE_open_ex(const char *uri, OSSL_LIB_CTX *libctx, const char *propq,
scheme = schemes[i];
OSSL_TRACE1(STORE, "Looking up scheme %s\n", scheme);
#ifndef OPENSSL_NO_DEPRECATED_3_0
+ ERR_set_mark();
if ((loader = ossl_store_get0_loader_int(scheme)) != NULL) {
+ ERR_clear_last_mark();
no_loade... |
Try to do a `stack build` in CI. | language: nix
nix: 2.1.3
+cache:
+ directories:
+ - $HOME/.ghc
+ - $HOME/.cabal
+ - $HOME/.stack
+ - $TRAVIS_BUILD_DIR/.stack-work
+
install:
- - nix-env -iA cachix -f https://cachix.org/api/v1/install
before_install:
- git lfs pull
+ # King Haskell
+ # Using compiler above sets CC to an invalid value, so unset it
+ - ... |
IP FIB dump - incorrect table-ID for deag paths | @@ -242,7 +242,7 @@ fib_api_path_encode (const fib_route_path_encode_t * api_rpath,
fib_api_path_copy_next_hop (api_rpath, out);
if (~0 == api_rpath->rpath.frp_sw_if_index &&
- !ip46_address_is_zero(&api_rpath->rpath.frp_addr))
+ ip46_address_is_zero(&api_rpath->rpath.frp_addr))
{
if ((DPO_PROTO_IP6 == api_rpath->rpath... |
fix bug that wrap mode not disabled in none-QIO mode | @@ -211,12 +211,12 @@ void bootloader_enable_qio_mode(void)
if (i == NUM_CHIPS - 1) {
ESP_LOGI(TAG, "Enabling default flash chip QIO");
}
-#if CONFIG_IDF_TARGET_ESP32S2BETA
- spi_flash_wrap_set(FLASH_WRAP_MODE_DISABLE);
-#endif
enable_qio_mode(chip_data[i].read_status_fn,
chip_data[i].write_status_fn,
chip_data[i].stat... |
reverse commit on htif: need to parse args for verilator | @@ -121,6 +121,7 @@ int main(int argc, char** argv)
FILE * vcdfile = NULL;
uint64_t start = 0;
#endif
+ char ** htif_argv = NULL;
int verilog_plusargs_legal = 1;
while (1) {
@@ -242,6 +243,10 @@ done_processing:
usage(argv[0]);
return 1;
}
+ int htif_argc = 1 + argc - optind;
+ htif_argv = (char **) malloc((htif_argc) ... |
hal/armv7a-zynq7000: add software reset | @@ -514,6 +514,16 @@ static int _zynq_getDevRst(int dev, unsigned int *state)
}
+static void zynq_softRst(void)
+{
+ _zynq_slcrUnlock();
+ *(zynq_common.slcr + slcr_pss_rst_ctrl) |= 0x1;
+ _zynq_slcrLock();
+
+ __builtin_unreachable();
+}
+
+
/* TODO */
void hal_wdgReload(void)
{
@@ -578,7 +588,7 @@ int hal_platformctl... |
touch_sensor: fixed timer period | @@ -427,7 +427,7 @@ esp_err_t touch_pad_set_filter_period(uint32_t new_period_ms)
esp_err_t ret = ESP_OK;
xSemaphoreTake(rtc_touch_mux, portMAX_DELAY);
ESP_GOTO_ON_ERROR(esp_timer_stop(s_touch_pad_filter->timer), err, TOUCH_TAG, "failed to stop the timer");
- ESP_GOTO_ON_ERROR(esp_timer_start_periodic(s_touch_pad_filte... |
Fix running Shortcuts with spaces in the name | @@ -4,15 +4,7 @@ Taken from https://stackoverflow.com/a/25580545/7515957
from json import dumps
-try:
- from urllib import urlencode, unquote
- from urlparse import urlparse, parse_qsl, ParseResult
-except ImportError:
- # Python 3 fallback
- from urllib.parse import (
- urlencode, unquote, urlparse, parse_qsl, ParseRe... |
SSIM: harmonize the function suffix | @@ -109,7 +109,7 @@ static double SSIMGet_C(const uint8_t* src1, int stride1,
//------------------------------------------------------------------------------
-static uint32_t AccumulateSSE(const uint8_t* src1,
+static uint32_t AccumulateSSE_C(const uint8_t* src1,
const uint8_t* src2, int len) {
int i;
uint32_t sse2 = ... |
mmapstorage: fix kdbSet on empty keyset, limit meta ksReference, skip ksRewind and rewind raw | #include <errno.h>
#include <stdio.h> // fopen()
//#include <stdlib.h> // exit()
+#include <limits.h> // SSIZE_MAX
#include <sys/mman.h> // mmap()
#include <sys/stat.h> // stat()
#include <sys/types.h> // ftruncate ()
@@ -416,13 +417,15 @@ static void writeKeySet (MmapHeader * mmapHeader, KeySet * keySet, KeySet * dest... |
RTX5: updated implementation version of CMSIS-RTOS1 | #define osCMSIS 0x20001U ///< API version (main[31:16].sub[15:0])
-#define osCMSIS_RTX 0x50001U ///< RTOS identification and version (main[31:16].sub[15:0])
+#define osCMSIS_RTX 0x50003U ///< RTOS identification and version (main[31:16].sub[15:0])
-#define osKernelSystemId "RTX V5.1" ///< RTOS identification string
+#d... |
BugID:16855090:[makefile] COAP_COMM conflicts with DEV_BIND feature | @@ -38,6 +38,7 @@ $(call Conflict_Relation, FEATURE_SUPPORT_TLS, FEATURE_SUPPORT_ITLS)
$(call Conflict_Relation, FEATURE_COAP_COMM_ENABLED, FEATURE_ALCS_ENABLED)
$(call Conflict_Relation, FEATURE_COAP_COMM_ENABLED, FEATURE_WIFI_AWSS_ENABLED)
$(call Conflict_Relation, FEATURE_COAP_COMM_ENABLED, FEATURE_SDK_ENHANCE)
+$(c... |
Fix MSVC warning C4505 for VmaCreateStringCopy | @@ -3256,6 +3256,7 @@ static char* VmaCreateStringCopy(const VkAllocationCallbacks* allocs, const char
return VMA_NULL;
}
+#if VMA_STATS_STRING_ENABLED
static char* VmaCreateStringCopy(const VkAllocationCallbacks* allocs, const char* srcStr, size_t strLen)
{
if (srcStr != VMA_NULL)
@@ -3267,6 +3268,7 @@ static char* Vm... |
fix mbedtls/psa status code mismatch | @@ -4865,8 +4865,9 @@ static psa_status_t psa_generate_derived_ecc_key_weierstrass_helper(
mbedtls_mpi N;
mbedtls_mpi k;
mbedtls_mpi diff_N_2;
- int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
- psa_status_t status;
+ /* ret variable is used by MBEDTLS_MPI_CHK macro */
+ int ret = 0;
+ psa_status_t status = PSA_SUCCES... |
peview: Fix updating MaxSizeUnit setting | @@ -160,10 +160,16 @@ static VOID PhpGeneralPageSave(
//PhSetStringSetting2(L"SearchEngine", &PhaGetDlgItemText(WindowHandle, IDC_SEARCHENGINE)->sr);
+ if (ComboBox_GetCurSel(GetDlgItem(WindowHandle, IDC_MAXSIZEUNIT)) != PhGetIntegerSetting(L"MaxSizeUnit"))
+ {
+ PhSetIntegerSetting(L"MaxSizeUnit", ComboBox_GetCurSel(G... |
HW: Fixing indirect read to NVME PCIe root complex | @@ -182,7 +182,7 @@ begin
end if;
if mmx_d_i.rd_strobe = '1' then
rd_pending_q <= '1';
- if mmx_d_i.addr(11 downto 8 ) = x"2" then
+ if mmx_d_i.addr(17 downto 16 ) = "11" then
addr_32b_q <= true;
else
addr_32b_q <= false;
|
Add hold-tap to sidebar. | module.exports = {
someSidebar: {
- "Getting Started": ["intro", "hardware", "faq", "user-setup","customization", "bond-reset"],
+ "Getting Started": [
+ "intro",
+ "hardware",
+ "faq",
+ "user-setup",
+ "customization",
+ "bond-reset",
+ ],
Features: [
"feature/keymaps",
"feature/displays",
@@ -11,6 +18,7 @@ module.ex... |
zephyr/emul/emul_isl923x.c: Format with clang-format
BRANCH=none
TEST=none | @@ -160,8 +160,7 @@ void isl923x_emul_set_manufacturer_id(const struct emul *emulator,
data->manufacturer_id_reg = manufacturer_id;
}
-void isl923x_emul_set_device_id(const struct emul *emulator,
- uint16_t device_id)
+void isl923x_emul_set_device_id(const struct emul *emulator, uint16_t device_id)
{
struct isl923x_emu... |
[CI] GH Action runs on paging-demo branch | @@ -4,9 +4,9 @@ name: axle CI
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
- branches: [ master, uefi-bootloader, build-in-ci, rust-support ]
+ branches: [ master, uefi-bootloader, build-in-ci, rust-support, paging-demo ]
pull_request:
- branches: [ master, uefi-bootlo... |
Substitute npm coap client for libcoap in the vagrant image bootstrapping script | @@ -7,7 +7,7 @@ sudo apt install -y --no-install-recommends \
libc6:i386 libstdc++6:i386 libncurses5:i386 libz1:i386 \
build-essential doxygen git wget unzip python-serial rlwrap npm \
default-jdk ant srecord python-pip iputils-tracepath uncrustify \
- mosquitto mosquitto-clients valgrind \
+ mosquitto mosquitto-client... |
Update RHEL package location (again).
This changed (again) upstream so update the file paths. | @@ -961,10 +961,10 @@ eval
"mkdir /root/package-src && " .
"wget -q -O /root/package-src/pgbackrest-conf.patch " .
"'https://git.postgresql.org/gitweb/?p=pgrpms.git;a=blob_plain;hb=refs/heads/master;" .
- "f=rpm/redhat/master/non-common/pgbackrest/master/pgbackrest-conf.patch' && " .
+ "f=rpm/redhat/master/common/pgbac... |
test without psxe patch | @@ -128,7 +128,7 @@ C interfaces, and can interface with ordering tools such as Scotch.
%patch0 -p1
%patch1 -p1
%if %{compiler_family} == intel
-%patch2 -p1
+#%patch2 -p1
%endif
%build
|
convert http1client.c to timerwheel | @@ -144,11 +144,10 @@ int fill_body(h2o_iovec_t *reqbuf)
}
static void http1_write_req_chunk_done(void *sock_, size_t written, int done);
-static h2o_timeout_t post_body_timeout;
struct st_timeout_ctx {
h2o_socket_t *sock;
- h2o_timeout_entry_t _timeout;
+ h2o_timerwheel_timer_t _timeout;
};
static void timeout_cb(h2o_... |
Code format with astyle. | @@ -51,8 +51,7 @@ typedef struct font_header_bin {
uint8_t padding;
} font_header_bin_t;
-typedef struct cmap_table_bin
-{
+typedef struct cmap_table_bin {
uint32_t data_offset;
uint32_t range_start;
uint16_t range_length;
@@ -101,8 +100,7 @@ lv_font_t * lv_font_load(const char * font_name)
success = lvgl_load_font(&fi... |
BugID:17711858: Update vfs directory reference for example/yts | NAME := yts
$(NAME)_SOURCES := main.c
-$(NAME)_COMPONENTS := testcase rhino.test log rhino.vfs yloop hal
+$(NAME)_COMPONENTS := testcase rhino.test log kernel.fs.vfs yloop hal
$(NAME)_CFLAGS += -Wall -Werror -Wno-unused-variable
ifneq (,$(findstring linux, $(BUILD_STRING)))
-$(NAME)_COMPONENTS += network.lwip netmgr 3r... |
bmi270: set to osr4 mode | #define BMI270_GYRO_CONF_ODR3200 0x0D // set gyro sample rate to 3200hz
#define BMI270_GYRO_CONF_ODR6400 0x0e // set gyro sample rate to 6400hz
#define BMI270_GYRO_CONF_ODR12800 0x0f // set gyro sample rate to 12800hz
-#define BMI270_GYRO_CONF_BWP 0x02 // set gyro filter in normal mode
+#define BMI270_GYRO_CONF_BWP 0x0... |
[Mempool] Fix name resolving for validation | @@ -427,7 +427,7 @@ func (mp *MemPool) removeOnBlockArrival(block *types.Block) error {
account := tx.GetBody().GetAccount()
recipient := tx.GetBody().GetRecipient()
if tx.HasNameAccount() {
- account = mp.getAddress(account)
+ account = mp.getOwner(account) // it's for the case that tx sender is named smart contract
}... |
Make viewconf more TSCH-friendly | #include "os/net/mac/framer/frame802154.h"
#include "os/net/mac/tsch/tsch.h"
#include "os/net/mac/tsch/tsch-conf.h"
+#include "os/net/mac/tsch/tsch-schedule.h"
#include "os/net/ipv6/uip-nd6.h"
#include "os/net/ipv6/uipopt.h"
#include "os/net/queuebuf.h"
##### "CONTIKI_VERSION_STRING": ________________ CONTIKI_VERSION_S... |
[CUDA] Deal with phi and constant gep in address space update | #include "llvm/Target/TargetOptions.h"
#include "llvm/Transforms/Utils/Cloning.h"
+#include <set>
+
// TODO: Should these be proper passes?
void pocl_add_kernel_annotations(llvm::Module *module);
void pocl_fix_constant_address_space(llvm::Module *module);
@@ -158,11 +160,17 @@ void pocl_add_kernel_annotations(llvm::Mod... |
hv: lapic: remove union apic_lvt
Since it's unused. | @@ -27,75 +27,6 @@ union apic_icr {
} bits;
};
-union apic_lvt {
- uint32_t value;
- union {
- struct {
- uint32_t vector:8;
- uint32_t rsvd_1:4;
- uint32_t delivery_status:1;
- uint32_t rsvd_2:3;
- uint32_t mask:1;
- uint32_t mode:2;
- uint32_t rsvd_3:13;
- } timer;
- struct {
- uint32_t vector:8;
- uint32_t delivery_... |
Suppress annoying messages in GC mode. | @@ -1613,10 +1613,12 @@ u3a_sweep(void)
u3a_print_memory("maximum", u3R->all.max_w);
}
#else
+#if 0
u3a_print_memory("available", (tot_w - pos_w));
u3a_print_memory("allocated", pos_w);
u3a_print_memory("volatile", caf_w);
#endif
+#endif
#endif
u3a_print_memory("leaked", leq_w);
u3a_print_memory("weaked", weq_w);
|
util/build_with_clang: More boards successfully compile
BRANCH=none
TEST=./util/build_with_clang.py
Code-Coverage: Zoss | @@ -28,10 +28,12 @@ BOARDS_THAT_COMPILE_SUCCESSFULLY_WITH_CLANG = [
# Boards that use CHIP:=stm32 and *not* CHIP_FAMILY:=stm32f0
# git grep --name-only 'CHIP:=stm32' | xargs grep -L 'CHIP_FAMILY:=stm32f0' | sed 's#board/\(.*\)/build.mk#"\1",#'
"baklava",
+ "bellis",
"discovery",
"gingerbread",
"hatch_fp",
"hyperdebug",... |
.travis.yml: osx: Explicitly install autoconf and friends.
Not needed with Travis, but needed with Github Actions. | @@ -115,6 +115,7 @@ jobs:
- PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig
install:
- brew install pkgconfig || true
+ - brew install autoconf automake libtool
script:
- make ${MAKEOPTS} -C mpy-cross
- make ${MAKEOPTS} -C ports/unix submodules
|
enclave-tls: shutdown SSL session when TLS cleanup
Fixes: | @@ -18,8 +18,10 @@ tls_wrapper_err_t openssl_tls_cleanup(tls_wrapper_ctx_t *ctx)
openssl_ctx_t *ssl_ctx = (openssl_ctx_t *)ctx->tls_private;
if (ssl_ctx != NULL) {
- if (ssl_ctx->ssl != NULL)
+ if (ssl_ctx->ssl != NULL) {
+ SSL_shutdown(ssl_ctx->ssl);
SSL_free(ssl_ctx->ssl);
+ }
if (ssl_ctx->sctx != NULL)
SSL_CTX_free(... |
input: adjust score based on refs | @@ -508,7 +508,7 @@ static inline int input_skipFactor(run_t* run, dynfile_t* dynfile, int* speed_fa
{
/* If the input wasn't source of other inputs so far, make it less likely to be tested */
- penalty += HF_CAP((2 - (int)dynfile->refs) * 3, -15, 10);
+ penalty += HF_CAP((1 - (int)dynfile->refs) * 3, -30, 5);
}
{
|
ASE: Initialize sock_msg to 0 | @@ -485,8 +485,9 @@ void update_fme_dfh(struct buffer_t *umas)
static void *start_socket_srv(void *args)
{
- int res = 0; int err_cnt = 0;
- int sock_msg;
+ int res = 0;
+ int err_cnt = 0;
+ int sock_msg = 0;
errno_t err;
int sock_fd;
struct sockaddr_un saddr;
|
jni: fix plugin name | @@ -65,7 +65,7 @@ kdb plugin-info -c classname=org/libelektra/plugin/Echo,classpath=.:/usr/share/j
You can also mount plugins (see [open issues](https://issues.libelektra.org/3881)):
```sh
-kdb mount -c classname=elektra/plugin/PropertiesStorage,classpath=.:/usr/share/java/jna.jar:/usr/share/java/libelektra.jar,print= ... |
Allow WaitLatch() to be used without a latch.
Due to flaws in commit using WaitLatch() without
WL_LATCH_SET could cause an assertion failure or crash. Repair.
While here, also add a check that the latch we're switching to belongs
to this backend, when changing from one latch to another.
Discussion: | @@ -924,7 +924,22 @@ ModifyWaitEvent(WaitEventSet *set, int pos, uint32 events, Latch *latch)
if (events == WL_LATCH_SET)
{
+ if (latch && latch->owner_pid != MyProcPid)
+ elog(ERROR, "cannot wait on a latch owned by another process");
set->latch = latch;
+ /*
+ * On Unix, we don't need to modify the kernel object beca... |
[cmake] fix bug in exclude files | @@ -53,17 +53,19 @@ function(get_sources COMPONENT)
# Check if some sources are to be excluded from build
foreach(_FILE IN LISTS source_EXCLUDE)
- if(${CMAKE_VERSION} VERSION_GREATER "3.12.0")
- file(GLOB _GFILE CONFIGURE_DEPENDS ${_FILE})
- else()
- file(GLOB _GFILE ${_FILE})
- endif()
-
- if(_GFILE)
- list(REMOVE_ITE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.