message
stringlengths
6
474
diff
stringlengths
8
5.22k
sdl2: Replace SUPPORT_SATA with SUPPORT_SASI (guess a typo)
@@ -194,7 +194,7 @@ int np2_main(int argc, char *argv[]) { sprintf(tmppath, "%sdefault.ttf", np2cfg.biospath); fontmng_setdeffontname(tmppath); -#if defined(SUPPORT_IDEIO) || defined(SUPPORT_SATA) || defined(SUPPORT_SCSI) +#if defined(SUPPORT_IDEIO) || defined(SUPPORT_SASI) || defined(SUPPORT_SCSI) drvhddSASI = drvhddS...
HV:refine the handler for 'invept' vmexit 'invept' is not expected in guest and hypervisor should inject UD when 'invept' VM exit happens.
@@ -136,7 +136,7 @@ static const struct vm_exit_dispatch dispatch_table[NR_VMX_EXIT_REASONS] = { .handler = ept_misconfig_vmexit_handler, .need_exit_qualification = 1}, [VMX_EXIT_REASON_INVEPT] = { - .handler = unhandled_vmexit_handler}, + .handler = undefined_vmexit_handler}, [VMX_EXIT_REASON_RDTSCP] = { .handler = un...
s5j/gpio: fix GPIO_DRV_PIN_XXX() macros GPIO_DRV_PIN_SHIFT() and GPIO_DRV_PIN_MASK() macros have been broken for a long time since they were first introduced. Their definitions are completely wrong. Let's fix them.
#define GPIO_PUD_RESERVED 0x2 #define GPIO_PUD_PULLUP 0x3 -#define GPIO_DRV_PIN_MASK(p) ((p) * 4) -#define GPIO_DRV_PIN_SHIFT(p) (0xf << GPIO_DRV_PIN_SHIFT(p)) +#define GPIO_DRV_PIN_SHIFT(p) ((p) * 4) +#define GPIO_DRV_PIN_MASK(p) (0xf << GPIO_DRV_PIN_SHIFT(p)) #define GPIO_DRV_FAST1X 0x0 #define GPIO_DRV_FAST2X 0x1 #d...
Fix a typo in ffmpeg instructions
@@ -59,7 +59,7 @@ DISPLAY=:0.0 ../build/project/<project_name> Then build your 32blit project with: ``` -make ../example/<project_name> ENABLE_FFMPG=true FFMPEG=../FFmpeg-n4.1.4/build +make ../example/<project_name> ENABLE_FFMPEG=true FFMPEG=../FFmpeg-n4.1.4/build ``` When running, you can now hit `r` to start and stop...
in_syslog: don't release unix_path on exit
@@ -144,7 +144,6 @@ int syslog_server_destroy(struct flb_syslog *ctx) if (ctx->mode == FLB_SYSLOG_UNIX_TCP || ctx->mode == FLB_SYSLOG_UNIX_UDP) { if (ctx->unix_path) { unlink(ctx->unix_path); - flb_free(ctx->unix_path); } } else {
bin: enable to use long command-line options on Windows Our getopt emulation did not support the long options. With this patch, we allow users to use long options on Windows, since we have the full support for getopt.h on Windows since
@@ -589,7 +589,6 @@ int main(int argc, char **argv) flb_stacktrace_init(argv[0]); #endif -#ifndef _WIN32 /* Setup long-options */ static const struct option long_opts[] = { { "storage_path", required_argument, NULL, 'b' }, @@ -624,7 +623,6 @@ int main(int argc, char **argv) #endif { NULL, 0, NULL, 0 } }; -#endif #ifdef...
tools: fix key description in gen-gpg-testkey The string 'gen-gpg-testkey' is being put into the key description to prevent mismatches with libelektra.org e-mail addresses. See for full discussion.
#include <gpgme.h> #include <stdio.h> +#define ELEKTRA_GEN_GPG_TESTKEY_DESCRIPTION "elektra testkey (gen-gpg-testkey)" + int main (void) { gpgme_error_t err; @@ -34,7 +36,7 @@ int main (void) } // look for the elektra key - err = gpgme_op_keylist_start (ctx, "elektra", 1 /* secret keys only! */); + err = gpgme_op_keyli...
ToolStatus: Update search for service verification columns
@@ -332,11 +332,7 @@ BOOLEAN ProcessTreeFilterCallback( if (serviceItem->ProcessId) { - WCHAR processIdString[PH_INT32_STR_LEN_1]; - - PhPrintUInt32(processIdString, HandleToUlong(serviceItem->ProcessId)); - - if (WordMatchStringZ(processIdString)) + if (WordMatchStringZ(serviceItem->ProcessIdString)) { matched = TRUE;...
IO thread logic logging
@@ -41,16 +41,20 @@ static void *iodine_io_thread(void *arg) { return NULL; } static void iodine_start_io_thread(void *a_) { - if (!fio_atomic_add(&sock_io_thread_flag, 1)) { - pthread_create(&sock_io_pthread, NULL, iodine_io_thread, NULL); + if (!fio_trylock(&sock_io_thread_flag)) { + if (pthread_create(&sock_io_pthre...
Only try to open cc log when cc log directory has been set
@@ -1888,8 +1888,10 @@ picoquic_cnx_t* picoquic_create_cnx(picoquic_quic_t* quic, if (cnx != NULL) { picoquic_register_path(cnx, cnx->path[0]); + if (cnx->quic->cc_log_dir != NULL) { picoquic_open_cc_dump(cnx); } + } return cnx; }
decision: add allocation count table
@@ -542,6 +542,25 @@ Full-blown COW implementation: - Single Example Key + 1 Duplicate = Single Example Key + Empty Key = 185 + 32 = 217 - Single Example Key + 2 Duplicates = Single Example Key + Empty Key * 2 = 185 + 32*2 = 249 +### Allocations & Indirections comparison of COW approaches + +For allocations want to mea...
fix build error 5
#define STRICT #define WIN32_LEAN_AND_MEAN +#include "compiler.h" +#include <cassert> + #ifdef __cplusplus extern "C" { #endif -#include "compiler.h" -#include <cassert> - #ifdef _MSC_VER #undef max #define max _MAX
sdl: hints_test.go: Fix TestDelHintCallback to use different value for checking from TestAddHintCallback
package sdl import ( - "testing" "sync" + "testing" ) const ( @@ -111,13 +111,13 @@ func TestAddHintCallback(t *testing.T) { func TestDelHintCallback(t *testing.T) { Do(func() { AddHintCallback(HINT_ALLOW_TOPMOST, func(data interface{}, name, oldValue, newValue string) { - if newValue == "1" { + if newValue == "2" { t....
pyhton -> python
@@ -336,9 +336,9 @@ if(NOT NODEJS_LIBRARY) ProcessorCount(N) if(NOT N EQUAL 0) - execute_process(COMMAND sh -c "alias pyhton=`which python2.7`; make -j${N} -C out BUILDTYPE=${CMAKE_BUILD_TYPE} V=1" WORKING_DIRECTORY "${NODEJS_OUTPUT_PATH}" OUTPUT_QUIET) + execute_process(COMMAND sh -c "alias python=`which python2.7`; m...
It is the responsibility of initiate_close function to convert the error code to an appropriate value.
@@ -975,8 +975,9 @@ void crypto_stream_receive(quicly_stream_t *stream, size_t off, const void *src, dispose_cipher(&conn->application->cipher.egress.key); conn->application->cipher.egress.key = (struct st_quicly_cipher_context_t){NULL}; /* retire all packets with ack_epoch == 3; they are all 0-RTT packets */ - if (dis...
Fix noisy could not locate libresolv message.
@@ -1746,8 +1746,8 @@ getNSFuncs(void) void *handle = g_fn.dlopen("libresolv.so", RTLD_LAZY | RTLD_NODELETE); if (handle == NULL) { - scopeLogWarn( - "WARNING: could not locate libresolv, DNS events will be affected"); + scopeLog(CFG_LOG_DEBUG, + "Could not locate libresolv, DNS events will be affected"); return FALSE;...
Makefile: remove obsolete targets Clean the top-level Makefile by removing some old and obsolete targets that are no longer used and for which we do not even have the required file (such as $(BOARD).xml.
@@ -96,20 +96,6 @@ all: hypervisor devicemodel tools python3 misc/packaging/gen_acrn_deb.py acrn_all $(ROOT_OUT) --version=$(FULL_VERSION) --board_name="$$DEB_BOARD" --scenario="$$DEB_SCENARIO"; \ fi -#help functions to build acrn and install acrn/acrn symbols -define build_acrn - $(MAKE) -C $(T)/hypervisor HV_OBJDIR=$...
Re-enable esp-netif unit tests for ESP32C2 target
@@ -76,7 +76,7 @@ TEST_CASE("esp_netif: create and delete multiple netifs", "[esp_netif][leaks=0]" } -#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2, ESP32C6) +#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C6) //IDF-5047 TEST_CASE("esp_netif: test dhcp client state transitions for wifi station", "[esp_netif]") @@ -302,7 +302,7...
update ya tool arc fix json layout
}, "arc": { "formula": { - "sandbox_id": [446035576], + "sandbox_id": [446580087], "match": "arc" }, "executable": {
Fix plugin error message
@@ -340,6 +340,9 @@ VOID PhLoadPlugins( PhDereferenceObject(baseName); } + if (PhEndsWithStringRef2(&stringBuilder.String->sr, L"\n", FALSE)) + PhRemoveEndStringBuilder(&stringBuilder, 2); + config.dwFlags = TDF_ALLOW_DIALOG_CANCELLATION; config.dwCommonButtons = TDCBF_CANCEL_BUTTON; config.pszWindowTitle = PhApplicati...
Remove min_seqno assert from unit tests
@@ -577,7 +577,9 @@ c0sk_ingest_worker(struct work_struct *work) */ max_seqno = ingest->c0iw_ingest_max_seqno = c0kvms_seqno_get(ingest->c0iw_c0kvms); min_seqno = ingest->c0iw_ingest_min_seqno = atomic64_read(&c0sk->c0sk_ingest_min); +#ifndef HSE_MOCKING assert(min_seqno != 0); +#endif if (debug) hse_log(
adding tiny verbiage regarding conn_cmfe
@@ -1489,6 +1489,8 @@ Connectivity-Based CMFE Function: ``conn_cmfe()`` : ``conn_cmfe(<Donor Variable> :ref:`pos_cmfe() <Pos_Cmfe_Expression_Function>` except that ``conn_cmfe()`` *assumes* that any differences in the coordinates of the two meshes are numerically insignificant to the resulting mapped variable. + In oth...
Do not attempt to run ctest without fortran The main Makefile takes care of this in the build process, but users or CI jobs may try to run this directly
@@ -40,8 +40,11 @@ ztestl3o = c_zblas3.o c_z3chke.o auxiliary.o c_xerbla.o constant.o ztestl3o_3m = c_zblas3_3m.o c_z3chke_3m.o auxiliary.o c_xerbla.o constant.o - +ifeq ($(NOFORTRAN),1) +all :: +else all :: all1 all2 all3 +endif all1: xscblat1 xdcblat1 xccblat1 xzcblat1 ifndef CROSS
Add os/net/mac/framer to top-level Makefile MODULES
@@ -52,7 +52,7 @@ ifneq ("$(wildcard project-conf.h)","") CFLAGS += -DPROJECT_CONF_PATH=\"project-conf.h\" endif -MODULES += os os/net os/net/mac os/net/routing os/storage +MODULES += os os/net os/net/mac os/net/mac/framer os/net/routing os/storage oname = ${patsubst %.c,%.o,${patsubst %.S,%.o,$(1)}}
docs: add migration guide note about `vTaskGetSnapshot` signature
@@ -14,6 +14,7 @@ Tasks Snapshot The header ``task_snapshot.h`` has been removed from ``freertos/task.h``. ESP-IDF developers should include ``"freertos/task_snapshot.h``` in case they need tasks snapshot API. +The function :cpp:func:`vTaskGetSnapshot` now returns ``BaseType_t``. Return value shall be ``pdTRUE`` on suc...
Fix missing operator for ast.Expr.Str
@@ -166,6 +166,7 @@ var opStrings = [...]string{ t.IDXBinaryAmp: " & ", t.IDXBinaryPipe: " | ", t.IDXBinaryHat: " ^ ", + t.IDXBinaryPercent: " % ", t.IDXBinaryTildeModShiftL: " ~mod<< ", t.IDXBinaryTildeModPlus: " ~mod+ ", t.IDXBinaryTildeModMinus: " ~mod- ",
Antialiasing; Why not.
@@ -18,6 +18,7 @@ void initGlfw() { glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); + glfwWindowHint(GLFW_SAMPLES, 4); window = glfwCreateWindow(800, 600, "Window", NULL, NULL);
Fix cross product when operand is also dest
@@ -578,10 +578,12 @@ glm_vec3_normalize_to(vec3 v, vec3 dest) { CGLM_INLINE void glm_vec3_cross(vec3 a, vec3 b, vec3 dest) { + vec3 c; /* (u2.v3 - u3.v2, u3.v1 - u1.v3, u1.v2 - u2.v1) */ - dest[0] = a[1] * b[2] - a[2] * b[1]; - dest[1] = a[2] * b[0] - a[0] * b[2]; - dest[2] = a[0] * b[1] - a[1] * b[0]; + c[0] = a[1] *...
Validate parser parameter to XML_SetStartElementHandler
@@ -1391,6 +1391,7 @@ XML_SetElementHandler(XML_Parser parser, void XMLCALL XML_SetStartElementHandler(XML_Parser parser, XML_StartElementHandler start) { + if (parser != NULL) startElementHandler = start; }
mount bpffs in CI
@@ -6,6 +6,7 @@ FUZZ_ASAN=ASAN_OPTIONS=detect_leaks=0 DOCKER_RUN_OPTS=--privileged \ -v `pwd`:$(SRC_DIR) \ -v /sys/kernel/debug:/sys/kernel/debug \ + -v /sys/fs/bpf:/sys/fs/bpf \ -v /lib/modules:/lib/modules:ro \ -v /usr/src:/usr/src:ro \ --add-host=127.0.0.1.xip.io:127.0.0.1 \ @@ -26,6 +27,7 @@ ossl1.1.1: CMAKE_ARGS='...
Unify `MBEDTLS_TLS_SIG_NONE` macro definition for TLS 1.2 and 1.3
#if defined(MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED) +#define MBEDTLS_TLS_SIG_NONE MBEDTLS_TLS1_3_SIG_NONE + #if defined(MBEDTLS_SSL_PROTO_TLS1_2) #define MBEDTLS_SSL_SIG_ALG( sig, hash ) (( hash << 8 ) | sig) #define MBEDTLS_SSL_SIG_ALG_SET( hash ) #endif -#define MBEDTLS_TLS_SIG_NONE MBEDTLS_SSL_SIG_ALG( MBEDTLS_SSL_S...
fix: added y offset to the undercurl wave
@@ -1761,7 +1761,7 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i int ww = win.cw;//width; int wh = dc.font.descent - wlw/2 - 1;//r.height/7; int wx = winx; - int wy = winy + win.ch - dc.font.descent; + int wy = winy + win.cyo + win.ch - dc.font.descent; // Cap is half of wave width...
tests: runtime: filter_lua: add testcase for array contains null
@@ -436,11 +436,87 @@ void flb_test_type_array_key(void) flb_destroy(ctx); } +/* https://github.com/fluent/fluent-bit/issues/3433 */ +void flb_test_array_contains_null(void) +{ + int ret; + flb_ctx_t *ctx; + int in_ffd; + int out_ffd; + int filter_ffd; + char *output = NULL; + char *input = "[0, {\"hello\": [1, null, \...
AS7262 convert float correctly
#include <math.h> #include <map> #include <vector> +#include <cstring> #include "as7262.hpp" @@ -161,10 +162,19 @@ namespace pimoroni { i2c_write(reg, &value, 1); } + // convert the AS7262s 4-byte big-endian float value into a native float float AS7262::i2c_reg_read_float(uint8_t reg) { - float value; + uint32_t value;...
Fix Exception#message
#include "vm.h" #include "error.h" #include "c_string.h" - +#include "symbol.h" static void c_exception_message(struct VM *vm, mrbc_value v[], int argc) { mrbc_decref( &v[0] ); if( vm->exc_message.tt == MRBC_TT_NIL ){ - v[0] = mrbc_string_new(vm, "", 0); + const char *name = mrbc_symid_to_str(v[0].cls->sym_id); + v[0] ...
Fix build on POWER, remove DragonFly, add NetBSD __asm is complete on its own DBSD developers state they will only support amd64, but NetBSD supports POWER.
@@ -175,9 +175,9 @@ int detect(void){ return CPUTYPE_PPC970; #endif -#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) int id; -id = __asm __volatile("mfpvr %0" : "=r"(id)); +__asm __volatile("mfpvr %0" : "=r"(id)); switch...
Doc: clean up pg_relation_check_pages() documentation. Commit did not get the memo about the new formatting style for tables documenting built-in functions. I noticed because of a PDF build warning about an overwidth table.
@@ -26192,43 +26192,49 @@ SELECT convert_from(pg_read_binary_file('file_in_utf8.txt'), 'UTF8'); <table id="functions-data-sanity-table"> <title>Data Sanity Functions</title> - <tgroup cols="3"> + <tgroup cols="1"> <thead> - <row><entry>Name</entry> <entry>Return Type</entry> <entry>Description</entry> + <row> + <entry ...
BugID:16967023:[Kconfig] rename Kconfig => Config.in
@@ -197,7 +197,7 @@ COMMON_CONFIG_ENV = \ KCONFIG_AUTOHEADER=$(OUTPUT_DIR)/autoconf.h \ menuconfig: prebuilt/ubuntu/bin/kconfig-mconf - $(TOP_Q)$(COMMON_CONFIG_ENV) $^ -s $(TOP_DIR)/Kconfig 2>/dev/null + $(TOP_Q)$(COMMON_CONFIG_ENV) $^ -s $(TOP_DIR)/Config.in 2>/dev/null $(TOP_Q) \ ( \ if [ ! -f mconf.config ]; then ex...
Add a lock icon when a script cannot access resources
@@ -397,6 +397,18 @@ fileprivate func parseArgs(_ args: inout [String]) { space.width = 10 parent?.navigationController?.isToolbarHidden = false + + if #available(iOS 13.0, *), !FileManager.default.isReadableFile(atPath: currentDirectory.path) { + parent?.toolbarItems = [ + shareItem, + moreItem, + space, + docItem, + ...
Allow frequency band-specific overrides
/*---------------------------------------------------------------------------*/ #include "contiki-conf.h" +#include "rf-core/dot-15-4g.h" #include "driverlib/rf_mailbox.h" #include "driverlib/rf_common_cmd.h" #include "driverlib/rf_prop_cmd.h" #define SMARTRF_SETTINGS_BOARD_OVERRIDES #endif /*--------------------------...
set IS_GLOBAL_INCLUDE to TRUE for common_modules
@@ -73,7 +73,7 @@ rename module {} rename addr {} if {[version -short] >= 2016.3} { - set_property synth_checkpoint_mode None [get_files $bd_path/system.bd] + set_property SYNTH_CHECKPOINT_MODE None [get_files $bd_path/system.bd] } generate_target all [get_files $bd_path/system.bd] @@ -81,7 +81,16 @@ make_wrapper -file...
Set target frametime only if fps_limit > 0
@@ -522,7 +522,7 @@ parse_overlay_config(struct overlay_params *params, // set frametime limit using namespace std::chrono; - if (params->fps_limit >= 0) + if (params->fps_limit > 0) fps_limit_stats.targetFrameTime = duration_cast<Clock::duration>(duration<double>(1) / params->fps_limit); else fps_limit_stats.targetFra...
more UT for javabci
@@ -68,7 +68,6 @@ unsigned char JavaTest_class[] = { 0x08, 0x00, 0x10, 0x00, 0x0e, 0x00, 0x11, 0x00, 0x01, 0x00, 0x19, 0x00, 0x00, 0x00, 0x02, 0x00, 0x1a }; -unsigned int JavaTest_class_len = 677; static void javaBciReadAndWriteClassWithoutModifications(void** state) @@ -78,6 +77,7 @@ javaBciReadAndWriteClassWithoutMod...
README: add a new board and modify content 1. QEMU is supported so that we should add it there. 2. Remove wrong content and an unncessary space
@@ -60,11 +60,9 @@ Built binaries are in *$TIZENRT_BASEDIR/build/output/bin*. ARTIK053 [[details]](build/configs/artik053/README.md) -sidk_s5jt200 [[details]](build/configs/sidk_s5jt200/README.md) +QEMU [[details]](build/configs/qemu/README.md) -Tizen RT currently supports only two boards called artik053 and sidk_s5jt2...
Fix regression when rendering VT lines with 0 width
@@ -1824,7 +1824,7 @@ namespace carto { namespace vt { for (int i = 0; i < styleParams.parameterCount; i++) { float width = 0.5f * std::abs((*styleParams.widthTable[i])(_viewState)) * geometry->getGeometryScale() / geometry->getTileSize(); float pixelWidth = 2.0f * _halfResolution * width; - if (pixelWidth > 0.0f && pi...
xfconf-plugin: Remove array limitation from readme
@@ -47,5 +47,4 @@ kdb set /test/xfwm/general/button_layout "$OLD_LAYOUT" - usage of a dummy file such as `/dev/null` - xfconf locks can only be read but not set as this is not possible in xfconf -- arrays are not implemented yet - comments and sorting are not implemented due the lack of both in xfconf
Now CFLAGS variable allows to overwrite configured options.
@@ -14,7 +14,7 @@ cat << END > $NXT_MAKEFILE CC = $CC -CFLAGS = $CFLAGS $NXT_CFLAGS $NXT_CC_OPT +CFLAGS = $NXT_CFLAGS $NXT_CC_OPT $CFLAGS NXT_EXEC_LINK = $NXT_EXEC_LINK $NXT_LD_OPT NXT_SHARED_LOCAL_LINK = $NXT_SHARED_LOCAL_LINK $NXT_LD_OPT
Add explanation + bugtracker link for quoted dependency workarounds
@@ -639,6 +639,10 @@ $args{target}: $deps EOF } + # This function (and the next) avoids quoting paths of generated dependencies + # (in the build tree), but quotes paths of non-generated dependencies (in the + # source tree). This is a workaround for a limitation of C++Builder's make.exe + # in handling quoted paths: h...
Add -O2 to flang-teams-gdb Without -O2 flag we cannot compile test case. The compilation error is presented below: error: flang-teams1.f90:8:1: in function __nv_MAIN__TARGET_F1L7_1_ void (i64*, i64*): unsupported call to variadic function omp_get_num_teams
@@ -5,7 +5,7 @@ TESTSRC_MAIN = flang-teams1.f90 TESTSRC_AUX = TESTSRC_ALL = $(TESTSRC_MAIN) $(TESTSRC_AUX) -CFLAGS = -ggdb +CFLAGS = -ggdb -O2 FLANG = flang OMP_BIN = $(AOMP)/bin/$(FLANG)
mdns: sending search packets also in probing and announcing state mdns queries did not work properly when send imeadiately after set_hostname, which cuased reinit of pcb and therefore restarted probing, so search packets were blocked until probing finished closes closes
@@ -3465,7 +3465,7 @@ static mdns_tx_packet_t * _mdns_create_search_packet(mdns_search_once_t * search static void _mdns_search_send_pcb(mdns_search_once_t * search, tcpip_adapter_if_t tcpip_if, mdns_ip_protocol_t ip_protocol) { mdns_tx_packet_t * packet = NULL; - if (_mdns_server->interfaces[tcpip_if].pcbs[ip_protocol...
nrf52832: fix .map filename
@@ -139,7 +139,7 @@ CFLAGS += -ggdb CFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16 # keep every function in separate section. This will allow linker to dump unused functions -LDFLAGS += -Xlinker -Map=$(LISTING_DIRECTORY)/$(OUTPUT_FILENAME).map +LDFLAGS += -Xlinker -Map=$(@:.elf=-$(TARGET).map) LDFLAGS += -mabi=aapcs -L $...
out_stdout: set 1 worker by default
@@ -229,6 +229,7 @@ struct flb_output_plugin out_stdout_plugin = { .cb_flush = cb_stdout_flush, .cb_exit = cb_stdout_exit, .flags = 0, + .workers = 1, .event_type = FLB_OUTPUT_LOGS | FLB_OUTPUT_METRICS, .config_map = config_map };
Fixed expansion of function return values as argument. Now this is done using the unified function for expansion.
@@ -866,19 +866,8 @@ function FunChecker:check_exp_synthesize(exp) if last_arg and (last_arg._tag == "ast.Exp.CallFunc" or last_arg._tag == "ast.Exp.CallMethod") then - local missing_exps = #f_type.arg_types - #exp.args - - last_arg = self:check_exp_synthesize(last_arg) - exp.args[nlast_args] = last_arg - - for i = 2, ...
add draft for mu auc
@@ -4505,6 +4505,7 @@ TMetricHolder TQueryAUCMetric::EvalSingleThread( for (int queryIndex = queryStartIndex; queryIndex < queryEndIndex; ++queryIndex) { auto startIdx = queriesInfo[queryIndex].Begin; auto endIdx = queriesInfo[queryIndex].End; + auto querySize = endIdx - startIdx; const float queryWeight = UseWeights ?...
BugID:16763931:add wrong params format example
@@ -389,6 +389,10 @@ void user_post_property(void) property_payload = "{\"RGBColor\":{\"Red\":45,\"Green\":30}}"; example_index++; } else if (example_index == 5) { + /* Wrong Params Format */ + property_payload = "\"hello world\""; + example_index++; + } else if (example_index == 6) { /* Wrong Json Format */ property_p...
Expose parse-number function.
@@ -689,6 +689,20 @@ static int cfun_node(DstArgs args) { return dst_return(args, dst_wrap_tuple(dst_tuple_end(tup))); } +static int cfun_parsenumber(DstArgs args) { + const uint8_t *data; + Dst x; + int32_t len; + if (args.n != 1) return dst_throw(args, "expected string or buffer"); + if (!dst_chararray_view(args.v[0]...
upated REAME with lsst_spec example
@@ -222,11 +222,18 @@ where */path/to/install/* is the path to the location where the library has been #define Z0_SH 0.65 #define SZ_SH 0.05 #define NL 512 -#define PS 0.1 -double pz_func_example (double photo_z, double spec_z, void *param){ - double delta_z = photo_z - spec_z; - return 1.0 / sqrt(PS*2*M_PI) * exp(-del...
odissey: shapito: no need for -DBUILD_STATIC=ON
@@ -4,7 +4,7 @@ macro(build_shapito) if (${PROJECT_BINARY_DIR} STREQUAL ${PROJECT_SOURCE_DIR}) add_custom_command( OUTPUT ${PROJECT_BINARY_DIR}/lib/shapito/src/libshapito${CMAKE_STATIC_LIBRARY_SUFFIX} - COMMAND ${CMAKE_COMMAND} ${PROJECT_BINARY_DIR}/lib/shapito -DBUILD_STATIC=ON -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} +...
Removed unused "nxt_app_header_field_t" structure. It's not used since
@@ -88,12 +88,6 @@ struct nxt_common_app_conf_s { }; -typedef struct { - nxt_str_t name; - nxt_str_t value; -} nxt_app_header_field_t; - - typedef struct { nxt_str_t method; nxt_str_t target;
DmResource: remove 'isAdmin prop' Fixes urbit/landscape#982
@@ -165,7 +165,7 @@ export function DmResource(props: DmResourceProps) { fetchMessages={fetchMessages} dismissUnread={dismissUnread} getPermalink={() => undefined} - isAdmin + isAdmin={false} onSubmit={onSubmit} /> </Col>
Doc: Add hint about install-config-file tutorial
@@ -220,5 +220,5 @@ kdb get user/tests/arrays/result/#0 There are two tools of which cmerge is the central tool: 1. `kdb install-config-file` installs or merges configuration files from the file system into - Elektra. + Elektra. There is [a tutorial](/doc/tutorials/install-config-files.md) for this tool, too. 2. `kdb c...
Expose rising constants.
@@ -520,7 +520,7 @@ int mapstrings_transconst(ScriptVariant **varlist, int paramCount) ICMPCONST(DUCK_ACTIVE) ICMPCONST(DUCK_RISE) - // Explode status (legacy bomb projectiles). + // Explode state (legacy bomb projectiles). ICMPCONST(EXPLODE_INACTIVE) ICMPCONST(EXPLODE_PREPARED) ICMPCONST(EXPLODE_DETONATE) @@ -535,6 +5...
libbarrelfish: pmap datastructures: hard-select linked-list pmap for armv7
#define VNODE_SLAB_SIZE 256 #define INIT_SLAB_BUFFER_SIZE SLAB_STATIC_SIZE(INIT_SLAB_COUNT, VNODE_SLAB_SIZE) -#if defined(PMAP_LL) +#if defined(PMAP_LL) || defined (__ARM_ARCH_7A__) typedef struct vnode pmap_ds_child_t;
rune: fix docker exec invalid argument problem Fixes:
@@ -8,7 +8,6 @@ import ( "golang.org/x/sys/unix" "net" "os" - "path/filepath" "strings" ) @@ -75,8 +74,18 @@ func CreateParentAgentPipe(root string, uid, gid int) (lnFile *os.File, err erro } func CreateChildAgentPipe(root string) (*os.File, error) { - path := filepath.Join(root, "agent.sock") - conn, err := net.Dial("...
[stage 1]: daemons/balancer/modules/{adblockblock,antiddos,antirobot} partially.
@@ -851,7 +851,7 @@ public: } template <class TFunctor> - inline void ForEach(TFunctor&& functor) const { + inline void ForEach(TFunctor&& functor) const noexcept(noexcept(functor(std::declval<TListItem>().Node()))) { TListItem* i = Begin_; while (i) {
Fix build for yandexmini Fix review issues Remove symlinkfrom repo Remove debug comments Fix build Create yandexmini dirs for many external_libs Working tree for yandexmini
-- source_filter: "^quasar/yandex_io/daemons/external_libs/asio" +- source_filter: "^quasar/yandex_io/daemons/(external_libs|local/include/)/asio" includes: - __config - atomic.h -- source_filter: "^quasar/yandex_io/daemons/external_libs/boost" +- source_filter: "^quasar/yandex_io/daemons/local/include/asio/detail" + i...
Extra nonce overflow log warning
using System; using System.Security.Cryptography; +using NLog; namespace Miningcore.Blockchain { @@ -31,6 +32,8 @@ namespace Miningcore.Blockchain counter = 0; } + private static readonly ILogger logger = LogManager.GetCurrentClassLogger(); + private const int IdBits = 4; private readonly object counterLock = new(); pr...
fix: 'cjson_utils-static' target not exist(#625) * Update CMakeLists.txt fix the bug:when build with cmake using option '-DBUILD_SHARED_AND_STATIC_LIBS=ON -DENABLE_CJSON_UTILS=ON', build sucess, but use cmake comand 'find_package(cjson CONFIG)', 'cjson_utils' target is available,but 'cjson_utils-static' target not exi...
@@ -156,7 +156,11 @@ install(TARGETS "${CJSON_LIB}" INCLUDES DESTINATION "${CMAKE_INSTALL_FULL_INCLUDEDIR}" ) if (BUILD_SHARED_AND_STATIC_LIBS) - install(TARGETS "${CJSON_LIB}-static" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}") + install(TARGETS "${CJSON_LIB}-static" + EXPORT "${CJSON_LIB}" + ARCHIVE DESTINATION "${CMA...
perf-tools/likwid: bump to v4.3.2
Summary: Toolsuite of command line applications for performance oriented programmers Name: %{pname}-%{compiler_family}%{PROJ_DELIM} -Version: 4.3.1 +Version: 4.3.2 Release: 1%{?dist} License: GPLv3 Group: %{PROJ_NAME}/perf-tools
HV: get tss address from per cpu data TR selector initianlization using pre-defined HOST_GDT_RING0_CPU_TSS_SEL rather than loading from register. Instead calculating real base address of TSS based on TR selector and gdt, getting it from per cpu data. Acked-by: Anthony Xu
@@ -744,13 +744,9 @@ static void init_host_state(void) uint16_t value16; uint64_t value64; uint64_t value; - uint64_t trbase; - uint64_t trbase_lo; - uint64_t trbase_hi; - uint64_t realtrbase; + uint64_t tss_addr; descriptor_table gdtb = {0U, 0UL}; descriptor_table idtb = {0U, 0UL}; - uint16_t tr_sel; pr_dbg("*********...
Update overriding constant switches and member.
@@ -1174,8 +1174,9 @@ typedef enum BINDING_OVERRIDING_NONE = 0, BINDING_OVERRIDING_FALL_LAND = 1, - BINDING_OVERRIDING_SPECIAL = 2, - BINDING_OVERRIDING_LANDFRAME = 4 + BINDING_OVERRIDING_LANDFRAME = 2, + BINDING_OVERRIDING_SPECIAL_AI = 4, + BINDING_OVERRIDING_SPECIAL_PLAYER = 8 } e_binding_overriding; typedef enum @@ ...
Check the return value of 'ZSTD_initCStream' Function 'ZSTD_initCStream' may fail due to out of memory, ignore the return value could lead to an error later 'Context should be init first'.
@@ -1225,6 +1225,7 @@ static void BufFileStartCompression(BufFile *file) { ResourceOwner oldowner; + size_t ret; /* * When working with compressed files, we rely on libzstd's buffer, @@ -1254,7 +1255,9 @@ BufFileStartCompression(BufFile *file) file->zstd_context->cctx = ZSTD_createCStream(); if (!file->zstd_context->cc...
Fix alarm system GET response to include armmask without 'A' The device armmask in the PUT request is correctly stored and used correctly. However, the REST-API GET always returned "none" if no 'A' is part of the armmask.
@@ -146,7 +146,7 @@ static QVariantMap alarmSystemToMap(const AlarmSystem *alarmSys) { QVariantMap dev; - if ((entry.flags & (AS_ENTRY_FLAG_ARMED_AWAY | AS_ENTRY_FLAG_ARMED_AWAY | AS_ENTRY_FLAG_ARMED_AWAY)) != 0) + if ((entry.flags & (AS_ENTRY_FLAG_ARMED_AWAY | AS_ENTRY_FLAG_ARMED_STAY | AS_ENTRY_FLAG_ARMED_NIGHT)) != ...
Delete unnecessary `?:` statement. JerryScript-DCO-1.0-Signed-off-by: Marko Fabo
@@ -1062,7 +1062,7 @@ vm_loop (vm_frame_ctx_t *frame_ctx_p) /**< frame context */ case VM_OC_SET_GETTER: case VM_OC_SET_SETTER: { - opfunc_set_accessor (VM_OC_GROUP_GET_INDEX (opcode_data) == VM_OC_SET_GETTER ? true : false, + opfunc_set_accessor (VM_OC_GROUP_GET_INDEX (opcode_data) == VM_OC_SET_GETTER, stack_top_p[-1]...
VERSION bump to version 0.8.43
@@ -28,7 +28,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 8) -set(LIBNETCONF2_MICRO_VERSION 42) +set(LIBNETCONF2_MICRO_VERSION 43) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(LI...
Use https github as submodule
url = https://github.com/zhangslice/mm32sdk.git [submodule "hw/mcu/gd/nuclei-sdk"] path = hw/mcu/gd/nuclei-sdk - url = git@github.com:Nuclei-Software/nuclei-sdk.git + url = https://github.com/Nuclei-Software/nuclei-sdk.git
docs: update dsync option for deleting destination files - update no-delete option to delete-dst option, which will delete extraneous files in the destination directory
@@ -11,9 +11,9 @@ DESCRIPTION Parallel MPI application to synchronize two files or two directory trees. -dsync makes DEST match SRC, adding missing entries from DEST, removing -extra entries from DEST, and updating existing entries in DEST as necessary -so that SRC and DEST have identical content, ownership, timestamps...
Clarify installation instructions This also removes the OpenSUSE mention, as I am not 100% that the package name is correct in that case.
@@ -25,12 +25,16 @@ the [LuaRocks](http://luarocks.org) package manager: $ luarocks install --local --only-deps pallene-dev-1.rockspec ``` +If you use the --local flag when installing packages from Luarocks, you may +also need to configure the appropriate environment variables on your .bashrc. +For further information,...
Updated copyright line.
MIT License -Copyright (c) 2020 Peter Johanson +Copyright (c) 2020 The ZMK Contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
esp32-devkitc/coremark: Fix ci break
# CONFIG_ARCH_LEDS is not set # CONFIG_NSH_ARGCAT is not set # CONFIG_NSH_CMDOPT_HEXDUMP is not set -# CONFIG_NSH_CMDPARMS is not set CONFIG_ARCH="xtensa" CONFIG_ARCH_BOARD="esp32-devkitc" CONFIG_ARCH_BOARD_COMMON=y
Fix projection surface switching
@@ -400,16 +400,15 @@ namespace carto { if (_projectionSurface) { focusPosInternal = _projectionSurface->calculateMapPos(_focusPos); } - _focusPos = projectionSurface->calculatePosition(focusPosInternal); - double sin = std::sin(_rotation * Const::DEG_TO_RAD); - double cos = std::cos(_rotation * Const::DEG_TO_RAD); + d...
ec_kmgmt.c: Do not crash when getting OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY If the public key is not set on the key, return error instead of crash. Fixes
@@ -637,8 +637,10 @@ int common_get_params(void *key, OSSL_PARAM params[], int sm2) BN_CTX *bnctx = NULL; ecg = EC_KEY_get0_group(eck); - if (ecg == NULL) + if (ecg == NULL) { + ERR_raise(ERR_LIB_PROV, PROV_R_NO_PARAMETERS_SET); return 0; + } libctx = ossl_ec_key_get_libctx(eck); propq = ossl_ec_key_get0_propq(eck); @@...
robotis_manipulator gettrajecotry modified
@@ -1254,6 +1254,10 @@ JointWaypoint RobotisManipulator::getTrajectoryJointValue(double tick_time) joint_way_point_value = trajectory_.removeWaypointDynamicData(trajectory_.getPresentJointWaypoint()); moving_state_ = false; } + + // Set present joint task value to trajectory manipulator + trajectory_.setPresentJointWay...
Disable Handoff
@@ -380,6 +380,7 @@ fileprivate func parseArgs(_ args: inout [String]) { activity.contentAttributeSet = attributes activity.isEligibleForSearch = true activity.isEligibleForPrediction = true + activity.isEligibleForHandoff = false activity.keywords = ["python", "pyto", "run", "script", title ?? "Untitled"] activity.req...
ci: Force reinstall of python tools to workaround GitHub cache issue
@@ -278,10 +278,14 @@ function python-tools { export PIP_USER=yes export PYTHONUSERBASE=${tools}/pylocal add_path "${PYTHONUSERBASE}"/bin - pip3 install \ + + # Force the reinstall of python packages due to issues with GitHub + # cache restoration. + pip3 install --force-reinstall \ CodeChecker \ cxxfilt \ esptool==3.3...
no permutation in plain mode if only float features
@@ -117,7 +117,8 @@ void TLearnContext::InitContext(const TDataset& learnData, const TDataset* testD auto lossFunction = Params.LossFunctionDescription->GetLossFunction(); //const auto sampleCount = data.GetSampleCount(); int foldCount = Max<ui32>(Params.BoostingOptions->PermutationCount - 1, 1); - if (Params.BoostingO...
nacm BUGFIX relax check for the parent statements Specification says that in case the extension is not instantiated in data node, it is supposed to be ignored. So far, libyang was generating error, so this patch changes it to warning and ignores the extension.
@@ -93,9 +93,9 @@ nacm_compile(struct lysc_ctx *cctx, const struct lysp_ext_instance *p_ext, struc /* check that the extension is instantiated at an allowed place - data node */ if (c_ext->parent_type != LYEXT_PAR_NODE) { - lyext_log(c_ext, LY_LLERR, LY_EVALID, cctx->path, "Extension %s is allowed only in a data nodes,...
Removed NXT_PACKED from port structures. That was added only to silence Valgrind, but it results in unaligned access (which breaks Unit on ARM architecture).
@@ -32,7 +32,7 @@ typedef struct { /* Message data send using mmap, next chunk is a nxt_port_mmap_msg_t. */ uint8_t mmap; /* 1 bit */ -} NXT_PACKED nxt_port_msg_t; +} nxt_port_msg_t; typedef struct { @@ -99,7 +99,7 @@ typedef struct { size_t max_size; size_t max_share; nxt_process_type_t type:8; -} NXT_PACKED nxt_port_...
nshlib: Disable mb, mh, and mw by default Fix
@@ -365,7 +365,7 @@ config NSH_DISABLE_LS config NSH_DISABLE_MB bool "Disable mb" - default n + default y config NSH_DISABLE_MD5 bool "Disable md5" @@ -402,7 +402,7 @@ config NSH_DISABLE_MKSMARTFS config NSH_DISABLE_MH bool "Disable mh" - default n + default y config NSH_DISABLE_MODCMDS bool "Disable modules commands (...
in_winlog: on exit validate context and close database file
@@ -332,9 +332,19 @@ static void in_winlog_resume(void *data, struct flb_config *config) static int in_winlog_exit(void *data, struct flb_config *config) { struct flb_in_winlog_config *ctx = data; + + if (!ctx) { + return 0; + } + winlog_close_all(ctx->active_channel); + + if (ctx->db) { + flb_sqldb_close(ctx->db); + }...
Optimize hawq compilation structure
@@ -11,13 +11,19 @@ include $(top_builddir)/src/Makefile.global all: # $(MAKE) -C doc $@ $(MAKE) -C depends/thirdparty/googletest $@ + $(MAKE) -C depends/thirdparty/googletest install $(MAKE) -C depends/libhdfs3 $@ + $(MAKE) -C depends/libhdfs3 install $(MAKE) -C depends/libyarn $@ + $(MAKE) -C depends/libyarn install ...
Update the ffmpeg version used in the tests
@@ -6,12 +6,12 @@ set -euvo pipefail mkdir -p "${HOME}/bin" -wget http://ultravideo.cs.tut.fi/ffmpeg-release-32bit-static.tar.xz +wget http://ultravideo.cs.tut.fi/ffmpeg-release-4.2.1-32bit-static.tar.xz sha256sum -c - << EOF -4d3302ba0415e08ca10ca578dcd1f0acc48fadc9b803718283c8c670350c903e ffmpeg-release-32bit-static....
README: update and add logger setting and system config sections
@@ -110,6 +110,41 @@ glfs: /volume@hostname/filename 5. The created backstore device can then be mapped to a LUN like traditional backstores. +##### Logger setting and system configuration + +- Logger setting: + +There are 5 logging levels supported: + +1. ERROR +2. WARNING +3. INFO +4. DEBUG +5. DEBUG SCSI CMD + +And ...
different mechanism of determining we are a git repo
#!/bin/bash -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" - print_help() { echo "Usage Examples:" echo " ./scope_env.sh run <cmd and args> (executes cmd with scope library)" @@ -197,8 +195,7 @@ install_git() { } clone_scope() { - cd ${DIR} - if git remote -v 2>/dev/null | grep "scope.git" &>/dev/null; then +...
Add preprocessor conditional to use JSON_ALLOW_NUL flag only if jansson 2.6.0+ is installed
@@ -299,7 +299,11 @@ int module_load( json = json_loadb( (const char*) module_data, module_data_size, + #if JANSSON_VERSION_HEX >= 0x020600 JSON_ALLOW_NUL, + #else + 0, + #endif &json_error); if (json == NULL)
separating GUI in makefile
@@ -161,10 +161,6 @@ hfitter := \ shared/common/loud.c \ shared/common/fitter.c -hforky := \ -shared/common/loud.c \ -shared/unstable/forky.c - hfragile := \ shared/common/loud.c \ shared/unstable/fragile.c @@ -288,7 +284,6 @@ togedge.class.sources := cyclone_src/binaries/control/togedge.c $(hloud) linedrive.class.sour...
reset: automatic reboot after flash
#include "project.h" -#define BOOTLOADER_MAGIC 0xDEADBEEF #define BKP_INDEX LL_RTC_BKP_DR4 +#define FIRMWARE_MAGIC 0xCAFEBABE +#define BOOTLOADER_MAGIC 0xDEADBEEF + #ifdef STM32F4 #define BOOTLOADER_OFFSET 0x1FFF0000 #endif @@ -40,16 +42,23 @@ void system_reset_to_bootloader() { __attribute__((__used__)) void system_ch...
Cascading: Remove data created by INI plugin
@@ -160,6 +160,9 @@ kdb rm /overrides/test kdb rm -r spec/sw/tutorial/ +# Remove key automatically created by INI plugin +if kdb info storage provides | grep -q 'storage/ini'; then kdb rm user/overrides; fi + rm -r .dir/ rmdir kdbtutorial ```
fix the size of variable merge_sz in quicklist.c 11 was the size of header/trailer in the old structure Ziplist, but now the size of header/trailer in the new structure Listpack should be 7.
@@ -502,9 +502,9 @@ REDIS_STATIC int _quicklistNodeAllowMerge(const quicklistNode *a, if (unlikely(QL_NODE_IS_PLAIN(a) || QL_NODE_IS_PLAIN(b))) return 0; - /* approximate merged listpack size (- 11 to remove one listpack - * header/trailer) */ - unsigned int merge_sz = a->sz + b->sz - 11; + /* approximate merged listpa...
peview: Fix (crash on vanilla Win7 without KB2533623)
@@ -88,7 +88,18 @@ VOID PvpProcessImports( PPH_STRING baseDirectory; if (baseDirectory = PhGetBaseDirectory(PvFileName)) - AddDllDirectory(baseDirectory->Buffer); + { + static DLL_DIRECTORY_COOKIE (WINAPI *AddDllDirectory_I)( + _In_ PCWSTR NewDirectory + ); + + if (AddDllDirectory_I = PhGetDllProcedureAddress(L"kernel3...