message
stringlengths
6
474
diff
stringlengths
8
5.22k
Solve bug with cli tests.
@@ -318,7 +318,7 @@ if(OPTION_BUILD_LOADERS AND OPTION_BUILD_LOADERS_NODE AND OPTION_BUILD_SCRIPTS A ${TESTS_ENVIRONMENT_VARIABLES} ) - if(OPTION_BUILD_PORTS AND OPTION_BUILD_PORTS_PY) + if(OPTION_BUILD_LOADERS_PY AND OPTION_BUILD_PORTS AND OPTION_BUILD_PORTS_PY) add_test(NAME ${target}-py-port COMMAND ${CMAKE_COMMAND} -D "EXECUTABLE=$<TARGET_FILE:${target}>" -D "INPUT=${TEST_COMMAND_INPUT}-py-port.txt" -P ${TEST_COMMAND_RUNNER} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} @@ -333,9 +333,8 @@ if(OPTION_BUILD_LOADERS AND OPTION_BUILD_LOADERS_NODE AND OPTION_BUILD_SCRIPTS A "" ${TESTS_ENVIRONMENT_VARIABLES} ) - endif() - if(OPTION_BUILD_PORTS AND OPTION_BUILD_PORTS_PY AND OPTION_BUILD_LOADERS_RB) + if(OPTION_BUILD_LOADERS_RB) add_test(NAME ${target}-py-port-rb COMMAND ${CMAKE_COMMAND} -D "EXECUTABLE=$<TARGET_FILE:${target}>" -D "INPUT=${TEST_COMMAND_INPUT}-py-port-rb.txt" -P ${TEST_COMMAND_RUNNER} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} @@ -352,6 +351,7 @@ if(OPTION_BUILD_LOADERS AND OPTION_BUILD_LOADERS_NODE AND OPTION_BUILD_SCRIPTS A ) endif() endif() +endif() if(OPTION_BUILD_LOADERS AND OPTION_BUILD_LOADERS_FILE AND OPTION_BUILD_SCRIPTS AND OPTION_BUILD_SCRIPTS_FILE) add_test(NAME ${target}-file
update launch_uos.sh to align with ACRN v0.1 update the kernel version to align with ACRN v0.1 and Clear version for UOS
@@ -23,9 +23,9 @@ acrn-dm -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \ -s 2,pci-gvt -G "$3" \ -s 5,virtio-console,@pty:pty_port \ -s 6,virtio-hyper_dmabuf \ - -s 3,virtio-blk,/root/clear-21260-kvm.img \ + -s 3,virtio-blk,/root/clear-23690-kvm.img \ -s 4,virtio-net,tap0 \ - -k /usr/lib/kernel/org.clearlinux.pk414-standard.4.14.23-19 \ + -k /usr/lib/kernel/org.clearlinux.pk414-standard.4.14.52-63 \ -B "root=/dev/vda3 rw rootwait maxcpus=$2 nohpet console=tty0 console=hvc0 \ console=ttyS0 no_timer_check ignore_loglevel log_buf_len=16M \ consoleblank=0 tsc=reliable i915.avail_planes_per_pipe=$4 \
sslapitest: only compile test when it will be used The test_ccs_change_cipher() test routine is used only when TLS 1.2 is enabled; to fix the strict-warnings build we should not try to compile it when TLS 1.2 is disabled, either.
@@ -659,7 +659,6 @@ end: return testresult; } -#endif /* * Very focused test to exercise a single case in the server-side state @@ -771,6 +770,7 @@ end: return testresult; } +#endif static int execute_test_large_message(const SSL_METHOD *smeth, const SSL_METHOD *cmeth,
updated key for pxf_automation git resource
@@ -314,7 +314,7 @@ resources: type: git source: branch: {{pxf_automation-git-branch}} - private_key: {{pxf-git-key}} + private_key: {{pxf_automation-git-key}} uri: {{pxf_automation-git-remote}} - name: centos-gpdb-dev-6
Update PhCreateProcessSnapshot flags, Fix handle leak
@@ -8576,19 +8576,14 @@ NTSTATUS PhCreateProcessSnapshot( _In_opt_ HANDLE ProcessId ) { - NTSTATUS status; - HANDLE processHandle = NULL; + NTSTATUS status = STATUS_SUCCESS; + HANDLE processHandle = ProcessHandle; HANDLE snapshotHandle = NULL; if (!PssCaptureSnapshot_Import()) return STATUS_PROCEDURE_NOT_FOUND; - if (ProcessHandle) - { - processHandle = ProcessHandle; - status = STATUS_SUCCESS; - } - else + if (!ProcessHandle) { status = PhOpenProcess( &processHandle, @@ -8602,11 +8597,12 @@ NTSTATUS PhCreateProcessSnapshot( status = PssCaptureSnapshot_Import()( processHandle, - PSS_CAPTURE_VA_CLONE | PSS_CAPTURE_VA_SPACE | PSS_CAPTURE_VA_SPACE_SECTION_INFORMATION | - PSS_CAPTURE_HANDLE_TRACE | PSS_CAPTURE_HANDLES | PSS_CAPTURE_HANDLE_BASIC_INFORMATION | - PSS_CAPTURE_HANDLE_TYPE_SPECIFIC_INFORMATION | PSS_CAPTURE_HANDLE_NAME_INFORMATION | - PSS_CAPTURE_THREADS | PSS_CAPTURE_THREAD_CONTEXT | PSS_CREATE_USE_VM_ALLOCATIONS, - CONTEXT_ALL, + PSS_CAPTURE_VA_CLONE | PSS_CAPTURE_HANDLES | PSS_CAPTURE_HANDLE_NAME_INFORMATION | + PSS_CAPTURE_HANDLE_BASIC_INFORMATION | PSS_CAPTURE_HANDLE_TYPE_SPECIFIC_INFORMATION | + PSS_CAPTURE_HANDLE_TRACE | PSS_CAPTURE_THREADS | PSS_CAPTURE_THREAD_CONTEXT | + PSS_CAPTURE_THREAD_CONTEXT_EXTENDED | PSS_CAPTURE_VA_SPACE | PSS_CAPTURE_VA_SPACE_SECTION_INFORMATION | + PSS_CREATE_BREAKAWAY | PSS_CREATE_BREAKAWAY_OPTIONAL | PSS_CREATE_USE_VM_ALLOCATIONS, + CONTEXT_ALL, // WOW64_CONTEXT_ALL? &snapshotHandle ); status = PhDosErrorToNtStatus(status); @@ -8626,10 +8622,13 @@ VOID PhFreeProcessSnapshot( _In_ HANDLE SnapshotHandle, _In_ HANDLE ProcessHandle ) +{ + if (PssQuerySnapshot_Import()) { PSS_VA_CLONE_INFORMATION processInfo = { 0 }; + PSS_HANDLE_TRACE_INFORMATION handleInfo = { 0 }; - if (PssQuerySnapshot_Import() && PssQuerySnapshot_Import()( + if (PssQuerySnapshot_Import()( SnapshotHandle, PSS_QUERY_VA_CLONE_INFORMATION, &processInfo, @@ -8642,6 +8641,20 @@ VOID PhFreeProcessSnapshot( } } + if (PssQuerySnapshot_Import()( + SnapshotHandle, + PSS_QUERY_HANDLE_TRACE_INFORMATION, + &handleInfo, + sizeof(PSS_HANDLE_TRACE_INFORMATION) + ) == ERROR_SUCCESS) + { + if (handleInfo.SectionHandle) + { + NtClose(handleInfo.SectionHandle); + } + } + } + if (PssFreeSnapshot_Import()) { PssFreeSnapshot_Import()(ProcessHandle, SnapshotHandle);
Check index >= 0 as 0 is a valid index.
@@ -1601,7 +1601,7 @@ int tls1_process_sigalgs(SSL *s) if (SSL_IS_TLS13(s) && sigptr->sig == EVP_PKEY_RSA) continue; idx = tls12_get_pkey_idx(sigptr->sig); - if (idx > 0 && pmd[idx] == NULL) { + if (idx >= 0 && pmd[idx] == NULL) { md = ssl_md(sigptr->hash_idx); pmd[idx] = md; pvalid[idx] = CERT_PKEY_EXPLICIT_SIGN;
removed unused import in KeyTest.java
@@ -4,7 +4,6 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; -import java.util.Iterator; import org.junit.Test; import org.libelektra.Key.KeyInvalidNameException;
fix moving floating window to other monitor with super + shift + comma
@@ -4428,7 +4428,22 @@ tagmon(const Arg *arg) { if (!selmon->sel || !mons->next) return; + + if (selmon->sel->isfloating) { + Client *c; + Monitor *m; + float xfact, yfact; + c = selmon->sel; + xfact = (float)(c->x - selmon->mx) / selmon->ww; + yfact = (float)(c->y - selmon->my) / selmon->wh; + sendmon(selmon->sel, dirtomon(arg->i)); + c->x = c->mon->mx + c->mon->ww * xfact; + c->y = c->mon->my + c->mon->wh * yfact; + arrange(c->mon); + } else { + sendmon(selmon->sel, dirtomon(arg->i)); + } } void setoverlaymode(int mode) {
Add BinaryAlert to users in README
@@ -51,6 +51,7 @@ helpful extension to YARA developed and open-sourced by Bayshore Networks. * [Adlice](http://www.adlice.com/) * [BAE Systems](http://www.baesystems.com/home?r=ai) * [Bayshore Networks, Inc.](http://www.bayshorenetworks.com) +* [BinaryAlert](https://github.com/airbnb/binaryalert) * [Blue Coat](http://www.bluecoat.com/products/malware-analysis-appliance) * [Blueliv](http://www.blueliv.com) * [Conix](http://www.conix.fr)
Added 1.3.1 release
"version": "1.0.0" } ] + }, + { + "name": "OpenCR", + "architecture": "OpenCR", + "version": "1.3.1", + "category": "Arduino", + "help": { + "online": "https://github.com/ROBOTIS-GIT/OpenCR" + }, + "url": "https://github.com/ROBOTIS-GIT/OpenCR/releases/download/1.3.1/opencr_core_1.3.1.tar.bz2", + "archiveFileName": "opencr_core_1.3.1.tar.bz2", + "checksum": "SHA-256:c4afc3cea5c446b47a9e735a46c6abf9f2f5f67049a2bc3689c13548d0ab2ed6", + "size": "2287009", + "help": { + "online": "http://emanual.robotis.com/docs/en/parts/controller/opencr10/" + }, + "boards": [ + {"name": "OpenCR"} + ], + "toolsDependencies": [ + { + "packager": "OpenCR", + "name": "opencr_gcc", + "version": "5.4.0-2016q2" + }, + { + "packager": "OpenCR", + "name": "opencr_tools", + "version": "1.0.0" + } + ] }
parser: on exception, use flb_parser_destroy() (oss-fuzz 26308)
@@ -142,6 +142,7 @@ struct flb_parser *flb_parser_create(const char *name, const char *format, return NULL; } p->decoders = decoders; + mk_list_add(&p->_head, &config->parsers); /* Format lookup */ if (strcasecmp(format, "regex") == 0) { @@ -222,7 +223,7 @@ struct flb_parser *flb_parser_create(const char *name, const char *format, #else flb_error("[parser] timezone offset not supported"); flb_error("[parser] you cannot use %%z/%%Z on this platform"); - flb_free(p); + flb_parser_destroy(p); return NULL; #endif } @@ -283,7 +284,7 @@ struct flb_parser *flb_parser_create(const char *name, const char *format, len = strlen(time_offset); ret = flb_parser_tzone_offset(time_offset, len, &diff); if (ret == -1) { - flb_free(p); + flb_parser_destroy(p); return NULL; } p->time_offset = diff; @@ -297,9 +298,6 @@ struct flb_parser *flb_parser_create(const char *name, const char *format, p->time_keep = time_keep; p->types = types; p->types_len = types_len; - - mk_list_add(&p->_head, &config->parsers); - return p; }
adding libc erfc, erfcf and erfcl
@@ -129,9 +129,9 @@ GOS(csqrt, pFpdd) // dremf // Weak // dreml // Weak GOW(erf, dFd) -// erfc // Weak -// erfcf // Weak -// erfcl // Weak +GOW(erfc, dFd) +GOW(erfcf, fFf) +GO2(erfcl, LFL, erfc) GOW(erff, fFf) GO2(erfl, LFL, erf) GOW(exp, dFd)
docs: add link to encrypted_images.md and cleanup Add a link to the topic about encrypted images to the start page. Clean up the existing links to make the table of contents more consistent.
@@ -15,20 +15,21 @@ target with a complete port planned. ## Contents -- General: this document +- General - this document - [Release notes](release-notes.md) -- [design](design.md): for the design -- [imgtool](imgtool.md): The image signing and key management +- [Bootloader design](design.md) +- [Encrypted images](encrypted_images.md) +- [imgtool](imgtool.md) - image signing and key management - Usage instructions: - [Zephyr](readme-zephyr.md) - [Mynewt](readme-mynewt.md) - [RIOT](readme-riot.md) -- [Patch submission](SubmittingPatches.md) for information - on how to contribute to mcuboot. +- [Patch submission](SubmittingPatches.md) - information + on how to contribute to mcuboot - Testing - - The [Zephyr](testplan-zephyr.md) test plan. - - The [mynewt](testplan-mynewt.md) test plan. -- Our [release process](release.md). + - [Zephyr](testplan-zephyr.md) test plan + - [mynewt](testplan-mynewt.md) test plan +- [Release process](release.md) There is also a document about [signed images](signed_images.md) that is out of date. You should use `imgtool.py` instead of these documents.
docs/wipy/tutorial: Link Blynk examples to the official library.
Getting started with Blynk and the WiPy --------------------------------------- -Blynk is a platform with iOS and Android apps to control -Arduino, Raspberry Pi and the likes over the Internet. -You can easily build graphic interfaces for all your -projects by simply dragging and dropping widgets. +Blynk provides iOS and Android apps to control any hardware over the Internet +or directly using Bluetooth. You can easily build graphic interfaces for all +your projects by simply dragging and dropping widgets, right on your smartphone. -There are several examples available that work out-of-the-box with -the WiPy. Before anything else, make sure that your WiPy is running +Before anything else, make sure that your WiPy is running the latest software, check :ref:`OTA How-To <wipy_firmware_upgrade>` for instructions. -1. Get the `Blynk library <https://github.com/wipy/wipy/blob/master/lib/blynk/BlynkLib.py>`_ and put it in ``/flash/lib/`` via FTP. -2. Get the `Blynk examples <https://github.com/wipy/wipy/tree/master/examples/blynk>`_, edit the network settings, and afterwards - upload them to ``/flash/lib/`` via FTP as well. +1. Get the `Blynk library <https://github.com/vshymanskyy/blynk-library-python/blob/master/BlynkLib.py>`_ and put it in ``/flash/lib/`` via FTP. +2. Get the `Blynk example for WiPy <https://github.com/vshymanskyy/blynk-library-python/blob/master/examples/hardware/PyCom_WiPy.py>`_, edit the network settings, and afterwards + upload it to ``/flash/`` via FTP as well. 3. Follow the instructions on each example to setup the Blynk dashboard on your smartphone or tablet. 4. Give it a try, for instance:: - >>> execfile('01_simple.py') + >>> execfile('sync_virtual.py')
artik053/grpc: Modify grpc defconfig to include thread size parameter grpc defconfig does not include the CONFIG_GRPC_PTHREAD_SIZE parameter yet. This commit adds it.
@@ -761,6 +761,7 @@ CONFIG_NETUTILS_DHCPC=y # CONFIG_NETUTILS_TELNETD is not set # CONFIG_NETUTILS_SMTP is not set CONFIG_GRPC=y +CONFIG_GRPC_PTHREAD_SIZE=10240 # CONFIG_TSI_LOG is not set CONFIG_TSI_MBEDTLS_LOG=0 # CONFIG_NETUTILS_MQTT is not set
Emitter: Simplify logic around building an empty list.
@@ -3170,13 +3170,10 @@ static void make_empty_list_or_hash(lily_emit_state *emit, lily_ast *ast, num = 2; } else { - lily_type *elem_type; - if (expect && expect->cls->id == LILY_ID_LIST && - expect->subtypes[0]->cls->id != LILY_ID_QUESTION) { + lily_type *elem_type = lily_question_type; + + if (expect && expect->cls->id == LILY_ID_LIST) elem_type = expect->subtypes[0]; - } - else - elem_type = lily_question_type; lily_tm_add(emit->tm, elem_type);
scripts: ignore commits heavily changing the release notes
git diff origin/master -- doc/news/_preparation_next_release.md | egrep "^\+.+\*\(.+\)\*" if [ $? != "0" ] then - echo "The release notes were not extended correctly." + L=git diff origin/master -- doc/news/_preparation_next_release.md | egrep "^\+" | wc -l + if [ "$L" -ge "5" ] + then + echo "We assume that you know what you are doing." + exit 0 + fi + echo "The release notes were not extended correctly (with $L lines)." echo "Please make sure you added at least one line which says *(your name)* to" echo "make sure that your contribution is correctly attributed in the release notes." echo ""
BugID:21999418:[mqtt]add paras handle for iotx_report_ext_msg
static void *g_mqtt_client = NULL; iotx_sign_mqtt_t g_default_sign; -__attribute__((weak)) int iotx_report_ext_msg(info_report_func_pt fun){ +__attribute__((weak)) int iotx_report_ext_msg(info_report_func_pt fun, void *handle){ mqtt_debug("not implement!"); return -1; } @@ -60,7 +60,7 @@ static void iotx_mqtt_report_funcs(void *pclient) mqtt_err("failed to report firmware version"); } #endif - iotx_report_ext_msg(IOT_MQTT_Publish_Simple); + iotx_report_ext_msg(IOT_MQTT_Publish_Simple, pclient); } #ifdef DYNAMIC_REGISTER
Add DYNAMIC_LIST option for ARM64
@@ -625,6 +625,11 @@ DYNAMIC_CORE += THUNDERX2T99 DYNAMIC_CORE += TSV110 DYNAMIC_CORE += EMAG8180 DYNAMIC_CORE += THUNDERX3T110 +ifdef DYNAMIC_LIST +override DYNAMIC_CORE = ARMV8 $(DYNAMIC_LIST) +XCCOMMON_OPT = -DDYNAMIC_LIST -DDYN_ARMV8 +XCCOMMON_OPT += $(foreach dcore,$(DYNAMIC_LIST),-DDYN_$(dcore)) +endif endif ifeq ($(ARCH), mips64)
khan: store connection number on u3_shan Prevents us resetting connection count to 1 if all connections disconnect.
// - think carefully about error handling // - think carefully about protocol // - implement runtime-specific queries -// - remove references to %set-config // - clean up logging /* vere/khan.c ** */ typedef struct _u3_shan { uv_pipe_t pyp_u; // server stream handler - struct _u3_chan* can_u; // connection list + c3_w nex_l; // next connection number struct _u3_khan* kan_u; // device backpointer + struct _u3_chan* can_u; // connection list } u3_shan; /* u3_khan: control plane device. @@ -131,7 +131,7 @@ _khan_conn_cb(uv_stream_t* sem_u, c3_i tas_i) can_u->mor_u.ptr_v = can_u; can_u->mor_u.pok_f = _khan_moor_poke; can_u->mor_u.bal_f = _khan_moor_bail; - can_u->coq_l = ( san_u->can_u ) ? 1 + san_u->can_u->coq_l : 1; + can_u->coq_l = san_u->nex_l++; can_u->san_u = san_u; err_i = uv_timer_init(u3L, &can_u->mor_u.tim_u); c3_assert(!err_i); @@ -212,9 +212,10 @@ _khan_born_news(u3_ovum* egg_u, u3_ovum_news new_e) if ( u3_ovum_done == new_e ) { c3_assert(!kan_u->san_u); san_u = c3_calloc(sizeof(*san_u)); - _khan_sock_init(san_u); + san_u->nex_l = 1; san_u->kan_u = kan_u; kan_u->san_u = san_u; + _khan_sock_init(san_u); car_u->liv_o = c3y; u3l_log("khan: live on %s/%s\n", u3_Host.dir_c, URB_SOCK_PATH); } @@ -278,6 +279,7 @@ _khan_ef_handle(u3_khan* kan_u, // TODO: socket events (close connection; any others?) + // TODO move into kick if ( sev_l != kan_u->sev_l ) { u3l_log("khan: server instance not found: %x\n", sev_l); u3z(tag); u3z(dat); @@ -424,7 +426,6 @@ _khan_io_exit(u3_auto* car_u) wit_i = snprintf(paf_c, len_w, "%s/%s", pax_c, URB_SOCK_PATH); c3_assert(wit_i > 0); c3_assert(len_w == (c3_w)wit_i + 1); - // TODO remove u3l_log("khan: unlinking %s\n", paf_c); if ( 0 != unlink(paf_c) ) {
check-format.pl: fix detection of '#ifdef __cplusplus'
@@ -715,7 +715,7 @@ while (<>) { # loop over all lines of all input files my $space_count = length($space); # maybe could also use indentation before '#' report("'#if' nesting indent = $space_count != $preproc_if_nesting") if $space_count != $preproc_if_nesting; $preproc_if_nesting++ if $preproc_directive =~ m/^(if|ifdef|ifndef|else|elif)$/; - $ifdef__cplusplus = $preproc_directive eq "ifdef2" && m/\s+__cplusplus\s*$/; + $ifdef__cplusplus = $preproc_directive eq "ifdef" && m/\s+__cplusplus\s*$/; # handle indentation of preprocessor directive independently of surrounding normal code $count = -1; # do not check indentation of first line of preprocessor directive
Init new_data_holders by default.
@@ -3468,6 +3468,7 @@ cdef class _PoolBase: resource_holders ) + new_data_holders = None if isinstance(data, FeaturesData): new_data_holders = data
[stm32l475][lvgl]update lv_demo.c
static void event_handler(lv_event_t * e) { lv_event_code_t code = lv_event_get_code(e); - lv_obj_t * obj = lv_event_get_target(e); + lv_obj_t * obj = lv_event_get_current_target(e); if(code == LV_EVENT_VALUE_CHANGED) { lv_calendar_date_t date; @@ -40,7 +40,7 @@ void lv_example_calendar_1(void) { lv_obj_t * calendar = lv_calendar_create(lv_scr_act()); lv_obj_set_size(calendar, LCD_W, LCD_H); - lv_obj_align(calendar, LV_ALIGN_CENTER, 0, 60); + lv_obj_align(calendar, LV_ALIGN_CENTER, 0, 0); lv_obj_add_event_cb(calendar, event_handler, LV_EVENT_ALL, NULL); lv_calendar_set_today_date(calendar, 2021, 02, 23); @@ -63,10 +63,11 @@ void lv_example_calendar_1(void) lv_calendar_set_highlighted_dates(calendar, highlighted_days, 3); #if LV_USE_CALENDAR_HEADER_DROPDOWN - lv_calendar_header_dropdown_create(lv_scr_act(), calendar); + lv_calendar_header_dropdown_create(calendar); #elif LV_USE_CALENDAR_HEADER_ARROW - lv_calendar_header_arrow_create(lv_scr_act(), calendar, 25); + lv_calendar_header_arrow_create(calendar); #endif + lv_calendar_set_showed_date(calendar, 2021, 10); } static void lvgl_thread(void *parameter)
Optimization, 'reserve' is done in decompression code
@@ -319,7 +319,6 @@ namespace carto { namespace mvt { _transform(cglib::mat3x3<float>::identity()), _clipBox(cglib::vec2<float>(-0.1f, -0.1f), cglib::vec2<float>(1.1f, 1.1f)), _buffer(0), _globalIdOverride(false), _tileIdOffset(0), _tile(), _layerMap(), _logger(std::move(logger)) { std::vector<unsigned char> uncompressedData; - uncompressedData.reserve(data.size()); if (miniz::inflate_gzip(data.data(), data.size(), uncompressedData)) { protobuf::message tileMsg(uncompressedData.data(), uncompressedData.size()); _tile = std::make_shared<vector_tile::Tile>(tileMsg);
build MAINTENANCE remove unused flags provided to cmake in Travis CI build
@@ -27,7 +27,7 @@ before_install: script: - if [ "$TRAVIS_OS_NAME" = "osx" ]; then export OPENSSLFLAGS="-DOPENSSL_LIBRARIES=/usr/local/opt/openssl/lib -DOPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include"; fi - - cd $TRAVIS_BUILD_DIR && mkdir build_none && cd build_none ; cmake $OPENSSLFLAGS -DENABLE_TLS=OFF -DENABLE_SSH=OFF -DENABLE_DNSSEC=OFF .. && make -j2 && ctest -V + - cd $TRAVIS_BUILD_DIR && mkdir build_none && cd build_none ; cmake -DENABLE_TLS=OFF -DENABLE_SSH=OFF -DENABLE_DNSSEC=OFF .. && make -j2 && ctest -V - cd $TRAVIS_BUILD_DIR && mkdir build_tls && cd build_tls ; cmake $OPENSSLFLAGS -DENABLE_TLS=ON -DENABLE_SSH=OFF -DENABLE_DNSSEC=OFF .. && make -j2 && ctest -V - cd $TRAVIS_BUILD_DIR && mkdir build_ssh && cd build_ssh ; cmake $OPENSSLFLAGS -DENABLE_TLS=OFF -DENABLE_SSH=ON -DENABLE_DNSSEC=OFF .. && make -j2 && ctest -V - cd $TRAVIS_BUILD_DIR && mkdir build_ssh_tls && cd build_ssh_tls ; cmake $OPENSSLFLAGS -DENABLE_TLS=ON -DENABLE_SSH=ON -DENABLE_DNSSEC=OFF .. && make -j2 && ctest -V
Change items order admin UI Change French translations Update help page content
<% if(request.isUserInRole("SearchExpert")||request.isUserInRole("SearchAdministrator")){ %> +<li id="MCFSimplified"><a id="MCFSimplified-AdminUI" class="ajax-link" href="./ajax/mcfSimplified.html"></a></li> <!-- <a href="./ajax/dashboard.html" class="ajax-link"> <i --> <li class="dropdown" id="Connectors"> <a href="#" class="dropdown-toggle"> @@ -224,7 +225,7 @@ if(request.isUserInRole("SearchAdministrator")){ } if(request.isUserInRole("SearchExpert")||request.isUserInRole("SearchAdministrator")){ %> - <li id="MCFSimplified"><a id="MCFSimplified-AdminUI" class="ajax-link" href="./ajax/mcfSimplified.html"></a></li> + </ul> </li>
Automation: better change to u_select.py A better version of the previous change: leave .txt in the list of ignored file extensions and instead add a list of file names that should never be ignored, which are currently DATABASE.md and CMakeLists.txt.
@@ -25,9 +25,12 @@ import u_data # Accesses the instance database # Prefix to put at the start of all prints PROMPT = "u_select: " -# A list of file extensions to throw away (note that .txt -# is not included since "CMakeLists.txt" is an important file) -EXT_DISCARD = ["md", "jpg", "png", "gitignore"] +# A list of file extensions to throw away +EXT_DISCARD = ["md", "txt", "jpg", "png", "gitignore"] + +# A list of file names that should never be discarded, +# despite their extensions +NEVER_DISCARD = ["DATABASE.md", "CMakeLists.txt"] # A list of file extensions to keep for code files EXT_CODE = ["c", "cpp", "h", "hpp"] @@ -52,15 +55,20 @@ def instances_string(instances): # Perform check (a) -def discard(paths, extensions): - '''Remove paths with the given extension''' +def discard(paths, extensions, exceptions): + '''Remove paths with the given extensions unless excepted''' wanted = [] for path in paths: include = True stripped = path.strip() for string in extensions: - if stripped.endswith(string): + excepted = False + for string2 in exceptions: + if stripped.endswith(string2): + excepted = True + break + if not excepted and stripped.endswith(string): print("{}ignoring file {}".format(PROMPT, path)) include = False if include: @@ -260,7 +268,7 @@ def select(database, instances, paths): print("{}file {}: {}".format(PROMPT, idx + 1, path)) # First throw away any file paths known to be uninteresting - interesting = discard(paths, EXT_DISCARD) + interesting = discard(paths, EXT_DISCARD, NEVER_DISCARD) # Add the instances that must be run because # an interesting file is platform-specific
Fix OSRAM/LEDVANCE TW lights identify as 'Color temperature lights'
@@ -1874,10 +1874,17 @@ void DeRestPluginPrivate::setLightNodeStaticCapabilities(LightNode *lightNode) lightNode->modelId() == QLatin1String("A19 TW 10 year") || lightNode->modelId() == QLatin1String("Classic B40 TW - LIGHTIFY") || lightNode->modelId() == QLatin1String("Classic A60 TW") || + (lightNode->manufacturerCode() == VENDOR_LEDVANCE && lightNode->modelId() == QLatin1String("Down Light TW")) || (lightNode->manufacturerCode() == VENDOR_LEDVANCE && lightNode->modelId() == QLatin1String("BR30 TW")) || (lightNode->manufacturerCode() == VENDOR_LEDVANCE && lightNode->modelId() == QLatin1String("MR16 TW")) || (lightNode->manufacturerCode() == VENDOR_LEDVANCE && lightNode->modelId() == QLatin1String("RT TW"))) { + item = lightNode->item(RAttrType); + if (item && item->toString() == QLatin1String("Color dimmable light")) // some TW lights wrongly report as dimmable + { + item->setValue(QVariant("Color temperature light")); + } + if (lightNode->item(RConfigColorCapabilities) != nullptr) { return; // already initialized
qlog: support the connection_close frame type
@@ -102,6 +102,22 @@ def handle_stream_receive(event): "offset": event["off"] } +def handle_transport_close_receive(event): + return { + "frame_type": "connection_close", + "offending_frame_type": event["frame-type"], + "error_code": event["error-code"], + "reason": event["reason-phrase"] + } + +def handle_transport_close_send(event): + return { + "frame_type": "connection_close", + "offending_frame_type": event["frame-type"], + "error_code": event["error-code"], + "reason": event["reason-phrase"] + } + QLOG_EVENT_HANDLERS = { "packet-received": handle_packet_received, "packet-sent": handle_packet_sent @@ -114,6 +130,8 @@ FRAME_EVENT_HANDLERS = { "ping-receive": handle_ping_receive, "quictrace-recv-ack": handle_quictrace_recv_ack, "stream-receive": handle_stream_receive, + "transport-close-receive": handle_transport_close_receive, + "transport-close-send": handle_transport_close_send } def usage():
travis: Create scan-build install directory
set -e -pushd `pwd` +usage() { + echo "install_scan-build.sh install_dir" + exit 1 +} +if [ "$#" -ne "1" ]; then + usage +fi INSTALL_DIR=$1 wget http://clang-analyzer.llvm.org/downloads/checker-278.tar.bz2 -tar jxf checker-278.tar.bz2 --strip-components=1 -C $INSTALL_DIR +mkdir -p $INSTALL_DIR && tar jxf checker-278.tar.bz2 --strip-components=1 -C $INSTALL_DIR +
[mod_mbedtls] set usekeysize for mbedtls 3.2.0+
@@ -2629,6 +2629,7 @@ http_cgi_ssl_env (request_st * const r, handler_ctx * const hctx) #if MBEDTLS_VERSION_NUMBER >= 0x03020000 /* mbedtls 3.02.0 */ size_t algkeysize = mbedtls_ssl_ciphersuite_get_cipher_key_bitlen(ciphersuite_info); + unsigned int usekeysize = algkeysize; /*(equivalent in modern ciphers)*/ #elif MBEDTLS_VERSION_NUMBER >= 0x03000000 /* mbedtls 3.00.0 */ #ifdef MBEDTLS_CIPHER_C /*(messy transition; ssl->transform is hidden in ssl_internal.h)*/
Quiet pod2html warnings quiet stops warnings of this sort: Cannot find "BIO_read_ex" in podpath: cannot find suitable replacement path, cannot resolve link We know what causes these warnings, it's perfectly innocuous, and we don't want to hear it any more. Partial fix for
@@ -98,7 +98,7 @@ foreach my $section (sort @{$options{section}}) { my $suffix = { man => ".$podinfo{section}".($options{suffix} // ""), html => ".html" } -> {$options{type}}; my $generate = { man => "pod2man --name=$name --section=$podinfo{section} --center=OpenSSL --release=$config{version} \"$podpath\"", - html => "pod2html \"--podroot=$options{sourcedir}\" --htmldir=$updir --podpath=man1:man3:man5:man7 \"--infile=$podpath\" \"--title=$podname\"" + html => "pod2html \"--podroot=$options{sourcedir}\" --htmldir=$updir --podpath=man1:man3:man5:man7 \"--infile=$podpath\" \"--title=$podname\" --quiet" } -> {$options{type}}; my $output_dir = catdir($options{destdir}, "man$podinfo{section}"); my $output_file = $podname . $suffix;
Fix wrong tu_fifo_read_n() call in dcd_stm32_fsdev.c
@@ -1004,7 +1004,7 @@ static bool dcd_write_packet_memory_ff(tu_fifo_t * ff, uint16_t dst, uint16_t wN { // Since PMA can accessed only 16 bit-wise we copy the last byte again tu_fifo_backward_read_pointer(ff, 1); // Move one byte back and copy two bytes for the PMA - pma[PMA_STRIDE*(dst>>1)] = tu_fifo_read_n(ff, 2); // Since EP FIFOs must be of item size 1 this is safe to do + tu_fifo_read_n(ff, &pma[PMA_STRIDE*(dst>>1)], 2); // Since EP FIFOs must be of item size 1 this is safe to do dst++; len2--; }
BugID:18819685: Improve filter coap pkts from itself.
@@ -532,7 +532,7 @@ int CoAPMessage_process(CoAPContext *context, unsigned int timeout) { int len = 0; NetworkAddr remote; - char ip_addr[17] = {0}; + char ip_addr[16] = {0}; CoAPIntContext *ctx = (CoAPIntContext *)context; if (NULL == context) {
travis: Adjust build configs in Travis CI Add artik053/iotjs build config in Travis CI. Remove duplicated test configs in Travis CI.
@@ -8,11 +8,10 @@ services: - docker env: -- BUILD_CONFIG=artik053/tash -- BUILD_CONFIG=artik053/nettest - BUILD_CONFIG=artik053/minimal - BUILD_CONFIG=artik053/tc - BUILD_CONFIG=artik053/st_things +- BUILD_CONFIG=artik053/iotjs - BUILD_CONFIG=qemu/tc_64k
Port JN516X AES-CCM implementatiob to new API
@@ -48,8 +48,8 @@ static int current_key_is_new = 1; /*---------------------------------------------------------------------------*/ static void aead(const uint8_t *nonce, - uint8_t *m, uint8_t m_len, - const uint8_t *a, uint8_t a_len, + uint8_t *m, uint16_t m_len, + const uint8_t *a, uint16_t a_len, uint8_t *result, uint8_t mic_len, int forward) {
Fix prerequisites I just solve problem with installing rmagick on OS X. I was faced with incompatible rmagick with imagemagick 7.x.x ver. I had to rollback the imagemagick version to 6.9.6-5. > brew switch imagemagick 6.9.6-5
@@ -30,7 +30,7 @@ h2(#prereq). Prerequisites Ruby must be able to build C-Extensions (e.g. MRI, Rubinius, not JRuby) -*ImageMagick* Version 6.4.9 or later. You can get ImageMagick from "www.imagemagick.org":http://www.imagemagick.org. +*ImageMagick* Version 6.4.9 or later (6.x.x). You can get ImageMagick from "www.imagemagick.org":http://www.imagemagick.org. On Ubuntu, you can run:
comment notifications go to the topic cirlce and topic updates go to the collections circle
[%fat [%text wat] [%lin | msg]]~ ^- {tar/name:hall msg/cord} ::TODO + :: + :: this can't be the best way to switch on top v com? + ?~ com [(circle-for col) 'TODO'] + [(circle-for-topic col top) 'TODO'] -- :: ++ hall-permit
Make makedist work for github
@@ -128,17 +128,19 @@ info "Directory '$temp_dir' created." cd $temp_dir info "Exporting source from GIT" -git clone git://git.nlnetlabs.nl/ldns/ || error_cleanup "git command failed" +git clone https://github.com/NLnetLabs/ldns.git || error_cleanup "git command failed" cd ldns || error_cleanup "LDNS not exported correctly from git" git checkout "$CHECKOUT" || error_cleanup "Could not checkout $CHECKOUT" git submodule update --init || error_cleanup "Could not update submodules" (cd contrib/DNS-LDNS; git checkout master) || error_cleanup "Could not checkout DNS-LDNS contribution" info "Running Libtoolize script (libtoolize)." +[ -f ../../install-sh ] && mv ../../install-sh ../../install-sh.bak libtoolize -c --install || libtoolize -c || error_cleanup "Libtoolize failed." +[ -f ../../install-sh.bak ] && mv ../../install-sh.bak ../../install-sh info "Building configure script (autoconf)." -autoreconf || error_cleanup "Autoconf failed." +autoreconf -vfi || error_cleanup "Autoconf failed." rm -r autom4te* || error_cleanup "Failed to remove autoconf cache directory." @@ -181,7 +183,7 @@ fi if [ "$RECONFIGURE" = "yes" ]; then info "Rebuilding configure script (autoconf)." - autoreconf || error_cleanup "Autoconf failed." + autoreconf -vfi || error_cleanup "Autoconf failed." rm -r autom4te* || error_cleanup "Failed to remove autoconf cache directory." fi
options/ansi: Implement strxfrm
@@ -101,9 +101,11 @@ int strncmp(const char *a, const char *b, size_t max_size) { } } -size_t strxfrm(char *__restrict, const char *__restrict, size_t) { - __ensure(!"Not implemented"); - __builtin_unreachable(); +size_t strxfrm(char *__restrict dest, const char *__restrict src, size_t n) { + size_t l = strlen(src); + // NOTE: This might not work for non ANSI charsets. + strncpy(dest, src, n); + return l; } void *memchr(const void *s, int c, size_t size) {
[SYNCER] minor refactoring for log
@@ -270,9 +270,9 @@ func (syncer *Syncer) handleMessage(inmsg interface{}) { } case *message.SyncStop: if msg.Err == nil { - logger.Info().Str("from", msg.FromWho).Err(msg.Err).Msg("Syncer finished successfully") + logger.Info().Str("from", msg.FromWho).Msg("syncer try to stop successfully") } else { - logger.Info().Str("from", msg.FromWho).Err(msg.Err).Msg("Syncer finished by error") + logger.Error().Str("from", msg.FromWho).Err(msg.Err).Msg("syncer try to stop by error") } syncer.Reset() case *message.CloseFetcher:
analysis workflow, add undefined behaviour sanitizer test.
@@ -19,28 +19,32 @@ jobs: # os: ubuntu-latest # config: "--enable-debug --disable-flto" # make_test: "yes" -# - name: Clang on Linux, clang-analysis +# - name: Clang-analyzer # os: ubuntu-latest # config: "CC=clang --enable-debug --disable-flto" # make_test: "yes" # clang_analysis: "yes" - - name: Clang on Linux, libevent, clang-analysis - os: ubuntu-latest - install_libevent: "yes" - config: "CC=clang --enable-debug --disable-flto --with-libevent" - make_test: "yes" - clang_analysis: "yes" -# - name: GCC on OS X +# - name: libevent +# os: ubuntu-latest +# install_libevent: "yes" +# config: "CC=clang --enable-debug --disable-flto --with-libevent" +# make_test: "yes" +# clang_analysis: "yes" +# - name: OS X # os: macos-latest # install_expat: "yes" # config: "--enable-debug --disable-flto --with-ssl=/usr/local/opt/openssl --with-libexpat=/usr/local/opt/expat" # make_test: "yes" - - name: Clang on OS X - os: macos-latest - install_expat: "yes" - config: "CC=clang --enable-debug --disable-flto --with-ssl=/usr/local/opt/openssl --with-libexpat=/usr/local/opt/expat" +# - name: Clang on OS X +# os: macos-latest +# install_expat: "yes" +# config: "CC=clang --enable-debug --disable-flto --with-ssl=/usr/local/opt/openssl --with-libexpat=/usr/local/opt/expat" +# make_test: "yes" +# clang_analysis: "yes" + - name: ubsan (gcc undefined behaviour sanitizer) + os: ubuntu-latest + config: 'CFLAGS="-DNDEBUG -g2 -O3 -fsanitize=undefined -fno-sanitize-recover=all" --disable-flto' make_test: "yes" - clang_analysis: "yes" steps: - uses: actions/checkout@v2
Directory Value: Implement set method
@@ -1167,3 +1167,10 @@ severity:error ingroup:plugin module:ruby macro:RUBY_GEN_ERROR + +number:188 +description:Unable to append directory prefix +severity:error +ingroup:plugin +module:directoryvalue +macro:DIRECTORY_VALUE_APPEND
YAML Smith: Move serialization into function
@@ -132,6 +132,37 @@ public: } }; +/** + * @brief This function converts a `KeySet` into the YAML serialization format. + * + * @pre The parameter `output` must be a valid and open output stream. + * + * @param output This parameter specifies where this function should emit the serialized YAML data. + * @param keys This parameter stores the key set which this function converts to YAML data. + * @param parent This value represents the root key of `keys`. + */ +void writeYAML (ofstream & output, CppKeySet & keys, CppKey const & parent) +{ + keys.rewind (); + for (CppKey last = nullptr; keys.next (); last = keys.current ()) + { + string indent; + bool sameOrBelowLast = sameLevelOrBelow (last, keys.current ()); + auto relative = relativeKeyIterator (keys.current (), parent); + auto baseName = keys.current ().rbegin (); + + while (*relative != *baseName) + { + if (!sameOrBelowLast) output << indent << *relative << ":" << endl; + relative++; + indent += " "; + } + + output << indent << *baseName << ":" << endl; + if (keys.current ().getStringSize () > 1) output << indent << " " << keys.current ().getString () << endl; + } +} + } // end namespace extern "C" { @@ -168,24 +199,7 @@ int elektraYamlsmithSet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned, Key ofstream file{ parent.getString () }; if (file.is_open ()) { - keys.rewind (); - for (CppKey last = nullptr; keys.next (); last = keys.current ()) - { - string indent; - bool sameOrBelowLast = sameLevelOrBelow (last, keys.current ()); - auto relative = relativeKeyIterator (keys.current (), parent); - auto baseName = keys.current ().rbegin (); - - while (*relative != *baseName) - { - if (!sameOrBelowLast) file << indent << *relative << ":" << endl; - relative++; - indent += " "; - } - - file << indent << *baseName << ":" << endl; - if (keys.current ().getStringSize () > 1) file << indent << " " << keys.current ().getString () << endl; - } + writeYAML (file, keys, parent); } else {
Omega factors
@@ -72,6 +72,20 @@ int main(int argc,char **argv) printf("Growth factor and growth rate at z = %.3lf are D = %.3lf and f = %.3lf\n", ZD, ccl_growth_factor(cosmo,1./(1+ZD), &status),ccl_growth_rate(cosmo,1./(1+ZD), &status)); + // Compute Omega_m, Omega_L and Omega_r at different times + printf("z\tOmega_m\tOmega_L\tOmega_r\n"); + double Om, OL, Or; + for (int z=10000;z!=0;z/=3){ + Om = ccl_omega_x(cosmo, 1./(z+1), 0, &status); + OL = ccl_omega_x(cosmo, 1./(z+1), 1, &status); + Or = ccl_omega_x(cosmo, 1./(z+1), 2, &status); + printf("%i\t%.3f\t%.3f\t%.3f\n", z, Om, OL, Or); + } + Om = ccl_omega_x(cosmo, 1., 0, &status); + OL = ccl_omega_x(cosmo, 1., 1, &status); + Or = ccl_omega_x(cosmo, 1., 2, &status); + printf("%i\t%.3f\t%.3f\t%.3f\n", 0, Om, OL, Or); + // Compute sigma_8 printf("Initializing power spectrum...\n"); printf("sigma_8 = %.3lf\n\n", ccl_sigma8(cosmo, &status));
rpi-base.inc: Add vc4-fkms-v3d-pi4 overlay Since RPi kernel commit FKMS overlay for Pi4 family is split into a separate file. Not shipping the overlay means FKMS does not load correctly on these devices and VC4 is not brought up.
@@ -47,6 +47,7 @@ RPI_KERNEL_DEVICETREE_OVERLAYS ?= " \ overlays/rpi-ft5406.dtbo \ overlays/rpi-poe.dtbo \ overlays/vc4-fkms-v3d.dtbo \ + overlays/vc4-fkms-v3d-pi4.dtbo \ overlays/vc4-kms-v3d.dtbo \ overlays/vc4-kms-v3d-pi4.dtbo \ overlays/vc4-kms-dsi-7inch.dtbo \
corrects build/dependency sections of README
@@ -25,24 +25,22 @@ If you're doing development on Urbit, keep reading. - [libcurl](https://curl.haxx.se/libcurl/) - [libuv](http://libuv.org) - curses implementation (ncurses on Linux distributions, OS curses otherwise) -- [re2c](http://re2c.org) Most of these dependencies are unfortunate; we aim to drastically shrink the list in upcoming versions. `vere` proper makes use of GMP, OpenSSL, libcurl, and -libsigsegv. The multiple build tools are a result of bundled libraries, slated -for future unbundling or removal wherever possible. +libsigsegv. ## Building Urbit uses Meson build system. Some libraries which are not found in major distributions: + - ed25519 -- http-parser legacy version 0.1.0 +- libh2o - murmur3 - softfloat3 -- urbit-scrypt -- commonmark legacy version 0.12.0 +- scrypt are included as git submodules. To build urbit from source, perform the following steps: @@ -65,6 +63,7 @@ To set a prefix for installation use ## Configuration & compilation for legacy meson The syntax for legacy meson (Version `0.29`) is a bit different. + 1. Manually create `build` directory and invoke meson as `meson . ./build` 2. If you want to set options, this is done in one step. Use `meson -D [options] . ./build` to prepare customized build. @@ -73,28 +72,6 @@ Once the project is configured, use `ninja` to build it. To install it into the default prefix, use `ninja install`. If you want to specify custom `DESTDIR`, use `DESTDIR=... ninja install`. -## Building the Debian Package - -To build a .deb file for installation on Debian platforms, perform the -following steps: -+ Run `sudo apt install devscripts` to install the `debuild` utility. -+ Update the `debian/changelog` to reflect the changes in this release. -+ If necessary, update the year of the copyright in `debian/copyright`. -+ Clean any build artifacts: Run `make clean` and delete the `bin` directory, -if it exists. -+ Run `tar -xcvf ../urbit-x.y.z.orig.tar.gz .` from the top-level folder in -the repo. This command will create an archive in the directory above the -current directory, which will be used in packaging. -+ Run `debuild -us -uc`, also from the top-level folder in the repo. This -creates a .deb file in the folder above the current directory. - -The resulting .deb file should now exist in the folder above the current -directory. To test that the .deb file works properly, you can perform the -following steps: -+ Uninstall urbit: `sudo apt remove urbit`. -+ Run `sudo dpkg -i ../urbit-x.y.z_amd64.deb` to install the new version. -+ Boot up a ship using the `urbit` command. - ## Contact If you have any questions, problems, patches, or proposals for patches, please
Reset coordinate system on lovr.graphics.reset;
@@ -75,6 +75,7 @@ void lovrGraphicsReset() { lovrGraphicsSetPolygonWinding(POLYGON_WINDING_COUNTERCLOCKWISE); lovrGraphicsSetDepthTest(COMPARE_LESS); lovrGraphicsSetWireframe(0); + lovrGraphicsOrigin(); } void lovrGraphicsClear(int color, int depth) {
Reset Distance, Bearing, and BearingDist_valid if GPS data becomes invalid. #582.
@@ -192,6 +192,10 @@ func sendTrafficUpdates() { ti.Distance = dist ti.Bearing = bearing ti.BearingDist_valid = true + } else { + ti.Distance = 0 + ti.Bearing = 0 + ti.BearingDist_valid = false } ti.Age = stratuxClock.Since(ti.Last_seen).Seconds() ti.AgeLastAlt = stratuxClock.Since(ti.Last_alt).Seconds()
spi: fix a possible concurrency issue
@@ -361,12 +361,14 @@ static void SPI_SLAVE_ISR_ATTR spi_intr(void *arg) } } + //Disable interrupt before checking to avoid concurrency issue. + esp_intr_disable(host->intr); //Grab next transaction r = xQueueReceiveFromISR(host->trans_queue, &trans, &do_yield); - if (!r) { - //No packet waiting. Disable interrupt. - esp_intr_disable(host->intr); - } else { + if (r) { + //enable the interrupt again if there is packet to send + esp_intr_enable(host->intr); + //We have a transaction. Send it. host->cur_trans = trans;
Extend initial retransmission timeout to 1 second
@@ -59,7 +59,7 @@ typedef enum { /* NGTCP2_INITIAL_EXPIRY is initial retransmission timeout in microsecond resolution. */ -#define NGTCP2_INITIAL_EXPIRY 400000 +#define NGTCP2_INITIAL_EXPIRY 1000000 /* NGTCP2_PKT_DEADLINE_PERIOD is the period of time when the library gives up re-sending packet, and closes connection. */
cmake: emit a warning about CMake support being deprecated
@@ -258,3 +258,8 @@ foreach(tst ) add_test(NAME "${tst}/${variant}" COMMAND $<TARGET_FILE:run-tests> "${tst}") endforeach() + +message(WARNING + "CMake support is deprecated; please use Meson instead. CMake is only present " + "for compilers which Meson doesn't yet support (e.g., xlc) and platforms where " + "difficult to run an up-to-date copy of Meson (e.g., Ubuntu 12.04).")
nissa: Enable AC_PRESENT charger support When using the RAA489000 charger, enable the code to correctly generate the AC_PRESENT signal. TEST=Verify on nirwen that AC_PRESENT is correctly generated BRANCH=none
@@ -37,6 +37,7 @@ CONFIG_PLATFORM_EC_USB_PD_FRS_TCPC=y # Charger driver and configuration CONFIG_PLATFORM_EC_CHARGER_RAA489000=y CONFIG_PLATFORM_EC_OCPC_DEF_RBATT_MOHMS=22 +CONFIG_PLATFORM_EC_RAA489000_AC_PRESENT_CONTROL=y # VSENSE: PP3300_S5 & PP1050_PROC CONFIG_ADC_CMP_NPCX_WORKQUEUE=y
Removed faulty gate logic in predict
@@ -888,12 +888,7 @@ void survive_kalman_error_tracker_predict_jac(FLT dt, const struct cnkalman_stat SurviveKalmanModel s_out = {0}; struct SurviveKalmanTracker_Params *params = (struct SurviveKalmanTracker_Params *)k->user; - if(params->process_weight_acc == 0) { - scale3d(s_in.Acc, s_in.Acc, 0); - } - if(params->process_weight_vel == 0) { - scalend(s_in.Velocity.Pos, s_in.Velocity.Pos, 0, 6); - } + quatnormalize(s_in.Pose.Rot, s_in.Pose.Rot); gen_SurviveKalmanModelPredict(&s_out, dt, &s_in); quatnormalize(s_out.Pose.Rot, s_out.Pose.Rot);
VSYNC fixes for 100Hz displays
@@ -2755,11 +2755,15 @@ s32 main(s32 argc, char **argv) u64 nextTick = SDL_GetPerformanceCounter(); const u64 Delta = SDL_GetPerformanceFrequency() / TIC_FRAMERATE; - bool noVsync = false; + bool useTimer = false; { SDL_RendererInfo info; + SDL_DisplayMode mode; + SDL_GetRendererInfo(studio.renderer, &info); - noVsync = info.flags & SDL_RENDERER_PRESENTVSYNC ? false : true; + SDL_GetCurrentDisplayMode(SDL_GetWindowDisplayIndex(studio.window), &mode); + + useTimer = !(info.flags & SDL_RENDERER_PRESENTVSYNC) || mode.refresh_rate != TIC_FRAMERATE; } while (!studio.quitFlag) @@ -2767,7 +2771,7 @@ s32 main(s32 argc, char **argv) nextTick += Delta; tick(); - if(SDL_GetWindowFlags(studio.window) & SDL_WINDOW_MINIMIZED || noVsync) + if(SDL_GetWindowFlags(studio.window) & SDL_WINDOW_MINIMIZED || useTimer) { s64 delay = nextTick - SDL_GetPerformanceCounter();
Update doc/decisions/backend_plugin.md
## Constraints -- All existing plugins should continue working normally. +- All existing plugins, except [hooks](hooks.md), should continue working as before. ## Assumptions
Add entity declaration handler to public parameter entity test
@@ -5588,8 +5588,11 @@ START_TEST(test_alloc_public_entity_value) repeat++; } allocation_count = i; + dummy_handler_flags = 0; XML_SetParamEntityParsing(parser, XML_PARAM_ENTITY_PARSING_ALWAYS); XML_SetExternalEntityRefHandler(parser, external_entity_public); + /* Provoke a particular code path */ + XML_SetEntityDeclHandler(parser, dummy_entity_decl_handler); if (_XML_Parse_SINGLE_BYTES(parser, text, strlen(text), XML_TRUE) != XML_STATUS_ERROR) break; @@ -5597,8 +5600,10 @@ START_TEST(test_alloc_public_entity_value) } if (i == 0) fail("Parsing worked despite failing allocation"); - else if (i == MAX_ALLOC_COUNT) + if (i == MAX_ALLOC_COUNT) fail("Parsing failed at max allocation count"); + if (dummy_handler_flags != DUMMY_ENTITY_DECL_HANDLER_FLAG) + fail("Entity declaration handler not called"); } #undef MAX_ALLOC_COUNT END_TEST
Worked On the Initialization and destroy rpc loader interface function
#include <log/log.h> +// The Curl Libraries +#include "curl/curl.h" #include <stdlib.h> typedef struct loader_impl_rpc_function_type @@ -45,7 +47,7 @@ typedef struct loader_impl_rpc_handle_type typedef struct loader_impl_rpc_type { - void * todo; + CURL * curl; } * loader_impl_rpc; @@ -121,13 +123,18 @@ function_interface function_rpc_singleton(void) loader_impl_data rpc_loader_impl_initialize(loader_impl impl, configuration config, loader_host host) { - /* TODO */ - + loader_impl_rpc rpc_impl; + rpc_impl = malloc(sizeof(struct loader_impl_rpc)); + rpc_impl->curl = curl_easy_init() + if(!rpc_impl->curl){ + log_write("metacall", LOG_LEVEL_ERROR, "Could Not create Curl object"); + return NULL; + } (void)impl; (void)config; (void)host; - return NULL; + return rpc_impl; } int rpc_loader_impl_execution_path(loader_impl impl, const loader_naming_path path) @@ -196,7 +203,8 @@ int rpc_loader_impl_discover(loader_impl impl, loader_handle handle, context ctx int rpc_loader_impl_destroy(loader_impl impl) { - /* TODO */ + loader_impl_rpc rpc_impl = (loader_impl_rpc)impl; + curl_easy_cleanup(rpc_impl->curl) (void)impl;
docs: remove spurios chars from changelog
@@ -64,7 +64,7 @@ Version 1.3.7 (14 March 2019) * hypre-intel-mvapich2-ohpc (2.14.0 -> 2.15.1) * hypre-intel-openmpi3-ohpc (2.14.0 -> 2.15.1) * intel-compilers-devel-ohpc (2018 -> 2019) -lik * intel-mpi-devel-ohpc (2018 -> 2019) + * intel-mpi-devel-ohpc (2018 -> 2019) * kmod-lustre-client-ohpc (2.11.0 -> 2.12.0) * kmod-lustre-client-ohpc-tests (2.11.0 -> 2.12.0) * likwid-gnu8-ohpc (4.3.2 -> 4.3.3)
Avoid freeing base class members.
@@ -140,8 +140,6 @@ static void destroy(grib_context* context, grib_action* act) grib_context_free_persistent(context, a->name); grib_darray_delete(context, a->darray); - grib_context_free_persistent(context, act->name); - grib_context_free_persistent(context, act->op); } static void xref(grib_action* d, FILE* f, const char* path)
build: install parsers.conf file
@@ -218,4 +218,9 @@ if(NOT FLB_WITHOUT_BIN) "${PROJECT_SOURCE_DIR}/conf/fluent-bit.conf" DESTINATION "${CMAKE_INSTALL_SYSCONFDIR}/${FLB_OUT_NAME}/" RENAME "${FLB_OUT_NAME}.conf") + + install(FILES + "${PROJECT_SOURCE_DIR}/conf/parsers.conf" + DESTINATION "${CMAKE_INSTALL_SYSCONFDIR}/${FLB_OUT_NAME}/") + endif()
remove unused TODO items
@@ -3146,34 +3146,6 @@ auth_xfer_set_expired(struct auth_xfer* xfr, struct module_env* env, lock_rw_unlock(&z->lock); } -/** the current transfer has finished, apply the results. - * set timer for future probe. See if zone is expired now. */ -void -xfr_master_transferresult(struct auth_xfer* xfr) -{ - (void)xfr; - /* TODO */ -} - -/** the current probe has finished, inspect the results. - * move on to the next master or start a transfer, or at last master, - * set timer for future probe. See if zone is expired now. */ -void -xfr_master_proberesult(struct auth_xfer* xfr) -{ - (void)xfr; - /* TODO */ -} - -/** with current master selected, start the probe, or transfer */ -int -xfr_master_start(struct auth_xfer* xfr) -{ - (void)xfr; - /* TODO */ - return 0; -} - /** find master (from notify or probe) in list of masters */ static struct auth_master* find_master_by_host(struct auth_master* list, char* host)
arch: Replace sem_t with mutex_t for the lock case temp
@@ -57,7 +57,7 @@ struct dma_channel_s struct dma_controller_s { - sem_t exclsem; /* Protects channel table */ + mutex_t chanlock; /* Protects channel table */ sem_t chansem; /* Count of free channels */ }; @@ -69,7 +69,7 @@ struct dma_controller_s static struct dma_controller_s g_dmac = { - .exclsem = NXSEM_INITIALIZER(1, PRIOINHERIT_FLAGS_ENABLE), + .chanlock = NXMUTEX_INITIALIZER, .chansem = SEM_INITIALIZER(BL602_DMA_NCHANNELS), }; @@ -176,7 +176,7 @@ int8_t bl602_dma_channel_request(bl602_dma_callback_t callback, void *arg) /* Get exclusive access to the DMA channel list */ - ret = nxsem_wait_uninterruptible(&g_dmac.exclsem); + ret = nxmutex_lock(&g_dmac.chanlock); if (ret < 0) { nxsem_post(&g_dmac.chansem); @@ -198,7 +198,7 @@ int8_t bl602_dma_channel_request(bl602_dma_callback_t callback, void *arg) } } - nxsem_post(&g_dmac.exclsem); + nxmutex_unlock(&g_dmac.chanlock); /* Since we have reserved a DMA descriptor by taking a count from chansem, * it would be a serious logic failure if we could not find a free channel @@ -229,7 +229,7 @@ int bl602_dma_channel_release(uint8_t channel_id) { /* Get exclusive access to the DMA channel list */ - if (nxsem_wait_uninterruptible(&g_dmac.exclsem) < 0) + if (nxmutex_lock(&g_dmac.chanlock) < 0) { return -1; } @@ -246,7 +246,7 @@ int bl602_dma_channel_release(uint8_t channel_id) nxsem_post(&g_dmac.chansem); } - nxsem_post(&g_dmac.exclsem); + nxmutex_unlock(&g_dmac.chanlock); return 0; }
Use linear search
@@ -240,20 +240,15 @@ static void ksl_insert_node(ngtcp2_ksl *ksl, ngtcp2_ksl_blk *blk, size_t i, static size_t ksl_bsearch(ngtcp2_ksl *ksl, ngtcp2_ksl_blk *blk, const ngtcp2_ksl_key *key, ngtcp2_ksl_compar compar) { - ngtcp2_ssize left = -1, right = (ngtcp2_ssize)blk->n, mid; + size_t i; ngtcp2_ksl_node *node; - while (right - left > 1) { - mid = (left + right) >> 1; - node = ngtcp2_ksl_nth_node(ksl, blk, (size_t)mid); - if (compar((ngtcp2_ksl_key *)node->key, key)) { - left = mid; - } else { - right = mid; - } - } + for (i = 0, node = (ngtcp2_ksl_node *)(void *)blk->nodes; + i < blk->n && compar((ngtcp2_ksl_key *)node->key, key); + ++i, node = (ngtcp2_ksl_node *)(void *)((uint8_t *)node + ksl->nodelen)) + ; - return (size_t)right; + return i; } int ngtcp2_ksl_insert(ngtcp2_ksl *ksl, ngtcp2_ksl_it *it,
usm proper fov fix
@@ -85,6 +85,7 @@ void Init() Screen.Width43 = static_cast<uint32_t>(Screen.fHeight * (4.0f / 3.0f)); Screen.fWidth43 = static_cast<float>(Screen.Width43); Screen.fAspectRatioDiff = 1.0f / (((4.0f / 3.0f)) / (Screen.fAspectRatio)); + Screen.fFOVFactor = 0.75f * Screen.fAspectRatioDiff * Screen.fFOVFactor; } }; injector::MakeInline<GetResHook>(pattern.get_first(0), pattern.get_first(11)); @@ -98,23 +99,10 @@ void Init() pattern = hook::pattern("E8 ? ? ? ? 8B 16 83 C4 04 57 8B CE FF 52 1C"); //0x741C40 injector::MakeCALL(pattern.get_first(0), static_cast<void(__cdecl*)(float)>(sub_540070), true); - //objects disappearing fix - auto sub_588DB0 = [](float a1, float* a2, float* a3) { - a1 *= Screen.fAspectRatioDiff; - *a3 = cos(a1); - *a2 = sin(a1); - }; - pattern = hook::pattern("E8 ? ? ? ? 8B 54 24 1C 8B 44 24 38 83 C4 0C"); - injector::MakeCALL(pattern.get_first(0), static_cast<void(__cdecl*)(float, float*, float*)>(sub_588DB0), true); //0x53ACE8 - //FOV - static injector::hook_back<void(__cdecl*)(float, float, float)> hb_76B820; - auto sub_76B820 = [](float a1, float a2, float a3) { - a1 = AdjustFOV(a1, Screen.fAspectRatio) * Screen.fFOVFactor; - return hb_76B820.fun(a1, a2, a3); - }; - pattern = hook::pattern("E8 ? ? ? ? 83 C4 0C B9 ? ? ? ? E8 ? ? ? ? 84 C0"); //0x53AB29 - hb_76B820.fun = injector::MakeCALL(pattern.get_first(0), static_cast<void(__cdecl*)(float, float, float)>(sub_76B820), true).get(); + pattern = hook::pattern("7A 22 D9 44 24 2C D8 0D ? ? ? ? D9 F2 DD D8"); + injector::MakeNOP(pattern.get_first(0), 2, true); + injector::WriteMemory(pattern.get_first(18), &Screen.fFOVFactor, true); if (bFixHUD) {
mdns: fixed forgotten merge conflicts in debug code
@@ -5015,13 +5015,8 @@ void mdns_debug_packet(const uint8_t * data, size_t len) } _mdns_dbg_printf("\n"); } else if (type == MDNS_TYPE_AAAA) { -<<<<<<< HEAD - ip6_addr_t ip6; - memcpy(&ip6, data_ptr, MDNS_ANSWER_AAAA_SIZE); -======= esp_ip6_addr_t ip6; memcpy(&ip6, data_ptr, sizeof(esp_ip6_addr_t)); ->>>>>>> mdns: update mdns to use esp-netif for mdns supported services such as STA, AP, ETH _mdns_dbg_printf(IPV6STR "\n", IPV62STR(ip6)); } else if (type == MDNS_TYPE_A) { esp_ip4_addr_t ip;
RTX5: corrected typo (preprocessor definitions for Armv8.1-M)
@@ -144,7 +144,7 @@ __STATIC_INLINE bool_t IsIrqMasked (void) { /// Setup SVC and PendSV System Service Calls __STATIC_INLINE void SVC_Setup (void) { #if ((defined(__ARM_ARCH_8M_MAIN__) && (__ARM_ARCH_8M_MAIN__ != 0)) || \ - (defined(__ARM_ARCH_8_1M_MAIN__) && (__ARM_ARCH_8M_MAIN__ != 0)) || \ + (defined(__ARM_ARCH_8_1M_MAIN__) && (__ARM_ARCH_8_1M_MAIN__ != 0)) || \ (defined(__CORTEX_M) && (__CORTEX_M == 7U))) uint32_t p, n;
avf: add avf_create_reply_handler to avf_test
@@ -64,7 +64,6 @@ typedef struct avf_test_main_t avf_test_main; #define foreach_standard_reply_retval_handler \ -_(avf_create_reply) \ _(avf_delete_reply) #define _(n) \ @@ -134,6 +133,24 @@ api_avf_create (vat_main_t * vam) return ret; } +/* avf-create reply handler */ +static void +vl_api_avf_create_reply_t_handler (vl_api_avf_create_reply_t * mp) +{ + vat_main_t *vam = avf_test_main.vat_main; + i32 retval = ntohl (mp->retval); + + if (retval == 0) + { + fformat (vam->ofp, "created avf with sw_if_index %d\n", + ntohl (mp->sw_if_index)); + } + + vam->retval = retval; + vam->result_ready = 1; + vam->regenerate_interface_table = 1; +} + /* avf delete API */ static int api_avf_delete (vat_main_t * vam)
Open the plugin preferences if hars could not be found.
@@ -623,6 +623,8 @@ initializePlugin(MObject obj) "to HARS must either be added to your PATH environment variable " + "or specified in the HOUDINI_HARS_LOCATION environment variable.");)"); + MGlobal::executeCommand("houdiniEnginePreferences();", false); + return MStatus::kSuccess; }
Rwmove TODO item about gpio kscan driver.
@@ -11,7 +11,6 @@ Basic WIP website to learn more: https://zmk.netlify.app/ - Document boards/shields/keymaps usage. - Move most Kconfig setings to the board/keymap defconfigs and out of the toplevel `prj.conf` file. -- Merge the Kscan GPIO driver upstream, or integrate it locally, to avoid use of Zephyr branch. - Display support, including displaying BLE SC auth numbers for "numeric comparison" mode if we have the screen. - Fix BT settings to work w/ Zephyr. Do we really need them? - Tests?
Fixup termios.error exception handling for Windows
from .base_driver import BaseDriver import serial import serial.tools.list_ports +try: import termios + SerialError = termios.error +except ImportError: + SerialError = None + class PySerialDriver(BaseDriver): """ @@ -106,5 +111,5 @@ class PySerialDriver(BaseDriver): try: self.flush() self.close() - except (OSError, termios.error, serial.SerialException) as e: + except (OSError, SerialError, serial.SerialException) as e: pass
simd-js: fix types of (u)64x2 internal vectors
@@ -94,9 +94,9 @@ typedef SIMDE__ALIGN(16) union { /* int64x2 */ typedef SIMDE__ALIGN(16) union { #if defined(SIMDE__ENABLE_GCC_VEC_EXT) - int32_t v __attribute__((__vector_size__(16), __may_alias__)); + int64_t v __attribute__((__vector_size__(16), __may_alias__)); #else - int32_t v[2]; + int64_t v[2]; #endif #if defined(SIMDE_EM_NATIVE) @@ -111,9 +111,9 @@ typedef SIMDE__ALIGN(16) union { /* uint64x2 */ typedef SIMDE__ALIGN(16) union { #if defined(SIMDE__ENABLE_GCC_VEC_EXT) - uint32_t v __attribute__((__vector_size__(16), __may_alias__)); + uint64_t v __attribute__((__vector_size__(16), __may_alias__)); #else - uint32_t v[2]; + uint64_t v[2]; #endif #if defined(SIMDE_EM_NATIVE)
fixed missing DLT_IEEE802_11_RADIO
#define PCAPNG_MAJOR_VER 1 #define PCAPNG_MINOR_VER 0 #define PCAPNG_MAXSNAPLEN 0xffff - /*===========================================================================*/ /* Section Header Block (SHB) - ID 0x0A0D0D0A */ struct section_header_block_s
fuzz.c: indent-on
@@ -423,9 +423,7 @@ void mangle_mangleContent(honggfuzz_t * hfuzz, fuzzer_t * fuzzer) }; /* *INDENT-ON* */ - /* - * Minimal number of changes is 1 - */ + /* Minimal number of changes is 1 */ uint64_t changesCnt = fuzzer->dynamicFileSz * fuzzer->flipRate; if (changesCnt == 0ULL) { changesCnt = 1;
Configurations/unix-Makefile.tmpl: remove assignment of AS and ASFLAGS We have never used these variables with the Unix Makefile, and there's no reason for us to change this, so to avoid confusion, we remove them.
@@ -240,9 +240,8 @@ TARFILE= ../$(NAME).tar # order to be excused from maintaining a separate set of architecture # dependent assembler flags. E.g. if you throw -mcpu=ultrasparc at SPARC # gcc, then the driver will automatically translate it to -xarch=v8plus -# and pass it down to assembler. -AS={- $config{as} ? "\$(CROSS_COMPILE)$config{as}" : '$(CC) -c' -} -ASFLAGS={- join(' ', @{$config{asflags}}) || '$(CFLAGS)' -} +# and pass it down to assembler. In any case, we do not define AS or +# ASFLAGS for this reason. PERLASM_SCHEME= {- $target{perlasm_scheme} -} # For x86 assembler: Set PROCESSOR to 386 if you want to support
Include flash_size_reg in chipid params dumps
@@ -906,6 +906,7 @@ void dump_a_chip (FILE *fp, struct stlink_chipid_params *dev) { fprintf(fp, "chip_id 0x%x\n", dev->chip_id); fprintf(fp, "description %s\n", dev->description); fprintf(fp, "flash_type %d\n", dev->flash_type); + fprintf(fp, "flash_size_reg 0x%x\n", dev->flash_size_reg); fprintf(fp, "flash_pagesize 0x%x\n", dev->flash_pagesize); fprintf(fp, "sram_size 0x%x\n", dev->sram_size); fprintf(fp, "bootrom_base 0x%x\n", dev->bootrom_base);
[kernel] use NSM_sort_csc rather than NSM_fix_csc
@@ -291,7 +291,8 @@ bool SiconosMatrix::fromCSC(CSparseMatrix* csc) { assert(csc); - NSM_fix_csc(csc); + NSM_sort_csc(csc); + double* Mx = csc->x; // data CS_INT* Mi = csc->i; // row indx CS_INT* Mp = csc->p; // column pointers
Bump version 2.04.83
@@ -57,7 +57,7 @@ GIT_COMMIT = $$system("git rev-list HEAD --max-count=1") # Version Major.Minor.Build # Important: don't change the format of this line since it's parsed by scripts! -DEFINES += GW_SW_VERSION=\\\"2.04.82\\\" +DEFINES += GW_SW_VERSION=\\\"2.04.83\\\" DEFINES += GW_API_VERSION=\\\"1.0.4\\\" DEFINES += GIT_COMMMIT=\\\"$$GIT_COMMIT\\\" \
cloud_server: add missing function call Call oc_cloud_delete_resource when freeing a dynamically created resource in a collection.
@@ -530,6 +530,7 @@ free_switch_instance(oc_resource_t *resource) oc_switch_t *cswitch = (oc_switch_t *)oc_list_head(switches); while (cswitch) { if (cswitch->resource == resource) { + oc_cloud_delete_resource(resource); oc_delete_resource(resource); oc_list_remove(switches, cswitch); oc_memb_free(&switch_s, cswitch);
groups: Set browserId in local state on mount of app
@@ -5,6 +5,7 @@ import * as React from 'react'; import Helmet from 'react-helmet'; import { Router, withRouter } from 'react-router-dom'; import styled, { ThemeProvider } from 'styled-components'; +import FingerprintJS from '@fingerprintjs/fingerprintjs'; import gcpManager from '~/logic/lib/gcpManager'; import { svgDataURL } from '~/logic/lib/util'; import history from '~/logic/lib/history'; @@ -36,6 +37,13 @@ function ensureValidHex(color) { return parsedColor.startsWith('#') ? parsedColor : `#${parsedColor}`; } +const getId = async () => { + const fpPromise = FingerprintJS.load(); + const fp = await fpPromise; + const result = await fp.get(); + return result.visitorId; +}; + interface RootProps { display: SettingsState['display']; } @@ -97,6 +105,10 @@ const App: React.FunctionComponent = () => { bootstrapApi(); getShallowChildren(`~${window.ship}`, 'dm-inbox'); + getId().then((value) => { + useLocalState.setState({ browserId: value }); + }); + getAll(); gcpManager.start(); Mousetrap.bindGlobal(['command+/', 'ctrl+/'], (e) => {
Added a section to documentation explaining enforcement of maximum mapped memory limit.
@@ -107,6 +107,8 @@ In order to successfully execute this command: - The specified DCPMM(s) must be manageable by the host software and must all have the same SKU. +- SKU based maximum total mapped memory is enforced. See section <<Maximum Mapped Memory Limiting>> + - Existing memory allocation goals that have not been applied and any namespaces associated with the requested DCPMM(s) must be deleted before running this command.
Update .travis.yml for imxrt BSP CI
@@ -28,7 +28,7 @@ env: - RTT_BSP='asm9260t' RTT_TOOL_CHAIN='sourcery-arm' - RTT_BSP='at91sam9260' RTT_TOOL_CHAIN='sourcery-arm' - RTT_BSP='allwinner_tina' RTT_TOOL_CHAIN='sourcery-arm' - - RTT_BSP='imxrt1052-evk' RTT_TOOL_CHAIN='sourcery-arm' + - RTT_BSP='imxrt/imxrt1050-evk' RTT_TOOL_CHAIN='sourcery-arm' # - RTT_BSP='avr32uc3b0' RTT_TOOL_CHAIN='atmel-avr32' # - RTT_BSP='bf533' # no scons - RTT_BSP='efm32' RTT_TOOL_CHAIN='sourcery-arm'
man: update faq
.\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . -.TH "ELEKTRA\-FAQ" "" "October 2017" "" "" +.TH "ELEKTRA\-FAQ" "" "December 2017" "" "" . .SH "Isn\'t it easier to implement a new parser than to use Elektra?" No, it is not\. And even if it were, the story does not end with implementing a configuration file parser but, at least, you also need: @@ -57,4 +57,4 @@ New BSD license \fI/LICENSE\.md\fR which allows us to have plugins link against List of authors \fI/doc/AUTHORS\.md\fR\. . .SH "How can I advertise Elektra?" -If questions about configuration come up, point users to https://www\.libelektra\.org Display the logos found at https://master\.libelektra\.org/doc/images (see logo\.png or the circle*\.svg)\. Distribute the flyer found at https://master\.libelektra\.org/doc/images/flyer\.odt And of course: talk about it! +If questions about configuration come up, point users to https://www\.libelektra\.org Display the SVG logos found at https://master\.libelektra\.org/doc/images/logo and already rastered logos at https://github\.com/ElektraInitiative/blobs/tree/master/images/logos Distribute the flyer found at https://github\.com/ElektraInitiative/blobs/raw/master/flyers/flyer\.odt And of course: talk about it!
TCPMv2: Remove storage for SOP'' discovery SOP'' cable plugs aren't required to respond to Discover Identity, so removing storage for the SOP'' response. BRANCH=None TEST=make -j buildall
@@ -366,7 +366,7 @@ enum pd_alternate_modes { /* Discover all SOP* communications when enabled */ #ifdef CONFIG_USB_PD_DECODE_SOP -#define DISCOVERY_TYPE_COUNT (TCPC_TX_SOP_PRIME_PRIME + 1) +#define DISCOVERY_TYPE_COUNT (TCPC_TX_SOP_PRIME + 1) #else #define DISCOVERY_TYPE_COUNT (TCPC_TX_SOP + 1) #endif
Minor fixes to BCM docs
@@ -333,7 +333,7 @@ As discussed in Section \ref{sec:extclass}, the user can compile \ccl with an ex \subsubsection{Impact of baryons} -\ccl incorporates the impact of baryons on the total matter power spectrum via the ``baryonic correction model'' of \citet{Schneider15}. The main consequences of baryonic processes are: to suppress the power spectrum at intermediate scales ($k\sim$ a few $h/$Mpc) due to the ejection of gas by Active Galactic Nuclei feedaback, and to enhance it at smaller scales due to enhanced cooling. Three effective parameters govern the contribution of baryonic processes to modifying the total matter power spectrum: +\ccl incorporates the impact of baryons on the total matter power spectrum via the ``baryonic correction model'' (BCM) of \citet{Schneider15}. The main consequences of baryonic processes are: to suppress the power spectrum at intermediate scales ($k\sim$ a few $h/$Mpc) due to the ejection of gas by Active Galactic Nuclei feedaback, and to enhance it at smaller scales due to enhanced cooling. Three effective parameters govern the contribution of baryonic processes to modifying the total matter power spectrum: \begin{itemize} \item $\log_{10} [M_c/($M$_\odot/h)]$: the mass of the clusters responsible for feedback, which regulates the amount of suppression of the matter power spectrum at intermediate scales; @@ -341,7 +341,7 @@ As discussed in Section \ref{sec:extclass}, the user can compile \ccl with an ex \item and $k_s$ [$h/$Mpc]: the wavenumber that determines the scale of the stellar profile. \end{itemize} -If these parameters are not specified, \ccl assumes the default paramters of \citet{Schneider15}. The user may pass these explicitly if desired. +If the BCM parameters are not specified and the user sets \ccl to compute the power spectrym with baryonic feedback included, \ccl will assume the default parameters of \citet{Schneider15}. The user may pass these explicitly if desired. \subsubsection{Spline parameters \& the INI file}
[numerics] remove cr in numerics_printf
@@ -386,7 +386,7 @@ void newton_LSA(unsigned n, double *z, double *F, int *info, void* data, SolverO SN_LOG_SCALAR(log_hdf5,SN_logh5_scalar_double(params->sigma * theta, "theta_iter_threshold", logger_s->group)); } - numerics_printf_verbose(2,"--- newton_LSA :: pure Newton direction not acceptable theta_iter = %g > %g = theta\n", theta_iter, theta); + numerics_printf_verbose(2,"--- newton_LSA :: pure Newton direction not acceptable theta_iter = %g > %g = theta", theta_iter, theta); // Computations for the line search // preRHS = <JacThetaF_merit, d>
lua: install lualib.h The include file defines the names and loading functions of Lua's default packages.
@@ -144,6 +144,7 @@ library includes: lua.h , luaconf.h , lauxlib.h + , lualib.h if flag(system-lua) || flag(pkg-config) if flag(pkg-config) pkgconfig-depends: lua5.3 @@ -154,6 +155,7 @@ library install-includes: lua.h , luaconf.h , lauxlib.h + , lualib.h c-sources: cbits/lua-5.3.6/lapi.c , cbits/lua-5.3.6/lcode.c , cbits/lua-5.3.6/lctype.c
Yajl: Add a clause to set value in top level key
@@ -133,7 +133,8 @@ static int elektraGenOpenValue (yajl_gen g, const Key * next) */ static void elektraGenValue (yajl_gen g, Key * parentKey, const Key * cur) { - if (!elektraGenOpenValue (g, cur)) + if (strcmp(keyName(parentKey), keyName(cur)) && + !elektraGenOpenValue (g, cur)) { ELEKTRA_LOG_DEBUG ("Do not yield value"); return; @@ -259,6 +260,14 @@ int elektraYajlSet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned, Key * par yajl_gen_config (g, yajl_gen_beautify, 1); #endif + if (ksGetSize (returned) == 1) { + elektraGenValue(g, parentKey, ksTail (returned)); + int ret = elektraGenWriteFile (g, parentKey); + yajl_gen_free (g); + return ret; + } + + if (elektraGenEmpty (g, returned, parentKey)) { int ret = elektraGenWriteFile (g, parentKey);
[numerics] gfc3d_admm: set mumps solver if WITH_MUMPS defined
@@ -608,11 +608,15 @@ void gfc3d_ADMM(GlobalFrictionContactProblem* restrict problem, double* restrict { NM_gesv_expert(W,v,NM_KEEP_FACTORS); } + else { - /* NM_gesv_expert(W,v,NM_KEEP_FACTORS); */ NSM_linear_solver_params* p = NSM_linearSolverParams(W); +#ifdef WITH_MUMPS + p->solver = NSM_MUMPS; +#else p->solver = NSM_CS_CHOLSOL; +#endif NM_posv_expert(W,v,NM_KEEP_FACTORS); }
build debug and secure versions on macOS in Azure pipelines
@@ -21,6 +21,9 @@ jobs: Release: BuildType: release cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Release + Secure: + BuildType: secure + cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Release -DMI_SECURE=ON steps: - task: CMake@1 inputs: @@ -73,19 +76,15 @@ jobs: CXX: clang++ BuildType: secure-clang cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Release -DMI_SECURE=ON - steps: - task: CMake@1 inputs: workingDirectory: $(BuildType) cmakeArgs: .. $(cmakeExtraArgs) - - script: make -j$(nproc) -C $(BuildType) displayName: Make - - script: make test -C $(BuildType) - displayName: Ctest - + displayName: CTest - upload: $(Build.SourcesDirectory)/$(BuildType) artifact: mimalloc-ubuntu-$(BuildType) @@ -94,11 +93,25 @@ jobs: pool: vmImage: macOS-10.14 + strategy: + matrix: + Debug: + BuildType: debug + cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Debug -DMI_DEBUG_FULL=ON + Release: + BuildType: release + cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Release + Secure: + BuildType: secure + cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Release -DMI_SECURE=ON steps: - task: CMake@1 inputs: - workingDirectory: 'build' - cmakeArgs: .. - - script: make -j$(sysctl -n hw.ncpu) -C build - - upload: $(Build.SourcesDirectory)/build - artifact: mimalloc-macos + workingDirectory: $(BuildType) + cmakeArgs: .. $(cmakeExtraArgs) + - script: make -j$(sysctl -n hw.ncpu) -C $(BuildType) + displayName: Make + - script: make test -C $(BuildType) + displayName: CTest + - upload: $(Build.SourcesDirectory)/$(BuildType) + artifact: mimalloc-macos-$(BuildType)
client session CHANGE cover new anydata types
@@ -398,6 +398,8 @@ getschema_module_clb(const char *mod_name, const char *mod_rev, const char *subm case LYD_ANYDATA_JSOND: case LYD_ANYDATA_SXML: case LYD_ANYDATA_SXMLD: + case LYD_ANYDATA_LYB: + case LYD_ANYDATA_LYBD: ERRINT; break; }
hslua: fix building of documented functions The result must be calculated exactly once.
@@ -163,8 +163,9 @@ returnResults bldr fnResults = DocumentedFunction pushString $ formatPeekError err Lua.error Right x -> do - forM_ fnResults $ \(FunctionResult push _) -> x >>= push - return $ NumResults (fromIntegral $ length fnResults) + result <- x + forM_ fnResults $ \(FunctionResult push _) -> push result + return $! NumResults (fromIntegral $ length fnResults) , functionDoc = Just $ FunctionDoc { functionDescription = ""
neon/rbit: add __builtin_bitreverse* fallbacks Clang has these builtins, GCC doesn't. They may be faster than bit twiddling depending on the target and whether the compiler recognizes the bit twiddling pattern as a bit reverse.
@@ -56,7 +56,11 @@ simde_vrbit_u8(simde_uint8x8_t a) { SIMDE_VECTORIZE for (size_t i = 0 ; i < (sizeof(r_.values) / sizeof(r_.values[0])) ; i++) { + #if HEDLEY_HAS_BUILTIN(__builtin_bitreverse8) && !defined(HEDLEY_IBM_VERSION) + r_.values[i] = __builtin_bitreverse8(a_.values[i]); + #else r_.values[i] = HEDLEY_STATIC_CAST(uint8_t, (((a_.values[i] * UINT64_C(0x80200802)) & UINT64_C(0x0884422110)) * UINT64_C(0x0101010101)) >> 32); + #endif } return simde_uint8x8_from_private(r_); @@ -116,7 +120,11 @@ simde_vrbitq_u8(simde_uint8x16_t a) { SIMDE_VECTORIZE for (size_t i = 0 ; i < (sizeof(r_.values) / sizeof(r_.values[0])) ; i++) { + #if HEDLEY_HAS_BUILTIN(__builtin_bitreverse8) && !defined(HEDLEY_IBM_VERSION) + r_.values[i] = __builtin_bitreverse8(a_.values[i]); + #else r_.values[i] = HEDLEY_STATIC_CAST(uint8_t, (((a_.values[i] * UINT64_C(0x80200802)) & UINT64_C(0x0884422110)) * UINT64_C(0x0101010101)) >> 32); + #endif } return simde_uint8x16_from_private(r_);
Fix error in pthread_condwait pthread_condwait should give mutex, take cond->sem, then take mutex
/**************************************************************************** * - * Copyright 2016 Samsung Electronics All Rights Reserved. + * Copyright 2016-2017 Samsung Electronics All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. /**************************************************************************** * kernel/pthread/pthread_condwait.c * - * Copyright (C) 2007-2009, 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009, 2012, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <[email protected]> * * Redistribution and use in source and binary forms, with or without #include <tinyara/cancelpt.h> #include "pthread/pthread.h" -/**************************************************************************** - * Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Type Declarations - ****************************************************************************/ - -/**************************************************************************** - * Global Variables - ****************************************************************************/ - -/**************************************************************************** - * Private Variables - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -138,7 +118,7 @@ int pthread_cond_wait(FAR pthread_cond_t *cond, FAR pthread_mutex_t *mutex) /* Take the semaphore */ - status = pthread_mutex_take(mutex, false); + status = pthread_takesemaphore((FAR sem_t *)&cond->sem, false); if (ret == OK) { /* Report the first failure that occurs */ @@ -156,7 +136,7 @@ int pthread_cond_wait(FAR pthread_cond_t *cond, FAR pthread_mutex_t *mutex) svdbg("Reacquire mutex...\n"); oldstate = pthread_disable_cancel(); - status = pthread_takesemaphore((FAR sem_t *)&mutex->sem, false); + status = pthread_mutex_take(mutex, false); pthread_enable_cancel(oldstate); if (ret == OK) {
xpath OPTIMIZE extend hashed child search
@@ -7633,6 +7633,7 @@ eval_name_test_try_compile_predicate_append(const struct lyxp_expr *exp, uint16_ uint32_t i; const struct lyd_node *siblings; struct lyd_node *ctx_node; + const struct lysc_node *sparent, *cur_scnode; struct lyxp_expr *val_exp = NULL; struct lyxp_set set2 = {0}; char quot; @@ -7641,8 +7642,9 @@ eval_name_test_try_compile_predicate_append(const struct lyxp_expr *exp, uint16_ LY_CHECK_GOTO(rc = lyxp_expr_dup(set->ctx, exp, tok_idx, end_tok_idx, &val_exp), cleanup); /* get its atoms */ - LY_CHECK_GOTO(rc = lyxp_atomize(set->ctx, val_exp, set->cur_mod, set->format, set->prefix_data, - set->cur_node ? set->cur_node->schema : NULL, ctx_scnode, &set2, LYXP_SCNODE), cleanup); + cur_scnode = set->cur_node ? set->cur_node->schema : NULL; + LY_CHECK_GOTO(rc = lyxp_atomize(set->ctx, val_exp, set->cur_mod, set->format, set->prefix_data, cur_scnode, + ctx_scnode, &set2, LYXP_SCNODE), cleanup); /* check whether we can compile a single predicate (evaluation result value is always the same) */ for (i = 0; i < set2.used; ++i) { @@ -7651,18 +7653,28 @@ eval_name_test_try_compile_predicate_append(const struct lyxp_expr *exp, uint16_ continue; } - /* 1) context node descendants are traversed - value dependents on the specific context node instance */ - if (set2.val.scnodes[i].scnode->parent == ctx_scnode) { + /* 1) context node descendants are traversed - do best-effort detection of the value dependency on the + * context node instance */ + if ((set2.val.scnodes[i].axis == LYXP_AXIS_CHILD) && (set2.val.scnodes[i].scnode->parent == ctx_scnode)) { + /* 1.1) context node child was accessed on the child axis, certain dependency */ rc = LY_ENOT; goto cleanup; } - - /* 2) multi-instance nodes (list or leaf-list) are traversed - all the instances need to be considered */ - if (set2.val.scnodes[i].scnode->nodetype & (LYS_LIST | LYS_LEAFLIST)) { + if ((set2.val.scnodes[i].axis == LYXP_AXIS_DESCENDANT) || (set2.val.scnodes[i].axis == LYXP_AXIS_DESCENDANT_OR_SELF)) { + for (sparent = set2.val.scnodes[i].scnode->parent; sparent && (sparent != ctx_scnode); sparent = sparent->parent) {} + if (sparent) { + /* 1.2) context node descendant was accessed on the descendant axis, probable dependency */ rc = LY_ENOT; goto cleanup; } + } + /* 2) multi-instance nodes (list or leaf-list) are traversed - all the instances need to be considered, + * but the current node can be safely ignored, it is always the same data instance */ + if ((set2.val.scnodes[i].scnode->nodetype & (LYS_LIST | LYS_LEAFLIST)) && (cur_scnode != set2.val.scnodes[i].scnode)) { + rc = LY_ENOT; + goto cleanup; + } } /* get any data instance of the context node, we checked it makes no difference */
stm32/adc: Fix ADC calibration scale for L4 MCUs, they use 3.0V.
#define ADC_FIRST_GPIO_CHANNEL (0) #define ADC_LAST_GPIO_CHANNEL (15) +#define ADC_SCALE_V (3.3f) #define ADC_CAL_ADDRESS (0x1ffff7ba) #define ADC_CAL1 ((uint16_t*)0x1ffff7b8) #define ADC_CAL2 ((uint16_t*)0x1ffff7c2) #define ADC_FIRST_GPIO_CHANNEL (0) #define ADC_LAST_GPIO_CHANNEL (15) +#define ADC_SCALE_V (3.3f) #define ADC_CAL_ADDRESS (0x1fff7a2a) #define ADC_CAL1 ((uint16_t*)(ADC_CAL_ADDRESS + 2)) #define ADC_CAL2 ((uint16_t*)(ADC_CAL_ADDRESS + 4)) #define ADC_FIRST_GPIO_CHANNEL (0) #define ADC_LAST_GPIO_CHANNEL (15) +#define ADC_SCALE_V (3.3f) #if defined(STM32F722xx) || defined(STM32F723xx) || \ defined(STM32F732xx) || defined(STM32F733xx) #define ADC_CAL_ADDRESS (0x1ff07a2a) #define ADC_FIRST_GPIO_CHANNEL (0) #define ADC_LAST_GPIO_CHANNEL (16) +#define ADC_SCALE_V (3.3f) #define ADC_CAL_ADDRESS (0x1FF1E860) #define ADC_CAL1 ((uint16_t*)(0x1FF1E820)) #define ADC_CAL2 ((uint16_t*)(0x1FF1E840)) #define ADC_FIRST_GPIO_CHANNEL (1) #define ADC_LAST_GPIO_CHANNEL (16) +#define ADC_SCALE_V (3.0f) #define ADC_CAL_ADDRESS (0x1fff75aa) #define ADC_CAL1 ((uint16_t*)(ADC_CAL_ADDRESS - 2)) #define ADC_CAL2 ((uint16_t*)(ADC_CAL_ADDRESS + 0x20)) #define CORE_TEMP_AVG_SLOPE (3) /* (2.5mv/3.3v)*(2^ADC resoultion) */ // scale and calibration values for VBAT and VREF -#define ADC_SCALE (3.3f / 4095) +#define ADC_SCALE (ADC_SCALE_V / 4095) #define VREFIN_CAL ((uint16_t *)ADC_CAL_ADDRESS) typedef struct _pyb_obj_adc_t { @@ -791,7 +796,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(adc_all_read_core_vref_obj, adc_all_read_core_v STATIC mp_obj_t adc_all_read_vref(mp_obj_t self_in) { pyb_adc_all_obj_t *self = MP_OBJ_TO_PTR(self_in); adc_read_core_vref(&self->handle); - return mp_obj_new_float(3.3 * adc_refcor); + return mp_obj_new_float(ADC_SCALE_V * adc_refcor); } STATIC MP_DEFINE_CONST_FUN_OBJ_1(adc_all_read_vref_obj, adc_all_read_vref); #endif
testcase/filesystem: Fix wrong usage of configs wrapper This path fixes the wrong usage of configs wrapper in fs procfs tc's.
#define PROC_SMARTFS_PATH "/proc/fs/smartfs" #define PROC_SMARTFS_FILE_PATH "/proc/fs/smartfs/file.txt" + /* Read all files in the directory */ static int read_dir_entries(const char *dirpath) { @@ -112,7 +113,7 @@ error: return ERROR; } -#if defined(CONFIG_FS_PROCFS) && !defined (CONFIG_FS_PROCFS_EXCLUDE_UPTIME) +#ifndef CONFIG_FS_PROCFS_EXCLUDE_UPTIME static int procfs_uptime_ops(char *dirpath) { int ret; @@ -148,7 +149,6 @@ static int procfs_uptime_ops(char *dirpath) } #endif -#if defined(CONFIG_FS_PROCFS) static int procfs_version_ops(char *dirpath) { int ret; @@ -182,7 +182,7 @@ static int procfs_version_ops(char *dirpath) return OK; } -#endif + static int procfs_rewind_tc(const char *dirpath) { int count; @@ -313,7 +313,7 @@ void tc_fs_procfs_main(void) ret = procfs_rewind_tc(PROC_MOUNTPOINT); TC_ASSERT_EQ("procfs_rewind_tc", ret, OK); -#if defined(CONFIG_FS_PROCFS) && !defined (CONFIG_FS_PROCFS_EXCLUDE_UPTIME) +#ifndef CONFIG_FS_PROCFS_EXCLUDE_UPTIME ret = procfs_uptime_ops(PROC_UPTIME_PATH); TC_ASSERT_EQ("procfs_uptime_ops", ret, OK); #endif @@ -324,7 +324,6 @@ void tc_fs_procfs_main(void) ret = stat(PROC_INVALID_PATH, &st); TC_ASSERT_EQ("stat", ret, ERROR); -#if defined(CONFIG_FS_PROCFS) ret = procfs_version_ops(PROC_UPTIME_PATH); TC_ASSERT_EQ("procfs_version_ops", ret, OK); #ifndef CONFIG_FS_PROCFS_EXCLUDE_SMARTFS
THUNDERX2T99: Fix bug in SNRM2
@@ -243,7 +243,7 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x) ptr = (double *)result; for (i = 0; i < nthreads; i++) { - nrm2_double = nrm2_double + (*ptr) * (*ptr); + nrm2_double = nrm2_double + (*ptr); ptr = (double *)(((char *)ptr) + sizeof(double) * 2); } }
Update changelog entry for new PSA PAKE feature
Features - * Expose the EC J-PAKE functionality through the PSA PAKE Crypto API. + * Expose the EC J-PAKE functionality through the Draft PSA PAKE Crypto API. + Only the ECC primitive with secp256r1 curve and SHA-256 hash algorithm + are supported in this implementation.
tshell is the default value of FINSH_THREAD_NAME
@@ -1247,7 +1247,7 @@ static rt_err_t rt_serial_control(struct rt_device *dev, struct winsize* p_winsize; p_winsize = (struct winsize*)args; - if(rt_thread_self() != rt_thread_find("tshell")) + if(rt_thread_self() != rt_thread_find(FINSH_THREAD_NAME)) { /* only can be used in tshell thread; otherwise, return default size */ p_winsize->ws_col = 80;