message
stringlengths
6
474
diff
stringlengths
8
5.22k
fix(docs) install doxygen for GitHub Actions
@@ -13,6 +13,8 @@ jobs: uses: actions/setup-python@v1 with: python-version: 3.7 + - name: Install Doxygen + run: sudo apt-get install doxygen - name: Install requirements run: | pip install --upgrade --upgrade-strategy eager sphinx recommonmark commonmark breathe sphinx-rtd-theme sphinx-markdown-tables sphinx-sitemap
kernel/os - deal with extended frames when calculating sp for corefile.
@@ -93,15 +93,27 @@ trap_to_coredump(struct trap_frame *tf, struct coredump_regs *regs) /* * SP just before exception for the coredump. * See ARMv7-M Architecture Ref Manual, sections B1.5.6 - B1.5.8 - * SP is adjusted by 0x20. - * If SCB->CCR.STKALIGN is set, SP is aligned to 8-byte boundary on - * exception entry. + ...
Remove SSE2 compiler flag for MSVC, it's on by default
@@ -167,9 +167,10 @@ if (MSVC) elseif(${ENABLE_SIMD_FLAGS} MATCHES "AVX") add_definitions(/arch:AVX) message(STATUS "Enabling AVX instructions") - elseif(${ENABLE_SIMD_FLAGS} MATCHES "SSE2") - add_definitions(/arch:SSE2) - message(STATUS "Enabling SSE2 instructions") + # MSVC default mode already uses SSE2 + # elseif($...
stm32/mboot: Allow deploying via deploy-stlink.
@@ -115,13 +115,17 @@ $(TOP)/lib/stm32lib/README.md: $(ECHO) "stm32lib submodule not found, fetching it now..." (cd $(TOP) && git submodule update --init lib/stm32lib) -.PHONY: deploy +.PHONY: deploy deploy-stlink + +FLASH_ADDR = 0x08000000 deploy: $(BUILD)/firmware.dfu $(ECHO) "Writing $< to the board" $(Q)$(PYTHON) $...
remove FCLK_CLK0 from writer_test
@@ -24,7 +24,7 @@ cell xilinx.com:ip:xlslice:1.0 slice_4 { # Create axis_counter cell pavel-demin:user:axis_counter:1.0 cntr_1 {} { cfg_data slice_4/Dout - aclk ps_0/FCLK_CLK0 + aclk pll_0/clk_out1 aresetn slice_2/Dout } @@ -35,7 +35,7 @@ cell xilinx.com:ip:axis_dwidth_converter:1.1 conv_0 { M_TDATA_NUM_BYTES 8 } { S_A...
[io] manual serialization for RollingFrictionContact.
@@ -131,6 +131,26 @@ void siconos_io(Archive& ar, GlobalFrictionContact &v, unsigned int version) REGISTER_BOOST_SERIALIZATION(GlobalFrictionContact); +template <class Archive> +void siconos_io(Archive& ar, RollingFrictionContact &v, unsigned int version) +{ + SERIALIZE(v, (_contactProblemDim)(_mu)(_muR)(_numerics_solv...
Adding DEFINES_MODULE Flags Currently TrustKit can't be packaged in a static Swift Library without modules. "Pod package" fail if TrustKit is in other podspec dependency. Addind this line will generate module maps for swift dependencies.
@@ -13,6 +13,7 @@ Pod::Spec.new do |s| s.tvos.deployment_target = '10.0' s.watchos.deployment_target = '3.0' + s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } s.source_files = ['TrustKit', 'TrustKit/**/*.{h,m,c}'] s.public_header_files = [ 'TrustKit/TrustKit.h',
CLEANUP: Added a comment about the suffix length of get response.
@@ -3044,16 +3044,17 @@ process_get_single(conn *c, char *key, size_t nkey, bool return_cas) } int suffix_len = snprintf(suffix, SUFFIX_SIZE, " %u %u\r\n", htonl(c->hinfo.flags), c->hinfo.nbytes - 2); + /* suffix_len < SUFFIX_SIZE because the length of nbytes string is smaller than 10. */ /* rebuild cas value */ if (re...
add linux openssl instruction note
@@ -21,6 +21,10 @@ Key concepts are explained in detail [here][SDK_README_KEY_CONCEPTS]. - To generate the device certificate, the provided script uses [OpenSSL 1.1.1 LTS](https://www.openssl.org/source/). Please install the OpenSSL command line utility prior to using the script. + - Note: for Linux based systems, manu...
Minor fix in VmaBlockVector::CalcMaxBlockSize for compilation in Visual Studio 2012 32-bit. Thanks !
@@ -4246,7 +4246,7 @@ private: bool m_HasEmptyBlock; VmaDefragmentator* m_pDefragmentator; - size_t CalcMaxBlockSize() const; + VkDeviceSize CalcMaxBlockSize() const; // Finds and removes given block from vector. void Remove(VmaDeviceMemoryBlock* pBlock); @@ -6882,12 +6882,12 @@ void VmaBlockVector::Free( } } -size_t V...
Add missing keys for western keyboard.
@@ -90,6 +90,12 @@ static const LRKCNV lrcnv101[] = /* = */ {RETROK_EQUALS, 0x0c}, + /* @ and : keys for western qwerty kb */ + {RETROK_BACKQUOTE, 0x1a}, {RETROK_QUOTE, 0x27}, + + /* _ as shift+F11 for western qwerty kb */ + {RETROK_F11, 0x33}, + /* MacOS Yen */ //{0xa5, 0x0d} };
Allow setting RCFLAGS as Configure option or environment variable
@@ -594,7 +594,7 @@ my %user = ( PERL => env('PERL') || ($^O ne "VMS" ? $^X : "perl"), RANLIB => env('RANLIB'), RC => env('RC') || env('WINDRES'), - RCFLAGS => [], + RCFLAGS => [ env('RCFLAGS') || () ], RM => undef, ); # Info about what "make variables" may be prefixed with the cross compiler @@ -611,6 +611,7 @@ my %us...
[agx] Set an alpha pixel
@@ -114,6 +114,7 @@ impl LikeLayerSlice for LayerSlice { fb[offset + 0] = color.b; fb[offset + 1] = color.g; fb[offset + 2] = color.r; + fb[offset + 3] = 0xff; } } } @@ -151,6 +152,7 @@ impl LikeLayerSlice for LayerSlice { fb[off + 0] = color.b; fb[off + 1] = color.g; fb[off + 2] = color.r; + fb[off + 3] = 0xff; } fn g...
xrepo install: set "shared" config if kind is specified.
@@ -250,9 +250,9 @@ function _install_packages(packages) if mode == "debug" then extra.debug = true end - if kind == "shared" then + if option.get("kind") then extra.configs = extra.configs or {} - extra.configs.shared = true + extra.configs.shared = kind == "shared" end local configs = option.get("configs") if configs...
install xz and liblzma in Dockerfile.ubuntu
@@ -37,6 +37,7 @@ RUN apt-get update && apt-get install -y \ libelf-dev \ zlib1g-dev \ libiberty-dev \ + liblzma-dev \ libbfd-dev \ libedit-dev \ clang-${LLVM_VERSION} \ @@ -60,7 +61,9 @@ RUN apt-get update && apt-get install -y \ bridge-utils \ libtinfo5 \ libtinfo-dev \ - iperf netperf && \ + iperf \ + netperf \ + xz...
APPS load_key_certs_crls(): improve diagnostics on not finding expected types of contents
@@ -1071,6 +1071,8 @@ int load_key_certs_crls(const char *uri, int format, int maybe_stdin, if (failed == NULL) { failed = FAIL_NAME; if (failed != NULL) + BIO_printf(bio_err, "Could not find"); + } else { BIO_printf(bio_err, "Could not read"); } if (failed != NULL) {
fix WaitSnapRcvCondTransactionComplate function logic error
@@ -753,10 +753,10 @@ static bool WaitSnapRcvCondTransactionComplate(void *context) xcnt = SnapRcv->xcnt; while(xcnt>0) { - xid = SnapRcv->xip[xcnt--]; + xid = SnapRcv->xip[--xcnt]; /* active, wait */ - if (xid == txid) + if (TransactionIdEquals(xid, txid)) return true; if (NormalTransactionIdPrecedes(xmax, xid))
Add "If Current Scene Is" to Control Flow group as well as Scene group
const l10n = require("../helpers/l10n").default; const id = "EVENT_IF_CURRENT_SCENE_IS"; -const groups = ["EVENT_GROUP_SCENE"]; +const groups = ["EVENT_GROUP_CONTROL_FLOW", "EVENT_GROUP_SCENE"]; const autoLabel = (fetchArg) => { return l10n("EVENT_IF_CURRENT_SCENE_IS_LABEL", {
Modify entry point scope in docker compose image for gitlab ci.
@@ -34,8 +34,9 @@ variables: build: type: build - image: docker/compose:1.23.2 - entrypoint: sh + image: + name: docker/compose:1.23.2 + entrypoint: ["sh"] script: - $CI_PROJECT_DIR/docker-compose.sh build - $CI_PROJECT_DIR/docker-compose.sh push
Quit config watcher thread if it fails to init and clean up
@@ -17,6 +17,12 @@ void *fileChanged(void *params_void){ char buffer[EVENT_BUF_LEN]; fd = inotify_init(); wd = inotify_add_watch( fd, nt->params->config_file_path.c_str(), IN_MODIFY); + + if (wd < 0) { + close(fd); + return nullptr; + } + while (!nt->quit) { length = read( fd, buffer, EVENT_BUF_LEN ); while (i < length...
Fix service verification column crash
@@ -461,7 +461,7 @@ NTSTATUS PhpServiceQueryWorker( { PPH_SERVICE_QUERY_DATA data = (PPH_SERVICE_QUERY_DATA)Parameter; SC_HANDLE serviceHandle; - PPH_STRING serviceFileName; + PPH_STRING serviceFileName = NULL; if (serviceHandle = PhOpenService(data->ServiceItem->Name->Buffer, SERVICE_QUERY_CONFIG)) {
Reduce wait time on a semaphore from 4 seconds down to 1 second.
/* * Max time to wait for interrupt. */ -#define LIS2DH12_MAX_INT_WAIT (4 * OS_TICKS_PER_SEC) +#define LIS2DH12_MAX_INT_WAIT (1 * OS_TICKS_PER_SEC) static const struct lis2dh12_notif_cfg dflt_notif_cfg[] = { {
fs/tmpfs : Change wrong memory allocation usage kmm_malloc can be matched with kmm_malloc_at, instead of malloc_at for allocating the memory into the kernel.
#undef kmm_malloc #undef kmm_zalloc #undef kmm_realloc -#define kmm_malloc(s) malloc_at(CONFIG_FS_TMPFS_HEAP_INDEX, s) -#define kmm_zalloc(s) zalloc_at(CONFIG_FS_TMPFS_HEAP_INDEX, s) -#define kmm_realloc(p, s) realloc_at(CONFIG_FS_TMPFS_HEAP_INDEX, p, s) +#define kmm_malloc(s) kmm_malloc_at(CONFIG_FS_TMPFS_HEAP_INDEX, ...
runtime: fix shm size estimation bug
@@ -97,7 +97,7 @@ static size_t estimate_shm_space(void) #ifdef DIRECTPATH // mlx5 directpath if (cfg_directpath_enabled) - ret += align_up(directpath_rx_buf_pool_sz(maxks), PGSIZE_2MB); + ret += PGSIZE_2MB; #endif #ifdef DIRECT_STORAGE
sysdeps/managarm: Add missing error handling for sys_symlinkat
@@ -168,9 +168,19 @@ int sys_symlinkat(const char *target_path, int dirfd, const char *link_path) { managarm::posix::SvrResponse<MemoryAllocator> resp(getSysdepsAllocator()); resp.ParseFromArray(recv_resp.data(), recv_resp.length()); + if(resp.error() == managarm::posix::Errors::FILE_NOT_FOUND) { + return ENOENT; + }el...
increased rcv buffer
#endif static int result = 0; -static uint32_t config_rcv_buffer_size = 65536; +static uint32_t config_rcv_buffer_size = 32*1024*1024; // 32MB rcv buffer static uint32_t config_max_flows = 50; static uint8_t config_log_level = 0; static char request[512];
Removed unnecessary variable assignment. The same value is assigned to the variable at the moment of declaration (some lines before)
@@ -107,8 +107,6 @@ AOCSSegmentFileTruncateToEOF(Relation aorel, int segno, AOCSVPInfo *vpinfo) Assert(RelationIsAoCols(aorel)); - relname = RelationGetRelationName(aorel); - for (j = 0; j < vpinfo->nEntry; ++j) { int64 segeof;
use exec WorkingDirectory
<_XmakeExecutable>"$([System.IO.Path]::GetFullPath('$(XmakeProgramDir)xmake.exe'))"</_XmakeExecutable> <_XmakeEnv> chcp 65001 &gt; NUL - pushd "$(XmakeProjectDir)" set XMAKE_CONFIGDIR=$(XmakeConfigDir) set XMAKE_PROGRAM_DIR=$(XmakeProgramDir) </_XmakeEnv> </Target> <Target Name="_XmakeConfig" DependsOnTargets="_XmakePr...
Update OpenEXR version to 3.0.4 in bazel build
@@ -46,14 +46,14 @@ generate_header( substitutions = { "@OPENEXR_IMF_NAMESPACE@": "Imf", "@OPENEXR_INTERNAL_IMF_NAMESPACE@": "Imf_3_0", - "@OPENEXR_LIB_VERSION@": "3.0.3", + "@OPENEXR_LIB_VERSION@": "3.0.4", "@OPENEXR_NAMESPACE_CUSTOM@": "0", - "@OPENEXR_PACKAGE_NAME@": "OpenEXR 3.0.3", + "@OPENEXR_PACKAGE_NAME@": "Ope...
options/linux: Implement a part of the mntent family of functions
#include <mntent.h> +#include <stdio.h> +#include <string.h> #include <bits/ensure.h> -FILE *setmntent(const char *, const char *) { - __ensure(!"Not implemented"); - __builtin_unreachable(); +FILE *setmntent(const char *name, const char *mode) { + return fopen(name, mode); } struct mntent *getmntent(FILE *) { @@ -12,2...
updates +ivory to include %zuse and adds a hack for jet registration
=+ whole-formula=q:(~(mint ut %noun) %noun whole-hoon) ~& %ivory-compiled :: -whole-formula +:: tang: standard library (%zuse) installation event +:: +=/ tang + =/ pax (weld sys /zuse) + =/ txt .^(@ %cx (weld pax /hoon)) + `ovum`[/vane/zuse [%veer %$ pax txt]] +:: +:: installed: kernel with tang installed +:: +~& %tang...
Automation change only: u_settings.py make JSON errors more obvious. It is easy to accidentally introduce JSON errors when editing settings.json: this change prints a nice big banner when this happens to make it more obvious.
@@ -17,9 +17,11 @@ if os.path.isfile(__path): __settings = json.load(f) __useDefaultSettings = False except: - print("u_settings: WARNING: settings file {} seems corrupt".format(__path)) + print("u_settings: ************************** WARNING ***************************") + print("u_settings: settings file \"{}\" corru...
Bump Dockerfile [ci skip]
@@ -26,6 +26,11 @@ RUN git clone https://github.com/ucb-bar/chipyard.git && \ ./scripts/ubuntu-req.sh 1>/dev/null && \ sudo rm -rf /var/lib/apt/lists/* +# Update PATH for RISCV toolchain (note: hardcoded for CircleCI) +ENV RISCV="/root/riscv-tools-install" +ENV LD_LIBRARY_PATH="$RISCV/lib" +ENV PATH="$RISCV/bin:$PATH" ...
Test: Use Google Test 1.10
@@ -28,7 +28,7 @@ if (ENABLE_TESTING) download_project ( PROJ googletest GIT_REPOSITORY https://github.com/google/googletest.git - GIT_TAG release-1.8.1 + GIT_TAG release-1.10.0 QUIET ${UPDATE_DISCONNECTED_IF_AVAILABLE}) endif (DEFINED GOOGLETEST_ROOT)
sp: doc: document time and record functions
@@ -20,3 +20,18 @@ The following is the SQL statement syntax supported by Fluent Bit stream process <characters> := <letter> | <digit> | _ | <characters> <characters> <value> := true | false | <integer> | <float> | '<string>' ``` + +### Time Functions + +| name | description | example | +| ---------------- | ----------...
Fixed an error preventing correct binding from -X last messages from a particular station through inbox.
=- (~(so-first-grams so:ta nom.qer ~ -) ran.qer) ::TODO this can be done more efficiently. ?~ wer.qer u.soy - %_ u.soy - grams + =- u.soy(grams -, count (lent -)) ?. (~(has by sourced.u.soy) u.wer.qer) ~ - %+ turn (~(got by sourced.u.soy) u.wer.qer) + %+ turn + %- flop + (~(got by sourced.u.soy) u.wer.qer) |= n/@ud (sn...
Clean up %H.
@@ -764,10 +764,8 @@ u3m_fall() u3R->rut_w); #endif -#ifdef U3_CPU_DEBUG u3to(u3_road, u3R->par_p)->pro.nox_d += u3R->pro.nox_d; u3to(u3_road, u3R->par_p)->pro.cel_d += u3R->pro.cel_d; -#endif /* The new cap is the old hat - it's as simple as that. */ @@ -1528,7 +1526,7 @@ _arvo_hash(c3_c *out_c, c3_c *arv_c) { c3_c cm...
vom: Fix the error handling for already existing itf
@@ -39,7 +39,11 @@ rc_t::from_vpp_retval(int32_t rv) return (rc_t::OK); } if (-68 == rv) { - // interface laready exists + // sub interface already exists + return (rc_t::OK); + } + if (-79 == rv) { + // interface already exists return (rc_t::OK); }
bug fix: the value of timer auto reload should be (val-1)
@@ -228,7 +228,7 @@ static rt_err_t timer_start(rt_hwtimer_t *timer, rt_uint32_t t, rt_hwtimer_mode_ tim = (TIM_HandleTypeDef *)timer->parent.user_data; /* set tim cnt */ - __HAL_TIM_SET_AUTORELOAD(tim, t); + __HAL_TIM_SET_AUTORELOAD(tim, t - 1); if (opmode == HWTIMER_MODE_ONESHOT) {
Allow verification of ip addresses in subject alternative name.
#include "tls/s2n_connection.h" #include "crypto/s2n_openssl.h" +#include "arpa/inet.h" + #include "openssl/err.h" #include "openssl/asn1.h" @@ -210,7 +212,31 @@ static uint8_t s2n_verify_host_information(struct s2n_x509_validator *validator, size_t name_len = (size_t) ASN1_STRING_length(current_name->d.ia5); verified ...
Fixing audio debug print macros. The macros gave a warning(error when built with -Wunused-error flags) when built with audio debug flags turned off.
@@ -1011,24 +1011,24 @@ Once LOGM is approved, each module should have its own index #define auddbg dbg #define audlldbg lldbg #else -#define auddbg (void) -#define audlldbg (void) +#define auddbg(...) +#define audlldbg(...) #endif #ifdef CONFIG_DEBUG_AUDIO_WARN #define audwdbg wdbg #define audllwdbg llwdbg #else -#def...
Tidied makefile
@@ -14,27 +14,15 @@ OBJ_DIR = obj SOURCE_DIR = src CFLAGS = -DUSE_SFR_FOR_REG -Wl-yo32 -Wl-ya4 -# CIGNORE = 3>&1 1>&2 2>&3 3>&- | sed 's/.*pragma.*/IGNORE/g' | sed "s/^'/IGNORE/g" | grep -v IGNORE || test "${PIPESTATUS[0]}" -eq 0 CIGNORE = 3>&1 1>&2 2>&3 3>&- - SOURCES := $(shell find -L $(SOURCE_DIR) -name '*.c') SOUR...
Make sure that NGTCP2_CONN_FLAG_PPE_PENDING is not leaked
@@ -9819,6 +9819,8 @@ int ngtcp2_conn_read_pkt_versioned(ngtcp2_conn *conn, const ngtcp2_path *path, const ngtcp2_pkt_info zero_pi = {0}; (void)pkt_info_version; + assert(!(conn->flags & NGTCP2_CONN_FLAG_PPE_PENDING)); + conn->log.last_ts = ts; conn->qlog.last_ts = ts; @@ -10880,6 +10882,8 @@ int ngtcp2_conn_handle_exp...
GitHub stale action: Change close reason
@@ -30,6 +30,7 @@ jobs: it or create a new issue with the remainder of this issue. Thank you for your contributions :sparkling_heart: + close-issue-reason: not_planned days-before-pr-stale: 365 days-before-pr-close: 14 stale-pr-label: "stale"
pyro: Add battery firmware update support. Add battery firmware update support. BRANCH=reef TEST=check ec_sb_firmware_update tool can work. Commit-Ready: Keith Tzeng Tested-by: Keith Tzeng
#define CONFIG_BATTERY_SMART #define CONFIG_BATTERY_VENDOR_PARAM +/* battery firmware update */ +#define CONFIG_CRC8 +#define CONFIG_SB_FIRMWARE_UPDATE +#define CONFIG_SMBUS + /* Charger */ #define CONFIG_CHARGE_MANAGER #define CONFIG_CHARGE_RAMP
engine: destroy shutdown-timeout on exit
@@ -533,6 +533,10 @@ int flb_engine_start(struct flb_config *config) } else if (ret == FLB_ENGINE_SHUTDOWN) { flb_info("[engine] service stopped"); + if (config->shutdown_fd > 0) { + mk_event_timeout_destroy(config->evl, + &config->event_shutdown); + } return flb_engine_shutdown(config); } #ifdef FLB_HAVE_STATS
nimble/ll: Use syscfg val to reserve slot for aux scan Turns out we have syscfg val for aux scan payload, but we forgot to use it.
@@ -756,7 +756,7 @@ ble_ll_scan_aux_sched(struct ble_ll_scan_aux_data *aux, uint32_t pdu_time, return -1; } - max_aux_time_us = ble_ll_pdu_tx_time_get(BLE_LL_MAX_PAYLOAD_LEN, + max_aux_time_us = ble_ll_pdu_tx_time_get(MYNEWT_VAL(BLE_LL_SCHED_SCAN_AUX_PDU_LEN), ble_ll_phy_to_phy_mode(aux->sec_phy, 0)); rc = ble_ll_sched...
contributing: fix awkward language [ci skip] This is more of an OCD fix than anything, but technically the canonical source tree is not located 'in' the master branch; it *is* the master branch.
@@ -40,7 +40,7 @@ $ urbit my-fake-zod ### Contributing -The canonical source tree is located in the `master` branch at +The canonical source tree is the `master` branch of [https://github.com/urbit/urbit][repo]. You should typically branch off of `master` when commencing new work; similarly, when we pull in your contri...
metadata lib: parse right
?~ jin ~ ?> ?=(%o -.jin) - ?> ?& (~(has by p.jin) 'app-name') + ?. ?& (~(has by p.jin) 'app-name') (~(has by p.jin) 'resource') == + ~ =/ app-name=^json (~(got by p.jin) 'app-name') ?> ?=(%s -.app-name) :+ ~
optimize adjustAutoDC
@@ -360,87 +360,31 @@ static void TxDcBinarySearch(BinSearchParam* args) void AdjustAutoDC(const uint16_t address, bool tx) { - bool increment; + uint8_t i; uint16_t rssi; uint16_t minRSSI; - int16_t minValue = 0xffff; + int16_t minValue; int16_t initVal; - const uint16_t mask = tx ? 0x03FF : 0x003F; - const int16_t ra...
Fix the OSSL_TIME fallback in include/internal/e_os.h There's a fallback `ossl_sleep()` that uses `OSSL_TIME`. However, nothing was done to ensure that `OSSL_TIME` is defined. Adding an inclusion of "internal/time.h" should be enough.
@@ -320,6 +320,7 @@ static ossl_inline void ossl_sleep(unsigned long millis) } #else /* Fallback to a busy wait */ +# include "internal/time.h" static ossl_inline void ossl_sleep(unsigned long millis) { const OSSL_TIME finish = ossl_time_add(ossl_time_now(), ossl_ms2time(millis));
board: kevin: undefined i2c_xfer command Save some space on kevin. BRANCH=master TEST=Can compile kevin with perform_calib addition.
#undef CONFIG_CMD_ACCELSPOOF #undef CONFIG_CMD_FLASHINFO +#undef CONFIG_CMD_I2C_XFER /* Gru is especially limited on code space */ #ifdef BOARD_GRU #undef CONFIG_CMD_IDLE_STATS -#undef CONFIG_CMD_I2C_XFER #undef CONFIG_USB_PD_LOGGING #undef CONFIG_CMD_SHMEM #undef CONFIG_CMD_USBMUX
Implementation of Radial Gradient.
@@ -3259,7 +3259,8 @@ void CGContextDrawLinearGradient( } /** - @Status Stub + @Status Interoperable + @Notes We do not support cases where startCenter is not equal endCenter */ void CGContextDrawRadialGradient(CGContextRef context, CGGradientRef gradient, @@ -3269,9 +3270,45 @@ void CGContextDrawRadialGradient(CGConte...
revert kdbutiliy.h
#ifndef KDBUTILITY_H #define KDBUTILITY_H -#include <kdb.h> - #ifdef __cplusplus namespace ckdb { @@ -15,11 +13,6 @@ char * elektraRstrip (char * const start, char ** end); char * elektraStrip (char * text); char * elektraReplace (char const * const text, char const * const pattern, char const * replacement); - -/* Res...
Clean up mix.exs
@@ -11,19 +11,13 @@ defmodule Elektra.MixProject do ] end - # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger] ] end - # Run "mix help deps" to learn about dependencies. defp deps do - [ - {:ex_doc, "~> 0.27", only: :dev, runtime: false} - # {:dep_from_hexpm, "~...
contact-store: updates sent to /all path as well
+* this . def ~(. (default-agent this %|) bowl) :: -++ on-init on-init:def +++ on-init + =. rolodex (~(put by rolodex) our.bowl *contact:store) + [~ this(state state)] +:: ++ on-save !>(state) ++ on-load |= old-vase=vase ^- (list card) =/ paths=(list path) ?: our - [/updates /our ~] - ~[/updates] + [/updates /our /all ...
common: enable OpenMP by default on LCC This also adds the ability to disable auto-detection by defining SIMDE_DISABLE_OPENMP.
# endif #endif -#if !defined(SIMDE_ENABLE_OPENMP) && ((defined(_OPENMP) && (_OPENMP >= 201307L)) || (defined(_OPENMP_SIMD) && (_OPENMP_SIMD >= 201307L))) +#if !defined(SIMDE_DISABLE_OPENMP) + #if !defined(SIMDE_ENABLE_OPENMP) && ((defined(_OPENMP) && (_OPENMP >= 201307L)) || (defined(_OPENMP_SIMD) && (_OPENMP_SIMD >= 2...
Support both 'TestName' and 'test' for parsing
@@ -69,7 +69,11 @@ QuicMainStart( return QUIC_STATUS_INVALID_PARAMETER; } - const char* TestName = GetValue(argc, argv, "test"); + const char* TestName = GetValue(argc, argv, "TestName"); + if (TestName == nullptr) { + TestName = GetValue(argc, argv, "test"); + } + ServerMode = TestName == nullptr; QUIC_STATUS Status;
REmoved extraneous line from test_ioheat.py
@@ -5,17 +5,16 @@ import os cwd = os.path.dirname(os.path.realpath(__file__)) -def test_stellar(): +def test_ioheat(): """Test the stellar module.""" # Run vplanet subprocess.run(['vplanet', 'vpl.in', '-q'], cwd=cwd) # Grab the output output = GetOutput(path=cwd) -(SurfEnFluxEqtide) Surface Energy Flux due to Tides in ...
Synchronize threads in tc of pipe in libc unistd In tc of pipe api in libc unistd tx thread and rx thread should be synchronized with sem_wait and sem_post, as we can't know which task would get chance to execute first.
@@ -50,6 +50,7 @@ static void *pipe_tx_func(void *arg) for (tx_iter = 0; tx_iter < 10; tx_iter++) { write(pipe_fd[1], msg, MSG_SIZE); } + sem_post(&pipe_sem); return NULL; } @@ -58,6 +59,7 @@ static void *pipe_rx_func(void *arg) { int rx_iter; + sem_wait(&pipe_sem); for (rx_iter = 0; rx_iter < 10; rx_iter++) { read(pip...
Idel timeout larger than 3 * retransmit timer.
@@ -2285,6 +2285,10 @@ void picoquic_enable_keep_alive(picoquic_cnx_t* cnx, uint64_t interval) } /* convert to microseconds */ idle_timeout *= 1000; + /* Ensure at least 3 PTO*/ + if (idle_timeout < 3 * cnx->path[0]->retransmit_timer) { + idle_timeout = 3 * cnx->path[0]->retransmit_timer; + } /* set interval to half th...
extmod/modlwip: Abort TCP conns that didn't close cleanly in a while.
#define DEBUG_printf(...) (void)0 #endif +// Timeout between closing a TCP socket and doing a tcp_abort on that +// socket, if the connection isn't closed cleanly in that time. +#define MICROPY_PY_LWIP_TCP_CLOSE_TIMEOUT_MS (10000) + // All socket options should be globally distinct, // because we ignore option levels f...
ethernet: always put eth_driver handle in SRAM Closes
@@ -171,7 +171,8 @@ esp_err_t esp_eth_driver_install(const esp_eth_config_t *config, esp_eth_handle_ esp_eth_mac_t *mac = config->mac; esp_eth_phy_t *phy = config->phy; ETH_CHECK(mac && phy, "can't set eth->mac or eth->phy to null", err, ESP_ERR_INVALID_ARG); - esp_eth_driver_t *eth_driver = calloc(1, sizeof(esp_eth_dr...
Correction default color Correction of the default value of the color, after configuration of the CANON in IPP the test page is printed in black and white. The test empties the cartridges! A more logical choice is Color. Reproduced with CANON TS3150, TS3350, TS5150
@@ -114,11 +114,11 @@ Attribute "PWGRaster" "" "Yes" Option "PwgRasterDocumentType/Color Mode" PickOne AnySetup 10.0 Choice "Black_1/Black and White (1 bit)" "<</cupsColorSpace 3/cupsBitsPerColor 1/cupsColorOrder 0>>setpagedevice" Choice "SGRay_1/Grayscale (1 bit SGray)" "<</cupsColorSpace 18/cupsBitsPerColor 1/cupsCol...
initialize window->superview to NULL
@@ -91,6 +91,7 @@ Window* create_window_int(Rect frame, bool root) { window->subviews = array_m_create(MAX_ELEMENTS); window->title = "Window"; window->animations = array_m_create(16); + window->superview = NULL; //root window doesn't have a title view if (!root) {
docs: Makes core dump's documentation slightly clearer Merges
@@ -63,6 +63,8 @@ Base64-encoded body of core dump will be between the following header and footer <body of base64-encoded core dump, save it to file on disk> ================= CORE DUMP END =================== +The `CORE DUMP START` and `CORE DUMP END` lines must not be included in core dump text file. + Running 'espc...
Updated defconfig for audio testing on artik055s I2s debug log levels and segregation are enabled to prevent deadlock due to priority inheritance on uart semaphore.
@@ -830,6 +830,11 @@ CONFIG_AUDIO_EXCLUDE_EQUALIZER=y CONFIG_AUDIO_EXCLUDE_REWIND=y # CONFIG_AUDIO_CUSTOM_DEV_PATH is not set +# +# Media Support +# +# CONFIG_MEDIA is not set + # # File Systems # @@ -998,7 +1003,9 @@ CONFIG_DEBUG_MM_HEAPINFO=y # CONFIG_DEBUG_RTC is not set # CONFIG_DEBUG_SPI is not set # CONFIG_DEBUG_...
CMakeLists.txt: allow CMAKE_INSTALL_RPATH to be set empty this allows the user to override the default non-empty value added in: CMake: set rpath for shared objects Fixed: webp:592
@@ -101,7 +101,7 @@ endif() include(cmake/deps.cmake) include(GNUInstallDirs) -if(BUILD_SHARED_LIBS AND NOT CMAKE_INSTALL_RPATH) +if(BUILD_SHARED_LIBS AND NOT DEFINED CMAKE_INSTALL_RPATH) # Set the rpath to match autoconf/libtool behavior. Note this must be set # before target creation. set(CMAKE_INSTALL_RPATH "${CMAKE...
omnibox: address feedback
@@ -52,12 +52,16 @@ export class Omnibox extends Component { } }; - if (evt.key === 'ArrowDown') { - this.setNextSelected(); + if ( + evt.key === 'ArrowUp' || + (evt.shiftKey && evt.key === 'Tab')) { + evt.preventDefault(); + return this.setPreviousSelected(); } - if (evt.key === 'ArrowUp') { - this.setPreviousSelected...
GRIB: Fix memory leak
@@ -325,6 +325,7 @@ static int unpack_double(grib_accessor* a, double* values, size_t *len) } numbersPerRow=(long*)grib_context_malloc_clear(a->context,sizeof(long)*numberOfRows); + if(!numbersPerRow) return GRIB_OUT_OF_MEMORY; if (bitmapPresent) { long *bitmap,*pbitmap; size_t numberOfPoints=Ni*Nj; @@ -417,6 +418,7 @@...
groups: Fix circ. dep issue in safari, remove await in bootstrap
@@ -40,7 +40,7 @@ export async function bootstrapApi() { useLocalState.setState({ subscription: 'connected' }); }; - await useMetadataState.getState().initialize(airlock); + useMetadataState.getState().initialize(airlock); const subs = [ useGroupState,
Fixed "make dist" broken in changeset
@@ -255,7 +255,7 @@ clean: dist: rm -f unit-\$(NXT_VERSION).tar.gz mkdir unit-\$(NXT_VERSION) - cp -rp LICENSE NOTICE CHANGES README.md \\ + cp -rp LICENSE NOTICE CHANGES README \\ configure auto src test \\ unit-\$(NXT_VERSION) tar czf unit-\$(NXT_VERSION).tar.gz unit-\$(NXT_VERSION)
Fix spelling error Please consider applying the attached patch
@@ -8131,7 +8131,7 @@ printf("%s %s (C) %s ZeroBeat\n" " only interact with ACCESS POINTs and CLIENTs from this list\n" " not recommended, because some useful frames could be filtered out\n" " using a filter list doesn't have an affect on rca scan\n" - " only for testing usefull - devices to be protected should be adde...
Minor improvements to ssl_tls12_server.c
@@ -714,13 +714,13 @@ static int ssl_pick_cert( mbedtls_ssl_context *ssl, #endif list = ssl->conf->key_cert; - int pk_alg_none = 0; + int pk_alg_is_none = 0; #if defined(MBEDTLS_USE_PSA_CRYPTO) - pk_alg_none = ( pk_alg == PSA_ALG_NONE ); + pk_alg_is_none = ( pk_alg == PSA_ALG_NONE ); #else - pk_alg_none = ( pk_alg == M...
Fix softuart module setup function parameters
@@ -194,6 +194,7 @@ static int softuart_init(softuart_t *s) } return platform_gpio_register_intr_hook(mask, softuart_intr_handler); } + return 1; } @@ -206,30 +207,27 @@ static int softuart_setup(lua_State *L) NODE_DBG("[SoftUART]: setup called\n"); baudrate = (uint32_t)luaL_checkinteger(L, 1); // Get Baudrate from lua...
shm ext BUGFIX avoid infinite loops
@@ -1475,15 +1475,14 @@ sr_shmext_recover_sub_all(sr_conn_ctx_t *conn) sr_datastore_t ds; sr_mod_t *shm_mod; sr_rpc_t *shm_rpc; - uint32_t i, j; + uint32_t i, j, count; /* go through all the modules, RPCs and recover their subscriptions */ for (i = 0; i < SR_CONN_MAIN_SHM(conn)->mod_count; ++i) { shm_mod = SR_SHM_MOD_I...
Typo pthread doc: create->get I believe that: esp_create_default_pthread_config is a typo (no such function exists), the intention was almost certainly to use: esp_pthread_get_default_config Closes
@@ -26,7 +26,7 @@ Example to tune the stack size of the pthread: { pthread_t t1; - esp_pthread_cfg_t cfg = esp_create_default_pthread_config(); + esp_pthread_cfg_t cfg = esp_pthread_get_default_config(); cfg.stack_size = (4 * 1024); esp_pthread_set_cfg(&cfg); @@ -58,7 +58,7 @@ The API can also be used for inheriting th...
groups: resize group summary fixes urbit/landscape#728
@@ -22,12 +22,14 @@ export function EmptyGroupHome(props) { alignItems="center" display="flex"> { groupAssociation?.group ? ( + <Box maxWidth='288px '> <GroupSummary memberCount={groups[groupAssociation.group].members.size} channelCount={channelCount} metadata={groupAssociation.metadata} resource={groupAssociation.grou...
sha1: fix wrong header reference
#ifndef FLB_SHA1_H #define FLB_SHA1_H -#include "sha1.h" +#include <mbedtls/sha1.h> void flb_sha1_encode(const void *data_in, unsigned long length, unsigned char *data_out);
Add Switch build(not check)
@@ -115,6 +115,13 @@ else ifeq ($(platform), ps3) PLATFORM_DEFINES := -D__CELLOS_LV2__ STATIC_LINKING = 1 +# Switch +else ifeq ($(platform), switch) + TARGET := $(TARGET_NAME)_libretro_switch.a + include $(LIBTRANSISTOR_HOME)/libtransistor.mk + STATIC_LINKING=1 + fpic := -fPIC -nostdlib + # sncps3 else ifeq ($(platform...
nimble/host/ble_l2cap_coc: coding style fixes
@@ -306,7 +306,8 @@ ble_l2cap_coc_rx_fn(struct ble_l2cap_chan *chan) } void -ble_l2cap_coc_set_new_mtu_mps(struct ble_l2cap_chan *chan, uint16_t mtu, uint16_t mps) +ble_l2cap_coc_set_new_mtu_mps(struct ble_l2cap_chan *chan, uint16_t mtu, + uint16_t mps) { chan->my_coc_mps = mps; chan->coc_rx.mtu = mtu;
Update LICENSE Remove period date.
Copyright (c) 2003, Roel van Mastbergen & Senile Team -Copyright (c) 2004 - 2014, OpenBOR Team +Copyright (c) 2004, OpenBOR Team All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
[state] trie fix to initialize trie after db
@@ -86,18 +86,8 @@ type ChainStateDB struct { } func NewStateDB() *ChainStateDB { - hasher := func(data ...[]byte) []byte { - hasher := sha512.New512_256() - for i := 0; i < len(data); i++ { - hasher.Write(data[i]) - } - return hasher.Sum(nil) - } - smt := trie.NewTrie(32, hasher, nil) - return &ChainStateDB{ accounts:...
BugID:17132185:[ota] whitescan unit variable
@@ -38,7 +38,7 @@ int hal_ota_switch_to_new_fw(ota_reboot_info_t *ota_info_t) } uint32_t offset; hal_logic_partition_t* ota_partition; - int parti; + int parti = HAL_PARTITION_PARAMETER_1; ota_partition = hal_flash_get_info( HAL_PARTITION_OTA_TEMP ); memset( &ota_hdl, 0x00, sizeof(ota_hdl_t) );
Fix ft80x_coprocessor.c:3911:14: error: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int')
@@ -3907,7 +3907,8 @@ int ft80x_coproc_calibrate(int fd, FAR struct ft80x_dlbuffer_s *buffer) return ret; } - ft80x_info("Transform A-F: {%08lx, %08lx, %08lx, %08lx, %08lx, %08lx}\n", + ft80x_info("Transform A-F: {%08" PRIx32 ", %08" PRIx32 ", %08" + PRIx32 ", %08" PRIx32 ", %08" PRIx32 ", %08" PRIx32 "}\n", matrix[0],...
[tests] fix test_castVector from previous commit
@@ -31,7 +31,7 @@ def test_getVector(): def test_castVector(): - i = [1.0,2.0,3.0] + i = [1.0,4.0,3.0] v = K.SiconosVector([1,2,3]) assert str(v) == '[3](1,2,3)' repr(v) @@ -54,7 +54,7 @@ def test_castVector(): assert x == y for x,y in zip(np.array(v),i): assert x == y - assert 2.0 in v + assert 3.0 in v assert 5.0 not...
hdata: Explain what the xscom node bus-frequency is Vague documentation is about as annoying as no documentation.
@@ -281,7 +281,10 @@ static struct dt_node *add_xscom_node(uint64_t base, uint32_t hw_id, } dt_add_property_u64s(node, "reg", addr, size); - /* Derive bus frquency */ + /* + * The bus-frequency of the xscom node is actually the PIB/PCB + * frequency. It is derived from the nest-clock via a 4:1 divider + */ freq = dt_pr...
ec.h: Explain use of strstr() for EVP_EC_gen() and add #include <string.h> Fixes
# include <openssl/opensslconf.h> # include <openssl/types.h> +# include <string.h> + # ifdef __cplusplus extern "C" { # endif @@ -1548,6 +1550,7 @@ OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_get_verify # define EVP_EC_gen(curve) \ EVP_PKEY_Q_keygen(NULL, NULL, "EC", (char *)(strstr(curve, ""))) + /* strstr is used to en...
Remove unnecessary call to ioctl Fixes
@@ -40,17 +40,6 @@ int send_run_init(sock_t s) } int ifindex = if_idx.ifr_ifindex; - // find source IP address associated with the dev from which we're sending. - // while we won't use this address for sending packets, we need the address - // to set certain socket options and it's easiest to just use the primary - // ...
gmskframegen_write(): fix return value and avoid symbol overlapping
@@ -328,10 +328,10 @@ int gmskframegen_write(gmskframegen _q, float complex * _buf, unsigned int _buf_len) { - unsigned int i; - for (i=0; i<_buf_len; i++) - gmskframegen_write_samples(_q, _buf+i); - return _q->frame_complete; + unsigned int i, frame_complete = 0; + for (i=0; i<_buf_len; i+=_q->k) + frame_complete = gm...
Added descriptions to binary.c.
@@ -357,6 +357,10 @@ void InitializeOptionsBinary(OPTIONS *options,fnReadOption fnRead[]) { options[OPT_FREEECC].iType = 2; options[OPT_FREEECC].bMultiFile = 1; fnRead[OPT_FREEECC] = &ReadFreeEcc; + sprintf(options[OPT_FREEECC].cLongDescr, + "The free eccentricity of a circumbinary planet with the BINARY module.\n" + "...
apps/graphics/pdcurses: Need to set the global COLORS or else all displays on monochrome.
@@ -135,7 +135,11 @@ int PDC_scr_open(int argc, char **argv) SP = &fbscreen->screen; fbstate = &fbscreen->fbstate; - /* Setup initial colors */ + /* Number of RGB colors (dimension of rgbcolor[]) */ + + COLORS = 16; + + /* Setup initial RGB colors */ for (i = 0; i < 8; i++) {
fix start condition
@@ -45,7 +45,7 @@ namespace NKernel { ui32 idx = docs[i]; const ui32 qid = qids[idx]; const ui32 prevDoc = i > 0 ? docs[i - 1] : -1; - const ui32 isStart = i > 0 ? qid != qids[prevDoc] : 0u; + const ui32 isStart = i > 0 ? qid != qids[prevDoc] : 1u; masks[i] = isStart; } }
Fix bootloader flash bug.
@@ -78,9 +78,8 @@ void flash_write(const uint32_t *src, uint32_t dst, uint32_t size) #if defined(MCU_SERIES_H7) // Program the flash 32 bytes at a time. - uint64_t buf = (uint64_t)(uint32_t) src; for (int i=0; i<size/32; i++) { - if (HAL_FLASH_Program(TYPEPROGRAM_WORD, dst, buf) != HAL_OK) { + if (HAL_FLASH_Program(TYP...
spi_flash: idf repo stuff tobe consistent with that in rom
@@ -51,10 +51,10 @@ DRAM_ATTR flash_chip_dummy_t *rom_flash_chip_dummy = (flash_chip_dummy_t *)&defa #define CHIP_WAIT_IDLE_INTERVAL_US 20 const DRAM_ATTR flash_chip_op_timeout_t spi_flash_chip_generic_timeout = { + .idle_timeout = SPI_FLASH_DEFAULT_IDLE_TIMEOUT_MS * 1000, .chip_erase_timeout = SPI_FLASH_GENERIC_CHIP_E...
libflash/ipmi-hiomap: Cleanup allocation on init failure Previously we were leaking the memory pointed by ctx if an IPMI error occurred during protocol initialisation. Make sure we free the memory if an error occurs.
@@ -813,25 +813,28 @@ int ipmi_hiomap_init(struct blocklevel_device **bl) rc = ipmi_sel_register(CMD_OP_HIOMAP_EVENT, hiomap_event, ctx); if (rc < 0) - return rc; + goto err; /* Ack all pending ack-able events to avoid spurious failures */ if (!hiomap_ack(ctx, HIOMAP_E_ACK_MASK)) { prlog(PR_DEBUG, "Failed to ack events...
Configure: harmonize syntax.
@@ -593,13 +593,13 @@ my %target_attr_translate =( ); # Initialisers coming from 'config' scripts -$config{defines} = [ split(/$list_separator_re/, env('__CNF_CPPDEFINES')) ], -$config{includes} = [ split(/$list_separator_re/, env('__CNF_CPPINCLUDES')) ], -$config{cppflags} = [ env('__CNF_CPPFLAGS') || () ], -$config{c...
Add dark theme token group attribute colors
@@ -357,6 +357,62 @@ PPH_STRING PhGetGroupAttributesString( return string; } +COLORREF PhGetGroupAttributesColorDark( + _In_ ULONG Attributes + ) +{ + if (Attributes & (SE_GROUP_INTEGRITY | SE_GROUP_INTEGRITY_ENABLED)) + { + if (!(Attributes & SE_GROUP_ENABLED)) + return RGB(0, 26, 0); + } + + if (Attributes & SE_GROUP...
integration: Add test for oomkill.
@@ -330,6 +330,51 @@ func TestNetworkpolicy(t *testing.T) { runCommands(commands, t) } +func TestOomkill(t *testing.T) { + ns := generateTestNamespaceName("test-oomkill") + + t.Parallel() + + oomkillCmd := &command{ + name: "Start oomkill gadget", + cmd: fmt.Sprintf("$KUBECTL_GADGET oomkill -n %s", ns), + expectedRegex...
Add the location of test c code demo.
@@ -23,3 +23,14 @@ Before running the FISCO-BCOS Demo, you need to install the FISCO-BCOS node and FISCO-BCOS source code and installation and deployment steps can visit this website: https://fisco-bcos-documentation.readthedocs.io After completing the node (or simulator) deployment, you need to follow the instructions...