message
stringlengths
6
474
diff
stringlengths
8
5.22k
interface: fix reactivity in SidebarList Fixes urbit/landscape#1262
import React, { ReactElement, useCallback } from 'react'; -import { Associations, Graph } from '@urbit/api'; +import { Associations, Graph, Unreads } from '@urbit/api'; import { patp, patp2dec } from 'urbit-ob'; import _ from 'lodash'; @@ -13,9 +13,8 @@ import useMetadataState from '~/logic/state/metadata'; import { useHistory } from 'react-router'; import { useShortcut } from '~/logic/state/settings'; -function sidebarSort(pending: Set<string>): Record<SidebarSort, (a: string, b: string) => number> { +function sidebarSort(unreads: Unreads, pending: Set<string>): Record<SidebarSort, (a: string, b: string) => number> { const { associations } = useMetadataState.getState(); - const { unreads } = useHarkState.getState(); const alphabetical = (a: string, b: string) => { const aAssoc = associations[a]; const bAssoc = associations[b]; @@ -102,9 +101,10 @@ export function SidebarList(props: { const inbox = useInbox(); const graphKeys = useGraphState(s => s.graphKeys); const pending = useGraphState(s => s.pendingDms); + const unreads = useHarkState(s => s.unreads); const ordered = getItems(associations, workspace, inbox, pending) - .sort(sidebarSort(pending)[config.sortBy]); + .sort(sidebarSort(unreads, pending)[config.sortBy]); const history = useHistory();
Fix 0RTT and HRR
@@ -6223,7 +6223,13 @@ int ngtcp2_conn_submit_crypto_data(ngtcp2_conn *conn, const uint8_t *data, pkt_type = 0; /* Short packet */ } else if (hs_pktns->tx_ckm) { pkt_type = NGTCP2_PKT_HANDSHAKE; - } else if (!conn->server && conn->early_ckm) { + } else if (!conn->server && conn->early_ckm && datalen == 4) { + /* TODO datalen == 4 is quite hackish. When client sends Initial + along with 0RTT, and server sends back HRR, without this + condition client sends CH in 0RTT packet. For TLSv1.3, the + only data submitted by this function for 0RTT is EOED which is + just 4 bytes long. If the given data is not 4 bytes, assume + that it is CH in response to HRR. */ pkt_type = NGTCP2_PKT_0RTT_PROTECTED; } else { assert(in_pktns->tx_ckm);
Add the auto generated der files to .gitignore
# Auto generated doc files doc/man1/openssl-*.pod +# Auto generated der files +providers/common/der/der_dsa.c +providers/common/der/der_ec.c +providers/common/der/der_rsa.c +providers/common/include/prov/der_dsa.h +providers/common/include/prov/der_ec.h +providers/common/include/prov/der_rsa.h + # error code files /crypto/err/openssl.txt.old /engines/e_afalg.txt.old
Update header guards icmpv6echo.h
-#ifndef __ICMPv6ECHO_H -#define __ICMPv6ECHO_H +#ifndef OPENWSN_ICMPv6ECHO_H +#define OPENWSN_ICMPv6ECHO_H /** \addtogroup IPv6 @@ -37,4 +37,4 @@ void icmpv6echo_setIsReplyEnabled(bool isEnabled); \} */ -#endif +#endif /* OPENWSN_ICMPV6ECHO_H */
Add system-config-changed event to unit tests.
@@ -1207,7 +1207,7 @@ run_tests(_pappl_testdata_t *testdata) // I - Testing data // papplSystemSetEventCallback testBegin("api: papplSystemSetEventCallback"); - if (event_count > 0 && event_mask == (PAPPL_EVENT_PRINTER_CREATED | PAPPL_EVENT_PRINTER_DELETED | PAPPL_EVENT_PRINTER_STATE_CHANGED | PAPPL_EVENT_JOB_COMPLETED | PAPPL_EVENT_JOB_CREATED | PAPPL_EVENT_JOB_PROGRESS | PAPPL_EVENT_JOB_STATE_CHANGED)) + if (event_count > 0 && event_mask == (PAPPL_EVENT_SYSTEM_CONFIG_CHANGED | PAPPL_EVENT_PRINTER_CREATED | PAPPL_EVENT_PRINTER_DELETED | PAPPL_EVENT_PRINTER_STATE_CHANGED | PAPPL_EVENT_JOB_COMPLETED | PAPPL_EVENT_JOB_CREATED | PAPPL_EVENT_JOB_PROGRESS | PAPPL_EVENT_JOB_STATE_CHANGED)) { testEndMessage(true, "count=%lu", (unsigned long)event_count); }
nimble/ll: Make sure to ACK Terminate IND with empty packet
@@ -839,7 +839,7 @@ ble_ll_conn_tx_data_pdu(struct ble_ll_conn_sm *connsm) uint32_t ticks; struct os_mbuf *m; struct ble_mbuf_hdr *ble_hdr; - struct os_mbuf_pkthdr *pkthdr; + struct os_mbuf_pkthdr *pkthdr = NULL; struct os_mbuf_pkthdr *nextpkthdr; struct ble_ll_empty_pdu empty_pdu; ble_phy_tx_end_func txend_func; @@ -851,6 +851,14 @@ ble_ll_conn_tx_data_pdu(struct ble_ll_conn_sm *connsm) md = 0; hdr_byte = BLE_LL_LLID_DATA_FRAG; + if (connsm->csmflags.cfbit.terminate_ind_rxd) { + /* We just received terminate indication. + * Just sent empty packet as an ACK + */ + CONN_F_EMPTY_PDU_TXD(connsm) = 1; + goto conn_tx_pdu; + } + /* * We need to check if we are retrying a pdu or if there is a pdu on * the transmit queue.
Send Transforms to Shaders;
#include "lovr/types/shader.h" +#include "math/transform.h" const luaL_Reg lovrShader[] = { { "send", l_lovrShaderSend }, @@ -141,12 +142,17 @@ int l_lovrShaderSend(lua_State* L) { break; case GL_FLOAT_MAT4: + if (lua_isuserdata(L, 3)) { + Transform* transform = luax_checktype(L, 3, Transform); + memcpy(data, transform->matrix, 16 * sizeof(float)); + } else { luaL_checktype(L, 3, LUA_TTABLE); for (int i = 0; i < 16; i++) { lua_rawgeti(L, 3, i + 1); data[i] = lua_tonumber(L, -1); lua_pop(L, 1); } + } lovrShaderSendFloatMat4(shader, id, data); break;
Streamlining Kconfig
# ############################################################################### -menu "SNAP Paths" - config SNAP_ROOT_ENV - string - option env="SNAP_ROOT" - prompt "SNAP ROOT" - - config ACTION_ROOT_ENV - string - option env="ACTION_ROOT" - prompt "ACTION ROOT" - - config PSL_DCP_ENV - string - option env="PSL_DCP" - prompt "PSL DCP" -endmenu - -config SNAP_ROOT - string - default $SNAP_ROOT_ENV - -config ACTION_ROOT - string - default $ACTION_ROOT_ENV - -config PSL_DCP - string - default $PSL_DCP_ENV - - -menu "FPGA Setup" choice bool "Card Type" default FGT @@ -85,12 +54,15 @@ menu "FPGA Setup" config HLS_INTERSECT bool "HLS Intersect" + select ENABLE_SDRAM config HLS_MEMCOPY bool "HLS Memcopy" + select ENABLE_SDRAM config HLS_SEARCH bool "HLS Search" + select ENABLE_SDRAM config HLS_SPONGE bool "HLS Sponge" @@ -133,7 +105,6 @@ menu "FPGA Setup" string default "TRUE" if ENABLE_FACTORY default "FALSE" if ! ENABLE_FACTORY -endmenu choice @@ -142,37 +113,13 @@ choice config SIM_XSIM bool "xsim" + depends on ! ENABLE_NVME config SIM_IRUN bool "irun" - - config SIM_NCSIM - bool "ncsim" endchoice config SIMULATOR string default "xsim" if SIM_XSIM default "irun" if SIM_IRUN - default "ncsim" if SIM_NCSIM - - -menu "Vivado Setup" - config XILINX_VIVADO_ENV - string - option env="XILINX_VIVADO" - prompt "XILINX_VIVADO" - - config XILINXD_LICENSE_FILE_ENV - string - option env="XILINXD_LICENSE_FILE" - prompt "XILINXD_LICENSE_FILE" -endmenu - -config XILINX_VIVADO - string - default $XILINX_VIVADO_ENV - -config XILINXD_LICENSE_FILE - string - default $XILINXD_LICENSE_FILE_ENV
driver: kionix: Add check for either KXCJ9 or KX022 For the accel_kionix.c module to work, either the KXCJ9 or KX022 configs must be defined. BRANCH=none TEST=make buildall
/* Number of times to attempt to enable sensor before giving up. */ #define SENSOR_ENABLE_ATTEMPTS 3 +#if !defined(CONFIG_ACCEL_KXCJ9) && !defined(CONFIG_ACCEL_KX022) +#error "Must use either KXCJ9 or KX022" +#endif + #if defined(CONFIG_ACCEL_KXCJ9) && !defined(CONFIG_ACCEL_KX022) #define V(s_) 1 #elif defined(CONFIG_ACCEL_KX022) && !defined(CONFIG_ACCEL_KXCJ9)
Add Conan secret. This should now work for uploading Conan packages.
@@ -26,6 +26,7 @@ jobs: python -m pip install conan_package_tools - name: Build and test Conan package env: + CONAN_PASSWORD: ${{secrets.CONAN_PASSWORD}} CONAN_ARCHS: ${{matrix.CONAN_ARCHS}} CONAN_BUILD_TYPES: ${{matrix.CONAN_BUILD_TYPES}} CONAN_GCC_VERSIONS: ${{matrix.CONAN_GCC_VERSIONS}} @@ -67,6 +68,7 @@ jobs: echo "CXX=$(brew --prefix llvm)/bin/clang++" >> $GITHUB_ENV - name: Build and test Conan package env: + CONAN_PASSWORD: ${{secrets.CONAN_PASSWORD}} CONAN_ARCHS: ${{matrix.CONAN_ARCHS}} CONAN_BUILD_TYPES: ${{matrix.CONAN_BUILD_TYPES}} CONAN_APPLE_CLANG_VERSIONS: ${{matrix.CONAN_APPLE_CLANG_VERSIONS}}
Fix issue with corrupted UI when drawing frame outside of mode 0 or 1
@@ -134,32 +134,29 @@ void UIUpdate_b() { } void UIDrawFrame_b(UBYTE x, UBYTE y, UBYTE width, UBYTE height) { + UINT16 id = 0; UBYTE i, j; UBYTE k = 1; - WaitForMode0Or1(); - - LOG("UIDrawFrame_b\n"); + id = 0x9C00; // Window VRAM - set_win_tiles(x, y, 1, 1, ui_frame_tl_tiles); - set_win_tiles(x, height + 1, 1, 1, ui_frame_bl_tiles); - set_win_tiles(x + width, 0, 1, 1, ui_frame_tr_tiles); - set_win_tiles(x + width, height + 1, 1, 1, ui_frame_br_tiles); + SetTile(id, *ui_frame_tl_tiles); // Frame top left + SetTile(id + ((height + 1) * 32), *ui_frame_bl_tiles); // Frame bottom left + SetTile(id + width, *ui_frame_tr_tiles); // Frame top right + SetTile(id + ((height + 1) * 32) + width, *ui_frame_br_tiles); // Frame bottom right for (j = 1; j != height + 1; j++) { - WaitForMode0Or1(); - set_win_tiles(x, j, 1, 1, ui_frame_l_tiles); - set_win_tiles(x + width, j, 1, 1, ui_frame_r_tiles); + SetTile(id + (j * 32), *ui_frame_l_tiles); // Frame left + SetTile(id + (j * 32) + width, *ui_frame_r_tiles); // Frame right + for (i = 1; i != width; ++i) { - WaitForMode0Or1(); - set_win_tiles(i, j, 1, 1, ui_frame_bg_tiles); + SetTile(id + (j * 32) + i, *ui_frame_bg_tiles); // Frame background } } for (i = 1; i != width; ++i) { - WaitForMode0Or1(); - set_win_tiles(i, 0, 1, 1, ui_frame_t_tiles); - set_win_tiles(i, height + 1, 1, 1, ui_frame_b_tiles); + SetTile(id + i, *ui_frame_t_tiles); // Frame top + SetTile(id + ((height + 1) * 32) + i, *ui_frame_b_tiles); // Frame bottom } }
Fix process memory iteration in Windows. PR wasn't correct. VirtualQueryEx doesn't update the last error code on success, so GetLastError can return arbitrary and unrelated error codes. This commit is a simplified variant of PR
@@ -153,7 +153,9 @@ YR_API YR_MEMORY_BLOCK* yr_process_get_next_memory_block( while (address < proc_info->si.lpMaximumApplicationAddress && VirtualQueryEx(proc_info->hProcess, address, &mbi, sizeof(mbi)) != 0) { - if (GetLastError() != ERROR_SUCCESS) + // mbi.RegionSize can overflow address while scanning a 64-bit process + // with a 32-bit YARA. + if ((uint8_t*) address + mbi.RegionSize <= address) break; if (mbi.State == MEM_COMMIT && ((mbi.Protect & PAGE_NOACCESS) == 0))
Control plane recompiles upon change to code
@@ -9,16 +9,16 @@ endif all: dpdk_portfwd_controller dpdk_l2fwd_controller dpdk_l3fwd_controller dpdk_smgw_controller -dpdk_portfwd_controller: +dpdk_portfwd_controller: handlers.c controller.c messages.c sock_helpers.c threadpool.c fifo.c dpdk_portfwd_controller.c $(CC) $(CFLAGS) $(LIB) handlers.c controller.c messages.c sock_helpers.c threadpool.c fifo.c dpdk_portfwd_controller.c -o dpdk_portfwd_controller -dpdk_l2fwd_controller: +dpdk_l2fwd_controller: handlers.c controller.c messages.c sock_helpers.c threadpool.c fifo.c dpdk_l2fwd_controller.c $(CC) $(CFLAGS) $(LIB) handlers.c controller.c messages.c sock_helpers.c threadpool.c fifo.c dpdk_l2fwd_controller.c -o dpdk_l2fwd_controller -dpdk_l3fwd_controller: +dpdk_l3fwd_controller: handlers.c controller.c messages.c sock_helpers.c threadpool.c fifo.c dpdk_l3fwd_controller.c $(CC) $(CFLAGS) $(LIB) handlers.c controller.c messages.c sock_helpers.c threadpool.c fifo.c dpdk_l3fwd_controller.c -o dpdk_l3fwd_controller -dpdk_smgw_controller: +dpdk_smgw_controller: handlers.c controller.c messages.c sock_helpers.c threadpool.c fifo.c dpdk_smgw_controller.c $(CC) $(CFLAGS) $(LIB) handlers.c controller.c messages.c sock_helpers.c threadpool.c fifo.c dpdk_smgw_controller.c -o dpdk_smgw_controller clean:
Fix not following cleared RD flags potentially enables amplification DDoS attacks, reported by Xiang Li and Wei Xu from NISL Lab, Tsinghua University. The fix stops query loops, by refusing to send RD=0 queries to a forwarder, they still get answered from cache.
@@ -1451,6 +1451,19 @@ processInitRequest(struct module_qstate* qstate, struct iter_qstate* iq, errinf(qstate, "malloc failure for forward zone"); return error_response(qstate, id, LDNS_RCODE_SERVFAIL); } + if((qstate->query_flags&BIT_RD)==0) { + /* If the server accepts RD=0 queries and forwards + * with RD=1, then if the server is listed as an NS + * entry, it starts query loops. Stop that loop by + * disallowing the query. The RD=0 was previously used + * to check the cache with allow_snoop. For stubs, + * the iterator pass would have primed the stub and + * then cached information can be used for further + * queries. */ + verbose(VERB_ALGO, "cannot forward RD=0 query, to stop query loops"); + errinf(qstate, "cannot forward RD=0 query"); + return error_response(qstate, id, LDNS_RCODE_SERVFAIL); + } iq->refetch_glue = 0; iq->minimisation_state = DONOT_MINIMISE_STATE; /* the request has been forwarded.
sys/config: Remove obsolete setting CONFIG_NEWTMGR This setting is no longer used. It was replaced by CONFIG_MGMT a while back.
@@ -41,10 +41,6 @@ syscfg.defs: description: 'SMP access to config' value: 0 - CONFIG_NEWTMGR: - description: 'Newtmgr access to config' - value: 0 - CONFIG_CLI: description: 'CLI commands for accessing config' value: 0
VERSION bump to version 2.0.265
@@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) # set version of the project set(LIBYANG_MAJOR_VERSION 2) set(LIBYANG_MINOR_VERSION 0) -set(LIBYANG_MICRO_VERSION 264) +set(LIBYANG_MICRO_VERSION 265) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}) # set version of the library set(LIBYANG_MAJOR_SOVERSION 2)
zuse: fix comment parsing in de-xml:html
(ifix [gal ban] ;~(plug name attr)) :: :: ++many:de-xml:html ++ many :: contents - (more (star comt) ;~(pose apex chrd cdat)) + ;~(pfix (star comt) (star ;~(sfix ;~(pose apex chrd cdat) (star comt)))) :: :: ++name:de-xml:html ++ name :: tag name =+ ^= chx
Hide `which` warning when `fd` isn't installed On some systems, if `fd` isn't installed, this call to `which` will result in a message like "which: no fd in <your PATH printed here>". This hides that warning message.
@@ -65,7 +65,7 @@ include $(base_dir)/tools/torture.mk ######################################################################################### # Returns a list of files in directory $1 with file extension $2. # If available, use 'fd' to find the list of files, which is faster than 'find'. -ifeq ($(shell which fd),) +ifeq ($(shell which fd 2> /dev/null),) lookup_srcs = $(shell find -L $(1)/ -name target -prune -o -iname "*.$(2)" -print 2> /dev/null) else lookup_srcs = $(shell fd -L ".*\.$(2)" $(1))
Updated kexts list
@@ -30,6 +30,7 @@ KEXT_PRECEDENCE mKextPrecedence[] = { { "AirportBrcmFixup.kext", "Lilu.kext" }, { "BrightnessKeys.kext", "Lilu.kext" }, { "CpuTscSync.kext", "Lilu.kext" }, + { "CpuTopologySync.kext", "Lilu.kext" }, { "CPUFriend.kext", "Lilu.kext" }, { "CPUFriendDataProvider.kext", "CPUFriend.kext" }, { "DebugEnhancer.kext", "Lilu.kext" }, @@ -68,6 +69,7 @@ KEXT_INFO mKextInfo[] = { { "AirportBrcmFixup.kext/Contents/PlugIns/AirPortBrcmNIC_Injector.kext", "", "Contents/Info.plist" }, { "BrightnessKeys.kext", "Contents/MacOS/BrightnessKeys", "Contents/Info.plist" }, { "CpuTscSync.kext", "Contents/MacOS/CpuTscSync", "Contents/Info.plist" }, + { "CpuTopologySync.kext", "Contents/MacOS/CpuTopologySync", "Contents/Info.plist" }, { "CPUFriend.kext", "Contents/MacOS/CPUFriend", "Contents/Info.plist" }, { "CPUFriendDataProvider.kext", "", "Contents/Info.plist" }, { "DebugEnhancer.kext", "Contents/MacOS/DebugEnhancer", "Contents/Info.plist" },
Fix: Remove redundant cut with hybrid fusion
@@ -1852,7 +1852,7 @@ bool colour_scc_cluster (int scc_id, int *colour, bool hybrid_cut = options->hybridcut && sccs[scc_id].has_parallel_hyperplane; /* If the SCC has a parallel hyperplane and the fusion strategy is hybrid, * then look max_fuse instead of greedy typed fuse heuristic */ - if ((options->fuse == TYPED_FUSE || options->hybridcut) && + if (options->fuse == TYPED_FUSE && sccs[scc_id].is_parallel && !hybrid_cut ) { if (colour_scc_cluster_greedy(scc_id, colour, current_colour, prog)) { sccs[scc_id].has_parallel_hyperplane = true; @@ -1897,9 +1897,11 @@ bool colour_scc_cluster (int scc_id, int *colour, /* Check if there is an adjecent vertex with the same colour. * In case of typed fuse it checks if there is an adjecent vertex * with the same colour and has a parallelism preventing edge */ + hybrid_cut = options->hybridcut && sccs[scc_id].has_parallel_hyperplane; if (is_valid_colour(v, current_colour, fcg, colour, check_parallel)) { - if (options->fuse == TYPED_FUSE && sccs[scc_id].is_parallel && + if (!hybrid_cut && options->fuse == TYPED_FUSE && sccs[scc_id].is_parallel && is_colour_par_preventing(v, colour, current_colour)) { + IF_DEBUG(printf("Cannot colour dimension %d of SCC %d\n", i, scc_id);); continue; } colour[v] = current_colour;
Remove xmake dephash (redundancy)
@@ -105,14 +105,3 @@ option("installpath") set_default("installpath") set_showmenu(true) set_description("Set the path to install cyber_engine_tweaks.asi to.", "e.g.", format("\t-xmake f --installpath=%s", [["C:\Program Files (x86)\Steam\steamapps\common\Cyberpunk 2077\bin\x64\plugins"]])) - -task("dephash") - on_run(function() - import("utils.ci") - ci.packageskey() - end) - - set_menu { - usage = "xmake dephash", - description = "Outputs a hash key of current dependencies version/configuration" - }
doc: tutorials by fix manually merged this quite old PR
@@ -160,7 +160,7 @@ sudo kdb mount /.git/config dir/git ini multiline=0 As git uses the `ini` format for its configuration we use the [ini plugin](/src/plugins/ini/README.md). You can pass parameters to plugins during the mount process. This is what -we did with `multiline=0`. Git intends the entries in its configuration +we did with `multiline=0`. Git intents the entries in its configuration files and the default behaviour of the `ini` plugin is to interpret these indented entries as values that span multiple lines. The passed parameter disables this behaviour and makes the ini-plugin compatible with git configuration. @@ -186,7 +186,7 @@ git config --get user.email #### Meta Data Elektra is able to store [metadata](/doc/help/elektra-metadata.md) of keys, provided the format of the file that holds the configuration supports this feature. -The ini plugin doesn't support this feature, but the [ni](/src/plugins/ni/README.md) and the [dump](/src/plugins/dump/README.md) plugin do. +The ini plugin does support this feature, and so does the [ni](/src/plugins/ni/README.md) and the [dump](/src/plugins/dump/README.md) plugin among others. > Actually the ini plugin creates some metadata on its own. This metadata contains information about the ordering of keys or comments, if a key has some. > But unlike the ni and the dump plugin we can't store arbitrary metadata with the ini plugin.
Add install instructions for Debian
* [Kernel Configuration](#kernel-configuration) * [Packages](#packages) + - [Debian](#debian--binary) - [Ubuntu](#ubuntu---binary) - [Fedora](#fedora---binary) - [Arch](#arch---binary) @@ -58,6 +59,10 @@ Kernel compile flags can usually be checked by looking at `/proc/config.gz` or # Packages +## Debian - Binary + +`bcc` and its tools are available in the standard Debian main repository, from the source package [bpfcc](https://packages.debian.org/source/sid/bpfcc) under the names `bpfcc-tools`, `python-bpfcc`, `libbpfcc` and `libbpfcc-dev`. + ## Ubuntu - Binary Versions of bcc are available in the standard Ubuntu
Adds numpy as dependency
@@ -8,7 +8,7 @@ compiler: # Installs system level dependencies before_install: - sudo apt-get update -qq - - sudo apt-get install -qq fftw3 fftw3-dev pkg-config cmake libgsl0-dev swig + - sudo apt-get install -qq fftw3 fftw3-dev pkg-config cmake libgsl0-dev swig python-numpy install: true
fix(Makefile): only consider outdated files when generating the lib file
@@ -108,14 +108,16 @@ reddit: $(LIBREDDIT) slack: $(LIBSLACK) # API libraries compilation -$(LIBDISCORD): $(DISCORD_OBJS) $(OBJS) | $(LIBDIR) - $(AR) -cqsv $@ $? $(CEEUTILS_OBJS) $(DISCORD_SPECS) -$(LIBGITHUB): $(GITHUB_OBJS) $(OBJS) | $(LIBDIR) - $(AR) -cqsv $@ $? $(CEEUTILS_OBJS) $(GITHUB_SPECS) -$(LIBREDDIT): $(REDDIT_OBJS) $(OBJS) | $(LIBDIR) - $(AR) -cqsv $@ $? $(CEEUTILS_OBJS) $(REDDIT_SPECS) -$(LIBSLACK): $(SLACK_OBJS) $(OBJS) | $(LIBDIR) - $(AR) -cqsv $@ $? $(CEEUTILS_OBJS) $(SLACK_SPECS) +$(LIBDISCORD): $(DISCORD_OBJS) $(OBJS) $(CEEUTILS_OBJS) $(DISCORD_SPECS) | $(LIBDIR) + $(AR) -cqsv $@ $? +$(LIBGITHUB): $(GITHUB_OBJS) $(OBJS) $(CEEUTILS_OBJS) $(GITHUB_SPECS) | $(LIBDIR) + $(AR) -cqsv $@ $? +$(LIBREDDIT): $(REDDIT_OBJS) $(OBJS) $(CEEUTILS_OBJS) $(REDDIT_SPECS) | $(LIBDIR) + $(AR) -cqsv $@ $? +$(LIBSLACK): $(SLACK_OBJS) $(OBJS) $(CEEUTILS_OBJS) $(SLACK_SPECS) | $(LIBDIR) + $(AR) -cqsv $@ $? + +$(CEEUTILS_OBJS): ; $(LIBDIR): @ mkdir -p $(LIBDIR)
stm32/sdcard: Only define IRQ handler if using SDMMC1 peripheral. So that the IRQ can be used by other peripheral drivers if needed.
@@ -227,11 +227,13 @@ uint64_t sdcard_get_capacity_in_bytes(void) { return (uint64_t)cardinfo.LogBlockNbr * (uint64_t)cardinfo.LogBlockSize; } +#if !defined(MICROPY_HW_SDMMC2_CK) void SDIO_IRQHandler(void) { IRQ_ENTER(SDIO_IRQn); HAL_SD_IRQHandler(&sd_handle); IRQ_EXIT(SDIO_IRQn); } +#endif #if defined(MCU_SERIES_F7) void SDMMC2_IRQHandler(void) {
ikev2: add retry logic for session initiation Type: improvement
@@ -3742,6 +3742,31 @@ ikev2_mngr_process_ipsec_sa (ipsec_sa_t * ipsec_sa) } } +static void +ikev2_process_pending_sa_init (ikev2_main_t * km) +{ + u32 sai; + u64 ispi; + ikev2_sa_t *sa; + + /* *INDENT-OFF* */ + hash_foreach (ispi, sai, km->sa_by_ispi, + ({ + sa = pool_elt_at_index (km->sais, sai); + u32 bi0; + if (vlib_buffer_alloc (km->vlib_main, &bi0, 1) != 1) + return; + + vlib_buffer_t * b = vlib_get_buffer (km->vlib_main, bi0); + clib_memcpy_fast (vlib_buffer_get_current (b), + sa->last_sa_init_req_packet_data, + vec_len (sa->last_sa_init_req_packet_data)); + ikev2_send_ike (km->vlib_main, &sa->iaddr, &sa->raddr, bi0, + vec_len (sa->last_sa_init_req_packet_data)); + })); + /* *INDENT-ON* */ +} + static vlib_node_registration_t ikev2_mngr_process_node; static uword @@ -3790,6 +3815,8 @@ ikev2_mngr_process_fn (vlib_main_t * vm, vlib_node_runtime_t * rt, })); /* *INDENT-ON* */ + ikev2_process_pending_sa_init (km); + if (req_sent) { vlib_process_wait_for_event_or_clock (vm, 5);
docs: add application example for esp-now
@@ -81,6 +81,13 @@ Receiving ESP-NOW Data Call ``esp_now_register_recv_cb`` to register receiving callback function. Call the receiving callback function when receiving ESP-NOW. The receiving callback function also runs from the Wi-Fi task. So, do not do lengthy operations in the callback function. Instead, post the necessary data to a queue and handle it from a lower priority task. +Application Examples +-------------------- + +* Example of sending and receiving ESP-NOW data between two devices: :example:`wifi/espnow`. + +* For more application examples of how to use ESP-NOW, please visit `ESP-NOW <https://github.com/espressif/esp-now>`_ repository. + API Reference -------------
Split combined triplet_count into two distinct flags
@@ -3496,7 +3496,8 @@ namespace_teardown(void) provided as the userData argument; the first is the expected element name, and the second is the expected attribute name. */ -static int triplet_count = 0; +static int triplet_start_flag = XML_FALSE; +static int triplet_end_flag = XML_FALSE; static void XMLCALL triplet_start_checker(void *userData, const XML_Char *name, @@ -3512,7 +3513,7 @@ triplet_start_checker(void *userData, const XML_Char *name, sprintf(buffer, "unexpected attribute string: '%s'", atts[0]); fail(buffer); } - triplet_count++; + triplet_start_flag = XML_TRUE; } /* Check that the element name passed to the end-element handler matches @@ -3528,7 +3529,7 @@ triplet_end_checker(void *userData, const XML_Char *name) sprintf(buffer, "unexpected end string: '%s'", name); fail(buffer); } - triplet_count++; + triplet_end_flag = XML_TRUE; } START_TEST(test_return_ns_triplet) @@ -3548,18 +3549,19 @@ START_TEST(test_return_ns_triplet) XML_SetNamespaceDeclHandler(parser, dummy_start_namespace_decl_handler, dummy_end_namespace_decl_handler); - triplet_count = 0; + triplet_start_flag = XML_FALSE; + triplet_end_flag = XML_FALSE; if (_XML_Parse_SINGLE_BYTES(parser, text, strlen(text), XML_FALSE) == XML_STATUS_ERROR) xml_failure(parser); - if (triplet_count != 1) + if (!triplet_start_flag) fail("triplet_start_checker not invoked"); /* Check that unsetting "return triplets" fails while still parsing */ XML_SetReturnNSTriplet(parser, XML_FALSE); if (_XML_Parse_SINGLE_BYTES(parser, epilog, strlen(epilog), XML_TRUE) == XML_STATUS_ERROR) xml_failure(parser); - if (triplet_count != 2) + if (!triplet_end_flag) fail("triplet_end_checker not invoked"); } END_TEST
mangoapp: don't use fsr if msg doesn't contain fsr
@@ -33,8 +33,8 @@ bool mangoapp_paused = false; std::mutex mangoapp_m; std::condition_variable mangoapp_cv; static uint8_t raw_msg[1024] = {0}; -uint8_t g_fsrUpscale; -uint8_t g_fsrSharpness; +uint8_t g_fsrUpscale = 0; +uint8_t g_fsrSharpness = 0; void ctrl_thread(){ while (1){ @@ -89,8 +89,10 @@ void msg_read_thread(){ if (hdr->version == 1){ if (msg_size > offsetof(struct mangoapp_msg_v1, frametime_ns)){ update_hud_info_with_frametime(sw_stats, *params, vendorID, mangoapp_v1->frametime_ns); + if (msg_size > offsetof(mangoapp_msg_v1, fsrUpscale)){ g_fsrUpscale = mangoapp_v1->fsrUpscale; g_fsrSharpness = mangoapp_v1->fsrSharpness; + } { std::unique_lock<std::mutex> lk(mangoapp_m); new_frame = true;
Fix default font bug;
@@ -241,9 +241,12 @@ void lovrGraphicsSetDepthTest(CompareMode depthTest) { } Font* lovrGraphicsGetFont() { - if (!state.font && !state.defaultFont) { + if (!state.font) { + if (!state.defaultFont) { FontData* fontData = lovrFontDataCreate(NULL, 32); state.defaultFont = lovrFontCreate(fontData); + } + lovrGraphicsSetFont(state.defaultFont); }
doc: correct 'gvtg' parameters for acrn-dm Correct the GVT-g parameters description in the 'ACRN Device Model parameters' document. The order was the wrong way around.
@@ -55,13 +55,13 @@ Here are descriptions for each of these ``acrn-dm`` command line parameters: - ACRN implements GVT-g for graphics virtualization (aka AcrnGT). This option allows you to set some of its parameters. - GVT_args format: ``gvt_high_gm_sz gvt_low_gm_sz gvt_fence_sz`` + GVT_args format: ``low_gm_sz high_gm_sz fence_sz`` Where: - - ``gvt_high_gm_sz``: GVT-g aperture size, unit is MB - - ``gvt_low_gm_sz``: GVT-g hidden gfx memory size, unit is MB - - ``gvt_fence_sz``: the number of fence registers + - ``low_gm_sz``: GVT-g aperture size, unit is MB + - ``high_gm_sz``: GVT-g hidden gfx memory size, unit is MB + - ``fence_sz``: the number of fence registers Example::
sim_jtag: don't shift in new instruction if it hasn't changed This is something a JTAG host might do, so this adds coverage of a common use case. It specifically checks: There are no dependencies on side effects of UPDATE_IR state Shifting data values is non-destructive to the current instruction.
@@ -55,8 +55,10 @@ module sim_jtag localparam CLOCK_DIVISOR = 7; int control_port_open; + bit[31:0] next_instruction_length; bit[31:0] instruction_length; bit[MAX_INSTRUCTION_LEN - 1:0] instruction; + bit[MAX_INSTRUCTION_LEN - 1:0] next_instruction; bit[31:0] data_length; bit[MAX_DATA_LEN - 1:0] data; bit[MAX_INSTRUCTION_LEN - 1:0] instruction_shift; @@ -81,6 +83,8 @@ module sim_jtag control_port_open = open_jtag_socket(32'(jtag_port)); else control_port_open = 0; + + instruction_length = 0; end always @(posedge clk, posedge reset) @@ -127,12 +131,26 @@ module sim_jtag begin // Check if we have a new messsage request in the socket // from the test harness - if (poll_jtag_request(instruction_length, instruction, + if (poll_jtag_request(next_instruction_length, next_instruction, data_length, data) != 0) begin - assert(instruction_length > 0 && instruction_length <= 32); + assert(next_instruction_length > 0 && next_instruction_length <= 32); assert(data_length > 0 && data_length <= MAX_DATA_LEN); + + // If the instruction is the same as the last one, we skip + // sending it, which is what we'd expect a real JTAG unit + // to do. + if (next_instruction_length != instruction_length + || next_instruction != instruction) + begin need_ir_shift <= 1; + instruction <= next_instruction; + instruction_length <= next_instruction_length; + end + + // The data register is always shifted in, even if it is the + // same, since loading it may trigger actions as a side effect + // of the update_dr state. need_dr_shift <= 1; end end
Refactor get scene membership indication
@@ -6824,17 +6824,14 @@ void DeRestPluginPrivate::handleSceneClusterIndication(TaskItem &task, const deC lightNode->setSceneCapacity(capacity); groupInfo->setSceneCount(count); - QVector<quint8> responseScenes; + std::vector<quint8> scenes; for (uint i = 0; i < count; i++) { if (!stream.atEnd()) { uint8_t sceneId; stream >> sceneId; - responseScenes.push_back(sceneId); - - DBG_Printf(DBG_INFO, "0x%016X found scene 0x%02X for group 0x%04X\n", ind.srcAddress().ext(), sceneId, groupId); - + scenes.push_back(sceneId); foundScene(lightNode, group, sceneId); } } @@ -6849,8 +6846,11 @@ void DeRestPluginPrivate::handleSceneClusterIndication(TaskItem &task, const deC continue; } - if (!responseScenes.contains(i->id)) + if (std::find(scenes.begin(), scenes.end(), i->id) != scenes.end()) { + continue; // exists + } + std::vector<LightState>::iterator st = i->lights().begin(); std::vector<LightState>::iterator stend = i->lights().end(); @@ -6870,9 +6870,11 @@ void DeRestPluginPrivate::handleSceneClusterIndication(TaskItem &task, const deC } } } - } + if (count > 0) + { lightNode->enableRead(READ_SCENE_DETAILS); + } Q_Q(DeRestPlugin); q->startZclAttributeTimer(checkZclAttributesDelay);
udp: fix typo in udp connectinon flags Type: fix Fixes:
@@ -38,7 +38,7 @@ typedef enum { UDP_CONN_F_CONNECTED = 1 << 0, /**< connected mode */ UDP_CONN_F_OWNS_PORT = 1 << 1, /**< port belong to conn (UDPC) */ - UDP_CONN_F_CLOSING = 2 << 2, /**< conn closed with data */ + UDP_CONN_F_CLOSING = 1 << 2, /**< conn closed with data */ } udp_conn_flags_t; typedef struct
Add SNI headers
@@ -169,7 +169,6 @@ struct flb_tls_session *flb_tls_session_new(struct flb_tls_context *ctx) mbedtls_ssl_init(&session->ssl); mbedtls_ssl_config_init(&session->conf); - ret = mbedtls_ssl_config_defaults(&session->conf, MBEDTLS_SSL_IS_CLIENT, MBEDTLS_SSL_TRANSPORT_STREAM, @@ -247,6 +246,7 @@ int net_io_tls_handshake(void *_u_conn, void *_th) flb_error("[io_tls] could not create tls session"); return -1; } + mbedtls_ssl_set_hostname(&session->ssl,u->tcp_host); /* Store session and mbedtls net context fd */ u_conn->tls_session = session;
lwip: fix tcp_pcb_purge assert Remove the assert in tcp_pcb_purge()
@@ -1751,8 +1751,19 @@ tcp_pcb_purge(struct tcp_pcb *pcb) if (pcb->state == SYN_RCVD) { /* Need to find the corresponding listen_pcb and decrease its accepts_pending */ struct tcp_pcb_listen *lpcb; - LWIP_ASSERT("tcp_pcb_purge: pcb->state == SYN_RCVD but tcp_listen_pcbs is NULL", - tcp_listen_pcbs.listen_pcbs != NULL); + + /* + * The official LWIP will assert the system if tcp_listen_pcbs.listen_pcbs is NULL, it's a bug. + * + * Considering following scenario: + * 1. On TCP server side, one of TCP pcb is in SYNC_RECV state and is waiting for TCP ACK from TCP client. + * 2. The TCP server is closed by application, which causes the tcp_listen_pcbs.listen_pcbs to become NULL. + * 3. When SYNC_RECV state timeout (20s by default), tcp_pcb_purge() is called in tcp_slowtmr(), it asserts + * the system. + * This is a normal scenario, should NOT assert the system. So just remove it. + * + */ + if (tcp_listen_pcbs.listen_pcbs) { for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) { if ((lpcb->local_port == pcb->local_port) && (IP_IS_V6_VAL(pcb->local_ip) == IP_IS_V6_VAL(lpcb->local_ip)) && @@ -1766,6 +1777,7 @@ tcp_pcb_purge(struct tcp_pcb *pcb) } } } + } #endif /* TCP_LISTEN_BACKLOG */
Set SUFFIX in tempfile commands, fix bad architecture option for PGI compiler in avx512 test
@@ -188,13 +188,13 @@ if (($architecture eq "mips") || ($architecture eq "mips64")) { if ($@){ warn "could not load PERL module File::Temp, so could not check MSA capatibility"; } else { - $tmpf = new File::Temp( UNLINK => 1 ); + $tmpf = new File::Temp( SUFFIX => '.c' , UNLINK => 1 ); $code = '"addvi.b $w0, $w1, 1"'; $msa_flags = "-mmsa -mfp64 -msched-weight -mload-store-pairs"; print $tmpf "#include <msa.h>\n\n"; print $tmpf "void main(void){ __asm__ volatile($code); }\n"; - $args = "$msa_flags -o $tmpf.o -x c $tmpf"; + $args = "$msa_flags -o $tmpf.o $tmpf"; my @cmd = ("$compiler_name $args"); system(@cmd) == 0; if ($? != 0) { @@ -229,10 +229,13 @@ if (($architecture eq "x86") || ($architecture eq "x86_64")) { $no_avx512 = 0; } else { # $tmpf = new File::Temp( UNLINK => 1 ); - ($fh,$tmpf) = tempfile( UNLINK => 1 ); + ($fh,$tmpf) = tempfile( SUFFIX => '.c' , UNLINK => 1 ); $code = '"vbroadcastss -4 * 4(%rsi), %zmm2"'; print $tmpf "#include <immintrin.h>\n\nint main(void){ __asm__ volatile($code); }\n"; - $args = " -march=skylake-avx512 -c -o $tmpf.o -x c $tmpf"; + $args = " -march=skylake-avx512 -c -o $tmpf.o $tmpf"; + if ($compiler eq "PGI") { + $args = " -tp skylake -c -o $tmpf.o $tmpf"; + } my @cmd = ("$compiler_name $args >/dev/null 2>/dev/null"); system(@cmd) == 0; if ($? != 0) {
Added anonymize-ip option to the man page.
@@ -516,6 +516,11 @@ Store accumulated processing time from parsing day-by-day logs. Only if configured with --enable-tcb=btree .TP +\fB\-\-anonymize-ip +Anonymize the client IP address. The IP anonymization option sets the last +octet of IPv4 user IP addresses and the last 80 bits of IPv6 addresses to +zeros. e.g., 192.168.20.100 => 192.168.20.0 +.TP \fB\-\-all-static-files Include static files that contain a query string. e.g., /fonts/fontawesome-webfont.woff?v=4.0.3
ames.c now works; fixed multiple bugs with help from
@@ -88,7 +88,6 @@ _ames_send(u3_pact* pac_u) add_u.sin_port = htons(pac_u->por_s); uv_buf_t buf_u = uv_buf_init((c3_c*)pac_u->hun_y, pac_u->len_w); - c3_i sas_i; if ( 0 != (sas_i = uv_udp_send(&pac_u->snd_u, @@ -197,6 +196,8 @@ u3_ames_decode_lane(u3_atom lan) { u3_lane lan_u; lan_u.pip_w = u3r_word(0, pip); + c3_assert( _(u3a_is_cat(por)) ); + c3_assert( por < 65536 ); lan_u.por_s = por; u3z(pip); u3z(por); @@ -308,6 +309,8 @@ u3_ames_ef_send(u3_pier* pir_u, u3_noun lan, u3_noun pac) pac_u->len_w = u3r_met(3, pac); pac_u->hun_y = c3_malloc(pac_u->len_w); + u3r_bytes(0, pac_u->len_w, pac_u->hun_y, pac); + u3_noun tag, val; u3x_cell(lan, &tag, &val); c3_assert( (c3y == tag) || (c3n == tag) ); @@ -318,6 +321,7 @@ u3_ames_ef_send(u3_pier* pir_u, u3_noun lan, u3_noun pac) c3_assert( c3y == u3a_is_cat(val) ); c3_assert( val < 256 ); + pac_u->imp_y = val; _ames_czar(pac_u, sam_u->dns_c); } // non-galaxy lane @@ -372,10 +376,9 @@ _ames_recv_cb(uv_udp_t* wax_u, lan_u.por_s = ntohs(add_u->sin_port); lan_u.pip_w = ntohl(add_u->sin_addr.s_addr); u3_noun lan = u3_ames_encode_lane(lan_u); + u3_noun mov = u3nt(c3__hear, u3nc(c3n, lan), msg); - u3_pier_plan - (u3nt(u3_blip, c3__ames, u3_nul), - u3nt(c3__hear, u3nc(c3n, lan), msg)); + u3_pier_plan(u3nt(u3_blip, c3__ames, u3_nul), mov); #endif } _ames_free(buf_u->base); @@ -563,6 +566,7 @@ u3_ames_io_init(u3_pier* pir_u) void u3_ames_io_talk(u3_pier* pir_u) { + _ames_io_start(pir_u); } /* u3_ames_io_exit(): terminate ames I/O.
chat-store: responded to comments, cleaned up
|% +$ card card:agent:gall +$ versioned-state - $% state-zero - state-one - state-two - state-three + $% state-0 + state-1 + state-2 == :: -+$ state-zero [%0 =inbox:store] -+$ state-one [%1 =inbox:store] -+$ state-two [%2 =inbox:store] -+$ state-three [%3 =inbox:store] ++$ state-0 [%0 =inbox:store] ++$ state-1 [%1 =inbox:store] ++$ state-2 [%2 =inbox:store] +$ admin-action $% [%trim ~] == -- :: -=| state-three +=| state-2 =* state - :: %- agent:dbug ++ on-save !>(state) ++ on-load |= old-vase=vase + ^- (quip card _this) + |^ =/ old !<(versioned-state old-vase) - ?: ?=(%3 -.old) - [~ this(state old)] - ?: ?=(%2 -.old) - :_ this(state [%3 inbox.old]) + =? old ?=(%0 -.old) + (old-to-2 inbox.old) + =? old ?=(%1 -.old) + (old-to-2 inbox.old) + :_ this(state [%2 inbox.old]) [%pass /trim %agent [our.bowl %chat-store] %poke %noun !>([%trim ~])]~ - =/ reversed-inbox=inbox:store - %- ~(run by inbox.old) + :: + ++ old-to-2 + |= =inbox:store + ^- state-2 + :- %2 + %- ~(run by inbox) |= =mailbox:store ^- mailbox:store [config.mailbox (flop envelopes.mailbox)] - :_ this(state [%3 reversed-inbox]) - [%pass /trim %agent [our.bowl %chat-store] %poke %noun !>([%trim ~])]~ + -- :: ++ on-poke ~/ %chat-store-poke ?+ mark (on-poke:def mark vase) %json (poke-json:cc !<(json vase)) %chat-action (poke-chat-action:cc !<(action:store vase)) - %noun (poke-noun:cc !<(admin-action vase)) + %noun [~ (poke-noun:cc !<(admin-action vase))] == [cards this] :: :: ++ poke-noun |= nou=admin-action - ^- (quip card _state) + ^- _state ~& %trimming-chat-store - :- ~ - :- %3 + %_ state + inbox %- ~(urn by inbox) |= [=path mailbox:store] ^- mailbox:store =/ len (lent out) ~& [path [%old (lent envelopes)] [%new len]] [[len len] (flop out)] + == :: ++ poke-json |= jon=json
Fixed negative option for dTidalTau to be 1./YEARSEC.
@@ -731,7 +731,7 @@ void InitializeOptionsEqtide(OPTIONS *options,fnReadOption fnRead[]){ options[OPT_TIDALTAU].dDefault = 1; options[OPT_TIDALTAU].iType = 2; options[OPT_TIDALTAU].iMultiFile = 1; - options[OPT_TIDALTAU].dNeg = 1; + options[OPT_TIDALTAU].dNeg = 1./YEARSEC; sprintf(options[OPT_TIDALTAU].cNeg,"Seconds"); fnRead[OPT_TIDALTAU] = &ReadTidalTau;
travis CHANGE print test output
@@ -26,11 +26,11 @@ before_install: - if [ "$TRAVIS_OS_NAME" = "osx" ]; then bash .travis-deps-osx.sh; fi script: - - cd $TRAVIS_BUILD_DIR && mkdir build_none && cd build_none ; cmake -DENABLE_TLS=OFF -DENABLE_SSH=OFF -DENABLE_DNSSEC=OFF .. && make -j2 && make test - - cd $TRAVIS_BUILD_DIR && mkdir build_tls && cd build_tls ; cmake -DENABLE_TLS=ON -DENABLE_SSH=OFF -DENABLE_DNSSEC=OFF .. && make -j2 && make test - - cd $TRAVIS_BUILD_DIR && mkdir build_ssh && cd build_ssh ; cmake -DENABLE_TLS=OFF -DENABLE_SSH=ON -DENABLE_DNSSEC=OFF .. && make -j2 && make test - - cd $TRAVIS_BUILD_DIR && mkdir build_ssh_tls && cd build_ssh_tls ; cmake -DENABLE_TLS=ON -DENABLE_SSH=ON -DENABLE_DNSSEC=OFF .. && make -j2 && make test - - cd $TRAVIS_BUILD_DIR && mkdir build_all && cd build_all ; cmake -DENABLE_TLS=ON -DENABLE_SSH=ON -DENABLE_DNSSEC=ON .. && make -j2 && make test + - 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 -DENABLE_TLS=ON -DENABLE_SSH=OFF -DENABLE_DNSSEC=OFF .. && make -j2 && ctest -V + - cd $TRAVIS_BUILD_DIR && mkdir build_ssh && cd build_ssh ; cmake -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 -DENABLE_TLS=ON -DENABLE_SSH=ON -DENABLE_DNSSEC=OFF .. && make -j2 && ctest -V + - cd $TRAVIS_BUILD_DIR && mkdir build_all && cd build_all ; cmake -DENABLE_TLS=ON -DENABLE_SSH=ON -DENABLE_DNSSEC=ON .. && make -j2 && ctest -V after_success: - if [ "$TRAVIS_OS_NAME" = "linux" -a "$CC" = "gcc" ]; then codecov; fi
Interim with partial reform.
++ tec (just '`') ++ tis (just '=') ++ toc (just '"') +++ yel (just '"') ++ wut (just '?') ++ zap (just '!') :: {$bcmc p/hoon} :: $;, manual {$bcpd p/spec q/hoon} :: $&, repair {$bcsg p/hoon q/spec} :: $~, default - {$bctc p/spec q/(map term spec)} :: $/, read-only core + {$bctc p/spec q/(map term spec)} :: $`, read-only core {$bcts p/toga q/spec} :: $=, name {$bcvt p/spec q/spec} :: $@, atom pick {$bcwt p/{i/spec t/(list spec)}} :: $?, full pick ++ wtsg |=({sic/hoon non/hoon} (gray [%wtsg puce (blue sic) (blue non)])) ++ wtts |=(mod/spec (gray [%wtts (teal mod) puce])) -- -++ cosmetic +++ cosmetic !: :: hold-trace: recursion points :: block-count: number of recursion blocks :: block-map-forward: recursion blocks by number (add 'a' number) (cat 3 (add 'a' (mod number 26)) $(number (div number 26))) :: - :: +specify: make a cosmetic spec + :: +specify: make spec that :: ++ specify ^- [spec _.] |- ^- ^spec :: reform a spec left as a type annotation :: - ?- -.spec spec + ?+ -.spec spec + :: incomplete + :: %dbug $(spec q.spec) %like :: hub: type of context :: poy: reference =/ hub %- ~(play ut sut) |- ^- hoon ?~ q.spec [%$ 1] - [%tsgl [%wing i.q.spec] $(spec t.q.spec)] - ?: ?=([%& * + [%tsgl [%wing i.q.spec] $(q.spec t.q.spec)] + =/ poy (~(fond ut hub) %free p.spec) + :: if we have a simple arm + :: + ?: ?=([%& * * %| *] poy) + :: then keep the spec + :: + spec + !! == :: :: +atom: convert atomic type to spec
hdat/vpd: Don't warn and don't create a dummy "model-name" If the model property doesn't contain a known model number that we can translate into a name, assume it's already a name, stop warning and don't create an extraneous property.
@@ -529,9 +529,6 @@ def_model: mi = machine_info_lookup(model->prop); if (mi) { model_name = mi->name; - } else { - model_name = "Unknown"; - prlog(PR_WARNING, "VPD: Model name %s not known\n", model->prop); } }
Add autoremove in clear command after build.
@@ -11,12 +11,12 @@ ROOT_DIR=$(pwd) RUN_AS_ROOT=0 SUDO_CMD=sudo -CLEAR_APT=0 CLEAR_RAPIDJSON=0 CLEAR_PYTHON=0 CLEAR_RUBY=0 CLEAR_NETCORE=0 CLEAR_V8=0 +CLEAR_APT=0 SHOW_HELP=0 PROGNAME=$(basename $0) @@ -24,6 +24,8 @@ PROGNAME=$(basename $0) sub_apt(){ echo "clean apt of C build" $SUDO_CMD apt-get -y remove --purge build-essential git cmake wget apt-utils + $SUDO_CMD apt-get -y autoclean + $SUDO_CMD apt-get -y autoremove } # RapidJSON @@ -74,9 +76,6 @@ sub_clear(){ if [ $RUN_AS_ROOT = 1 ]; then SUDO_CMD="" fi - if [ $CLEAR_APT = 1 ]; then - sub_apt - fi if [ $CLEAR_RAPIDJSON = 1 ]; then sub_rapidjson fi @@ -92,6 +91,9 @@ sub_clear(){ if [ $CLEAR_V8 = 1 ]; then sub_v8 fi + if [ $CLEAR_APT = 1 ]; then + sub_apt + fi sub_metacall @@ -106,10 +108,6 @@ sub_config(){ echo "running as root" RUN_AS_ROOT=1 fi - if [ "$var" = 'base' ]; then - echo "apt selected" - CLEAR_APT=1 - fi if [ "$var" = 'rapidjson' ]; then echo "rapidjson selected" CLEAR_RAPIDJSON=1 @@ -130,6 +128,10 @@ sub_config(){ echo "v8 selected" CLEAR_V8=1 fi + if [ "$var" = 'base' ]; then + echo "apt selected" + CLEAR_APT=1 + fi done }
packaging: do not hardcode swig executable
@@ -45,8 +45,7 @@ CMAKE_ARGS_BASE="-DTARGET_PLUGIN_FOLDER='elektra5' \ if case $DIST_NAME in "Fedora"*) true ;; "openSUSE"*) true ;; "CentOS"*) true ;; *) false ;; esac then CMAKE_ARGS_SPECIFIC="-DTARGET_LUA_CMOD_FOLDER=lib$LUA_LIB_SUFFIX/lua/$LUA_VERSION \ - -DTARGET_LUA_LMOD_FOLDER=share/lua/$LUA_VERSION \ - -DSWIG_EXECUTABLE=/usr/bin/swig" + -DTARGET_LUA_LMOD_FOLDER=share/lua/$LUA_VERSION" else PY3VER=$(py3versions -d -v) @@ -58,7 +57,6 @@ else CMAKE_ARGS_SPECIFIC="-DTARGET_LUA_CMOD_FOLDER=lib/lua/$LUA_VERSION \ -DTARGET_LUA_LMOD_FOLDER=share/lua/$LUA_VERSION \ - -DSWIG_EXECUTABLE=/usr/bin/swig3.0 \ -DCMAKE_C_FLAGS=$CFLAGS \ -DCMAKE_CXX_FLAGS=$CXXFLAGS \ -DCMAKE_EXE_LINKER_FLAGS=$LDFLAGS \
ugui.c: Fix linter error
@@ -678,11 +678,10 @@ void UG_WrapTitleString(const char* str, char* str_out, UG_S16 width) { str_out += 1; str += 1; break; - } else { + } *str_out = *str; str_out += 1; str += 1; - } while (!_is_whitespace(*str)) { *str_out = *str; if (*str >= font->start_char){
Another comment goes away
@@ -32,8 +32,6 @@ BuildRoot: %{_tmppath}/%{name} #cp /home/build/oidc-agent/rpm/oidc-agent.spec rpm && rpmbuild --define "_topdir /tmp/build/oidc-agent/rpm/rpmbuild" -bb rpm/oidc-agent.spec %files %defattr(-,root,root,-) -#%doc /usr/share/doc/README.md -#%doc /usr/share/doc/oidc-agent-4.1.1/README.md %doc %{_defaultdocdir}/%{name}-%{version}/README.md
[build] Set /utf-8 flag for MSVC compiler. Issue:IGNIETFERRO-503.
@@ -1875,7 +1875,7 @@ class MSVCCompiler(MSVC, Compiler): MSVC_INLINE_FLAG=/Zc:inline- }''') - flags = ['/nologo', '/Zm500', '/GR', '/bigobj', '/FC', '/EHs', '/errorReport:prompt', '$MSVC_INLINE_FLAG'] + flags = ['/nologo', '/Zm500', '/GR', '/bigobj', '/FC', '/EHs', '/errorReport:prompt', '$MSVC_INLINE_FLAG', '/utf-8'] flags += self.tc.arch_opt c_warnings = ['/we{}'.format(code) for code in warns_as_error]
Improve mini info window popup location calculation (experimental)
#include <miniinfo.h> #include <miniinfop.h> -#include <emenu.h> +#include <shellapi.h> #include <uxtheme.h> #include <windowsx.h> #include <phplug.h> #include <procprv.h> #include <proctree.h> + +#include <emenu.h> #include <settings.h> static HWND PhMipContainerWindow = NULL; @@ -699,38 +701,43 @@ VOID PhMipCalculateWindowRectangle( { PH_RECTANGLE bounds; - if (memcmp(&monitorInfo.rcWork, &monitorInfo.rcMonitor, sizeof(RECT)) == 0) + if (RtlEqualMemory(&monitorInfo.rcWork, &monitorInfo.rcMonitor, sizeof(RECT))) { - HWND trayWindow; - RECT taskbarRect; + APPBARDATA taskbarRect = { sizeof(APPBARDATA) }; + + // dmex: FindWindow + Shell_TrayWnd causes a lot of FPs by security software (malware uses this string to inject code into Explorer)... + // TODO: This comment block should be removed if the SHAppBarMessage function is more reliable. + //HWND trayWindow; + //RECT taskbarRect; + //if ((trayWindow = FindWindow(L"Shell_TrayWnd", NULL)) && + // GetMonitorInfo(MonitorFromWindow(trayWindow, MONITOR_DEFAULTTOPRIMARY), &monitorInfo) && // Just in case + // GetWindowRect(trayWindow, &taskbarRect)) // The taskbar probably has auto-hide enabled. We need to adjust for that. - if ((trayWindow = FindWindow(L"Shell_TrayWnd", NULL)) && - GetMonitorInfo(MonitorFromWindow(trayWindow, MONITOR_DEFAULTTOPRIMARY), &monitorInfo) && // Just in case - GetWindowRect(trayWindow, &taskbarRect)) + if (SHAppBarMessage(ABM_GETTASKBARPOS, &taskbarRect)) { LONG monitorMidX = (monitorInfo.rcMonitor.left + monitorInfo.rcMonitor.right) / 2; LONG monitorMidY = (monitorInfo.rcMonitor.top + monitorInfo.rcMonitor.bottom) / 2; - if (taskbarRect.right < monitorMidX) + if (taskbarRect.rc.right < monitorMidX) { // Left - monitorInfo.rcWork.left += taskbarRect.right - taskbarRect.left; + monitorInfo.rcWork.left += taskbarRect.rc.right - taskbarRect.rc.left; } - else if (taskbarRect.bottom < monitorMidY) + else if (taskbarRect.rc.bottom < monitorMidY) { // Top - monitorInfo.rcWork.top += taskbarRect.bottom - taskbarRect.top; + monitorInfo.rcWork.top += taskbarRect.rc.bottom - taskbarRect.rc.top; } - else if (taskbarRect.left > monitorMidX) + else if (taskbarRect.rc.left > monitorMidX) { // Right - monitorInfo.rcWork.right -= taskbarRect.right - taskbarRect.left; + monitorInfo.rcWork.right -= taskbarRect.rc.right - taskbarRect.rc.left; } - else if (taskbarRect.top > monitorMidY) + else if (taskbarRect.rc.top > monitorMidY) { // Bottom - monitorInfo.rcWork.bottom -= taskbarRect.bottom - taskbarRect.top; + monitorInfo.rcWork.bottom -= taskbarRect.rc.bottom - taskbarRect.rc.top; } } }
Shellchecked script and eliminated redirect
# before-test.sh and gen-config.sh are located together in the same folder. -if [ -z $1 ]; then +if [ -z "$1" ]; then unset PLATFORM; else PLATFORM=$1; fi -if [ -z $2 ]; then +if [ -z "$2" ]; then echo "ERROR: REF_BUILD_ID must be defined"; exit 1; else REF_BUILD_ID=$2; fi -if [ -z $3 ]; then +if [ -z "$3" ]; then SUT_BUILD_ID="local"; else SUT_BUILD_ID=$3; fi -if [ -z $4 ]; then +if [ -z "$4" ]; then SUT_VERSION="unknown"; else SUT_VERSION=$4; fi -if [ -z $5 ]; then +if [ -z "$5" ]; then TEST_HOME="nrtestsuite"; else TEST_HOME=$5; fi @@ -58,25 +58,26 @@ SCRIPT_HOME="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" BUILD_HOME="$(dirname "$SCRIPT_HOME")" -SUT_PATH=(`find $BUILD_HOME -name "bin" -type d`) +SUT_PATH="$(find "$BUILD_HOME" -name "bin" -type d)" # TODO: determine platform # hack to determine latest tag from GitHub LATEST_URL="https://github.com/OpenWaterAnalytics/epanet-example-networks/releases/latest" -temp_url=$(curl -sI ${LATEST_URL} | grep -iE "^Location:") -LATEST_TAG=${temp_url##*/} +temp_url="$(curl -sI "${LATEST_URL}" | grep -iE "^Location:")" +LATEST_TAG="${temp_url##*/}" -TEST_URL="https://github.com/OpenWaterAnalytics/epanet-example-networks/archive/${LATEST_TAG}.tar.gz" +TEST_URL="https://codeload.github.com/OpenWaterAnalytics/epanet-example-networks/tar.gz/${LATEST_TAG}" BENCH_URL="https://github.com/OpenWaterAnalytics/epanet-example-networks/releases/download/${LATEST_TAG}/benchmark-${PLATFORM}-${REF_BUILD_ID}.tar.gz" # create a clean directory for staging regression tests -if [ -d ${TEST_HOME} ]; then - rm -rf ${TEST_HOME} +# create a clean directory for staging regression tests +if [ -d "${TEST_HOME}" ]; then + rm -rf "${TEST_HOME}" fi -mkdir ${TEST_HOME} -cd ${TEST_HOME} +mkdir "${TEST_HOME}" +cd "${TEST_HOME}" || exit 1 # retrieve epanet-examples for regression testing @@ -91,7 +92,7 @@ fi # extract tests, benchmarks, and manifest tar xzf examples.tar.gz -ln -s epanet-example-networks-${LATEST_TAG:1}/epanet-tests tests +ln -s "epanet-example-networks-${LATEST_TAG:1}/epanet-tests" tests mkdir benchmark tar xzf benchmark.tar.gz -C benchmark @@ -100,4 +101,4 @@ tar xzf benchmark.tar.gz --wildcards --no-anchored --strip-components=1 '*/manif # generate json configuration file for software under test mkdir apps -${SCRIPT_HOME}/gen-config.sh ${SUT_PATH} ${PLATFORM} ${SUT_BUILD_ID} ${SUT_VERSION} > apps/epanet-${SUT_BUILD_ID}.json +"${SCRIPT_HOME}/gen-config.sh" "${SUT_PATH}" "${PLATFORM}" "${SUT_BUILD_ID}" "${SUT_VERSION}" > "apps/epanet-${SUT_BUILD_ID}.json"
On x86-64, make MB/WMB compiler barriers Whie on x86(64) one does not normally need full memory barriers, it's good practice to at least use compiler barriers for places where on other architectures memory barriers are used; this prevents the compiler from over-optimizing.
#endif */ +#ifdef __GNUC__ +#define MB __asm__ __volatile__("": : :"memory") +#define WMB __asm__ __volatile__("": : :"memory") +#else #define MB #define WMB +#endif static void __inline blas_lock(volatile BLASULONG *address){
mpi-families/mpich: update build to default to libfabric
@@ -25,12 +25,18 @@ BuildRequires: pmix%{PROJ_DELIM} BuildRequires: libevent-devel %endif -%{!?with_ucx: %define with_ucx 1} +%{!?with_ucx: %define with_ucx 0} %if 0%{with_ucx} BuildRequires: ucx%{PROJ_DELIM} Requires: ucx%{PROJ_DELIM} %endif +%{!?with_ofi: %define with_ofi 1} +%if 0%{with_ofi} +BuildRequires: libfabric%{PROJ_DELIM} +Requires: libfabric%{PROJ_DELIM} +%endif + # Base package name %define pname mpich @@ -88,6 +94,9 @@ export CPATH=${PMIX_INC} %if 0%{with_ucx} module load ucx %endif +%if 0%{with_ofi} +module load libfabric +%endif ./configure --prefix=%{install_path} \ %if 0%{with_slurm} @@ -98,6 +107,9 @@ module load ucx %endif %if 0%{with_ucx} --with-device=ch4:ucx --with-ucx=$UCX_DIR \ +%endif +%if 0%{with_ofi} + --with-device=ch4:ofi --with-libfabric=$LIBFABRIC_DIR \ %endif || { cat config.log && exit 1; } @@ -150,6 +162,9 @@ prepend-path PKG_CONFIG_PATH %{install_path}/lib/pkgconfig %if 0%{with_ucx} depends-on ucx %endif +%if 0%{with_ofi} +depends-on libfabric +%endif family "MPI" EOF
shapito: fix is_null check in shapito_be_write_data_row_add()
@@ -216,7 +216,7 @@ SHAPITO_API static inline int shapito_be_write_data_row_add(shapito_stream_t *stream, int start, char *data, int32_t len) { int is_null = len == -1; - int size = sizeof(uint32_t) + (is_null) ? 0 : len; + int size = sizeof(uint32_t) + (is_null ? 0 : len); int rc = shapito_stream_ensure(stream, size); if (shapito_unlikely(rc == -1)) return -1;
Updated README for STLink-v1 setup on macOS
-### # Installation instructions for STLINK/v1 driver -### When connecting to the STLINK/v1 on macOS via USB, the system claims the programmer as a SCSI device. Thus libusb is not able to initialise and establish a connection to it. To solve this issue Marco Cassinerio ([email protected]) has created a so called "codeless driver" which claims the device. It is of higher priority then the default apple mass storage driver, what allows the device to be accessed through libusb. To make use of this alternative approach one needs to go through the following steps: -1) Install the macOS Kernel Extension (kext): - - Open a terminal console and navigate to this subdirectory `/stlinkv1_macos_driver` - - Use the command ```sudo sh ./install.sh``` to install the appropiate kext for your system version. - -2) Install the ST-Link-v1 driver from this subdirectory `/stlinkv1_macos_driver` by executing: ```sudo make osx_stlink_shield```. This should result in the following output: - -``` -Requesting load of /System/Library/Extensions/stlink_shield.kext. -/System/Library/Extensions/stlink_shield.kext loaded successfully (or already loaded). -``` - -3) Configure System Integrity Protection (SIP) +1) Configure System Integrity Protection (SIP) The above system security setting introduced by Apple with OS X El Capitan (10.11) in 2015 is active per default and prevents the operating system amongst other things to load unsigned Kernel Extension Modules (kext). Thus the STLINK/v1 driver supplied with the tools, which installs as a kext, remains not functional, -until SIP is fully deactivated. +until SIP is fully deactivated. Without SIP-deactivation, st-util would fail to detect a STLINK/v1 device later on. -Without SIP-deactivation, st-util fails to detect a STLINK/v1 device: +In order to deactivate SIP, boot into the recovery mode and run ```csrutil disable``` in a terminal console window. -``` -st-util -1 -st-util $VERSION-STRING$ -WARN src/sg.c: Failed to find an stlink v1 by VID:PID -ERROR src/sg.c: Could not open stlink device -``` +2) Reboot the system. -In order to deactivate SIP, boot into the recovery mode and run ```csrutil disable``` in a terminal console window. +3) Install the macOS Kernel Extension (kext) (ST-Link-v1 driver): + - Open a terminal console and navigate to this subdirectory `/stlinkv1_macos_driver` + - Use the command ```sudo sh ./install.sh``` to install the appropiate kext for your system version. + This should result in the following output: -4) Reboot the system. +``` +Requesting load of /System/Library/Extensions/stlink_shield.kext. +/System/Library/Extensions/stlink_shield.kext loaded successfully (or already loaded). +``` -5) Verify correct detection of the STLINK/v1 device with the following input: `st-util -1` +4) Verify correct detection of the STLINK/v1 device with the following input: `st-util -1` You should then see a similar output like in this example: ```
Make update-isl work with latest isl versions Latest isl versions require clang to build a 'dist' package. Make sure we actually ask for it. While being there, also make sure we build isl on all cores.
@@ -18,8 +18,9 @@ if [ -n "$1" ]; then fi (cd $GITDIR && ./autogen.sh) mkdir -p $BUILDDIR -(cd $BUILDDIR && $GITDIR/configure --with-int=imath-32) -(cd $BUILDDIR && make dist) +(cd $BUILDDIR && $GITDIR/configure --with-int=imath-32 --with-clang=system) +touch $GITDIR/gitversion.h +(cd $BUILDDIR && make -j dist) for DISTFILE in "$BUILDDIR/isl*.tar.gz"; do break; done
Remove extraneous commented define.
#define SYSTEMD_DIR "/etc/systemd" #define INITD_DIR "/etc/init.d" #define PROFILE_SCRIPT "#! /bin/bash\nlib_found=0\nfilter_found=0\nif test -f /usr/lib/appscope/*/libscope.so; then\n lib_found=1\nfi\nif test -f /usr/lib/appscope/scope_filter; then\n filter_found=1\nelif test -f /tmp/appscope/scope_filter; then\n filter_found=1\nfi\nif [ $lib_found == 1 ] && [ $filter_found == 1 ]; then\n export LD_PRELOAD=\"%s $LD_PRELOAD\"\nfi\n" -//#define PROFILE_SCRIPT "export LD_PRELOAD=\"%s $LD_PRELOAD\"\n" typedef enum { SERVICE_CFG_ERROR,
Implement UPDATE_MARK_CHECK_MOVE.
@@ -22058,7 +22058,7 @@ void check_move(entity *e) float x, z; entity *plat, *tempself; - if((e->update_mark & 4)) + if((e->update_mark & UPDATE_MARK_CHECK_MOVE)) { return; } @@ -22072,7 +22072,7 @@ void check_move(entity *e) if((plat = self->landed_on_platform) ) // on the platform? { //update platform first to get actual movex and movez - if(!(plat->update_mark & 4)) + if(!(plat->update_mark & UPDATE_MARK_CHECK_MOVE)) { check_move(plat); } @@ -22134,7 +22134,7 @@ void check_move(entity *e) } self->movex = self->position.x - x; self->movez = self->position.z - z; - self->update_mark |= 4; + self->update_mark |= UPDATE_MARK_CHECK_MOVE; self = tempself; }
Make CMAKE_OSX_DEPLOYMENT_TARGET configurable
@@ -48,7 +48,7 @@ if(Git_FOUND) endif() if(APPLE) - set(CMAKE_OSX_DEPLOYMENT_TARGET "10.13" CACHE STRING "Minimum OS X deployment version" FORCE) + set(CMAKE_OSX_DEPLOYMENT_TARGET "10.13" CACHE STRING "Minimum OS X deployment version") endif()
[SFUD] Update the flash chip information table.
@@ -124,7 +124,8 @@ typedef struct { {"AT45DB161E", SFUD_MF_ID_ATMEL, 0x26, 0x00, 2L*1024L*1024L, SFUD_WM_BYTE|SFUD_WM_DUAL_BUFFER, 512, 0x81}, \ {"W25Q40BV", SFUD_MF_ID_WINBOND, 0x40, 0x13, 512L*1024L, SFUD_WM_PAGE_256B, 4096, 0x20}, \ {"W25Q16BV", SFUD_MF_ID_WINBOND, 0x40, 0x15, 2L*1024L*1024L, SFUD_WM_PAGE_256B, 4096, 0x20}, \ - {"W25Q64DW", SFUD_MF_ID_WINBOND, 0x40, 0x17, 8L*1024L*1024L, SFUD_WM_PAGE_256B, 4096, 0x20}, \ + {"W25Q64CV", SFUD_MF_ID_WINBOND, 0x40, 0x17, 8L*1024L*1024L, SFUD_WM_PAGE_256B, 4096, 0x20}, \ + {"W25Q64DW", SFUD_MF_ID_WINBOND, 0x60, 0x17, 8L*1024L*1024L, SFUD_WM_PAGE_256B, 4096, 0x20}, \ {"W25Q128BV", SFUD_MF_ID_WINBOND, 0x40, 0x18, 16L*1024L*1024L, SFUD_WM_PAGE_256B, 4096, 0x20}, \ {"W25Q256FV", SFUD_MF_ID_WINBOND, 0x40, 0x19, 32L*1024L*1024L, SFUD_WM_PAGE_256B, 4096, 0x20}, \ {"SST25VF016B", SFUD_MF_ID_SST, 0x25, 0x41, 2L*1024L*1024L, SFUD_WM_BYTE|SFUD_WM_AAI, 4096, 0x20}, \
fix parser bug which skipped bytes in long uris
+#include <stdio.h> #include <stdlib.h> #include <stddef.h> #include <ctype.h> @@ -1234,6 +1235,10 @@ htparser_run(htparser * p, htparse_hooks * hooks, const char * data, size_t len) break; } + if (evhtp_unlikely(i + 1 >= len)) { + break; + } + ch = data[++i]; } while (i < len);
sdl/hints: add SDL_HINT_RENDER_LINE_METHOD introduced in SDL2 2.0.20
@@ -4,6 +4,10 @@ package sdl #include "sdl_wrapper.h" #include "hints.h" +#if !(SDL_VERSION_ATLEAST(2,0,20)) +#define SDL_HINT_RENDER_LINE_METHOD "" +#endif + #if !(SDL_VERSION_ATLEAST(2,0,18)) #define SDL_HINT_APP_NAME "" #endif @@ -232,6 +236,7 @@ const ( HINT_LINUX_JOYSTICK_CLASSIC = C.SDL_HINT_LINUX_JOYSTICK_CLASSIC // A variable controlling whether to use the classic /dev/input/js* joystick interface or the newer /dev/input/event* joystick interface on Linux HINT_JOYSTICK_DEVICE = C.SDL_HINT_JOYSTICK_DEVICE // This variable is currently only used by the Linux joystick driver HINT_JOYSTICK_HIDAPI_STEAM = C.SDL_HINT_JOYSTICK_HIDAPI_STEAM // A variable controlling whether the HIDAPI driver for Steam Controllers should be used + HINT_RENDER_LINE_METHOD = C.SDL_HINT_RENDER_LINE_METHOD // A variable controlling how the 2D render API renders lines ) // An enumeration of hint priorities.
fabs -> fabsl
@@ -14,7 +14,7 @@ void NAME(FLOAT *DA, FLOAT *DB, FLOAT *C, FLOAT *S){ long double db_i = *(DB + 1); long double r; - long double ada = fabs(da_r) + fabs(da_i); + long double ada = fabsl(da_r) + fabsl(da_i); PRINT_DEBUG_NAME;
Utilize horizontal SAD functions for SSE4.1 as well
@@ -87,22 +87,21 @@ static uint32_t hor_sad_sse41(const kvz_pixel *pic_data, const kvz_pixel *ref_da int32_t width, int32_t height, uint32_t pic_stride, uint32_t ref_stride, uint32_t left, uint32_t right) { - /* if (width == 4) - return hor_sad_left_sse41_w4(pic_data, ref_data, width, height, - pic_stride, ref_stride, left); + return hor_sad_sse41_w4(pic_data, ref_data, width, height, + pic_stride, ref_stride, left, right); if (width == 8) - return hor_sad_left_sse41_w8(pic_data, ref_data, width, height, - pic_stride, ref_stride, left); + return hor_sad_sse41_w8(pic_data, ref_data, width, height, + pic_stride, ref_stride, left, right); if (width == 16) - return hor_sad_left_sse41_w16(pic_data, ref_data, width, height, - pic_stride, ref_stride, left); + return hor_sad_sse41_w16(pic_data, ref_data, width, height, + pic_stride, ref_stride, left, right); if (width == 32) return hor_sad_sse41_w32(pic_data, ref_data, width, height, pic_stride, ref_stride, left, right); - */ - assert(0); - return 0; + else + return hor_sad_sse41_arbitrary(pic_data, ref_data, width, height, + pic_stride, ref_stride, left, right); } #endif //COMPILE_INTEL_SSE41
iokernel: DPDK only take a subset of hugepages, fix some indentation/spacing issues
@@ -60,8 +60,7 @@ static const struct rte_eth_conf port_conf_default = { * Initializes a given port using global settings and with the RX buffers * coming from the mbuf_pool passed as a parameter. */ -static inline int -port_init(uint8_t port, struct rte_mempool *mbuf_pool) +static inline int port_init(uint8_t port, struct rte_mempool *mbuf_pool) { struct rte_eth_conf port_conf = port_conf_default; const uint16_t rx_rings = 1, tx_rings = 1; @@ -85,8 +84,7 @@ port_init(uint8_t port, struct rte_mempool *mbuf_pool) /* Allocate and set up 1 RX queue per Ethernet port. */ for (q = 0; q < rx_rings; q++) { retval = rte_eth_rx_queue_setup(port, q, nb_rxd, - rte_eth_dev_socket_id(port), NULL, - mbuf_pool); + rte_eth_dev_socket_id(port), NULL, mbuf_pool); if (retval < 0) return retval; } @@ -169,8 +167,8 @@ void dpdk_run(uint8_t port) * Check that the port is on the same NUMA node as the polling thread * for best performance. */ - if (rte_eth_dev_socket_id(port) > 0 && - rte_eth_dev_socket_id(port) != (int)rte_socket_id()) + if (rte_eth_dev_socket_id(port) > 0 + && rte_eth_dev_socket_id(port) != (int) rte_socket_id()) printf("WARNING, port %u is on remote NUMA node to polling thread.\n\t" "Performance will not be optimal.\n", port); @@ -218,7 +216,7 @@ int dpdk_init(uint8_t port) { struct rte_mempool *mbuf_pool; unsigned nb_ports; - char *argv[] = {"./iokerneld", "-l", "1"}; + char *argv[] = { "./iokerneld", "-l", "1", "--socket-mem=128" }; /* Initialize the Environment Abstraction Layer (EAL). */ int ret = rte_eal_init(sizeof(argv) / sizeof(argv[0]), argv);
observe-hook: remove debugging code
++ warm-cache-all ?: warm-cache ~|('cannot warm up cache that is already warm' !!) - :::_ this(warm-cache %.y) - :_ this + :_ this(warm-cache %.y) =/ =mood:clay [%t da+now.bowl /mar] [%pass /warm-cache %arvo %c %warp our.bowl %home `[%sing mood]]~ :: =* mark t.wire ?~ riot ~|('mark build failed for {<mark>}' !!) - ~& mark :_ this =/ =rave:clay [%next %b [%da now.bowl] mark] [%pass wire %arvo %c %warp our.bowl [%home `rave]]~
remove useless libs
<artifactId>commons-digester</artifactId> <version>2.1</version> </dependency> - <!-- Needed fo facet config --> - <dependency> - <groupId>org.mozilla</groupId> - <artifactId>rhino</artifactId> - <version>1.7.7</version> - </dependency> - <dependency> - <groupId>org.jsoup</groupId> - <artifactId>jsoup</artifactId> - <version>1.10.1</version> - </dependency> - <dependency> - <groupId>net.htmlparser.jericho</groupId> - <artifactId>jericho-html</artifactId> - <version>3.4</version> - </dependency> <!-- Provided libs --> <dependency> <groupId>org.apache.tomcat</groupId>
Allow overriding colors in the 256 color space
@@ -785,7 +785,7 @@ xloadcolor(int i, const char *name, Color *ncolor) XRenderColor color = { .alpha = 0xffff }; if (!name) { - if (BETWEEN(i, 16, 255)) { /* 256 color */ + if (BETWEEN(i, 16, 255) && !colorname[i]) { /* 256 color */ if (i < 6*6*6+16) { /* same colors as xterm */ color.red = sixd_to_16bit( ((i-16)/36)%6 ); color.green = sixd_to_16bit( ((i-16)/6) %6 );
conffile: support integer-like instance names Make something like 127.0.0.1:2003=1 possible.
@@ -287,6 +287,15 @@ cluster_host: crSTRING[ip] cluster_opt_instance[inst] cluster_opt_proto[prot] ; cluster_opt_instance: { $$ = NULL; } | '=' crSTRING[inst] { $$ = $inst; } + | '=' crINTVAL[inst] + { + $$ = ra_malloc(palloc, sizeof(char) * 12); + if ($$ == NULL) { + logerr("out of memory\n"); + YYABORT; + } + snprintf($$, 12, "%d", $inst); + } ; cluster_opt_proto: { $$ = CON_TCP; } | crPROTO crUDP { $$ = CON_UDP; }
viofs-pci: add space for nul char to volume tag
@@ -185,11 +185,13 @@ static VOID HandleGetVolumeName(IN PDEVICE_CONTEXT Context, IN size_t OutputBufferLength) { NTSTATUS status; - WCHAR WideTag[MAX_FILE_SYSTEM_NAME]; + WCHAR WideTag[MAX_FILE_SYSTEM_NAME + 1]; BYTE *out_buf; char tag[MAX_FILE_SYSTEM_NAME]; size_t size; + RtlZeroMemory(WideTag, sizeof(WideTag)); + VirtIOWdfDeviceGet(&Context->VDevice, FIELD_OFFSET(VIRTIO_FS_CONFIG, Tag), &tag, sizeof(tag));
AppVeyor: Enable lua.
@@ -67,6 +67,8 @@ if ($Env:COMPILER -eq "msvc") { if ($Env:PLATFORM -eq "Win64") { $CMAKE_FLAGS = "$CMAKE_FLAGS -DTINYSPLINE_ENABLE_PYTHON=True" } +} else { + $CMAKE_FLAGS = "$CMAKE_FLAGS -DTINYSPLINE_ENABLE_LUA=True" }
Work CI-CD Add zh-cn readme to list of exclusion for build. ***NO_CI***
@@ -2,7 +2,7 @@ trigger: branches: include: ["main", "main", "develop*", "release-*", "refs/tags/*" ] paths: - exclude: [ "doc", "*.md", ".gitignore", "README.md" ] + exclude: [ "doc", "*.md", ".gitignore", "README.md", "README.zh-cn.md" ] pr: autoCancel: true
use tempfile?
+require 'tempfile' RSpec.describe 'Transfer-Encoding: chunked', with_app: :echo do let(:body_size) { 6 } let(:body_string) { SecureRandom.hex(body_size).to_s[0...body_size] } let(:io) do # ensures theres no size sneaking in - reader, writer = IO.pipe - writer.write(body_string) - writer.close - reader + f = Tempfile.new + f.write(body_string) + f.rewind + f + # reader, writer = IO.pipe + # writer.write(body_string) + # writer.close + # reader end shared_examples 'chunked body' do
test eapol_size >= 95
@@ -891,7 +891,7 @@ memcpy(neweapdbdata->mac_ap.addr, mac_ap, 6); memcpy(neweapdbdata->mac_sta.addr, mac_sta, 6); neweapdbdata->eapol_len = htobe16(eap->len) +4; -if(neweapdbdata->eapol_len > 256 -4) +if((neweapdbdata->eapol_len < 95) || (neweapdbdata->eapol_len > 256 -4)) return false; memcpy(neweapdbdata->eapol, eap, neweapdbdata->eapol_len);
Remove auto register to Cloud on POST CloudConf
@@ -100,23 +100,6 @@ cloud_close_endpoint(oc_endpoint_t *cloud_ep) } } -static void -cloud_register_internal_cb(oc_cloud_context_t *ctx, oc_cloud_status_t status, - void *data) -{ - (void)ctx; - (void)status; - (void)data; -} - -static oc_event_callback_retval_t -cloud_register_internal(void *user_data) -{ - oc_cloud_context_t *ctx = (oc_cloud_context_t *)user_data; - oc_cloud_register(ctx, cloud_register_internal_cb, NULL); - return OC_EVENT_DONE; -} - #ifdef OC_SECURITY static void cloud_deregister_on_reset_internal(oc_cloud_context_t *ctx, @@ -179,8 +162,6 @@ cloud_update_by_resource(oc_cloud_context_t *ctx, ctx->store.status = OC_CLOUD_INITIALIZED; if (ctx->cloud_manager) { cloud_reconnect(ctx); - } else { - oc_set_delayed_callback(ctx, cloud_register_internal, 0); } }
Suggest workaround for error 0xfffffc0e When the hardware encoder is not able to encode at the given definition, it fails with an error 0xfffffc0e. It is documented in the FAQ: <https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#i-get-an-error-could-not-open-video-stream> But it is better to directly suggest the workaround in the console.
package com.genymobile.scrcpy; import android.graphics.Rect; +import android.media.MediaCodec; +import android.os.Build; import java.io.File; import java.io.IOException; @@ -133,11 +135,25 @@ public final class Server { } } + private static void suggestFix(Throwable e) { + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { + if (e instanceof MediaCodec.CodecException) { + MediaCodec.CodecException mce = (MediaCodec.CodecException) e; + if (mce.getErrorCode() == 0xfffffc0e) { + Ln.e("The hardware encoder is not able to encode at the given definition."); + Ln.e("Try with a lower definition:"); + Ln.e(" scrcpy -m 1024"); + } + } + } + } + public static void main(String... args) throws Exception { Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() { @Override public void uncaughtException(Thread t, Throwable e) { Ln.e("Exception on thread " + t, e); + suggestFix(e); } });
Get informed about undefined behavior
@@ -46,8 +46,8 @@ ifdef DEBUG $(info * Detected DEBUG environment flag, enforcing debug mode compilation) FLAGS:=$(FLAGS) DEBUG # # comment the following line if you want to use a different address sanitizer or a profiling tool. - OPTIMIZATION:=-O0 -march=native -fsanitize=address -fno-omit-frame-pointer - # possibly useful: -Wconversion -Wcomma + OPTIMIZATION:=-O0 -march=native -fsanitize=address,undefined -fno-omit-frame-pointer + # possibly useful: -Wconversion -Wcomma -fsanitize=undefined # go crazy with clang: -Weverything -Wno-cast-qual -Wno-used-but-marked-unused -Wno-reserved-id-macro -Wno-padded -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-bad-function-cast -Wno-missing-prototypes else FLAGS:=$(FLAGS) NODEBUG
file-server: fix incorrect path matching
=* headers header-list.req =/ req-line (parse-request-line url.req) ?. =(method.req %'GET') not-found:gen + =. site.req-line + %+ murn site.req-line + |= =cord + ^- (unit ^cord) + ?:(=(cord '') ~ `cord) =? req-line ?=(~ ext.req-line) - [[[~ %html] ~['index']] args.req-line] - ?> ?=(^ ext.req-line) + [[[~ %html] (snoc site.req-line 'index')] args.req-line] ?~ site.req-line not-found:gen =* url-prefix landscape-homepage-prefix.configuration ++ get-file |= req-line=request-line ^- [simple-payload:http ?] - =/ pax=path (snoc site.req-line (need ext.req-line)) + =/ pax=path + ?~ ext.req-line site.req-line + (snoc site.req-line u.ext.req-line) =/ content=(unit [=content suffix=path public=?]) (get-content pax) ?~ content [not-found:gen %.n] ?- -.content.u.content
esp_local_ctrl: Fix some memory leak issues by coverity static analyzer.
@@ -166,6 +166,7 @@ static esp_err_t cmd_set_prop_vals_handler(LocalCtrlMessage *req, ESP_LOGE(TAG, "Failed to allocate memory for setting values"); free(idxs); free(vals); + free(resp_payload); return ESP_ERR_NO_MEM; } for (size_t i = 0; i < req->cmd_set_prop_vals->n_props; i++) {
openjdk 12 vanilla
# JDK 12 -SET(JDK12_DARWIN sbr:1024709691) -SET(JDK12_LINUX sbr:1024708480) -SET(JDK12_WINDOWS sbr:1024706391) +SET(JDK12_DARWIN sbr:1128561457) +SET(JDK12_LINUX sbr:1128737735) +SET(JDK12_WINDOWS sbr:1128743394) # JDK 11 SET(JDK11_DARWIN sbr:1033682443) SET(JDK11_LINUX sbr:1033690755)
[tools] add function of auto-update rtconfig.h
@@ -12,41 +12,54 @@ if len(sys.argv) != 2: usage() sys.exit(0) -# get command options -command = '' -if sys.argv[1] == 'all': - command = ' ' -elif sys.argv[1] == 'clean': - command = ' -c' -elif sys.argv[1] == 'project': - - projects = os.listdir(BSP_ROOT) - for item in projects: - project_dir = os.path.join(BSP_ROOT, item) - +def update_project_file(project_dir): if os.path.isfile(os.path.join(project_dir, 'template.Uv2')): print('prepare MDK3 project file on ' + project_dir) command = ' --target=mdk -s' - - os.system('scons --directory=' + project_dir + command) + os.system('scons --directory=' + project_dir + command + ' > 1.txt') if os.path.isfile(os.path.join(project_dir, 'template.uvproj')): print('prepare MDK4 project file on ' + project_dir) command = ' --target=mdk4 -s' - - os.system('scons --directory=' + project_dir + command) + os.system('scons --directory=' + project_dir + command + ' > 1.txt') if os.path.isfile(os.path.join(project_dir, 'template.uvprojx')): print('prepare MDK5 project file on ' + project_dir) command = ' --target=mdk5 -s' - - os.system('scons --directory=' + project_dir + command) + os.system('scons --directory=' + project_dir + command + ' > 1.txt') if os.path.isfile(os.path.join(project_dir, 'template.ewp')): print('prepare IAR project file on ' + project_dir) command = ' --target=iar -s' + os.system('scons --directory=' + project_dir + command + ' > 1.txt') + - os.system('scons --directory=' + project_dir + command) +def update_all_project_files(root_path): + # current path is dir + if os.path.isdir(root_path): + projects = os.listdir(root_path) + # is a project path? + if "SConscript" in projects: + print('new bsp path {}'.format(root_path)) + try: + os.system('scons --pyconfig-silent -C {0}'.format(root_path)) # update rtconfig.h and .config + update_project_file(root_path) + except Exception as e: + print("error message: {}".format(e)) + sys.exit(-1) + else: + for i in projects: + new_root_path = os.path.join(root_path, i) + update_all_project_files(new_root_path) + +# get command options +command = '' +if sys.argv[1] == 'all': + command = ' ' +elif sys.argv[1] == 'clean': + command = ' -c' +elif sys.argv[1] == 'project': + update_all_project_files(BSP_ROOT) sys.exit(0) else:
[modify][components][utilities]Modify the gcc section definition of a Var Export component
@@ -47,7 +47,7 @@ typedef struct ve_iterator ve_iterator_t; const char _vexp_##identi##_module[] RT_SECTION(".rodata.vexp") = #module; \ const char _vexp_##identi##_identi[] RT_SECTION(".rodata.vexp") = #identi; \ RT_USED const struct ve_exporter _vexp_##module##identi \ - RT_SECTION("VarExpTab") = \ + RT_SECTION(#module".VarExpTab."#identi) = \ \ { \ _vexp_##identi##_module, \ _vexp_##identi##_identi, \
Add default buffer length for token information
@@ -2402,23 +2402,35 @@ NTSTATUS PhpQueryTokenVariableSize( { NTSTATUS status; PVOID buffer; - ULONG returnLength = 0; + ULONG bufferSize; + ULONG returnLength; + + returnLength = 0; + bufferSize = 0x40; + buffer = PhAllocate(bufferSize); - NtQueryInformationToken( + status = NtQueryInformationToken( TokenHandle, TokenInformationClass, - NULL, - 0, + buffer, + bufferSize, &returnLength ); - buffer = PhAllocate(returnLength); + + if (status == STATUS_BUFFER_OVERFLOW || status == STATUS_BUFFER_TOO_SMALL) + { + PhFree(buffer); + bufferSize = returnLength; + buffer = PhAllocate(bufferSize); + status = NtQueryInformationToken( TokenHandle, TokenInformationClass, buffer, - returnLength, + bufferSize, &returnLength ); + } if (NT_SUCCESS(status)) {
apps/cmp.c: Correct -keyform option range w.r.t engine
@@ -1068,7 +1068,7 @@ static int transform_opts(void) return 0; } -#ifdef OPENSSL_NO_ENGINE +#ifndef OPENSSL_NO_ENGINE # define FORMAT_OPTIONS (OPT_FMT_PEMDER | OPT_FMT_PKCS12 | OPT_FMT_ENGINE) #else # define FORMAT_OPTIONS (OPT_FMT_PEMDER | OPT_FMT_PKCS12)
Add FLT_PORT_CONTEXT_MAX
@@ -53,6 +53,8 @@ typedef struct _FILTER_PORT_EA BYTE ConnectionContext[ANYSIZE_ARRAY]; } FILTER_PORT_EA, *PFILTER_PORT_EA; +#define FLT_PORT_CONTEXT_MAX 0xFFE8 + // FILE_FULL_EA_INFORMATION (symbols) typedef struct _FILTER_PORT_FULL_EA { @@ -429,12 +431,15 @@ NTSTATUS KphpFilterConnectCommunicationPort( *Port = NULL; - if (((SizeOfContext > 0) && !ConnectionContext) || - ((SizeOfContext == 0) && ConnectionContext)) + if ((SizeOfContext > 0 && !ConnectionContext) || + (SizeOfContext == 0 && ConnectionContext)) { return STATUS_INVALID_PARAMETER; } + if (SizeOfContext >= FLT_PORT_CONTEXT_MAX) + return STATUS_INTEGER_OVERFLOW; + if (!PhStringRefToUnicodeString(PortName, &portName)) return STATUS_NAME_TOO_LONG;
[CI] Run mkinitrd in build_kernel.py This will also build mkinitrd if necessary, ensuring it's available in CI
@@ -106,6 +106,9 @@ def build_initrd2() -> None: if not mkinitrd_path.exists(): raise RuntimeError(f"mkinitrd directory missing, expected at {mkinitrd_path}") + # This will also build mkinitrd, if necessary + run_and_check(['cargo', 'run', '--release'], cwd=mkinitrd_path) + generated_initrd = mkinitrd_path / "output.img" if not generated_initrd.exists(): raise RuntimeError(f"mkinitrd did not generate initrd at {generated_initrd}")
contributing: update OPAE mailing list link
We track OPAE design and development issues, bugs, and feature requests in the [GitHub issue tracker](https://github.com/OPAE/opae-sdk/issues). For usage, installation, or other requests for help, please use the [OPAE mailing -list](https://lists.01.org/mailman/listinfo/opae) instead. +list](https://lists.01.org/postorius/lists/opae.lists.01.org) instead. When reporting a bug, please provide the following information, where applicable:
Pretty-print peer and poke nacks as hall messages.
|= des/(list delta) %_(+> deltas (welp (flop des) deltas)) :: - ++ ta-note - :> sends {msg} as an %app message to the user's inbox. + ++ ta-speak + :> sends {sep} as an %app message to the user's inbox. :: - |= msg/tape + |= sep/speech %+ ta-action %phrase :- [[our.bol %inbox] ~ ~] - [%app dap.bol %lin | (crip msg)]~ + [%app dap.bol sep]~ + :: + ++ ta-grieve + :> sends a stack trace to the user's inbox. + :: + |= {msg/tape fal/tang} + %^ ta-speak %fat + [%name 'stack trace' %tank fal] + [%lin | (crip msg)] + :: + ++ ta-note + :> sends {msg} to the user's inbox. + :: + |= msg/tape + (ta-speak %lin | (crip msg)) :: ++ ta-evil :> tracing printf and crash. :: |= {who/circle ses/(list serial) fal/(unit tang)} ^+ +> - ~? ?=(^ fal) u.fal - =- (ta-delta %done who ses -) - ?~ fal %accepted - ~>(%slog.[0 u.fal] %rejected) + ?~ fal + (ta-delta %done who ses %accepted) + =. +> (ta-delta %done who ses %rejected) + =- (ta-grieve - u.fal) + %+ weld "{(scow %ud (lent ses))} message(s) " + "rejected by {(scow %p hos.who)}/{(trip nom.who)}" :: ++ ta-resub :> subscription dropped |= {src/circle gam/telegram} ^+ +> :: check for write permissions. + ::TODO we want to !! instead of silently failing, + :: so that ++coup-repeat of the caller gets + :: an error. but the caller may not be the + :: author. if we check for that to be true, + :: can we guarantee it's not an older message + :: getting resent? does that matter? think. ?. (so-admire aut.gam) +> :: clean up the message to conform to our rules. =. sep.gam (so-sane sep.gam) ?~ fal %- pre-bake ta-done:(ta-greet:ta nom src) - =. u.fal [>%failed-subscribe nom src< u.fal] - %- (slog (flop u.fal)) %- pre-bake - ta-done:(ta-leave:ta nom src) + =< ta-done + =- (ta-grieve:(ta-leave:ta nom src) - u.fal) + =+ (wire-to-target wir) + %+ weld "failed (re)subscribe to {(scow %p p)} on " + %+ roll q + |= {a/@ta b/tape} + :(weld b "/" (trip a)) :: ++ quit :> dropped subscription
doc: update link to book
@@ -69,7 +69,7 @@ without you we would not have been able to collect all the information that led to the requirements for Elektra. The LaTeX sources are available [here](https://book.libelektra.org) -and the compiled book can be downloaded from [here](https://book.libelektra.org/raw/master/book/book.pdf). +and the compiled book can be downloaded from [here](https://www.libelektra.org/ftp/elektra/publications/raab2017context.pdf). ### Maturing of Plugins
fix UBSAN warning "applying non-zero offset 2044 to null pointer" Fixes chromium bug
@@ -732,7 +732,7 @@ static int AllocateMemory(VP8Decoder* const dec) { mem += f_info_size; dec->thread_ctx_.id_ = 0; dec->thread_ctx_.f_info_ = dec->f_info_; - if (dec->mt_method_ > 0) { + if (dec->filter_type_ > 0 && dec->mt_method_ > 0) { // secondary cache line. The deblocking process need to make use of the // filtering strength from previous macroblock row, while the new ones // are being decoded in parallel. We'll just swap the pointers.
interface: fully support pagination
@@ -25,7 +25,8 @@ export function GroupFeed(props) { const shouldRenderFeed = graphId in graphs; useEffect(() => { - api.graph.getGraph(graphResource.ship, graphResource.name); + // TODO: VirtualScroller should support lower starting values than 100 + props.api.graph.getNewest(graphResource.ship, graphResource.name, 100); }, [graphPath]); return (
permalinks: fix tsc error
@@ -154,7 +154,7 @@ function GraphPermalink( navigate(e); }} > - {loading && association && Placeholder(association.metadata.config.graph)} + {loading && association && Placeholder((association.metadata.config as GraphConfig).graph)} {showTransclusion && index && !loading && ( <TranscludedNode api={api}
downstream: honor flags when it comes to the listener sockets mode
@@ -115,10 +115,8 @@ int flb_downstream_setup(struct flb_downstream *stream, return -1; } - stream->flags = flags; - stream->flags |= FLB_IO_ASYNC; - stream->thread_safe = FLB_FALSE; + stream->flags = flags; stream->tls = tls; /* Create TCP server */ @@ -134,7 +132,9 @@ int flb_downstream_setup(struct flb_downstream *stream, return -2; } + if (stream->flags & FLB_IO_ASYNC) { flb_net_socket_nonblocking(stream->server_fd); + } mk_list_add(&stream->_head, &config->downstreams);
fix proress bar process 0
@@ -11,6 +11,10 @@ from .FrameWriter import write_frame import os +def update_progress(framecount, deltatime, videotime): + pass + + def create_frame(settings, beatmap, replay_info, resultinfo, videotime, showranking): logging.debug('entering preparedframes') @@ -92,12 +96,14 @@ def create_frame(settings, beatmap, replay_info, resultinfo, videotime, showrank writer.write(im) framecount += 1 - if framecount == 100: + if framecount % 100 == 0: filewriter = open(os.path.join(settings.temp, "speed.txt"), "w") deltatime = time.time() - startwritetime filewriter.write("{}\n{}\n{}\n{}".format(framecount, deltatime, f, startwritetime)) filewriter.close() + update_progress(framecount, deltatime, videotime) + if showranking: for x in range(int(5 * settings.fps)): drawer.draw_rankingpanel()
[components][ulog] Fix the log length error when using multiple non-color backends.
/* - * Copyright (c) 2006-2018, RT-Thread Development Team + * Copyright (c) 2006-2019, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * @@ -403,15 +403,15 @@ void ulog_output_to_all_backend(rt_uint32_t level, const char *tag, rt_bool_t is else { /* recalculate the log start address and log size when backend not supported color */ - rt_size_t color_info_len = rt_strlen(color_output_info[level]); + rt_size_t color_info_len = rt_strlen(color_output_info[level]), output_size = size; if (color_info_len) { rt_size_t color_hdr_len = rt_strlen(CSI_START) + color_info_len; log += color_hdr_len; - size -= (color_hdr_len + (sizeof(CSI_END) - 1)); + output_size -= (color_hdr_len + (sizeof(CSI_END) - 1)); } - backend->output(backend, level, tag, is_raw, log, size); + backend->output(backend, level, tag, is_raw, log, output_size); } #endif /* !defined(ULOG_USING_COLOR) || defined(ULOG_USING_SYSLOG) */ }
driver/bc12/pi3usb9201.h: Format with clang-format BRANCH=none TEST=none
/* Control_1 regiter bit definitions */ #define PI3USB9201_REG_CTRL_1_INT_MASK BIT(0) #define PI3USB9201_REG_CTRL_1_MODE_SHIFT 1 -#define PI3USB9201_REG_CTRL_1_MODE_MASK (0x7 << \ - PI3USB9201_REG_CTRL_1_MODE_SHIFT) +#define PI3USB9201_REG_CTRL_1_MODE_MASK \ + (0x7 << PI3USB9201_REG_CTRL_1_MODE_SHIFT) /* Control_2 regiter bit definitions */ #define PI3USB9201_REG_CTRL_2_AUTO_SW BIT(1)
BugID:17132096: [WhiteScan] Fix negative returns error for atsamd5x _i2c_m_async_set_baudrate
@@ -1125,14 +1125,19 @@ int32_t _i2c_m_async_disable(struct _i2c_m_async_device *const i2c_dev) int32_t _i2c_m_async_set_baudrate(struct _i2c_m_async_device *const i2c_dev, uint32_t clkrate, uint32_t baudrate) { uint32_t tmp; + int8_t idx = 0; void * hw = i2c_dev->hw; if (hri_sercomi2cm_get_CTRLA_ENABLE_bit(hw)) { return ERR_DENIED; } - tmp = _get_i2cm_index(hw); - clkrate = _i2cms[tmp].clk / 1000; + idx = _get_i2cm_index(hw); + if (idx < 0) { + return ERR_INVALID_ARG; + } + + clkrate = _i2cms[idx].clk / 1000; if (i2c_dev->service.mode == I2C_STANDARD_MODE) { tmp = (uint32_t)((clkrate - 10 * baudrate - baudrate * clkrate * (i2c_dev->service.trise * 0.000000001))
upload test artifact for the windows pipeline build
@@ -40,8 +40,8 @@ jobs: cd $(BuildType) ctest --verbose --timeout 120 displayName: CTest -# - upload: $(Build.SourcesDirectory)/$(BuildType) -# artifact: mimalloc-windows-$(BuildType) + - upload: $(Build.SourcesDirectory)/$(BuildType) + artifact: mimalloc-windows-$(BuildType) - job: displayName: Linux
return set float value
@@ -103,7 +103,7 @@ FLT config_read_float(config_group *cg, const char *tag, const FLT def) { if (cv != NULL) return cv->numeric.f; - config_set_float(cg, tag, def); + return config_set_float(cg, tag, def); } config_entry* next_unused_entry(config_group *cg) {