message
stringlengths
6
474
diff
stringlengths
8
5.22k
Ensure test user has permissions before removing test files. This allows files to be deleted even when tests have limited the permissions.
@@ -642,7 +642,8 @@ eval } executeTest( - "rm -rf ${strTestPath}/temp ${strTestPath}/test-* ${strTestPath}/data-*" . ($bDev ? '' : " ${strTestPath}/gcov-*")); + "chmod 700 -R ${strTestPath}/test-* 2>&1 || true && rm -rf ${strTestPath}/temp ${strTestPath}/test-*" . + " ${strTestPath}/data-*" . ($bDev ? '' : " ${strTestPath}/gcov-*")); $oStorageTest->pathCreate("${strTestPath}/temp", {strMode => '0770', bIgnoreExists => true, bCreateParent => true}); # Remove old lcov dirs -- do it this way so the dirs stay open in finder/explorer, etc.
Tolerate failure on ipv6 tcp server test and add ipv4 version (needed for Travis tests which seem to have broken ipv6 support)
return require('lib/tap')(function (test) - test("basic tcp server and client", function (print, p, expect, uv) + test("basic tcp server and client (ipv4)", function (print, p, expect, uv) local server = uv.new_tcp() - uv.tcp_bind(server, "::", 0) - uv.listen(server, 128, expect(function (err) + assert(uv.tcp_bind(server, "127.0.0.1", 0)) + assert(uv.listen(server, 128, expect(function (err) p("server on connection", server) assert(not err, err) uv.close(server) - end)) + end))) local address = uv.tcp_getsockname(server) p{server=server,address=address} local client = uv.new_tcp() - local req = uv.tcp_connect(client, "::1", address.port, expect(function (err) + local req = assert(uv.tcp_connect(client, "127.0.0.1", address.port, expect(function (err) p("client on connect", client, err) assert(not err, err) uv.shutdown(client, expect(function (err) @@ -22,7 +22,39 @@ return require('lib/tap')(function (test) p("client on close", client) end)) end)) + end))) + p{client=client,req=req} + end) + + test("basic tcp server and client (ipv6)", function (print, p, expect, uv) + local server = uv.new_tcp() + local _, err = uv.tcp_bind(server, "::1", 0) + if err then + p("ipv6 unavailable", err) + uv.close(server) + return + end + assert(uv.listen(server, 128, expect(function (err) + p("server on connection", server) + assert(not err, err) + uv.close(server) + end))) + + local address = uv.tcp_getsockname(server) + p{server=server,address=address} + + local client = uv.new_tcp() + local req = assert(uv.tcp_connect(client, "::1", address.port, expect(function (err) + p("client on connect", client, err) + assert(not err, err) + uv.shutdown(client, expect(function (err) + p("client on shutdown", client, err) + assert(not err, err) + uv.close(client, expect(function () + p("client on close", client) + end)) end)) + end))) p{client=client,req=req} end)
Reword readme.md under ./Test.
## Testing in FreeRTOS - This directory is in working progress -- we are migrating scattered test cases to this directory. The directory structure section below only lists what's currently under this directory. +FreeRTOS kernel consists of common code and porting layer. Extensive [static analysis](https://en.wikipedia.org/wiki/Static_program_analysis) and [dynamic analysis](https://en.wikipedia.org/wiki/Dynamic_program_analysis) are done on both to ensure functional correctness of FreeRTOS kernel. + +For more information on FreeRTOS testing please refer to https://www.freertos.org/FreeRTOS-Coding-Standard-and-Style-Guide.html. ## Directory structure +This directory is in working progress -- we are migrating scattered test cases to this directory. Here only lists what's currently under this directory. + - ```./CBMC```: This directory contains automated proofs of the memory safety of various parts of the FreeRTOS code base. \ No newline at end of file
menu: sndcode should signal release of key
@@ -816,6 +816,9 @@ static int send_code(struct re_printf *pf, void *arg) for (i = 0; i < str_len(carg->prm) && !err; i++) { err = call_send_digit(call, carg->prm[i]); } + if (!err) { + err = call_send_digit(call, KEYCODE_REL); + } } return err;
update params guitar
@@ -51,9 +51,9 @@ guitar_string_sparse = StringDS(ndof, geometry_and_material=G_string, # -- The obstacles (Interactions) -- # ie guitar fret(s) -fret = Fret(guitar_string, position=[imax, -0.010]) -fret_m = Fret(guitar_string_m, position=[imax, -.002], restitution_coeff = 0.0) -fret_sp = Fret(guitar_string_sparse, position=[imax, -0.010]) +fret = Fret(guitar_string, position=[imax, -0.00]) +fret_m = Fret(guitar_string_m, position=[imax, -0.00]) +fret_sp = Fret(guitar_string_sparse, position=[imax, -0.00]) # -- The model to gather frets and strings and simulate the dynamics -- t0 = 0. @@ -80,8 +80,6 @@ def run_simu(model): print 'End of simulation process.' - - start_time = time.clock() run_simu(guitar_model) print 'duration (std form): ', time.clock() - start_time
sdcard_image-rpi: Drop redundant dependency on rpi-config:do_deploy The bootfiles:do_deploy task already depends on rpi-config:do_deploy so we do not explicitly need to list the dependency again in the sdcard_image-rpi class.
@@ -57,7 +57,6 @@ do_image_rpi_sdimg[depends] = " \ dosfstools-native:do_populate_sysroot \ virtual/kernel:do_deploy \ ${IMAGE_BOOTLOADER}:do_deploy \ - rpi-config:do_deploy \ ${@bb.utils.contains('MACHINE_FEATURES', 'armstub', 'armstubs:do_deploy', '' ,d)} \ ${@bb.utils.contains('RPI_USE_U_BOOT', '1', 'u-boot:do_deploy', '',d)} \ ${@bb.utils.contains('RPI_USE_U_BOOT', '1', 'u-boot-default-script:do_deploy', '',d)} \
Added lv_gauge_value_t and lv_linemeter_value_t typedefs
@@ -34,6 +34,8 @@ typedef void * lv_anim_user_data_t; typedef void * lv_group_user_data_t; typedef void * lv_fs_drv_user_data_t; typedef void * lv_img_decoder_user_data_t; +typedef int16_t lv_gauge_value_t; +typedef int16_t lv_linemeter_value_t; /********************** * GLOBAL PROTOTYPES
Update token guid string
@@ -2216,7 +2216,7 @@ BOOLEAN PhpAddTokenCapabilities( if (capabilityName = PhGetCapabilityGuidName(name)) { - PhpAddAttributeNode(&TokenPageContext->CapsTreeContext, node, PhFormatString(L"GuidName: %s", PhGetString(capabilityName))); + PhpAddAttributeNode(&TokenPageContext->CapsTreeContext, node, PhFormatString(L"Capability: %s", PhGetString(capabilityName))); PhDereferenceObject(capabilityName); }
redpine: use new magic, parse packet flag
@@ -330,7 +330,7 @@ void rx_serial_find_protocol(void) { break; case RX_SERIAL_PROTOCOL_REDPINE: case RX_SERIAL_PROTOCOL_REDPINE_INVERTED: - if (rx_buffer[0] == 11) { + if ((rx_buffer[0] & 0x3F) == 0x2A) { rx_serial_protocol = protocol_to_check; } break; @@ -1046,6 +1046,16 @@ void rx_serial_process_redpine(void) { rx_data[i] = rx_buffer[i % RX_BUFF_SIZE]; } + if ((rx_data[0] & 0xc0) == 0x40) { + // packet lost flag, do not process + return; + } + if ((rx_data[0] & 0xc0) != 0x0) { + // invalid flag, skip this packet + frame_status = FRAME_IDLE; + return; + } + const uint16_t channels[4] = { (uint16_t)((rx_data[REDPINE_CHANNEL_START + 1] << 8) & 0x700) | rx_data[REDPINE_CHANNEL_START], (uint16_t)((rx_data[REDPINE_CHANNEL_START + 2] << 4) & 0x7F0) | ((rx_data[REDPINE_CHANNEL_START + 1] >> 4) & 0xF),
devicemodel: remove obsolete argument from list of options Remove the 'p' argument from the list as it is now obsolete and there is no implementation for it in the code.
@@ -777,7 +777,7 @@ static struct option long_options[] = { {0, 0, 0, 0 }, }; -static char optstr[] = "hAWYvE:k:r:B:p:s:m:l:U:G:i:"; +static char optstr[] = "hAWYvE:k:r:B:s:m:l:U:G:i:"; int main(int argc, char *argv[])
u3: refactors u3u_uniq, prints memory measurements
@@ -323,34 +323,34 @@ u3u_uniq(void) c3_assert(0); } - fprintf(stderr, "hc: cells fill %" PRIu64 " size %" PRIu64 "\r\n", r->cells.fill, r->cells.size); - fprintf(stderr, "hc: atoms fill %" PRIu64 " size %" PRIu64 "\r\n", r->atoms.fill, r->atoms.size); - + // reallocate kernel + // ur_nref ken = _cu_from_loom(r, u3A->roc); - fprintf(stderr, "hc: cells fill %" PRIu64 " size %" PRIu64 "\r\n", r->cells.fill, r->cells.size); - fprintf(stderr, "hc: atoms fill %" PRIu64 " size %" PRIu64 "\r\n", r->atoms.fill, r->atoms.size); - - - c3_w cod_w = u3h_wyt(u3R->jed.cod_p); - ur_nvec_t v; - - fprintf(stderr, "hc: cold count %u\r\n", cod_w); - + // reallocate cold jet state + // + ur_nvec_t cod_u; { - _cu_vec dat_u = { .vec_u = &v, .rot_u = r }; - ur_nvec_init(&v, cod_w); + c3_w cod_w = u3h_wyt(u3R->jed.cod_p); + _cu_vec dat_u = { .vec_u = &cod_u, .rot_u = r }; + ur_nvec_init(&cod_u, cod_w); u3h_walk_with(u3R->jed.cod_p, _cu_hamt_walk, &dat_u); } - fprintf(stderr, "hc: cells fill %" PRIu64 " size %" PRIu64 "\r\n", r->cells.fill, r->cells.size); - fprintf(stderr, "hc: atoms fill %" PRIu64 " size %" PRIu64 "\r\n", r->atoms.fill, r->atoms.size); + // print [rot_u] measurements + // + ur_hcon_info(stderr, r); + fprintf(stderr, "\r\n"); + // reinitialize looom + // // NB: hot jet state is not yet re-established // u3m_pave(c3y, c3n); { + // reallocate all nouns on the loom + // _cu_loom lom_u; _cu_atoms_to_loom(r, &lom_u); _cu_cells_to_loom(r, &lom_u); @@ -362,12 +362,13 @@ u3u_uniq(void) // restore cold jet state (always cells) // { - c3_w i_w; + c3_d max_d = cod_u.fill; + c3_d i_d; ur_nref ref; u3_noun kev; - for ( i_w = 0; i_w < cod_w; i_w++) { - ref = v.refs[i_w]; + for ( i_d = 0; i_d < max_d; i_d++) { + ref = cod_u.refs[i_d]; kev = lom_u.cel[ur_nref_idx(ref)]; u3h_put(u3R->jed.cod_p, u3h(kev), u3k(u3t(kev))); u3z(kev);
vio-svc: rhbz#1979469: update device hardware to rev 01
;Abstract: ; ;Installation Notes: -; Using Devcon: Type "devcon install viofs.inf PCI\VEN_1AF4&DEV_105A&SUBSYS_1100_INX_SUBSYS_VENDOR_ID&REV_00" to install +; Using Devcon: Type "devcon install viofs.inf PCI\VEN_1AF4&DEV_105A&SUBSYS_1100_INX_SUBSYS_VENDOR_ID&REV_01" to install ; ;--*/ @@ -41,7 +41,7 @@ WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll = 1 ; make sure the number matches wi %VENDOR% = Standard,NT$ARCH$ [Standard.NT$ARCH$] -%VirtioFs.DeviceDesc% = VirtioFs_Device, PCI\VEN_1AF4&DEV_105A&SUBSYS_1100_INX_SUBSYS_VENDOR_ID&REV_00, PCI\VEN_1AF4&DEV_105A +%VirtioFs.DeviceDesc% = VirtioFs_Device, PCI\VEN_1AF4&DEV_105A&SUBSYS_1100_INX_SUBSYS_VENDOR_ID&REV_01, PCI\VEN_1AF4&DEV_105A [VirtioFs_Device.NT] CopyFiles = VirtioFs_CopyFiles
cmake: don't install binaries from extras/ this matches the behavior of configure
@@ -567,7 +567,6 @@ if(WEBP_BUILD_EXTRAS) PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src ${CMAKE_CURRENT_BINARY_DIR}/src) - install(TARGETS get_disto RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) # webp_quality add_executable(webp_quality ${WEBP_QUALITY_SRCS} ${WEBP_EXTRAS_SRCS}) @@ -575,7 +574,6 @@ if(WEBP_BUILD_EXTRAS) target_include_directories(webp_quality PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) - install(TARGETS webp_quality RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) # vwebp_sdl find_package(SDL) @@ -590,7 +588,6 @@ if(WEBP_BUILD_EXTRAS) ${SDL_INCLUDE_DIR}) set(WEBP_HAVE_SDL 1) target_compile_definitions(vwebp_sdl PUBLIC WEBP_HAVE_SDL) - install(TARGETS vwebp_sdl RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) endif() endif()
try adding space
@@ -20,10 +20,10 @@ scientific libraries. The compatible OS version(s) for this release and the total number of pre-packaged RPMs available per architecture type are summarized as follows: -![](https://img.shields.io/badge/CentOS_7.3_RPMs_(x86_64)-344-464646.svg?colorA=c5222d) +![](https://img.shields.io/badge/CentOS_7.3_RPMs_(x86_64)_-344-464646.svg?colorA=c5222d) ![](https://img.shields.io/badge/CentOS_7.3_RPMs_(aarch64)-238-464646.svg?colorA=c5222d) -![](https://img.shields.io/badge/SLES12_SP2_RPMs_(x86_64)-349-464646.svg?colorA=3bd068) +![](https://img.shields.io/badge/SLES12_SP2_RPMs_(x86_64)_-349-464646.svg?colorA=3bd068) ![](https://img.shields.io/badge/SLES12_SP2_RPMs_(aarch64)-241-464646.svg?colorA=3bd068)
Clearing to avoid flashing garbage
@@ -537,7 +537,8 @@ ret_code_t prvWriteFlash( uint32_t ulOffset, { ulByteToSend = NRF_FICR->CODEPAGESIZE*4; } - + /* clear buffer to avoid garbage. */ + pulSerializingArray[(ulByteToSend+3)/4] = 0; memcpy(pulSerializingArray, pacData + ulByteSent, ulByteToSend); xEventGroupClearBits( xFlashEventGrp, otapalFLASH_SUCCESS | otapalFLASH_FAILURE );
Get rid of separate target for static library and stop fiddling BUILD_SHARED_LIBS flag.
-if (NOT DEFINED BUILD_SHARED_LIBS) - set(BUILD_SHARED_LIBS ON) -endif (NOT DEFINED BUILD_SHARED_LIBS) - -file(GLOB libsbp_HEADERS "${PROJECT_SOURCE_DIR}/include/libsbp/*.h") - -include_directories("${PROJECT_SOURCE_DIR}/include") +set(libsbp_HEADERS + "${PROJECT_SOURCE_DIR}/include/libsbp/acquisition.h" + "${PROJECT_SOURCE_DIR}/include/libsbp/bootload.h" + "${PROJECT_SOURCE_DIR}/include/libsbp/common.h" + "${PROJECT_SOURCE_DIR}/include/libsbp/edc.h" + "${PROJECT_SOURCE_DIR}/include/libsbp/ext_events.h" + "${PROJECT_SOURCE_DIR}/include/libsbp/file_io.h" + "${PROJECT_SOURCE_DIR}/include/libsbp/flash.h" + "${PROJECT_SOURCE_DIR}/include/libsbp/gnss.h" + "${PROJECT_SOURCE_DIR}/include/libsbp/imu.h" + "${PROJECT_SOURCE_DIR}/include/libsbp/logging.h" + "${PROJECT_SOURCE_DIR}/include/libsbp/mag.h" + "${PROJECT_SOURCE_DIR}/include/libsbp/navigation.h" + "${PROJECT_SOURCE_DIR}/include/libsbp/ndb.h" + "${PROJECT_SOURCE_DIR}/include/libsbp/observation.h" + "${PROJECT_SOURCE_DIR}/include/libsbp/orientation.h" + "${PROJECT_SOURCE_DIR}/include/libsbp/piksi.h" + "${PROJECT_SOURCE_DIR}/include/libsbp/sbas.h" + "${PROJECT_SOURCE_DIR}/include/libsbp/sbp.h" + "${PROJECT_SOURCE_DIR}/include/libsbp/settings.h" + "${PROJECT_SOURCE_DIR}/include/libsbp/ssr.h" + "${PROJECT_SOURCE_DIR}/include/libsbp/system.h" + "${PROJECT_SOURCE_DIR}/include/libsbp/tracking.h" + "${PROJECT_SOURCE_DIR}/include/libsbp/user.h" + "${PROJECT_SOURCE_DIR}/include/libsbp/vehicle.h" + "${PROJECT_SOURCE_DIR}/include/libsbp/version.h" + ) set(libsbp_SRCS edc.c sbp.c ) -add_library(sbp-static STATIC ${libsbp_SRCS}) -install(TARGETS sbp-static DESTINATION lib${LIB_SUFFIX}) - -if(BUILD_SHARED_LIBS) - add_library(sbp SHARED ${libsbp_SRCS}) +add_library(sbp ${libsbp_SRCS}) +target_include_directories(sbp PUBLIC "${PROJECT_SOURCE_DIR}/include") install(TARGETS sbp DESTINATION lib${LIB_SUFFIX}) -else(BUILD_SHARED_LIBS) - message(STATUS "Not building shared libraries") -endif(BUILD_SHARED_LIBS) - install(FILES ${libsbp_HEADERS} DESTINATION include/libsbp)
OpenXR: Add identity pose to reference spaces;
@@ -217,7 +217,8 @@ static bool openxr_init(float offset, uint32_t msaa) { // Main reference space (can be stage or local) XrReferenceSpaceCreateInfo info = { .type = XR_TYPE_REFERENCE_SPACE_CREATE_INFO, - .referenceSpaceType = XR_REFERENCE_SPACE_TYPE_STAGE + .referenceSpaceType = XR_REFERENCE_SPACE_TYPE_STAGE, + .poseInReferenceSpace = { .orientation = { 0.f, 0.f, 0.f, 1.f }, .position = { 0.f, 0.f, 0.f } } }; if (XR_FAILED(xrCreateReferenceSpace(state.session, &info, &state.referenceSpace))) { @@ -231,7 +232,8 @@ static bool openxr_init(float offset, uint32_t msaa) { // Head space (for head pose) XrReferenceSpaceCreateInfo headSpaceInfo = { .type = XR_TYPE_REFERENCE_SPACE_CREATE_INFO, - .referenceSpaceType = XR_REFERENCE_SPACE_TYPE_VIEW + .referenceSpaceType = XR_REFERENCE_SPACE_TYPE_VIEW, + .poseInReferenceSpace = { .orientation = { 0.f, 0.f, 0.f, 1.f }, .position = { 0.f, 0.f, 0.f } } }; XR_INIT(xrCreateReferenceSpace(state.session, &headSpaceInfo, &state.spaces[DEVICE_HEAD]));
fixes bug in forwarded packet routing
:: u.q.fud ?: =(our p.fud) (emit %mead lyn r.fud) - =+ zid=(myx:gus p.fud) - (emir (wist:zid now xong [~ lyn] r.fud)) + =/ zid (myx:gus p.fud) + =/ zon %*(xong ..xong her p.fud) + (emir (wist:zid now zon [~ lyn] r.fud)) == :: ++ emir :: emir:la:ho:um:am
OpenXR focus events;
@@ -630,7 +630,6 @@ static void openxr_update(float dt) { switch (e.type) { case XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED: { XrEventDataSessionStateChanged* event = (XrEventDataSessionStateChanged*) &e; - state.sessionState = event->state; switch (event->state) { case XR_SESSION_STATE_READY: @@ -651,6 +650,14 @@ static void openxr_update(float dt) { default: break; } + + bool wasFocused = state.sessionState == XR_SESSION_STATE_FOCUSED; + bool isFocused = event->state == XR_SESSION_STATE_FOCUSED; + if (wasFocused != isFocused) { + lovrEventPush((Event) { .type = EVENT_FOCUS, .data.boolean = isFocused }); + } + + state.sessionState = event->state; break; }
Blindly try to fix test script's tar invocation for MSYS. Buildfarm member fairywren doesn't like the test case I added in commit I'm guessing the reason is that I shouldn't be using a perl2host-ified path in the tar command line.
@@ -270,9 +270,10 @@ SKIP: $node2->init_from_backup($node, 'tarbackup2', tar_program => $tar); # Recover tablespace into a new directory (not where it was!) - mkdir "$tempdir/tblspc1replica"; + my $repTsDir = "$tempdir/tblspc1replica"; my $realRepTsDir = TestLib::perl2host("$shorter_tempdir/tblspc1replica"); - TestLib::system_or_bail($tar, 'xf', $tblspc_tars[0], '-C', $realRepTsDir); + mkdir $repTsDir; + TestLib::system_or_bail($tar, 'xf', $tblspc_tars[0], '-C', $repTsDir); # Update tablespace map to point to new directory. # XXX Ideally pg_basebackup would handle this.
only import pyframewriter if it's enabled
@@ -6,7 +6,6 @@ import numpy as np import cv2 from ..global_var import videoextensions from ..Exceptions import CannotCreateVideo, FourccIsNotExtension, WrongFourcc -from .FFmpegWriter.osr2mp4cv import PyFrameWriter def write_frame(shared, conn, filename, settings, iii): @@ -38,6 +37,7 @@ def write(shared, conn, filename, settings, iii): writer = cv2.VideoWriter(filename, cv2.VideoWriter_fourcc(*settings.codec), settings.fps, (settings.width, settings.height)) else: + from .FFmpegWriter.osr2mp4cv import PyFrameWriter if settings.settings["FFmpeg codec"] == "": settings.settings["FFmpeg codec"] = "libx264" ffmpegcodec = str.encode(settings.settings["FFmpeg codec"])
strict prototype
@@ -51,7 +51,7 @@ static void test_memoryvalue (const char * memoryvaluestring, kdb_unsigned_long_ } -static void test_memoryvalueplugin () +static void test_memoryvalueplugin (void) { test_memoryvalue ("1Z", 0, true); test_memoryvalue ("!TB", 0, true);
[ivshmem] propagate MmAllocateMdlForIoSpace error result
@@ -141,10 +141,10 @@ NTSTATUS IVSHMEMEvtDevicePrepareHardware(_In_ WDFDEVICE Device, _In_ WDFCMRESLIS { deviceContext->shmemAddr.PhysicalAddress = descriptor->u.Memory.Start; deviceContext->shmemAddr.NumberOfBytes = descriptor->u.Memory.Length; - if (!NT_SUCCESS(MmAllocateMdlForIoSpace(&deviceContext->shmemAddr, 1, &deviceContext->shmemMDL))) + result = MmAllocateMdlForIoSpace(&deviceContext->shmemAddr, 1, &deviceContext->shmemMDL); + if (!NT_SUCCESS(result)) { DEBUG_ERROR("%s", "Call to MmAllocateMdlForIoSpace failed"); - result = STATUS_DEVICE_HARDWARE_ERROR; break; } }
options/ansi: Adjust ENOTDIR error string
@@ -231,7 +231,7 @@ char *strerror(int errnum) { case EISDIR: s = "Resource is directory (EISDIR)"; break; case ENOENT: s = "No such file or directory (ENOENT)"; break; case ENOMEM: s = "Out of memory (ENOMEM)"; break; - case ENOTDIR: s = "Directory does not exist (ENOTDIR)"; break; + case ENOTDIR: s = "Expected directory instead of file (ENOTDIR)"; break; case ENOSYS: s = "Operation not implemented (ENOSYS)"; break; case EPERM: s = "Operation not permitted (EFAULT)"; break; case EPIPE: s = "Broken pipe (EPIPE)"; break;
remove superfluous Group
@@ -16,7 +16,6 @@ Name: %{pname}%{PROJ_DELIM} Version: 1.22 Release: 1%{?dist} Summary: Static cluster configuration database -Group: System Environment/Base License: GPL Source: https://github.com/chaos/genders/releases/download/genders-1-22-1/%{pname}-%{version}.tar.gz Source1: OHPC_macros
out_stdout: fix leak on exit and add missing cb_exit()
* limitations under the License. */ -#include <stdio.h> - +#include <fluent-bit/flb_info.h> #include <fluent-bit/flb_output.h> #include <fluent-bit/flb_utils.h> #include <fluent-bit/flb_time.h> #include "stdout.h" -static char *msgpack_to_json(struct flb_out_stdout_config *ctx, char *data, uint64_t bytes, uint64_t *out_size) +static char *msgpack_to_json(struct flb_out_stdout_config *ctx, + char *data, uint64_t bytes, + uint64_t *out_size) { int i; int ret; @@ -155,12 +156,11 @@ static char *msgpack_to_json(struct flb_out_stdout_config *ctx, char *data, uint } -int cb_stdout_init(struct flb_output_instance *ins, struct flb_config *config, - void *data) +static int cb_stdout_init(struct flb_output_instance *ins, + struct flb_config *config, void *data) { char *tmp; struct flb_out_stdout_config *ctx = NULL; - (void) ins; (void) config; (void) data; @@ -203,7 +203,7 @@ int cb_stdout_init(struct flb_output_instance *ins, struct flb_config *config, return 0; } -void cb_stdout_flush(void *data, size_t bytes, +static void cb_stdout_flush(void *data, size_t bytes, char *tag, int tag_len, struct flb_input_instance *i_ins, void *out_context, @@ -240,10 +240,26 @@ void cb_stdout_flush(void *data, size_t bytes, FLB_OUTPUT_RETURN(FLB_OK); } +static int cb_stdout_exit(void *data, struct flb_config *config) +{ + struct flb_out_stdout_config *ctx = data; + + if (!ctx) { + return 0; + } + + if (ctx->json_date_key) { + flb_free(ctx->json_date_key); + } + flb_free(ctx); + return 0; +} + struct flb_output_plugin out_stdout_plugin = { .name = "stdout", .description = "Prints events to STDOUT", .cb_init = cb_stdout_init, .cb_flush = cb_stdout_flush, + .cb_exit = cb_stdout_exit, .flags = 0, };
contributing: text fixup 'clear' is preferred to "clear, obvious" here.
@@ -211,11 +211,11 @@ bugs, performance problems, feature requests, and so on. If you encounter any issues when developing on urbit, feel free to submit a report about it here. A good bug report, description of a crash, etc., should ideally be -*reproducible*, with clear, obvious steps as to how another developer can -replicate and examine your problem. That said, this isn't always possible -- -some bugs depend on having created a complicated or unusual state, or can -otherwise simply be difficult to trigger again (say, you encountered it in the -last continuity era). +*reproducible*, with clear steps as to how another developer can replicate and +examine your problem. That said, this isn't always possible -- some bugs +depend on having created a complicated or unusual state, or can otherwise +simply be difficult to trigger again (say, you encountered it in the last +continuity era). Your issue should thus at a minimum be *informative*. The best advice here is probably "don't write bad issues," where "bad" is a matter of judgment and
proc/name.c: fixed memory leak in proc_portRegister() DONE:
@@ -74,6 +74,14 @@ int proc_portRegister(unsigned int port, const char *name, oid_t *oid) } proc_lockClear(&name_common.dcache_lock); + if (name[0] == '/' && name[1] == 0) { + name_common.root_oid.port = port; + if (oid != NULL) + name_common.root_oid.id = oid->id; + name_common.root_registered = 1; + return EOK; + } + if ((entry = vm_kmalloc(sizeof(dcache_entry_t) + hal_strlen(name) + 1)) == NULL) return -ENOMEM; @@ -82,12 +90,6 @@ int proc_portRegister(unsigned int port, const char *name, oid_t *oid) entry->oid.id = oid->id; hal_strcpy(entry->name, name); - if (name[0] == '/' && name[1] == 0) { - name_common.root_oid = entry->oid; - name_common.root_registered = 1; - return EOK; - } - proc_lockSet(&name_common.dcache_lock); entry->next = name_common.dcache[hash]; name_common.dcache[hash] = entry;
Update to VS project file for PSA crypto config The new header files to support PSA crypto config needed to be added to the VS project file.
<ClInclude Include="..\..\include\mbedtls\cmac.h" /> <ClInclude Include="..\..\include\mbedtls\compat-1.3.h" /> <ClInclude Include="..\..\include\mbedtls\config.h" /> + <ClInclude Include="..\..\include\mbedtls\config_psa.h" /> <ClInclude Include="..\..\include\mbedtls\ctr_drbg.h" /> <ClInclude Include="..\..\include\mbedtls\debug.h" /> <ClInclude Include="..\..\include\mbedtls\des.h" /> <ClInclude Include="..\..\include\psa\crypto.h" /> <ClInclude Include="..\..\include\psa\crypto_accel_driver.h" /> <ClInclude Include="..\..\include\psa\crypto_compat.h" /> + <ClInclude Include="..\..\include\psa\crypto_config.h" /> <ClInclude Include="..\..\include\psa\crypto_driver_common.h" /> <ClInclude Include="..\..\include\psa\crypto_entropy_driver.h" /> <ClInclude Include="..\..\include\psa\crypto_extra.h" />
Add tests that cover most of the top-level interface
from numpy.testing import run_module_suite +# Per-module accuracy and input correctness tests from ccl_test_distances import * from ccl_test_growth import * from ccl_test_core import * +# Overall interface functionality tests +from ccl_test_pyccl_interface import * + if __name__ == "__main__": # Run all tests run_module_suite()
grid: fix sort order in notifications
@@ -40,7 +40,7 @@ export const BasicNotification = ({ notification, lid }: BasicNotificationProps) if (!first || !charge) { return null; } - const orderedByTime = notification.body.sort((a, b) => b.time - a.time); + const orderedByTime = notification.body.sort((a, b) => a.time - b.time); const contents = map(orderedByTime, 'content').filter((c) => c.length > 0); const large = contents.length === 0; const archive = () => {
ci: update ruby versions to test Remove 2.3 and include 2.7 at versions which the macOS builds do support.
@@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: [ '2.3.7', '2.4.6', '2.5.5', '2.6.3' ] + ruby: [ '2.4.9', '2.5.7', '2.6.5', '2.7.0' ] os: [ ubuntu-18.04, macOS-10.14 ] runs-on: ${{ matrix.os }}
Allow minimizing live dump progress dialog
@@ -184,7 +184,7 @@ HRESULT CALLBACK PhpLiveDumpProgressDialogCallbackProc( if (NT_SUCCESS(context->LastStatus)) { - config.dwFlags = TDF_USE_HICON_MAIN | TDF_ALLOW_DIALOG_CANCELLATION; + config.dwFlags = TDF_USE_HICON_MAIN | TDF_ALLOW_DIALOG_CANCELLATION | TDF_CAN_BE_MINIMIZED; config.hMainIcon = PhGetApplicationIcon(FALSE); config.dwCommonButtons = TDCBF_CLOSE_BUTTON; config.pfCallback = PhpLiveDumpPageCallbackProc; @@ -195,7 +195,7 @@ HRESULT CALLBACK PhpLiveDumpProgressDialogCallbackProc( } else { - config.dwFlags = TDF_USE_HICON_MAIN | TDF_ALLOW_DIALOG_CANCELLATION; + config.dwFlags = TDF_USE_HICON_MAIN | TDF_ALLOW_DIALOG_CANCELLATION | TDF_CAN_BE_MINIMIZED; config.hMainIcon = PhGetApplicationIcon(FALSE); config.dwCommonButtons = TDCBF_CLOSE_BUTTON; config.pfCallback = PhpLiveDumpPageCallbackProc; @@ -255,7 +255,7 @@ NTSTATUS PhpLiveDumpTaskDialogThread( memset(&config, 0, sizeof(TASKDIALOGCONFIG)); config.cbSize = sizeof(TASKDIALOGCONFIG); - config.dwFlags = TDF_USE_HICON_MAIN | TDF_ALLOW_DIALOG_CANCELLATION | TDF_SHOW_MARQUEE_PROGRESS_BAR | TDF_CALLBACK_TIMER; + config.dwFlags = TDF_USE_HICON_MAIN | TDF_ALLOW_DIALOG_CANCELLATION | TDF_SHOW_MARQUEE_PROGRESS_BAR | TDF_CALLBACK_TIMER | TDF_CAN_BE_MINIMIZED; config.hMainIcon = PhGetApplicationIcon(FALSE); config.dwCommonButtons = TDCBF_CANCEL_BUTTON; config.pfCallback = PhpLiveDumpProgressDialogCallbackProc;
libssh2.h: Update Diffie Hellman group values File: libssh2.h Notes: Update the min, preferred and max DH group values based on RFC 8270. Credit: Will Cosgrove, noted from email list by Mitchell Holland
@@ -235,9 +235,9 @@ typedef off_t libssh2_struct_stat_size; /* Default generate and safe prime sizes for diffie-hellman-group-exchange-sha1 */ -#define LIBSSH2_DH_GEX_MINGROUP 1024 -#define LIBSSH2_DH_GEX_OPTGROUP 1536 -#define LIBSSH2_DH_GEX_MAXGROUP 2048 +#define LIBSSH2_DH_GEX_MINGROUP 2048 +#define LIBSSH2_DH_GEX_OPTGROUP 4096 +#define LIBSSH2_DH_GEX_MAXGROUP 8192 /* Defaults for pty requests */ #define LIBSSH2_TERM_WIDTH 80
bypass SSE optimization when skipping subsampled channels
@@ -1432,6 +1432,14 @@ ScanLineInputFile::setFrameBuffer (const FrameBuffer &frameBuffer) // not possible. break; } + + // + // optimization mode cannot currently skip subsampled channels + // + if (i.channel().xSampling!=1 || i.channel().ySampling!=1) + { + optimizationPossible = false; + } ++i; }
RPC: Remove CAN bit timing function.
@@ -282,21 +282,11 @@ class rpc_slave(rpc): self.__schedule_cb = None if self.__loop_cb is not None: self.__loop_cb() -def __get_can_settings(bit_rate, sample_point): - clk = 48000000 if omv.board_type() == "H7" else pyb.freq()[2] - for prescaler in range(8): - for bs1 in range(16): - for bs2 in range(8): - if bit_rate == ((clk >> prescaler) // (1 + bs1 + bs2)) and (sample_point * 10) == (((1 + bs1) * 1000) // (1 + bs1 + bs2)): - return (1 << prescaler, bs1, bs2) - raise ValueError("Invalid bit_rate and/or sample_point!") - class rpc_can_master(rpc_master): def __init__(self, message_id=0x7FF, bit_rate=250000, sample_point=75, can_bus=2): self.__message_id = message_id - can_prescaler, can_bs1, can_bs2 = __get_can_settings(bit_rate, sample_point) - self.__can = pyb.CAN(can_bus, pyb.CAN.NORMAL, prescaler=can_prescaler, bs1=can_bs1, bs2=can_bs2, auto_restart=True) + self.__can = pyb.CAN(can_bus, pyb.CAN.NORMAL, baudrate=bit_rate, sample_point=sample_point, auto_restart=True) self.__can.setfilter(0, pyb.CAN.DUAL if omv.board_type() == "H7" else pyb.CAN.LIST32, 0, [message_id, message_id]) rpc_master.__init__(self) @@ -330,8 +320,7 @@ class rpc_can_slave(rpc_slave): def __init__(self, message_id=0x7FF, bit_rate=250000, sample_point=75, can_bus=2): self.__message_id = message_id - can_prescaler, can_bs1, can_bs2 = __get_can_settings(bit_rate, sample_point) - self.__can = pyb.CAN(can_bus, pyb.CAN.NORMAL, prescaler=can_prescaler, bs1=can_bs1, bs2=can_bs2, auto_restart=True) + self.__can = pyb.CAN(can_bus, pyb.CAN.NORMAL, baudrate=bit_rate, sample_point=sample_point, auto_restart=True) self.__can.setfilter(0, pyb.CAN.DUAL if omv.board_type() == "H7" else pyb.CAN.LIST32, 0, [message_id, message_id]) rpc_slave.__init__(self)
iirdes/autotest: simplifying static 2nd-order butterworth filter test
// Example 9-7, pp. 440--442) void autotest_iirdes_butter_2() { - // initialize variables - unsigned int order = 2; // filter order - float fc = 0.25f; // normalized cutoff frequency - float f0 = 0.0f; // center frequency (ignored for low-pass filter) - float Ap = 1.0f; // pass-band ripple (ignored for Butterworth) - float As = 40.0f; // stop-band attenuation (ignored for Butterworth) - float tol = 1e-6f; // error tolerance - - // initialize pre-determined coefficient array - // for 2^nd-order low-pass Butterworth filter - // with cutoff frequency 0.25 - float a_test[3] = { - 1.0f, - 0.0f, - 0.171572875253810f}; - float b_test[3] = { - 0.292893218813452f, - 0.585786437626905f, - 0.292893218813452f}; - - // output coefficients + // design butterworth filter float a[3]; float b[3]; - - // design butterworth filter liquid_iirdes(LIQUID_IIRDES_BUTTER, LIQUID_IIRDES_LOWPASS, LIQUID_IIRDES_TF, - order, - fc, f0, - Ap, As, - b, a); + 2, // order + 0.25f, // fc, normalized cut-off frequency + 0.0f, // f0,center frequency (ignored for low-pass filter) + 1.0f, // Ap, pass-band ripple (ignored for Butterworth) + 40.0f, // As, stop-band attenuation (ignored for Butterworth) + b, a); // output coefficients + + // initialize pre-determined coefficient array + // for 2^nd-order low-pass Butterworth filter + // with cutoff frequency 0.25 + float a_test[3] = {1.0f, 0.0f, 0.171572875253810f}; + float b_test[3] = {0.292893218813452f, 0.585786437626905f, 0.292893218813452f}; // Ensure data are equal to within tolerance + float tol = 1e-6f; // error tolerance unsigned int i; for (i=0; i<3; i++) { CONTEND_DELTA( b[i], b_test[i], tol );
Updated CHANGES and added myself to CREDITS
@@ -9,6 +9,13 @@ Notable User Facing Changes - improved local variables support - OpenCL 2.0 atomics are now supported - work_group_barrier, to_local/to_global are implemented +- Changed default target OpenCL version to 3.0. Note: PoCL still lacks support + for most new features in OpenCL 3.0 and calling such features might result in + undefined behaviour. +- Implemented OpenCL 3.0 features + - clGetDeviceInfo queries + - CL_DEVICE_ATOMIC_MEMORY_CAPABILITIES (Minimal implementation) + - CL_DEVICE_ATOMIC_FENCE_CAPABILITIES (Minimal implementation) 1.6 December 2020 =================
Optimize poll manager to consider only avaliable attributes When cluster to be polled is found, extend the check to also determine if an attribute is available. If not, they get discarded (mainly applicable for instantaneous demand attribute on simple metering cluster). Also, freshness of values is only checked on available attributes now.
@@ -403,19 +403,8 @@ void PollManager::pollTimerFired() { clusterId = METERING_CLUSTER_ID; attributes.push_back(0x0000); // Current Summation Delivered - item = r->item(RAttrModelId); - if (item && - !item->toString().startsWith(QLatin1String("SP 120")) && // Attribute is not available - !item->toString().startsWith(QLatin1String("lumi.plug.ma")) && - !item->toString().startsWith(QLatin1String("ZB-ONOFFPlug-D0005")) && - !item->toString().startsWith(QLatin1String("TS0121")) && - !item->toString().startsWith(QLatin1String("BQZ10-AU")) && - !item->toString().startsWith(QLatin1String("ROB_200")) && - item->toString() != QLatin1String("Plug-230V-ZB3.0")) - { attributes.push_back(0x0400); // Instantaneous Demand } - } else if (suffix == RStatePower) { bool NotOnlyPower = true; @@ -486,13 +475,30 @@ void PollManager::pollTimerFired() size_t fresh = 0; const int reportWaitTime = 360; const int reportWaitTimeXAL = 60 * 30; - for (quint16 attrId : attributes) + + // check that cluster exists on endpoint + if (clusterId != 0xffff) + { + bool found = false; + deCONZ::SimpleDescriptor sd; + if (restNode->node()->copySimpleDescriptor(pitem.endpoint, &sd) == 0) + { + for (const auto &cl : sd.inClusters()) // Loop through clusters { - // force polling after node becomes reachable, since reporting might not be active -// if (dtReachable < reportWaitTime) -// { -// break; -// } + if (cl.id() == clusterId) + { + found = true; + + std::vector<quint16> check; + + for (const deCONZ::ZclAttribute &attr : cl.attributes()) // Loop through cluster attributes + { + for (quint16 attrId : attributes) // Loop through poll candidates + { + // discard attributes which are not be available + if (attrId == attr.id() && attr.isAvailable()) + { + check.push_back(attr.id()); // Only use available attributes NodeValue &val = restNode->getZclValue(clusterId, attrId); @@ -508,20 +514,12 @@ void PollManager::pollTimerFired() { fresh++; // rely on reporting for XAL lights } + + } + } } - // check that cluster exists on endpoint - if (clusterId != 0xffff) - { - bool found = false; - deCONZ::SimpleDescriptor sd; - if (restNode->node()->copySimpleDescriptor(pitem.endpoint, &sd) == 0) - { - for (const auto &cl : sd.inClusters()) - { - if (cl.id() == clusterId) - { - found = true; + attributes = check; // reassign filtered attributes break; } }
Wait for read signals twice This is a temporary solution to ensure server connection is not reattached to the client in case after backend is ready for query in transaction pooling mode.
@@ -613,6 +613,7 @@ od_frontend_remote(od_client_t *client) for (;;) { machine_cond_wait(client->cond, UINT32_MAX); + machine_cond_wait(client->cond, UINT32_MAX); /* client operations */ status = od_frontend_ctl(client);
docs: update a description about making use of blockchain
@@ -73,9 +73,9 @@ Linux-based embedded devices are similar to that on x86_64, except for the exact As BoAT is a client for blockchain, some environments must be prepared before building the demo. #### Make use of a deployed blockchain or deploy your own blockchain -For public blockchain, you must prepare some gas for transaction fee in advance. If a simulator is available for that blockchain, it's a better choice. +For public blockchains, you must prepare some gas for transaction fees in advance. If a simulator is available for that blockchain, it's a better choice. -For consortium blockchain, you must consult the administrator to give you access permission on the blockchain. Or you may deploy your own consortium blockchain node for test purpose. +For consortium blockchains, you must consult the administrator to give you access permission on the blockchains. Or you may deploy your own consortium blockchains node for test purposes. See blockchain official website for details: + [Ethereum](https://ethereum.org/)
doc(readme): update packaging info
- Loads settings from Xresources. See https://git.io/vVisW - Live-reloads settings from xrdb on USR1 signal (like termite) -- Is available as an AUR package `xst-git` (binary and man also still named st) -- Is available as a copr package for Fedora`keefle/xst` (binary and man also still named st) - Has cursor blinking options - Has the following [st-patches](http://st.suckless.org/patches/) applied: - spoiler - boldcolors (only the ability to disable bold fonts) - vertcenter - alpha (transparent background) +- Available packages: + - Arch Linux (AUR): `xst-git` + - Fedora (COPR): `keefle/xst` Thanks to:
Additional check for Bitcoin POS detection
@@ -469,7 +469,8 @@ public abstract class BitcoinJobManagerBase<TJob> : JobManagerBase<TJob> if(validateAddressResponse is not {IsValid: true}) throw new PoolStartupException($"Daemon reports pool-address '{poolConfig.Address}' as invalid", poolConfig.Id); - isPoS = poolConfig.Template is BitcoinTemplate {IsPseudoPoS: true} || difficultyResponse.Values().Any(x => x.Path == "proof-of-stake"); + isPoS = poolConfig.Template is BitcoinTemplate {IsPseudoPoS: true} || + (difficultyResponse.Values().Any(x => x.Path == "proof-of-stake" && !difficultyResponse.Values().Any(x => x.Path == "proof-of-work"))); // Create pool address script from response if(!isPoS)
More fussing in tests/EarthClimate.
@@ -10,7 +10,7 @@ def test_EarthClimate(): # Remove old log file subprocess.run(['rm', 'solarsys.log'], cwd=cwd) # Run vplanet - subprocess.run(['vplanet', 'vpl.in', '-q'], cwd=cwd) + subprocess.run(['vplanet', 'vpl.in'], cwd=cwd) files = os.listdir(cwd) print (files)
webp-lossless-bitstream-spec,cosmetics: reflow abstract
@@ -21,16 +21,15 @@ Paragraphs marked as \[AMENDED2\] were amended on 2022-05-13. Abstract -------- -WebP lossless is an image format for lossless compression of ARGB -images. The lossless format stores and restores the pixel values -exactly, including the color values for pixels whose alpha value is 0. The -format uses subresolution images, recursively embedded into the format -itself, for storing statistical data about the images, such as the used -entropy codes, spatial predictors, color space conversion, and color -table. LZ77, prefix coding, and a color cache are used for compression -of the bulk data. Decoding speeds faster than PNG have been -demonstrated, as well as 25% denser compression than can be achieved -using today's PNG format. +WebP lossless is an image format for lossless compression of ARGB images. The +lossless format stores and restores the pixel values exactly, including the +color values for pixels whose alpha value is 0. The format uses subresolution +images, recursively embedded into the format itself, for storing statistical +data about the images, such as the used entropy codes, spatial predictors, +color space conversion, and color table. LZ77, prefix coding, and a color cache +are used for compression of the bulk data. Decoding speeds faster than PNG have +been demonstrated, as well as 25% denser compression than can be achieved using +today's PNG format. * TOC placeholder
grunt: Update battery info Adjust values to match the datasheet. BRANCH=none TEST=make BOARD=grunt Commit-Ready: ChromeOS CL Exonerator Bot
static const struct battery_info info = { .voltage_max = 13200, /* mV */ - .voltage_normal = 11400, + .voltage_normal = 11550, .voltage_min = 9000, .precharge_current = 256, /* mA */ .start_charging_min_c = 0, @@ -22,7 +22,7 @@ static const struct battery_info info = { .charging_min_c = 0, .charging_max_c = 60, .discharging_min_c = -20, - .discharging_max_c = 70, + .discharging_max_c = 75, }; const struct battery_info *battery_get_info(void) {
workflows: allow single quote in commit message
@@ -14,7 +14,7 @@ jobs: - name: Check commit subject complies with https://github.com/fluent/fluent-bit/blob/master/CONTRIBUTING.md#commit-changes uses: gsactions/commit-message-checker@v1 with: - pattern: '^[a-z0-9A-Z\-_\s\,\.\/]+\:[ ]{0,1}[a-zA-Z]+[a-zA-Z0-9 \-\.\:_\#\(\)=\/\"\,><\+\[\]\!\*\\]+$' + pattern: '^[a-z0-9A-Z\-_\s\,\.\/]+\:[ ]{0,1}[a-zA-Z]+[a-zA-Z0-9 \-\.\:_\#\(\)=\/''\"\,><\+\[\]\!\*\\]+$' error: 'Invalid commit subject. Please refer to: https://github.com/fluent/fluent-bit/blob/master/CONTRIBUTING.md#commit-changes' checkAllCommitMessages: 'false' excludeDescription: 'true'
Just for now
@@ -8,7 +8,7 @@ fi echo "Creating $1" mkdir $1 cd $1 -curl -LJO https://github.com/boazsegev/facil.io/archive/stable.tar.gz +curl -LJO https://github.com/boazsegev/facil.io/archive/master.tar.gz tar -xf facil.io-stable.tar.gz rm facil.io-stable.tar.gz mv ./facil.io-stable/* ./ @@ -16,3 +16,4 @@ rm -R facil.io-stable rm -R dev mkdir dev mv ./examples/boiler_plate_http/* ./dev +make clean &> /dev/null
Set alpha sampling to false in lovr.graphics.reset;
@@ -251,6 +251,7 @@ Buffer* lovrGraphicsGetIdentityBuffer() { void lovrGraphicsReset() { state.transform = 0; lovrGraphicsSetCamera(NULL, false); + lovrGraphicsSetAlphaSampling(false); lovrGraphicsSetBackgroundColor((Color) { 0, 0, 0, 1 }); lovrGraphicsSetBlendMode(BLEND_ALPHA, BLEND_ALPHA_MULTIPLY); lovrGraphicsSetCanvas(NULL);
Fix for .NET 6 regression. Fixes
@@ -743,7 +743,7 @@ namespace Miningcore // register repositories builder.RegisterAssemblyTypes(Assembly.GetExecutingAssembly()) .Where(t => - t.Namespace.StartsWith(typeof(ShareRepository).Namespace)) + t.Namespace?.StartsWith(typeof(ShareRepository).Namespace) == true) .AsImplementedInterfaces() .SingleInstance(); }
fixing sprint %ld for negative values
@@ -77,7 +77,7 @@ static void sprintf_proxy_checkit(t_sprintf_proxy *x, char *buf, int checkin) t_float f = x->p_atom.a_w.w_float; if (x->p_type == SPRINTF_INT) /* CHECKME large/negative values */ - result = sprintf(buf, x->p_pattern, (int)f); + result = sprintf(buf, x->p_pattern, (long)f); else if (x->p_type == SPRINTF_FLOAT) result = sprintf(buf, x->p_pattern, f); else if (x->p_type == SPRINTF_CHAR)
Check if there is branch related (same name) to this one on LuosHAL and Examples
@@ -10,6 +10,13 @@ jobs: strategy: matrix: os: [macos-latest, windows-latest, ubuntu-latest] + include: + - os: windows-latest + pio_lib_path: D:\a\Luos + - os: macos-latest + pio_lib_path: ~/work/Luos + - os: ubuntu-latest + pio_lib_path: ~/work/Luos steps: @@ -28,43 +35,39 @@ jobs: uses: actions/checkout@v2 # - name: Setup tmate session # uses: mxschmitt/action-tmate@v3 + - name: Create env repo + shell: bash run: | - pwd + # Save branch name + branch_name=$(git branch --show-current) + origine_branch_name="origin/${branch_name}" + # Step back and get dependancies cd .. + + # LuosHAL git clone https://github.com/Luos-io/LuosHAL.git - git clone https://github.com/Luos-io/Examples.git - pwd + cd LuosHAL + if [ `git branch -r --list $origine_branch_name` ] + then + echo A dependant branch have been found on LuosHAL + git checkout $branch_name + fi + cd .. - - name: Run PlatformIO ubuntu or macos - if: matrix.os != 'windows-latest' - env: - PLATFORMIO_LIB_EXTRA_DIRS: ~/work/Luos - run: | + # Examples + git clone https://github.com/Luos-io/Examples.git + cd Examples + if [ `git branch -r --list $origine_branch_name` ] + then + echo A dependant branch have been found on Examples + git checkout $branch_name + fi cd .. - platformio run -d Examples/Projects/Button - platformio run -d Examples/Projects/Controller_motor - platformio run -d Examples/Projects/Dc_motor - platformio run -d Examples/Projects/Distance - platformio run -d Examples/Projects/Dxl - platformio run -d Examples/Projects/Gate - platformio run -d Examples/Projects/Gpio - platformio run -d Examples/Projects/Imu - platformio run -d Examples/Projects/Led - platformio run -d Examples/Projects/Led_strip - platformio run -d Examples/Projects/Light_sensor - platformio run -d Examples/Projects/Load - platformio run -d Examples/Projects/Potentiometer - platformio run -d Examples/Projects/Power_switch - platformio run -d Examples/Projects/Servo - platformio run -d Examples/Projects/Stepper - platformio run -d Examples/Projects/Bike_alarm/Alarm_controller - platformio run -d Examples/Projects/Bike_alarm/Start_controller - - name: Run PlatformIO windows - if: matrix.os == 'windows-latest' + - name: Run PlatformIO env: - PLATFORMIO_LIB_EXTRA_DIRS: D:\a\Luos + PLATFORMIO_LIB_EXTRA_DIRS: ${{ matrix.pio_lib_path }} run: | cd .. platformio run -d Examples/Projects/Button @@ -85,9 +88,3 @@ jobs: platformio run -d Examples/Projects/Stepper platformio run -d Examples/Projects/Bike_alarm/Alarm_controller platformio run -d Examples/Projects/Bike_alarm/Start_controller - - - - - -
config/rtl8721csm/loadable_apps: enable Dcache by default Enable Dcache for performance
@@ -106,7 +106,8 @@ CONFIG_ARMV8M_HAVE_DCACHE=y CONFIG_ARMV8M_USEBASEPRI=y CONFIG_ARMV8M_TRUSTZONE=y CONFIG_ARMV8M_ICACHE=y -# CONFIG_ARMV8M_DCACHE is not set +CONFIG_ARMV8M_DCACHE=y +# CONFIG_ARMV8M_DCACHE_WRITETHROUGH is not set # CONFIG_ARMV8M_HAVE_ITCM is not set # CONFIG_ARMV8M_HAVE_DTCM is not set # CONFIG_ARMV8M_TOOLCHAIN_BUILDROOT is not set @@ -201,7 +202,6 @@ CONFIG_BOOT_RUNFROMFLASH=y # CONFIG_RAM_KREGIONx_START="0x02000000," CONFIG_RAM_KREGIONx_SIZE="3145728," -CONFIG_RAM_MALLOC_PRIOR_INDEX=0 # CONFIG_DDR is not set # CONFIG_ARCH_HAVE_SDRAM is not set @@ -723,6 +723,8 @@ CONFIG_NET_DNS_MAX_NAME_LENGTH=256 CONFIG_NET_DNS_MAX_SERVERS=3 # CONFIG_NET_DNS_DOES_NAME_CHECK is not set CONFIG_NET_DNS_SECURE=0 +CONFIG_NET_DNS_MAX_TTL=604800 +CONFIG_NET_DNS_MAX_RETRIES=4 # CONFIG_NET_DNS_LOCAL_HOSTLIST is not set # CONFIG_NET_LWIP_SINGLE_PBUF is not set @@ -1302,6 +1304,7 @@ CONFIG_ITC_NET_INET=y CONFIG_ITC_NET_NETDB=y CONFIG_ITC_NET_CONNECT=y # CONFIG_EXAMPLES_TESTCASE_TTRACE is not set +# CONFIG_EXAMPLES_TESTCASE_TCP_TLS_STRESS is not set # CONFIG_EXAMPLES_TESTCASE_ARASTORAGE_UTC is not set # CONFIG_EXAMPLES_TESTCASE_ARASTORAGE_ITC is not set # CONFIG_EXAMPLES_TESTCASE_AUDIO_UTC is not set @@ -1315,6 +1318,7 @@ CONFIG_ITC_NET_CONNECT=y # CONFIG_EXAMPLES_TLS_SELFTEST is not set # CONFIG_EXAMPLES_TLS_SERVER is not set CONFIG_EXAMPLES_WIFIMANAGER_TEST=y +# CONFIG_EXAMPLES_WIFIMANAGER_STRESS_TOOL is not set # # Platform-specific Support
Whitespace changes Makes coder_spec a tad more compact
@@ -125,39 +125,14 @@ describe("Pallene coder /", function() describe("Literals /", function() setup(compile([[ - function f_nil(): nil - return nil - end - - function f_true(): boolean - return true - end - - function f_false(): boolean - return false - end - - function f_integer(): integer - return 17 - end - - function f_float(): float - return 3.14 - end - - function f_string(): string - return "Hello World" - end - - ------------ - - function pi(): float - return 3.141592653589793 - end - - function e(): float - return 2.718281828459045 - end + function f_nil(): nil return nil end + function f_true(): boolean return true end + function f_false(): boolean return false end + function f_integer(): integer return 17 end + function f_float(): float return 3.14 end + function f_string(): string return "Hello World" end + function pi(): float return 3.141592653589793 end + function e(): float return 2.718281828459045 end ]])) it("nil", function()
java: Add support for u32 arrays java: Add support for u32 arrays The generated Java code was missing some code to allow for u32 arrays, which is needed for the upcoming signature message.
@@ -189,6 +189,16 @@ public class SBPMessage { return ret; } + public long[] getArrayofU32() { + return getArrayofU32(buf.remaining() / 4); + } + + public long[] getArrayofU32(int n) { + long[] ret = new long[n]; + for (int i = 0; i < n; i++) ret[i] = getU32(); + return ret; + } + public float[] getArrayofFloat() { return getArrayofFloat(buf.remaining() / Float.BYTES); } @@ -341,6 +351,15 @@ public class SBPMessage { putArrayofU16(data); } + public void putArrayofU32(long[] data) { + for (long x : data) buf.putLong(x); + } + + public void putArrayofU32(long[] data, int n) { + assert (n == data.length); + putArrayofU32(data); + } + public void putArrayofDouble(double[] data) { for (double x : data) putDouble(x); }
Some cleanup for the CelixConfig.cmake file
# CELIX_LIBRARIES - libraries to link against # CELIX_LAUNCHER - The Celix launcher -set(REL_INSTALL_DIR "${CMAKE_CURRENT_LIST_DIR}/../../..") #from lib/Cmake/Celix +# relative install dir from lib/CMake/Celix. +get_filename_component(REL_INSTALL_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) +get_filename_component(REL_INSTALL_DIR "${REL_INSTALL_DIR}" PATH) +get_filename_component(REL_INSTALL_DIR "${REL_INSTALL_DIR}" PATH) +get_filename_component(REL_INSTALL_DIR "${REL_INSTALL_DIR}" PATH) +include("${REL_INSTALL_DIR}/share/celix/cmake/cmake_celix/UseCelix.cmake") #adds celix commands (e.g. add_celix_bundle) +include("${REL_INSTALL_DIR}/share/celix/cmake/CelixTargets.cmake") #imports lib and exe targets (e.g. Celix::framework) +include("${REL_INSTALL_DIR}/share/celix/cmake/CelixBundleTargets.cmake") #imports bundle targets (e.g. Celix::shell) + +# The rest is added to ensure backwards compatiblity with project using the cmake lib/include var instead of targets. set(CELIX_CMAKE_MODULES_DIR ${REL_INSTALL_DIR}/share/celix/cmake/Modules) + set(CELIX_FRAMEWORK_INCLUDE_DIR "${REL_INSTALL_DIR}/include/celix") set(CELIX_UTILS_INCLUDE_DIR "${REL_INSTALL_DIR}/include/utils") set(CELIX_DFI_INCLUDE_DIR "${REL_INSTALL_DIR}/include/dfi") -include("${REL_INSTALL_DIR}/share/celix/cmake/cmake_celix/UseCelix.cmake") - -if(NOT TARGET Celix::framework) - include("${REL_INSTALL_DIR}/share/celix/cmake/CelixTargets.cmake") - include("${REL_INSTALL_DIR}/share/celix/cmake/CelixBundleTargets.cmake") -endif() - - -# The rest is added to ensure backwards compatiblity with project using the cmake lib/include var instead of targets. set(CELIX_LIBRARIES Celix::framework Celix::utils Celix::dfi) set(CELIX_INCLUDE_DIRS $<TARGET_PROPERTY:Celix::framework,INTERFACE_INCLUDE_DIRECTORIES>
hwrecords: fix in formatting for iommu
@@ -73,12 +73,15 @@ enum { }; #define HW_PCI_IOMMU_RECORD_FIELDS \ -"type: %d, flags: %d, segment: %d, address=%" PRIu64 +"type: %d, flags: %d, segment: %d, address: %" PRIu64 + +#define HW_PCI_IOMMU_RECORD_FIELDS_READ \ +"type: %d, flags: %d, segment: %d, address: %d" #define HW_PCI_IOMMU_RECORD_FORMAT \ "hw.pci.iommu. { " HW_PCI_IOMMU_RECORD_FIELDS " }" #define HW_PCI_IOMMU_RECORD_REGEX \ -"r'hw\\.pci\\.iommu\\.[0-9]+ {type: _, flags: _, segment: _, address=_ }'" +"r'hw\\.pci\\.iommu\\.[0-9]+' { type: _, flags: _, segment: _, address: _ }" #endif /* INCLUDE_HW_RECORDS_ARCH_H_ */
Remove old RAS error strings. Strings were moved to other structures but the old instances remained. New C++ compilers trigger errors on the unused strings.
@@ -201,39 +201,6 @@ static const char * const RAS_INJECT_ERROR[RAS_INJECT_ERROR_COUNT] = { "Ser Non-fatal error .", \ }; -#define RAS_GBS_ERROR_COUNT 13 -static const char * const RAS_GBS_ERROR [RAS_GBS_ERROR_COUNT] = { - "Temperature threshold triggered AP1 detected", \ - "Temperature threshold triggered AP2 detected", \ - "PCIe error detected", \ - "AFU port Fatal error detected", \ - "ProcHot event error detected", \ - "AFU PF/VF access mismatch error detected", \ - "Injected Warning Error detected", \ - "Poison error from any of PCIe ports detected", \ - "GBS CRC errordetected ", \ - "Temperature threshold triggered AP6 detected", \ - "Power threshold triggered AP1 error detected", \ - "Power threshold triggered AP2 error detected", \ - "MBP event error detected", \ -}; - -#define RAS_BBS_ERROR_COUNT 12 -static const char * const RAS_BBS_ERROR[RAS_BBS_ERROR_COUNT] = { - "KTI link layer error detected.", \ - "tag-n-cache error detected.", \ - "CCI error detected.", \ - "KTI protocol error detected.", \ - "Fatal DRAM error detected", \ - "IOMMU fatal parity error detected.", \ - "Fabric fatal error detected", \ - "Poison error from any of PCIe ports detected", \ - "Injected Fatal Error detected", \ - "Catastrophic CRC error detected", \ - "Catastrophic thermal runaway event detected", \ - "Injected Catastrophic Error detected", \ -}; - #define PORT_ERROR_COUNT 52 static const char * const PORT_ERROR[PORT_ERROR_COUNT] = { "Tx Channel 0 overflow error detected.", \
docs/esp8266/tutorial: Make http_get sample function self contained.
@@ -61,6 +61,7 @@ of the request you need to specify the page to retrieve. Let's define a function that can download and print a URL:: def http_get(url): + import socket _, _, host, path = url.split('/', 3) addr = socket.getaddrinfo(host, 80)[0][-1] s = socket.socket() @@ -74,8 +75,7 @@ Let's define a function that can download and print a URL:: break s.close() -Make sure that you import the socket module before running this function. Then -you can try:: +Then you can try:: >>> http_get('http://micropython.org/ks/test.html')
Use dismissMemory to dismiss COW of client output buffer c->buf is not sds, so we should use dismissMemory instead of dismissSds to dismiss it. This is a recent regression from
@@ -6418,7 +6418,7 @@ void dismissMemory(void* ptr, size_t size_hint) { /* Dismiss big chunks of memory inside a client structure, see dismissMemory() */ void dismissClientMemory(client *c) { /* Dismiss client query buffer and static reply buffer. */ - dismissSds(c->buf); + dismissMemory(c->buf, c->buf_usable_size); dismissSds(c->querybuf); dismissSds(c->pending_querybuf); /* Dismiss argv array only if we estimate it contains a big buffer. */
Update curl notice in readme
@@ -103,6 +103,12 @@ header files, and link libcurl against the "new" OpenSSL. libacvp uses compile time macro logic to address differences in the APIs of different OpenSSL versions. +Libacvp is designed to work with curl version 7.61.0 or newer. Some operating systems may ship with +older versions of Curl which are missing certain features that libacvp depends on. While it is +possible some older versions may work, they are not tested or supported. In this case you should +either acquire a newer version through your OS package manager if possible or build a newer version +from source. + ## Building
add aslr test (issue
@@ -12,6 +12,8 @@ static void double_free2(); static void corrupt_free(); static void block_overflow1(); static void invalid_free(); +static void test_aslr(void); + int main() { mi_version(); @@ -21,6 +23,7 @@ int main() { // double_free2(); // corrupt_free(); // block_overflow1(); + // test_aslr(); invalid_free(); void* p1 = malloc(78); @@ -121,3 +124,10 @@ static void corrupt_free() { malloc(SZ); } } + +static void test_aslr(void) { + void* p[256]; + p[0] = malloc(378200); + p[1] = malloc(1134626); + printf("p1: %p, p2: %p\n", p[0], p[1]); +}
record: specify that the kdb tool will print an error message
- User makes a change to the key database, e.g. add key, delete key, modify key, modify meta - The old & new values for every changed key and metakey are recorded. - **Alternative scenario:** - -- **Error scenario:** We log that the changes could not be recorded. +- **Error scenario:** The `kdb` command will print an error message that the changes could not be recorded. - **Postcondition:** All changed keys and their original values are recorded.
Fix Linux build break: sleep is undeclared, use PAL::sleep
@@ -888,7 +888,7 @@ TEST_F(BasicFuncTests, sendManyRequestsAndCancel) LogManager::UploadNow(); if ((i % 3) == 0) { - sleep(100); + PAL::sleep(100); } if (i % 2) {
Add makefile options
# limitations under the License. CFLAGS += -O3 +CFLAGS += -fdiagnostics-color CFLAGS += -Wall CFLAGS += -Wno-unused-function +# TODO clang has a different name for this +ifneq ($(CC),clang) CFLAGS += -Wno-unused-but-set-variable +endif + +# TODO this is for valgrind, do not use as a regular option +# CFLAGS+=-mno-rdrnd + CFLAGS += -Wno-unused-variable CFLAGS += -g CFLAGS += -std=gnu11
Fix copypasta default process columns
@@ -234,8 +234,8 @@ VOID PhInitializeProcessTreeList( PhAddTreeNewColumnEx2(hwnd, PHPRTLC_TIMELINE, FALSE, L"Timeline", 100, PH_ALIGN_LEFT, ULONG_MAX, 0, TN_COLUMN_FLAG_CUSTOMDRAW | TN_COLUMN_FLAG_SORTDESCENDING); PhAddTreeNewColumnEx(hwnd, PHPRTLC_POWERTHROTTLING, FALSE, L"Power throttling", 70, PH_ALIGN_LEFT, ULONG_MAX, 0, TRUE); PhAddTreeNewColumnEx(hwnd, PHPRTLC_ARCHITECTURE, FALSE, L"Architecture", 70, PH_ALIGN_LEFT, ULONG_MAX, 0, TRUE); - PhAddTreeNewColumn(hwnd, PHPRTLC_PARENTPID, TRUE, L"Parent PID", 50, PH_ALIGN_RIGHT, 0, DT_RIGHT); - PhAddTreeNewColumn(hwnd, PHPRTLC_PARENTCONSOLEPID, TRUE, L"Parent console PID", 50, PH_ALIGN_RIGHT, 0, DT_RIGHT); + PhAddTreeNewColumn(hwnd, PHPRTLC_PARENTPID, FALSE, L"Parent PID", 50, PH_ALIGN_RIGHT, 0, DT_RIGHT); + PhAddTreeNewColumn(hwnd, PHPRTLC_PARENTCONSOLEPID, FALSE, L"Parent console PID", 50, PH_ALIGN_RIGHT, 0, DT_RIGHT); PhAddTreeNewColumnEx(hwnd, PHPRTLC_COMMITSIZE, FALSE, L"Shared commit", 70, PH_ALIGN_RIGHT, ULONG_MAX, DT_RIGHT, TRUE); PhAddTreeNewColumnEx(hwnd, PHPRTLC_PRIORITYBOOST, FALSE, L"Priority boost", 45, PH_ALIGN_LEFT, ULONG_MAX, 0, TRUE);
Clarify that client can accept DNS name as well as IP address
@@ -2329,7 +2329,7 @@ void keylog_callback(const SSL *ssl, const char *line) { namespace { void print_usage() { - std::cerr << "Usage: client [OPTIONS] <ADDR> <PORT> [<URI>...]" << std::endl; + std::cerr << "Usage: client [OPTIONS] <HOST> <PORT> [<URI>...]" << std::endl; } } // namespace @@ -2364,7 +2364,8 @@ void print_help() { config_set_default(config); std::cout << R"( - <ADDR> Remote server address + <HOST> Remote server host (DNS name or IP address). In case of + DNS name, it will be sent in TLS SNI extension. <PORT> Remote server port <URI> Remote URI Options:
nissa: enable CONFIG_PLATFORM_EC_BACKLIGHT_LID BRANCH=none TEST=verify panel backlight turn off when system in factory image with lid close. Code-Coverage: Zoss
@@ -93,9 +93,6 @@ CONFIG_PLATFORM_EC_BOARD_VERSION_CBI=y CONFIG_PWM=y CONFIG_PWM_SHELL=y -# TODO(b/188605676): bring these features up -CONFIG_PLATFORM_EC_BACKLIGHT_LID=n - # Sensors support CONFIG_PLATFORM_EC_LID_ANGLE=y CONFIG_PLATFORM_EC_LID_ANGLE_UPDATE=y
mkdir: rework conditionals
@@ -216,22 +216,22 @@ int filesystem_mkdir(filesystem fs, char *fp) tuple prev_folder = folder; boolean final = *rest == '\0'; folder = table_find(folder, sym_this(token)); - if (!folder && !final) { - rprintf("mkdir: failed to find \"%s\"\n", token); - return -1; - } - if (!folder && final) { + if (!folder) { + if (final) { basename = token; folder = prev_folder; break; + } else { + msg_debug("a path component (\"%s\") is missing\n"); + return -1; } - - if (folder && final) { - /* already exists */ - rprintf("mkdir: already exists\n"); + } else { + if (final) { + msg_debug("final path component (\"%s\") already exists\n"); return -1; } } + } basename_sym = sym_this(basename); table_set(folder, basename_sym, dir);
Change literal status flags to enum. Also fix a white space typo. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg
@@ -55,24 +55,22 @@ typedef enum used by the byte code generator. */ } lexer_literal_type_t; -/* Flags for status_flags. */ - -/** Local identifier (var, function arg). */ -#define LEXER_FLAG_VAR 0x01 -/** This local identifier cannot be stored in register. */ -#define LEXER_FLAG_NO_REG_STORE 0x02 -/** This local identifier is initialized with a value. */ -#define LEXER_FLAG_INITIALIZED 0x04 -/** This local identifier has a reference to the function itself. */ -#define LEXER_FLAG_FUNCTION_NAME 0x08 -/** This local identifier is a function argument. */ -#define LEXER_FLAG_FUNCTION_ARGUMENT 0x10 -/** This local identifier is not used in the current context. */ -#define LEXER_FLAG_UNUSED_IDENT 0x20 -/** No space is allocated for this character literal. */ -#define LEXER_FLAG_SOURCE_PTR 0x40 -/** Initialize this variable after the byte code is freed. */ -#define LEXER_FLAG_LATE_INIT 0x80 +/** + * Flag bits for status_flags member of lexer_literal_t. + */ +typedef enum +{ + LEXER_FLAG_VAR = (1 << 0), /**< local identifier (var, function arg) */ + LEXER_FLAG_NO_REG_STORE = (1 << 1), /**< this local identifier cannot be stored in register */ + LEXER_FLAG_INITIALIZED = (1 << 2), /**< this local identifier is initialized with a value */ + LEXER_FLAG_FUNCTION_NAME = (1 << 3), /**< this local identifier has a reference to the function itself */ + LEXER_FLAG_FUNCTION_ARGUMENT = (1 << 4), /**< this local identifier is a function argument */ + LEXER_FLAG_UNUSED_IDENT = (1 << 5), /**< this identifier is referenced by sub-functions, + * but not referenced by the currently parsed function */ + LEXER_FLAG_SOURCE_PTR = (1 << 6), /**< the literal is directly referenced in the source code + * (no need to allocate memory) */ + LEXER_FLAG_LATE_INIT = (1 << 7), /**< initialize this variable after the byte code is freed */ +} lexer_literal_status_flags_t; /** * Type of property length.
all.sh: add testing of AEAD drivers with libtestdriver1
@@ -1941,6 +1941,32 @@ component_test_psa_crypto_config_accel_cipher () { make test } +component_test_psa_crypto_config_accel_aead () { + msg "test: MBEDTLS_PSA_CRYPTO_CONFIG with accelerated AEAD" + + # Disable ALG_STREAM_CIPHER and ALG_ECB_NO_PADDING to avoid having + # partial support for cipher operations in the driver test library. + scripts/config.py -f include/psa/crypto_config.h unset PSA_WANT_ALG_STREAM_CIPHER + scripts/config.py -f include/psa/crypto_config.h unset PSA_WANT_ALG_ECB_NO_PADDING + + loc_accel_list="ALG_GCM ALG_CCM ALG_CHACHA20_POLY1305 KEY_TYPE_AES KEY_TYPE_CHACHA20" + loc_accel_flags=$( echo "$loc_accel_list" | sed 's/[^ ]* */-DLIBTESTDRIVER1_MBEDTLS_PSA_ACCEL_&/g' ) + make -C tests libtestdriver1.a CFLAGS="$ASAN_CFLAGS $loc_accel_flags" LDFLAGS="$ASAN_CFLAGS" + + scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS + scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG + + scripts/config.py unset MBEDTLS_MODE_GCM + scripts/config.py unset MBEDTLS_MODE_CCM + scripts/config.py unset MBEDTLS_MODE_CHACHAPOLY + + loc_accel_flags="$loc_accel_flags $( echo "$loc_accel_list" | sed 's/[^ ]* */-DMBEDTLS_PSA_ACCEL_&/g' )" + make CFLAGS="$ASAN_CFLAGS -Werror -I../tests/include -I../tests -I../../tests -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_TEST_LIBTESTDRIVER1 $loc_accel_flags" LDFLAGS="-ltestdriver1 $ASAN_CFLAGS" + + msg "test: MBEDTLS_PSA_CRYPTO_CONFIG with accelerated AEAD" + make test +} + component_test_psa_crypto_config_no_driver() { # full plus MBEDTLS_PSA_CRYPTO_CONFIG msg "build: full + MBEDTLS_PSA_CRYPTO_CONFIG minus MBEDTLS_PSA_CRYPTO_DRIVERS"
minor fix in stream buffer doc
@@ -73,7 +73,7 @@ typedef struct StreamBufferDef_t * StreamBufferHandle_t; /** - * message_buffer.h + * stream_buffer.h * * <pre> * StreamBufferHandle_t xStreamBufferCreate( size_t xBufferSizeBytes, size_t xTriggerLevelBytes );
return 0 instead of SHB_EOC
@@ -3684,7 +3684,7 @@ while(0 <= restlen) option->option_code = byte_swap_16(option->option_code); option->option_length = byte_swap_16(option->option_length); } - if(option->option_code == SHB_EOC) return SHB_EOC; + if(option->option_code == SHB_EOC) return 0; padding = 0; if(option->option_length > OPTIONLEN_MAX) return option->option_length; if((option->option_length %4)) padding = 4 -(option->option_length %4); @@ -3795,7 +3795,7 @@ while(0 <= restlen) optr += option->option_length +padding +OH_SIZE; restlen -= option->option_length +padding +OH_SIZE; } -return SHB_EOC; +return 0; } /*===========================================================================*/ void processpcapng(int fd, char *pcaporgname, char *pcapinname)
Add missing dependency. Merges
@@ -22,7 +22,7 @@ Install Dependencies Install packages that are required to compile OpenOCD using Homebrew:: - brew install automake libtool libusb wget gcc@4.9 + brew install automake libtool libusb wget gcc@4.9 pkg-config Build OpenOCD =============
Fix PhSearchFilePath error checking bug
@@ -4811,12 +4811,12 @@ BOOLEAN PhpSearchFilePath( // Make sure this is not a directory. - if (!NT_SUCCESS(RtlDosPathNameToNtPathName_U( + if (!RtlDosPathNameToNtPathName_U( Buffer, &fileName, NULL, NULL - ))) + )) return FALSE; InitializeObjectAttributes(
no longer allocating metatables for upvalue boxes
@@ -641,9 +641,11 @@ function Coder:init_upvalues() -- Metatables for _, typ in ipairs(self.module.record_types) do + if not typ.is_upvalue_box then table.insert(self.upvalues, coder.Upvalue.Metatable(typ)) self.upvalue_of_metatable[typ] = #self.upvalues end + end -- String Literals for _, func in ipairs(self.module.functions) do @@ -1691,13 +1693,17 @@ function Coder:generate_luaopen_function() local init_constants = {} for ix, upv in ipairs(self.upvalues) do local tag = upv._tag + local is_upvalue_box = false if tag ~= "coder.Upvalue.Global" then if tag == "coder.Upvalue.Metatable" then + is_upvalue_box = upv.typ.is_upvalue_box + if not is_upvalue_box then table.insert(init_constants, [[ lua_newtable(L); lua_pushstring(L, "__metatable"); lua_pushboolean(L, 0); lua_settable(L, -3); ]]) + end elseif tag == "coder.Upvalue.String" then table.insert(init_constants, util.render([[ lua_pushstring(L, $str);]], { @@ -1715,6 +1721,7 @@ function Coder:generate_luaopen_function() typedecl.tag_error(tag) end + if not is_upvalue_box then table.insert(init_constants, util.render([[ lua_setiuservalue(L, globals, $ix); /**/ @@ -1723,6 +1730,7 @@ function Coder:generate_luaopen_function() })) end end + end local init_initializers = util.render([[ lua_pushvalue(L, globals);
Test Autotools builds without sudo.
@@ -7,10 +7,10 @@ if [[ "$BUILD_TOOL" == "scons" ]]; then elif [[ "$BUILD_TOOL" == "autotools" ]]; then cd build/autotools autoreconf --install || exit 1 - ./configure || exit 1 - sudo make -j 3 install + ./configure --prefix=$HOME/.local || exit 1 + make -j 3 install cd ../.. - export LIBTCOD_DLL_PATH=/usr/local/lib + export LIBTCOD_DLL_PATH=~/.local/lib else echo "BUILD_TOOL not defined correctly, is currently: $BUILD_TOOL" exit 1
interface: type annotations, imports
-import _ from 'lodash'; import {StoreState} from '../store/type'; -import {GcpToken} from '../../types/gcp-state'; -import { Cage } from '~/types/cage'; +import type {GcpToken} from '../../types/gcp-state'; +import type {Cage} from '~/types/cage'; import useStorageState, { StorageState } from '../state/storage'; import { reduceState } from '../state/base'; @@ -37,7 +36,7 @@ const setToken = (data: any, state: StorageState): StorageState => { return state; } -const isToken = (token: any): boolean => { +const isToken = (token: any): token is GcpToken => { return (typeof(token.accessKey) === 'string' && typeof(token.expiresIn) === 'number'); }
Update aboutdialog.ui Changed forum address from to
@@ -131,7 +131,7 @@ This product includes software developed by the OpenSSL Project for use in the O <item> <widget class="QLabel" name="label_3"> <property name="text"> - <string>Join us on the forums at &lt;a href=&quot;https://denariustalk.org&quot; style=&quot;color: #FFF;&quot;&gt;https://denariustalk.org&lt;/a&gt;</string> + <string>Join us on the forums at &lt;a href=&quot;https://blockforums.org&quot; style=&quot;color: #FFF;&quot;&gt;https://blockforums.org&lt;/a&gt;</string> </property> <property name="openExternalLinks"> <bool>true</bool>
remove extra/intermediate size step for min_jj introduced in PR747
@@ -373,8 +373,10 @@ static int inner_thread(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n, #else if (min_jj >= 3*GEMM_UNROLL_N) min_jj = 3*GEMM_UNROLL_N; else +/* if (min_jj >= 2*GEMM_UNROLL_N) min_jj = 2*GEMM_UNROLL_N; else +*/ if (min_jj > GEMM_UNROLL_N) min_jj = GEMM_UNROLL_N; #endif /* Copy part of local region of B into workspace */
improve sockaddr_un define
#include "../../network/network.h" #ifdef TB_CONFIG_OS_WINDOWS # include "ws2tcpip.h" +#else +# include <netinet/in.h> +# include <sys/un.h> +#endif -// hack for afunix.h -struct tb_sockaddr_un +/* ////////////////////////////////////////////////////////////////////////////////////// + * types + */ +#ifdef TB_CONFIG_OS_WINDOWS +typedef struct __tb_sockaddr_un_t { ADDRESS_FAMILY sun_family; tb_char_t sun_path[108]; -}; - -# define sockaddr_un tb_sockaddr_un - +}tb_sockaddr_un_t, *tb_sockaddr_un_ref_t; #else -# include <netinet/in.h> -# include <sys/un.h> +typedef struct sockaddr_un tb_sockaddr_un_t, *tb_sockaddr_un_ref_t; #endif /* ////////////////////////////////////////////////////////////////////////////////////// @@ -125,7 +128,7 @@ static __tb_inline__ tb_size_t tb_sockaddr_save(tb_ipaddr_ref_t ipaddr, struct break; case AF_UNIX: { - struct sockaddr_un* addru = (struct sockaddr_un*)saddr; + tb_sockaddr_un_ref_t addru = (tb_sockaddr_un_ref_t)saddr; // save family tb_ipaddr_family_set(ipaddr, TB_IPADDR_FAMILY_UNIX); @@ -150,7 +153,7 @@ static __tb_inline__ tb_size_t tb_sockaddr_save(tb_ipaddr_ref_t ipaddr, struct tb_ipaddr_unix_set(ipaddr, &unixaddr); // save size - size = sizeof(struct sockaddr_un); + size = sizeof(tb_sockaddr_un_t); } default: tb_assert(0); @@ -228,7 +231,7 @@ static __tb_inline__ tb_size_t tb_sockaddr_load(struct sockaddr_storage* saddr, case TB_IPADDR_FAMILY_UNIX: { // the unix ipaddr - struct sockaddr_un* addru = (struct sockaddr_un*)saddr; + tb_sockaddr_un_ref_t addru = (tb_sockaddr_un_ref_t)saddr; // save family addru->sun_family = AF_UNIX; @@ -249,7 +252,7 @@ static __tb_inline__ tb_size_t tb_sockaddr_load(struct sockaddr_storage* saddr, } // save size - size = sizeof(struct sockaddr_un); + size = sizeof(tb_sockaddr_un_t); } break; default: @@ -267,9 +270,4 @@ static __tb_inline__ tb_size_t tb_sockaddr_load(struct sockaddr_storage* saddr, */ __tb_extern_c_leave__ -#ifdef TB_CONFIG_OS_WINDOWS -// hack for afunix.h, see above -# undef sockaddr_un -#endif - #endif
Add WindowsSDKDesktopARMSupport for static bits
<PlatformToolset>v141</PlatformToolset> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release.vs2015.MT-sqlite|ARM'" Label="Configuration"> + <WindowsSDKDesktopARMSupport>true</WindowsSDKDesktopARMSupport> <ConfigurationType>StaticLibrary</ConfigurationType> <UseOfMfc>false</UseOfMfc> <WholeProgramOptimization>true</WholeProgramOptimization> <PlatformToolset>v141</PlatformToolset> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration"> + <WindowsSDKDesktopARMSupport>true</WindowsSDKDesktopARMSupport> <ConfigurationType>StaticLibrary</ConfigurationType> <UseOfMfc>false</UseOfMfc> <CharacterSet>Unicode</CharacterSet> <PlatformToolset>v141</PlatformToolset> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug.vs2015.MT-sqlite|ARM'" Label="Configuration"> + <WindowsSDKDesktopARMSupport>true</WindowsSDKDesktopARMSupport> <ConfigurationType>StaticLibrary</ConfigurationType> <UseOfMfc>false</UseOfMfc> <CharacterSet>Unicode</CharacterSet>
Increment YR_ARENA_FILE_VERSION. With the introduction of new opcodes for the YARA virtual machine (OP_DEFINED, OP_COUNT_IN, etc), rules compiled with version 4.2.x can't be loaded by version 4.1.x.
@@ -37,7 +37,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define EOL ((size_t) -1) -#define YR_ARENA_FILE_VERSION 18 +#define YR_ARENA_FILE_VERSION 19 #define YR_ARENA_NULL_REF \ (YR_ARENA_REF) { UINT32_MAX, UINT32_MAX }
Spelling: Fix minor spelling mistake in comment
@@ -195,7 +195,7 @@ GElektraKey * gelektra_keyset_pop (GElektraKeySet * ks) * gelektra_keyset_cut: * @ks: A #GElektraKeySet * - * Returns: (transfer full): Cutted #GElektraKeySet + * Returns: (transfer full): Cut #GElektraKeySet * see ksCut */ GElektraKeySet * gelektra_keyset_cut (GElektraKeySet * ks, const GElektraKey * point)
Eliminate extraneous transout/combinein calls for user combines
@@ -3428,12 +3428,7 @@ RewriteContinuousViewSelect(Query *query, Query *rule, Relation cv, int rtindex) Oid finalfn; HeapTuple tup; Form_pg_aggregate aggform; - FuncExpr *fexpr; - Expr *expr; - Oid combinefn; - Oid transoutfn; - Oid combineinfn; - Oid statetype; + Var *matrel_ref; pull_vars(lfirst(lc), &l); Assert(list_length(l) == 1); @@ -3478,24 +3473,16 @@ RewriteContinuousViewSelect(Query *query, Query *rule, Relation cv, int rtindex) if (list_member_ptr(unfinalized, te->expr)) continue; - Assert(IsA(te->expr, FuncExpr)); - - /* Strip away the finalize func */ - fexpr = (FuncExpr *) te->expr; - - Assert(fexpr->funcid == finalfn); - expr = linitial(fexpr->args); - - GetCombineInfo(fnoid, &combinefn, &transoutfn, &combineinfn, &statetype); + /* + * We want the Var referencing the matrel, which could be wrapped in + * a combinein function + */ + l = NIL; + pull_vars((Node *) te->expr, &l); + Assert(list_length(l) == 1); - /* XXX(usmanm): We can probably avoid this extra serialize/deserialize step */ - if (OidIsValid(transoutfn)) - { - fexpr->funcid = transoutfn; - fexpr->funcresulttype = statetype; - } - else - te->expr = expr; + matrel_ref = (Var *) linitial(l); + te->expr = (Expr *) matrel_ref; unfinalized = lappend(unfinalized, te->expr); }
Remove redundant incomplete split assertion. The fastpath insert optimization's incomplete split flag Assert() is redundant. We'll reach the more general Assert() within _bt_findinsertloc() in all cases. (Besides, Assert()'ing that the rightmost page doesn't have the flag set never made much sense.)
@@ -179,11 +179,6 @@ top: PageGetMaxOffsetNumber(page) >= P_FIRSTDATAKEY(lpageop) && _bt_compare(rel, itup_key, page, P_FIRSTDATAKEY(lpageop)) > 0) { - /* - * The right-most block should never have an incomplete split. - * But be paranoid and check for it anyway. - */ - Assert(!P_INCOMPLETE_SPLIT(lpageop)); fastpath = true; } else
Added some missing register sizes
@@ -145,6 +145,10 @@ ZydisRegisterWidth ZydisRegisterGetWidth(ZydisRegister reg) case ZYDIS_REGISTER_BNDCFG: case ZYDIS_REGISTER_BNDSTATUS: return 64; + case ZYDIS_REGISTER_XCR0: + return 64; + case ZYDIS_REGISTER_MXCSR: + return 32; default: break; } @@ -181,6 +185,10 @@ ZydisRegisterWidth ZydisRegisterGetWidth64(ZydisRegister reg) case ZYDIS_REGISTER_BNDCFG: case ZYDIS_REGISTER_BNDSTATUS: return 64; + case ZYDIS_REGISTER_XCR0: + return 64; + case ZYDIS_REGISTER_MXCSR: + return 32; default: break; }
Shell: do not use tsch-logs when not enabled
@@ -307,7 +307,7 @@ PT_THREAD(cmd_log(struct pt *pt, shell_output_func output, char *args)) /* Set log level */ if(level != prev_level) { log_set_level(module, level); -#if MAC_CONF_WITH_TSCH +#if MAC_CONF_WITH_TSCH && TSCH_LOG_PER_SLOT if(!strcmp(module, "mac") || !strcmp(module, "all")) { if(level >= LOG_LEVEL_DBG) { tsch_log_init(); @@ -317,7 +317,7 @@ PT_THREAD(cmd_log(struct pt *pt, shell_output_func output, char *args)) SHELL_OUTPUT(output, "TSCH logging stopped\n"); } } -#endif /* MAC_CONF_WITH_TSCH */ +#endif /* MAC_CONF_WITH_TSCH && TSCH_LOG_PER_SLOT */ } shell_output_log_levels(output);
anahera: Limit input current to fraction of negotiated limit Limit input current to 95% of negotiated limit BRANCH=none TEST=Connect adapter then check input current.
#include "battery.h" #include "button.h" #include "charge_ramp.h" +#include "charge_state_v2.h" #include "charger.h" #include "common.h" #include "compile_time_macros.h" @@ -61,3 +62,16 @@ enum battery_present battery_hw_present(void) /* The GPIO is low when the battery is physically present */ return gpio_get_level(GPIO_EC_BATT_PRES_ODL) ? BP_NO : BP_YES; } + +__override void board_set_charge_limit(int port, int supplier, int charge_ma, + int max_ma, int charge_mv) +{ + /* + * Limit the input current to 95% negotiated limit, + * to account for the charger chip margin. + */ + charge_ma = charge_ma * 95 / 100; + charge_set_input_current_limit(MAX(charge_ma, + CONFIG_CHARGER_INPUT_CURRENT), + charge_mv); +}
kernel/sched/sched_processtimer : Add watchdog for irq on every system timer On every system timer events, reset the watchdog for irq. If not, watchdog resets the system.
@@ -193,6 +193,9 @@ static inline void sched_process_timeslice(void) void sched_process_timer(void) { +#ifdef CONFIG_WATCHDOG_FOR_IRQ + up_wdog_keepalive(); +#endif /* Increment the system time (if in the link) */ #ifdef CONFIG_HAVE_WEAKFUNCTIONS
docs/troubleshooting: add an issue on building Proto buffers It is easy to meet build breaks on proto buffers. This commit shows error and how to resolve it.
@@ -20,6 +20,27 @@ make sudo make install ``` +### Issue on build of Proto buffers +When Proto buffers (a.k.a., protobuf) which is mandatory on using gRPC is enabled, +you can meet build breaks as shown below: +``` +AR: helloxx_main.o +make[2]: Leaving directory '/TizenRT/apps/examples/helloxx' +make[2]: Entering directory '/TizenRT/apps/examples/grpc_greeter_client' +protoc -I . --cpp_out=. helloworld.proto +make[2]: protoc: Command not found +Makefile:86: recipe for target 'helloworld.pb.cc' failed +make[2]: *** [helloworld.pb.cc] Error 127 +make[2]: Leaving directory '/TizenRT/apps/examples/grpc_greeter_client' +Makefile:109: recipe for target 'examples/grpc_greeter_client_all' failed +make[1]: *** [examples/grpc_greeter_client_all] Error 2 +make[1]: Leaving directory '/TizenRT/apps' +LibTargets.mk:158: recipe for target '../apps/libapps.a' failed +make: *** [../apps/libapps.a] Error 2 +``` +This is comming from missing ```protoc``` installation. +Please find [Proto buffers' README](https://github.com/Samsung/TizenRT/blob/master/external/protobuf/README.md). + ## Board-Specific ### ARTIK #### Issues on Programming
sse2: add NEON implementation of simde_mm_set_epi64
@@ -4299,8 +4299,12 @@ simde_mm_set_epi64 (simde__m64 e1, simde__m64 e0) { #else simde__m128i_private r_; - r_.m64_private[0] = simde__m64_to_private(e0); - r_.m64_private[1] = simde__m64_to_private(e1); + #if defined(SIMDE_ARM_NEON_A32V7_NATIVE) + r_.neon_i64 = vcombine_s64(simde__m64_to_neon_i64(e0), simde__m64_to_neon_i64(e1)); + #else + r_.m64[0] = e0; + r_.m64[1] = e1; + #endif return simde__m128i_from_private(r_); #endif
pto is ngtcp2_duration
@@ -9430,7 +9430,7 @@ ngtcp2_tstamp ngtcp2_conn_lost_pkt_expiry(ngtcp2_conn *conn) { } void ngtcp2_conn_remove_lost_pkt(ngtcp2_conn *conn, ngtcp2_tstamp ts) { - ngtcp2_tstamp pto; + ngtcp2_duration pto; if (conn->in_pktns) { pto = conn_compute_pto(conn, conn->in_pktns);
capitalisation of months, more cyclone->Cyclone
@@ -189,7 +189,7 @@ Excerpt from Cyclone's original Readme (by its original author Krzysztof Czaja): * "Cyclone is a library of Pure Data classes, bringing some level of compatibility between Max/MSP and Pd environments. Although being itself in the early stage of development, it is meant to eventually become part of a much larger project, aiming at unification and standardization of computer musician's tools. In its current form, cyclone is mainly for people using both Max and Pd, and thus wanting to develop cross-platform patches. (...)." The full original readme is provided in this repository at: <https://github.com/porres/pd-cyclone/blob/master/maintenance/README_original.txt> -Cyclone's original author Krzysztof Czaja worked on it as part of his miXed library from 2002 to 2005 and later abandoned it all together. In parallel, miXed had been incorporated into Pd Extended and eventually ended up under the maintenance of Hans-Christoph Steiner - the main developer and maintainer of Pd-Extended. When Pd Extended was abandoned after its last release (from jan 2013), Cyclone and miXed were left unmaintained as a result. In Dec-2014, Fred Jan Kraan took over maintainance and development for cyclone (but not the rest of the miXed library) and released 0.1alpha57 and cyclone 0.2 beta versions, but decided to abandon development for it in feb-2016. +Cyclone's original author Krzysztof Czaja worked on it as part of his miXed library from 2002 to 2005 and later abandoned it all together. In parallel, miXed had been incorporated into Pd Extended and eventually ended up under the maintenance of Hans-Christoph Steiner - the main developer and maintainer of Pd-Extended. When Pd Extended was abandoned after its last release (from Jan 2013), Cyclone and miXed were left unmaintained as a result. In Dec-2014, Fred Jan Kraan took over maintainance and development for cyclone (but not the rest of the miXed library) and released 0.1alpha57 and Cyclone 0.2 beta versions, but decided to abandon development for it in Feb-2016. Since February 21st 2016, further development for Cyclone started on this repository by Alexandre Porres, Derek Kwan, Matt Barber and other collaborators. The first stable release is Cyclone 0.3! @@ -206,7 +206,7 @@ The original repository of MiXed as part of Pd Extended - containing Cyclone and => Fred Jan Kraan's Repository (0.1-Alpha-57 and 0.2beta): -Fred Jan Kraan forked the original repository to <https://github.com/electrickery/pd-miXedSon>, but containing only the Cyclone library. This repository has a few releases - see https://github.com/electrickery/pd-miXedSon/releases - it starts with cyclone version 0.1alpha-57, from October 2015, which is basically the last developments from the original repository. Then it moves on to a new Cyclone 0.2 version which stopped at a beta stage. +Fred Jan Kraan forked the original repository to <https://github.com/electrickery/pd-miXedSon>, but containing only the Cyclone library. This repository has a few releases - see https://github.com/electrickery/pd-miXedSon/releases - it starts with Cyclone version 0.1alpha-57, from October 2015, which is basically the last developments from the original repository. Then it moves on to a new Cyclone 0.2 version which stopped at a beta stage. -------
Implement received sig_algs check
@@ -1911,10 +1911,17 @@ static inline const void *mbedtls_ssl_get_sig_algs( static inline int mbedtls_ssl_sig_alg_is_received( const mbedtls_ssl_context *ssl, uint16_t own_sig_alg ) { - ((void) ssl); - ((void) own_sig_alg); + const uint16_t *sig_alg = ssl->handshake->received_sig_algs; + if( sig_alg == NULL ) + return( 0 ); + + for( ; *sig_alg != MBEDTLS_TLS1_3_SIG_NONE; sig_alg++ ) + { + if( *sig_alg == own_sig_alg ) return( 1 ); } + return( 0 ); +} static inline int mbedtls_ssl_sig_alg_is_offered( const mbedtls_ssl_context *ssl, uint16_t proposed_sig_alg )
ci one last try at this for tonight
@@ -30,11 +30,12 @@ jobs: if: success() with: token: ${{ secrets.LVGL_BOT_TOKEN }} - - name: Checkout pull request + - name: Checkout PR + uses: dawidd6/action-checkout-pr@v1 if: success() - env: - GITHUB_TOKEN: ${{secrets.LVGL_BOT_TOKEN}} - run: hub pr checkout ${{github.event.issue.number}} + with: + pr: ${{github.event.issue.number}} + token: ${{ secrets.LVGL_BOT_TOKEN }} - name: Format code run: python code-format.py working-directory: scripts
Added second line to error message on too many body files.
@@ -987,7 +987,8 @@ void ReadBodyFileNames(CONTROL *control,FILES *files,OPTIONS *options,INFILE *in } files->iNumInputs=iNumIndices+1; if (files->iNumInputs >= MAXFILES) { - fprintf(stderr,"ERROR: Number of input files (%d) exceeds MAXFILES (%d)",files->iNumInputs,MAXFILES); + fprintf(stderr,"ERROR: Number of input files (%d) exceeds MAXFILES (%d).\n",files->iNumInputs,MAXFILES); + fprintf(stderr,"Either use less body files, or increase MAXFILES in vplanet.h.\n") LineExit(infile->cIn,lTmp[0]); } } else {
Remove obsolete MBEDTLS_ALLOW_PRIVATE_ACCESS from helpers function. MBEDTLS_ALLOW_PRIVATE_ACCESS is already defined inside test/helpers.h
/*----------------------------------------------------------------------------*/ /* Headers */ -#define MBEDTLS_ALLOW_PRIVATE_ACCESS - -#include <test/macros.h> #include <test/helpers.h> +#include <test/macros.h> #include <test/random.h> #include <test/psa_crypto_helpers.h>
MQTT: Restore default MQTT_OUTBOX_EXPIRED_TIMEOUT_MS to 30 sec The OUTBOX_EXPIRED_TIMEOUT_MS was 30*1000 in original esp-mqtt code. Don't change the default OUTBOX_EXPIRED_TIMEOUT_MS without good reason, which may has impact on memory usage for existing applications. Fixes: ("MQTT: add configurable msg expired timeout")
@@ -117,7 +117,7 @@ menu "ESP-MQTT Configurations" config MQTT_OUTBOX_EXPIRED_TIMEOUT_MS int "Outbox message expired timeout[ms]" - default 300000 + default 30000 depends on MQTT_USE_CUSTOM_CONFIG help Messages which stays in the outbox longer than this value before being published will be discarded.
Completion: Suggest option `-f` for mount command
@@ -293,7 +293,7 @@ function __fish_kdb_subcommand_supports_option_debug -d 'Check if the current su end function __fish_kdb_subcommand_supports_option_force -d 'Check if the current subcommand supports the option force' - __fish_kdb_subcommand_includes check merge rm + __fish_kdb_subcommand_includes check merge mount rm end function __fish_kdb_subcommand_supports_option_null -d 'Check if the current subcommand supports binary null termination'