message
stringlengths
6
474
diff
stringlengths
8
5.22k
CLI code coverage: install python requirements as root instead of as gpadmin This makes it easier to maintain this part of the script, now that we no longer need the virtualenv to be active while running the tests.
@@ -19,14 +19,11 @@ function install_python_hacks() { fi } -function gen_env(){ - cat > /opt/run_test.sh <<-EOF - set -ex - +function install_python_requirements() { # virtualenv 16.0 and greater does not support python2.6, which is # used on centos6 pip install --user virtualenv~=15.0 - export PATH=\$PATH:~/.local/bin...
VERSION bump to version 0.12.35
@@ -33,7 +33,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 12) -set(LIBNETCONF2_MICRO_VERSION 34) +set(LIBNETCONF2_MICRO_VERSION 35) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(L...
README: Add link to trace sni guide.
@@ -33,6 +33,7 @@ Explore the following documentation to find out which tools can help you in your - [`oomkill`](docs/guides/trace/oomkill.md) - [`open`](docs/guides/trace/open.md) - [`signal`](docs/guides/trace/signal.md) + - [`sni`](docs/guides/trace/sni.md) - [`tcp`](docs/guides/trace/tcp.md) - [`tcpconnect`](docs/g...
input metadata contains info for external rendering only
@@ -492,17 +492,6 @@ void tic_core_tick(tic_mem* tic, tic_tick_data* data) else return; } - { - if (!tic->input.keyboard) - ZEROMEM(tic->ram.input.keyboard); - - if (!tic->input.gamepad) - ZEROMEM(tic->ram.input.gamepads); - - if (!tic->input.mouse) - ZEROMEM(tic->ram.input.mouse); - } - core->state.tick(tic); }
Add documentation on prior changes.
@@ -48,3 +48,47 @@ Bugs Fixed This issue was causing the ``asgiref`` module used in Django to fail when using ``signal.set_wakeup_fd()`` as code was thinking it was in the main thread when it wasn't. See https://github.com/django/asgiref/issues/143. + +Features Changed +---------------- + +* The ``--isatty`` option of ...
pyocf: volume offlining
@@ -239,6 +239,7 @@ class Volume: type(self)._uuid_[self.uuid] = self self.reset_stats() + self.is_online = True self.opened = False def do_open(self): @@ -254,10 +255,10 @@ class Volume: def get_max_io_size(self): raise NotImplementedError - def submit_flush(self, flush): + def do_submit_flush(self, flush): raise NotI...
Fix compilation when path includes spaces
@@ -9,13 +9,13 @@ include_directories(SYSTEM ${gtk_INCLUDE_DIRS}) add_executable(stlink-gui-local ${GUI_SOURCES}) set_target_properties(stlink-gui-local PROPERTIES - COMPILE_FLAGS -DSTLINK_UI_DIR=\\"${CMAKE_CURRENT_SOURCE_DIR}/gui\\") + COMPILE_DEFINITIONS STLINK_UI_DIR="${CMAKE_CURRENT_SOURCE_DIR}/gui") target_link_li...
add instantruntimedir
# try to obtain a temp dir unique to the user, to enable # instantOS xsessions for concurrent users on the same machine -if [ -z "${XDG_RUNTIME_DIR}" ]; then - RTD=/tmp/${UID}/instantos -else - RTD=${XDG_RUNTIME_DIR}/instantos -fi -[[ -d "${RTD}" ]] || mkdir -p "${RTD}" +RTD="$(instantruntimedir)" +RTD="${RTD:/tmp/inst...
nvbios/power/base_clock: parse basic fields for version 0x20
@@ -861,6 +861,15 @@ int envy_bios_parse_power_base_clock(struct envy_bios *bios) { return -EINVAL; } + break; + case 0x20: + err |= bios_u8(bios, bc->offset + 0x1, &bc->hlen); + err |= bios_u8(bios, bc->offset + 0x2, &bc->rlen); + err |= bios_u8(bios, bc->offset + 0x3, &bc->entriesnum); + err |= bios_u8(bios, bc->offs...
Add changelog entry for fixing
* [Issue #346](https://github.com/grobian/carbon-c-relay/issues/346) sporadic segfaults when using UDP connections +* [Issue #368](https://github.com/grobian/carbon-c-relay/issues/368) + segfault sending or receiving metrics using ssl transport * [Issue #369](https://github.com/grobian/carbon-c-relay/issues/369) quoted...
disable DDR tests with no_RAM_configs
set -e # exit on error n=0 # count amount of tests executed (exception for subsecond calls) loops=1; - export DNUT_TRACE=0xFF +# export DNUT_TRACE=0xFF stimfile=$(basename "$0"); logfile="${stimfile%.*}.log"; ts0=$(date +%s); echo "executing $stimfile, logging $logfile maxloop=$loops"; for((i=1;i<=loops;i++)) do l="loo...
Travis: Do not set installation folder for macOS
@@ -237,8 +237,11 @@ before_install: # before_script: - cd $TRAVIS_BUILD_DIR/.. - - > - [[ "$TRAVIS_OS_NAME" == "linux" ]] && INSTALL_DIR="$PWD/install" || INSTALL_DIR="/usr/local" + - | + if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then + CMAKE_OPT+=(-DCMAKE_INSTALL_PREFIX="$PWD/install") + export PATH=$PATH:"$PWD/install/...
fpgainfo: wrap stdout with codec StreamWriter This change replaces `sys.stdout` with a StreamWriter object that uses `UTF-8` encoding. This will allow fpgainfo to print unicode (non-ascii). Without this, an exception will be raised when printing unicode characters and redirecting the output stream. Conflicts: tools/fpg...
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. import argparse +import codecs import fpga_common import fpgaerr import fpgapwr @@ -65,4 +66,6 @@ if __name__ == "__main__": logging.warning("Could not open log file: {}." "Logging to stderr".format(logfile)) + # ...
Adding missing LED pin macros to nRF52 bsp.h
@@ -40,8 +40,11 @@ extern uint8_t _ram_start; #define RAM_SIZE 0x10000 /* LED pins */ -#define LED_BLINK_PIN (17) +#define LED_1 (17) #define LED_2 (18) +#define LED_3 (19) +#define LED_4 (20) +#define LED_BLINK_PIN (LED_1) #if MYNEWT_VAL(BOOT_SERIAL) #define BOOT_SERIAL_DETECT_PIN 13 /* Button 1 */
media/encorder: Correct input/output buffer size
@@ -64,9 +64,9 @@ Encoder::Encoder(audio_type_t audio_type, unsigned short channels, unsigned int // params for streaming ext.pOutputBuffer = outputBuf; - ext.outputBufferMaxLength = sizeof(outputBuf); + ext.outputBufferMaxLength = sizeof(unsigned char) * MAX_PACKET_SIZE; ext.pInputBuffer = inputBuf; - ext.inputBufferM...
Update information on image scaling.
@@ -85,12 +85,10 @@ File Formats ------------ PAPPL supports JPEG, PNG, PWG Raster, and Apple Raster documents in all of the -standard color spaces and bit depths. JPEG images are scaled to the destination -media size and print resolution using bilinear interpolation, while PNG images -are scaled using a nearest-neighb...
tls: re-added a piece of code I removed by mistake
@@ -606,8 +606,15 @@ int flb_tls_session_create(struct flb_tls *tls, connection->coroutine = NULL; + /* This check's purpose is to abort when a timeout is detected. + */ + if (connection->net_error == -1) { goto retry_handshake; } + else { + result = -1; + } + } cleanup: if (event_restore_needed) {
[core] reduce optim inline of cold funcs
@@ -977,6 +977,7 @@ static void server_graceful_shutdown_maint (server *srv) { } __attribute_cold__ +__attribute_noinline__ static void server_graceful_state (server *srv) { if (!srv_shutdown) { @@ -1016,6 +1017,7 @@ static void server_graceful_state (server *srv) { } __attribute_cold__ +__attribute_noinline__ static v...
[catboost/java] revert r3983495; commited accidentally
@@ -9,7 +9,6 @@ from __future__ import absolute_import, print_function import contextlib import os -import platform import shutil import subprocess import sys @@ -57,7 +56,7 @@ def _get_ya_path(): def _get_package_resources_dir(): return os.path.join( _get_arcadia_root(), - os.path.join(*'catboost/jvm-packages/catboost...
lp5523.c: remove redundant include
#include "lp5523/lp5523.h" #include <syscfg/syscfg.h> -#if MYNEWT_VAL(LED_ABSTRACTION_LAYER) -#include "led/led.h" -#endif - /* Define the stats section and records */ STATS_SECT_START(lp5523_stat_section) STATS_SECT_ENTRY(read_errors)
Fix some typos;
@@ -1254,6 +1254,7 @@ Shader* lovrShaderCreate(const char* vertexSource, const char* fragmentSource) { UniformBlock block = { .index = i, .binding = i + 1, .source = NULL }; glUniformBlockBinding(program, block.index, block.binding); vec_init(&block.uniforms); + vec_push(&shader->blocks, block); char name[LOVR_MAX_UNIF...
board/anahera/sensors.c: Format with clang-format BRANCH=none TEST=none
@@ -44,30 +44,22 @@ BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT); /* Temperature sensor configuration */ const struct temp_sensor_t temp_sensors[] = { - [TEMP_SENSOR_1_FAN] = { - .name = "Fan", + [TEMP_SENSOR_1_FAN] = { .name = "Fan", .type = TEMP_SENSOR_TYPE_BOARD, .read = get_temp_3v3_30k9_47k_4050b, - .idx...
Remove dirty check from LRU cleaner getter callback This check is incorrect as cacheline status may change from dirty to clean at any point during cleaning, except for when the hash bucket is locked.
@@ -525,7 +525,6 @@ static int evp_lru_clean_get(ocf_cache_t cache, void *getter_context, if (ctx->cline[idx] == end_marker) return -1; - ENV_BUG_ON(!metadata_test_dirty(ctx->cache, ctx->cline[idx])); *line = ctx->cline[idx]; return 0;
Fix pixel bar below title This commit changes how the left and right indents are calculated for the title bottom pixel bar, so that it is displayed properly in case the left or right border is hidden.
@@ -383,21 +383,21 @@ static void render_container_simple_border_normal(struct sway_output *output, scale_box(&box, output_scale); render_rect(output->wlr_output, output_damage, &box, color); + // Setting these makes marks and title easier + size_t inner_x = con->x + view->border_thickness * view->border_left; + size_t...
tools: fix ldgen_test fragment file KEEP
@@ -4,5 +4,5 @@ entries: * (noflash) src1 (default) src1:func1 (noflash); - text->iram0_text KEEP ALIGN(9) ALIGN(12, post) SURROUND(sym1) + text->iram0_text KEEP() ALIGN(9) ALIGN(12, post) SURROUND(sym1) src1:func2 (rtc)
One more try. Missed an errant ItemGroup opening tag.
<ImportGroup Label="ExtensionTargets"> <Import Project="$(StarboardBasePath)\msvc\sdk-build.targets" /> </ImportGroup> - <ItemGroup> <Target Name="CopyXamlFilesToOutput" BeforeTargets="_CopyFilesMarkedCopyLocal" DependsOnTargets="$(AfterBuildCompileTargets)"> <ItemGroup> <ReferenceCopyLocalPaths Include="$(MSBuildThisF...
Gtest-exc depends on frames not being inlined The test is unwinding a precise number of frames, which assumes the compiler will not inline these functions. Mark this explicitly to be more reliable, and add some more verbose debugging aids.
@@ -24,6 +24,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* This illustrates the basics of using the unwind interface for exception handling. */ +#include "compiler.h" + #ifdef HAVE_CONFIG_H # include "config.h" #endif @@ -54,6 +56,8 @@ raise_exception (void) unw_cursor_t cursor; unw_context...
bmp280 reads at the right frequency.
@@ -51,7 +51,9 @@ func NewBMP280(i2cbus *embd.I2CBus, freq time.Duration) (*BMP280, error) { func (bmp *BMP280) run() { bmp.running = true + clock := time.NewTicker(100 * time.Millisecond) for bmp.running { + <-clock.C bmp.data = <-bmp.sensor.C } }
sched/signal: fix error handling in sigtimedwait()
@@ -280,10 +280,6 @@ int nxsig_timedwait(FAR const sigset_t *set, FAR struct siginfo *info, } #endif - /* Save the set of pending signals to wait for */ - - rtcb->sigwaitmask = *set; - /* Check if we should wait for the timeout */ if (timeout != NULL) @@ -309,6 +305,12 @@ int nxsig_timedwait(FAR const sigset_t *set, FA...
fs/epoll: Notify POLLIN directly(avoid set POLLFILE)
@@ -365,7 +365,7 @@ int epoll_ctl(int epfd, int op, int fd, struct epoll_event *ev) return -1; } - poll_notify(&eph->poll, 1, eph->poll[0].events); + poll_notify(&eph->poll, 1, POLLIN); return 0; }
Fix the Readme about Kconfig-frontend Installation explanation
@@ -78,7 +78,7 @@ Please keep in mind that we are actively working on board configurations, and wi ## APPENDIX ### Kconfig-frontends Installation -1. The *gperf* and *libncurses5-dev* packages should be installed. +1. The *byacc*, *flex*, *gperf* and *libncurses5-dev* packages should be installed. ```bash sudo apt-get ...
tdep_uc_addr: use +4 offset for UNW_MIPS_PC on MIPS (be) According to mcontext_t definition its "pc" field is also 64 bit wide and thus requires 4 byte offset on MIPS32 (be).
@@ -59,7 +59,7 @@ tdep_uc_addr (ucontext_t *uc, int reg) { char *addr = uc_addr (uc, reg); - if (reg >= UNW_MIPS_R0 && reg <= UNW_MIPS_R31 + if (((reg >= UNW_MIPS_R0 && reg <= UNW_MIPS_R31) || reg == UNW_MIPS_PC) && tdep_big_endian (unw_local_addr_space) && unw_local_addr_space->abi == UNW_MIPS_ABI_O32) addr += 4;
zoul: remove implicit enum conversion Convert the values from one enum to the other.
@@ -55,19 +55,40 @@ disk_initialize(BYTE pdrv) DRESULT __attribute__((__weak__)) disk_read(BYTE pdrv, BYTE *buff, DWORD sector, UINT count) { - return mmc_driver.read(pdrv, buff, sector, count); + switch(mmc_driver.read(pdrv, buff, sector, count)) { + default: + case DISK_RESULT_NO_INIT: + case DISK_RESULT_IO_ERROR: re...
Silence clang warning about comparing function pointers. The comparison is used to create a set of function pointers.
@@ -409,7 +409,7 @@ static void janet_registry_sort(void) { JanetCFunRegistry reg = janet_vm.registry[i]; size_t j; for (j = i; j > 0; j--) { - if (janet_vm.registry[j - 1].cfun < reg.cfun) break; + if ((void *)(janet_vm.registry[j - 1].cfun) < (void *)(reg.cfun)) break; janet_vm.registry[j] = janet_vm.registry[j - 1];...
Build Lua binding for OSX via Github actions.
@@ -88,6 +88,42 @@ jobs: PKG_CONFIG_PATH=~/tinyspline/lib64/pkgconfig make test fi + lua: + needs: build + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-10.15] + luaVersion: ["5.1", "5.2", "5.3", "5.4"] + + steps: + - uses: actions/checkout@master + - uses: leafo/gh-actions-lua@v8.0.0 + with: + luaVersio...
Add AddonAttribute
@@ -7,6 +7,7 @@ namespace FFXIVClientStructs.FFXIV.Client.UI // Component::GUI::AtkUnitBase // Component::GUI::AtkEventListener [StructLayout(LayoutKind.Explicit, Size = 0x3D0)] + [Addon("ChatLogPanel_0", "ChatLogPanel_1", "ChatLogPanel_2", "ChatLogPanel_3")] public unsafe struct AddonChatLogPanel { [FieldOffset(0x0)] ...
tile: don't allow near white tiles
@@ -13,17 +13,24 @@ function getMenuColor(color: string, darkBg: boolean): string { return bgAdjustedColor(satAdjustedColor, darkBg); } +// makes tiles look broken because they blend into BG +function disallowWhiteTiles(color: string): string { + const hslaColor = parseToHsla(color); + return hslaColor[2] >= 0.95 ? dar...
WIP: try allowing ptrace
@@ -747,7 +747,7 @@ def withDockerEnv(image, cl) { echo "Starting ${env.STAGE_NAME} on ${env.NODE_NAME}" checkout scm docker.image(image.id) - .inside("-v ${env.HOME}/git_mirrors:/home/jenkins/git_mirrors") { cl() } + .inside("-v ${env.HOME}/git_mirrors:/home/jenkins/git_mirrors --cap-add SYS_PTRACE") { cl() } } } }
Added additional debug messages when starting WebSocket server.
@@ -2833,9 +2833,11 @@ ws_start (WSServer * server) if (wsconfig.sslcert && wsconfig.sslkey) { LOG (("==Using TLS/SSL==\n")); wsconfig.use_ssl = 1; - if (initialize_ssl_ctx (server)) + if (initialize_ssl_ctx (server)) { + LOG (("Unable to initialize_ssl_ctx\n")); return; } + } #endif memset (&fdstate, 0, sizeof fdstate...
[examples] Fix modify_normals.py hack.
@@ -42,9 +42,9 @@ with Hdf5() as io: relations_keeper = {} class MyBulletR(Mechanics.collision.bullet.BulletR): - def updateContactPoints(self, point): + def updateContactPoints(self, point, q1, q2): # Call usual updateContactPoints - super(self.__class__,self).updateContactPoints(point) + super(self.__class__,self).up...
Remove delay from LL
@@ -116,7 +116,6 @@ configure_uart(uint32_t baudrate) { if (!initialized) { thread_handle = CreateThread(0, 0, (LPTHREAD_START_ROUTINE)uart_thread, NULL, 0, 0); } - esp_delay(3000); } /**
README.md: Use version 2.05.40
@@ -36,11 +36,11 @@ https://github.com/dresden-elektronik/deconz-rest-plugin/releases 1. Download deCONZ package - wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.39-qt5.deb + wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.40-qt5.deb 2. Install deCONZ package - sudo dpkg -i deconz-2...
calyptia: fix segfault when some properties are not set.
@@ -91,6 +91,7 @@ static void pipeline_config_add_properties(flb_sds_t *buf, struct mk_list *props mk_list_foreach(head, props) { kv = mk_list_entry(head, struct flb_kv, _head); + if (kv->key != NULL && kv->val != NULL) { flb_sds_printf(buf, " %s ", kv->key); if (is_sensitive_property(kv->key)) { @@ -103,6 +104,7 @@ st...
Update Windows.Devices.Pwm version
@@ -58,5 +58,5 @@ const CLR_RT_NativeAssemblyData g_CLR_AssemblyNative_Windows_Devices_Pwm = "Windows.Devices.Pwm", 0xBBD6237A, method_lookup, - { 1, 0, 0, 0 } + { 1, 0, 2, 8 } };
SOVERSION bump to version 5.6.40
@@ -54,7 +54,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 5) set(SYSREPO_MINOR_SOVERSION 6) -set(SYSREPO_MICRO_SOVERSION 39) +set(SYSREPO_MICRO_S...
sse: add a couple more NEON implementations I think I'm done with NEON for SSE. There are probably a few places where the NEON implementation could be better, in which case I'm happy to accept patches, but overall I think the implementations are pretty solid.
@@ -2829,6 +2829,8 @@ void simde_mm_stream_pi (simde__m64* mem_addr, simde__m64 a) { #if defined(SIMDE_SSE_NATIVE) _mm_stream_pi(&(mem_addr->n), a.n); +#elif defined(SIMDE_SSE_NEON) + mem_addr->i64[0] = vget_lane_s64(a.neon_i64, 0); #else mem_addr->i64[0] = a.i64[0]; #endif @@ -2844,6 +2846,8 @@ simde_mm_stream_ps (sim...
Fix another set of warnings that crept in during previous fix merges
@@ -98,7 +98,7 @@ void fillPixels (Array2D<unsigned int>& sampleCount, Array2D<T*> &ph, int width, for (int x = 0; x < width; ++x) { ph[y][x] = new T[sampleCount[y][x]]; - for (int i = 0; i < sampleCount[y][x]; i++) + for (unsigned int i = 0; i < sampleCount[y][x]; i++) { // // We do this because half cannot store numb...
upstream: made a few shutdown calls conditional
@@ -796,7 +796,10 @@ int flb_upstream_conn_timeouts(struct mk_list *list) * waiting for I/O will receive the notification and trigger * the error to it caller. */ + if (u_conn->fd != -1) { shutdown(u_conn->fd, SHUT_RDWR); + } + u_conn->net_error = ETIMEDOUT; prepare_destroy_conn(u_conn); } @@ -806,7 +809,10 @@ int flb_...
Require vector extensions for shuffle/convert function.
# endif # endif -/* GCC and clang have built-in functions to handle shuffling of - vectors, but the implementations are slightly different. This - macro is just an abstraction over them. Note that elem_size is in - bits but vec_size is in bytes. */ -# if !defined(SIMDE_NO_SHUFFLE_VECTOR) +/* GCC and clang have built-in...
mpi-families/impi-devel: define MPI_HOME variable to be consistent with ohpc-style modulefiles for other MPI stacks
@@ -178,6 +178,12 @@ EOF prepend-path PATH ${topDir}/${dir}/linux/mpi/intel64/bin_ohpc EOF + # Also define MPI_HOME based on $I_MPI_ROOT + IMPI_HOME=`egrep "^setenv\s+I_MPI_ROOT" %{OHPC_MODULEDEPS}/intel/impi/${version} | awk '{print $3}'` + if [ -d "$IMPI_HOME/intel64" ];then + echo "setenv MPI_HOME $IMPI_HOME/intel64...
fix(draw_border):draw error if radius == 0 and parent clip_corner == true
@@ -1080,7 +1080,9 @@ void draw_border_generic(const lv_area_t * clip_area, const lv_area_t * outer_ar { opa = opa >= LV_OPA_COVER ? LV_OPA_COVER : opa; - if(rout == 0 && rin == 0) { + bool mask_any = lv_draw_mask_is_any(outer_area); + + if(!mask_any && rout == 0 && rin == 0) { draw_border_simple(clip_area, outer_area,...
mmapstorage: update docu
#include <stdlib.h> // strtol() #include <string.h> // memcmp() #include <sys/mman.h> // mmap() -#include <sys/stat.h> // stat() +#include <sys/stat.h> // stat(), fstat() #include <sys/types.h> // ftruncate (), size_t -#include <unistd.h> // close(), ftruncate(), unlink(), write() +#include <unistd.h> // close(), ftrun...
Added visual studio support for dot net .tt files
info.action = "Compile" elseif fcfg.buildaction == "Embed" or ext == ".resx" then info.action = "EmbeddedResource" - elseif fcfg.buildaction == "Copy" or ext == ".asax" or ext == ".aspx" or ext == ".dll" then + elseif fcfg.buildaction == "Copy" or ext == ".asax" or ext == ".aspx" or ext == ".dll" or ext == ".tt" then i...
Ignore steam dbus warning
@@ -21,6 +21,7 @@ cd ../ && rm -rf ./tmp/ echo "#!/bin/bash export STEAMOS=1 export STEAM_RUNTIME=1 +export DBUS_FATAL_WARNINGS=0 ~/steam/bin/steam -noreactlogin steam://open/minigameslist $@" > steam # make script executable and move
document replace_one's reply
@@ -34,7 +34,7 @@ Description This function shall replace documents in ``collection`` that match ``selector`` with ``replacement``. -If you pass a non-NULL ``reply``, it is filled out with fields "modifiedCount" and "matchedCount". If there is a server error then ``reply`` contains either a "writeErrors" array with one...
hv:Remove redundancy 'vlapic' in 'struct vcpu' It has been defined in 'struct vcpu_arch' Acked-by: Eddie Dong
@@ -222,7 +222,6 @@ struct vcpu { /* State of debug request for this VCPU */ volatile enum vcpu_state dbg_req_state; uint64_t sync; /*hold the bit events*/ - struct acrn_vlapic *vlapic; /* per vCPU virtualized LAPIC */ struct list_head run_list; /* inserted to schedule runqueue */ uint64_t pending_pre_work; /* any pre ...
esp32/modmachine: Add implementation of machine.soft_reset().
#include "py/obj.h" #include "py/runtime.h" +#include "lib/utils/pyexec.h" #include "extmod/machine_mem.h" #include "extmod/machine_signal.h" #include "extmod/machine_pulse.h" @@ -193,6 +194,12 @@ STATIC mp_obj_t machine_reset(void) { } STATIC MP_DEFINE_CONST_FUN_OBJ_0(machine_reset_obj, machine_reset); +STATIC mp_obj_...
Fix mistake / outdated doc comment Unlike original reference code, Redis uses 64bit variable, so half the bits make it 32bit, not 16
/* Interleave lower bits of x and y, so the bits of x * are in the even positions and bits from y in the odd; - * x and y must initially be less than 2**32 (65536). + * x and y must initially be less than 2**32 (4294967296). * From: https://graphics.stanford.edu/~seander/bithacks.html#InterleaveBMN */ static inline uin...
Remove duplicated macros for R_SetFlags() R_ClearFlags() They only need to be defined in resource.h
@@ -369,7 +369,6 @@ bool getResourceItemDescriptor(const QString &str, ResourceItemDescriptor &descr /*! Clears \p flags in \p item which must be a numeric value item. The macro is used to print the flag defines as human readable. */ -#define R_ClearFlags(item, flags) R_ClearFlags1(item, flags, #flags) bool R_ClearFlag...
Invalidate join response struct before beginning.
@@ -31,6 +31,8 @@ owerror_t cbor_parse_join_response(join_response_t *response, uint8_t *buf, uint uint8_t *tmp; owerror_t error; + memset(response, 0x00, sizeof(join_response_t)); + error = E_SUCCESS; tmp = buf; major_type = (cbor_majortype_t) *buf >> 5;
lovr.graphics.submit works;
@@ -462,7 +462,27 @@ static int l_lovrGraphicsInit(lua_State* L) { } static int l_lovrGraphicsSubmit(lua_State* L) { - lovrGraphicsSubmit(NULL, 0); + bool table = lua_istable(L, 1); + int count = table ? luax_len(L, 1) : lua_gettop(L); + + Pass* stack[8]; + Pass** passes = (size_t) count > COUNTOF(stack) ? malloc(count...
graph-api: prevent more than one join request
@@ -3,8 +3,8 @@ import { StoreState } from '../store/type'; import { Patp, Path, PatpNoSig } from '~/types/noun'; import _ from 'lodash'; import {makeResource, resourceFromPath} from '../lib/group'; -import {GroupPolicy, Enc, Post, NodeMap, Content} from '~/types'; -import { numToUd, unixToDa, decToUd, deSig } from '~/...
naive: l2 csv apply ~wicdev's style suggestions
+$ keccak @ux :: used for transaction and roll hashes +$ blocknum number:block :: @udblocknumber +$ net net:dice ::?(%mainnet %ropsten %local %default) - +$ block-map %+ map blocknum + +$ block-map + %+ map blocknum [timestamp=@da rolls=(map keccak [[gas=@ud sender=address] =effects:naive])] +$ rolls-map (map blocknum ...
tests: internal: fizzer: updated sha512 test
#include <fluent-bit/flb_gzip.h> #include <fluent-bit/flb_hash_table.h> #include <fluent-bit/flb_uri.h> -#include <fluent-bit/flb_sha512.h> +#include <fluent-bit/flb_hash.h> #include <fluent-bit/flb_regex.h> #include "flb_fuzz_header.h" @@ -197,14 +197,15 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) ...
ESPIRiT GPU test
@@ -40,6 +40,15 @@ tests/test-ecalib-rotation2: ecalib cc fmac transpose nrmse $(TESTS_OUT)/shepplo rm *.ra ; cd .. ; rmdir $(TESTS_TMP) touch $@ +tests/test-ecalib-gpu: ecalib pocsense nrmse $(TESTS_OUT)/shepplogan_coil_ksp.ra + set -e ; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\ + $(TOOLDIR)/ecalib -m1 $(TESTS_OUT)/shep...
in_storage_backlog: remove failed chunks from queue on load
@@ -104,8 +104,12 @@ static int cb_queue_chunks(struct flb_input_instance *in, /* Associate this backlog chunk to this instance into the engine */ ic = flb_input_chunk_map(in, ch); if (!ic) { - flb_plg_error(ctx->ins, "error registering chunk"); + flb_plg_error(ctx->ins, "removing chunk %s:%s from the queue", + sbc->st...
build: add libssl-dev for ubuntu 16.04 and 18.04 The recent changes to Makefile lead to the lack of libssl-dev dependency for ubuntu 16.04 and 18.04. Add libssl-dev to DEB_DEPENDS variable for corresponding ubuntu version. Type: fix
@@ -75,8 +75,10 @@ DEB_DEPENDS += python3-dev # needed for python3 -m pip install psutil ifeq ($(OS_VERSION_ID),16.04) DEB_DEPENDS += python-dev + DEB_DEPENDS += libssl-dev else ifeq ($(OS_VERSION_ID),18.04) DEB_DEPENDS += python-dev + DEB_DEPENDS += libssl-dev else ifeq ($(OS_ID)-$(OS_VERSION_ID),debian-8) DEB_DEPENDS...
Remove FIXME comment in typecmds.c We validated a hidden feature of CREATE TYPE which allows users to create append only column oriented encoding defaults for user defined types. It still works after the 9.0 merge. Discussed on gpdb-dev: https://groups.google.com/a/greenplum.org/forum/#!topic/gpdb-dev/gYuBL-Fk8rM
@@ -291,9 +291,10 @@ DefineType(List *names, List *parameters) else if (is_storage_encoding_directive(defel->defname)) { /* - * GPDB_84_MERGE_FIXME: need to check to make sure that this is - * copied correctly when using CREATE TABLE LIKE. See new logic - * below. + * This is to define default block size, compress type...
Grr.. last commit unreverted some changes. I think it is right now.
@@ -43,23 +43,46 @@ DEPCONFIG = $(TOPDIR)$(DELIM).config ifeq ($(CONFIG_WINDOWS_NATIVE),y) define REGISTER $(Q) echo Register: $1 - $(Q) echo { "$1", $2, $3, $4 }, > "$(BUILTIN_REGISTRY)$(DELIM)$1.bdat" - $(Q) if [ ! -z $4 ]; then \ - echo "int $4(int argc, char *argv[]);" > "$(BUILTIN_REGISTRY)$(DELIM)$1.pdat"; \ - fi...
README.md: Added reference to CMSIS-Build
@@ -23,7 +23,8 @@ The following is an list of all CMSIS components that are available. |[NN](http://arm-software.github.io/CMSIS_5/NN/html/index.html) | All Cortex-M | Collection of efficient neural network kernels developed to maximize the performance and minimize the memory footprint on Cortex-M processor cores.| |[R...
fsplib.c: use snprintf
@@ -663,15 +663,12 @@ int fsp_readdir_r(FSP_DIR *dir,struct dirent *entry, struct dirent **result) entry->d_ino = 10; #endif entry->d_reclen = fentry.reclen; - strncpy(entry->d_name,fentry.name,MAXNAMLEN); + snprintf (entry->d_name, sizeof(entry->d_name), "%s", fentry.name); - if (fentry.namlen >= MAXNAMLEN) - { - entr...
tests: internal: pack: use new flb_pack_json() prototype
@@ -41,6 +41,7 @@ static inline void consume_bytes(char *buf, int bytes, int length) void test_json_pack() { int ret; + int root_type; size_t len; char *data; char *out_buf; @@ -51,7 +52,7 @@ void test_json_pack() len = strlen(data); - ret = flb_pack_json(data, len, &out_buf, &out_size); + ret = flb_pack_json(data, len...
add vcs field in debian/control
@@ -4,6 +4,8 @@ Priority: optional Maintainer: Marcus Hardt <packages@lists.kit.edu> Homepage: https://github.com/indigo-dc/oidc-agent/ Standards-Version: 4.5.0 +Vcs-Git: https://github.com/indigo-dc/oidc-agent.git +Vcs-browser: https://github.com/indigo-dc/oidc-agent Rules-Requires-Root: no Build-Depends: debhelper-co...
Add constant for solving again with refinement after a failure
@@ -613,7 +613,8 @@ enum SICONOS_FRICTION_3D_IPM_IPARAM_FINISH_WITHOUT_SCALING_ENUM enum SICONOS_FRICTION_3D_IPM_IPARAM_REFINEMENT_ENUM { SICONOS_FRICTION_3D_IPM_IPARAM_REFINEMENT_NO = 0, - SICONOS_FRICTION_3D_IPM_IPARAM_REFINEMENT_YES = 1 + SICONOS_FRICTION_3D_IPM_IPARAM_REFINEMENT_YES = 1, + SICONOS_FRICTION_3D_IPM_I...
gall: smaller %watch-not-unique print Instead of printing all outgoing subscriptions for the app, only print the subscription whose wire we're trying to re-use.
=. ap-core =/ =tang ~[leaf+"subscribe wire not unique" >agent-name< >short-wire< >dock<] - %- (slog >out=outgoing.subscribers.current-agent< tang) + =/ have + (~(got by outgoing.subscribers.current-agent) short-wire dock) + %- (slog >out=have< tang) (ap-error %watch-not-unique tang) $(moves t.moves) =. outgoing.subscri...
Handle a mix of CNAME, A/AAAA records Poster-child: 8.8.8.8 resolving mag.ncep.noaa.gov
@@ -941,9 +941,11 @@ vnet_dns_cname_indirection_nolock (dns_main_t * dm, u32 ep_index, u8 * reply) dns_rr_t *rr; u8 *curpos; u8 *pos, *pos2; + u8 *cname_pos = 0; int len, i; u8 *cname = 0; u8 *request = 0; + u8 *name_copy; u32 qp_offset; u16 flags; u16 rcode; @@ -999,25 +1001,36 @@ vnet_dns_cname_indirection_nolock (dn...
[core] reset var if FAMMonitorDirectory() fails do not read fam_dir->version if FAMMonitorDirectory() fails
@@ -343,6 +343,7 @@ static void stat_cache_fam_dir_monitor(server *srv, stat_cache_fam *scf, stat_ca FamErrlist[FAMErrno]); fam_dir_entry_free(&scf->fam, fam_dir); + fam_dir = NULL; } else { int osize = splaytree_size(scf->dirs);
Fixes a make param typo
# it should be set to either RSA, or ECDSA_P256. This value can be # overridden by the make invocation, e.g.: # -# make SIGNATURE_TYPE=ECDSA_P256 +# make CONF_SIGNATURE_TYPE=ECDSA_P256 # CONF_SIGNATURE_TYPE ?= RSA
NVMe: Adding experimental DDR burst mode
@@ -531,6 +531,7 @@ module nvme_top ( DDR_awid = 0; DDR_awlen = 0; DDR_awsize = 0; + DDR_wstrb = 0; DDR_awburst = 0; DDR_awvalid = 0; DDR_wstrb = 0; @@ -607,31 +608,36 @@ module nvme_top ( always @(posedge DDR_aclk) begin case (ddr_write_state) DDR_WADDR: begin - DDR_awlen <= 8'h0; - DDR_awsize <= 3'b001; - DDR_awburst...
0.3.0; travis notes for mac + compiler inputs
language: c + +# https://docs.travis-ci.com/user/languages/c/#gcc-on-macos +# On mac, gcc is aliased to clang, so we only have one row +# in build the matrix, not two like on linux compiler: - - gcc - clang + - gcc jobs: include:
Python API: Fix error message typo.
@@ -442,7 +442,7 @@ class VPP(): size = ffi.new("int *") rv = vpp_api.vac_read(mem, size, self.read_timeout) if rv: - raise IOError(rv, 'vac_read filed') + raise IOError(rv, 'vac_read failed') msg = bytes(ffi.buffer(mem[0], size[0])) vpp_api.vac_free(mem[0]) return msg
self_test.h: fix the C++ wrapping Fixes
@@ -73,10 +73,6 @@ extern "C" { # define OSSL_SELF_TEST_DESC_KDF_TLS13_EXPAND "TLS13_KDF_EXPAND" # define OSSL_SELF_TEST_DESC_RNG "RNG" -# ifdef __cplusplus -} -# endif - void OSSL_SELF_TEST_set_callback(OSSL_LIB_CTX *libctx, OSSL_CALLBACK *cb, void *cbarg); void OSSL_SELF_TEST_get_callback(OSSL_LIB_CTX *libctx, OSSL_C...
handle multiple dir in upgrade script
@@ -102,7 +102,7 @@ SEGMENT_HOSTS=`cat $GPHOME/etc/slaves` OPTIONS='-c gp_maintenance_conn=true' # check whether all tmp dir exsits -ls $MASTER_TEMP_DIR +echo $MASTER_TEMP_DIR | sed "s/,/ /g" | xargs ls check_error "check master and segment temp dir on master" # check whether all segments replaced with new binary
Update Doxyfile-api.in
@@ -57,7 +57,7 @@ CREATE_SUBDIRS = NO # Croatian, Czech, Danish, Dutch, Farsi, Finnish, French, German, Greek, # Hungarian, Italian, Japanese, Japanese-en (Japanese with English messages), # Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, Polish, -# Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic...
.vscode/launch: Adapt virtualhub config for motors. At the moment, the virtualhub is mainly used to debug motor code. So it helps to make this the default launch configuration. We also add the virtual environment to the path to ensure the correct libraries can be imported.
"request": "launch", "program": "${workspaceFolder}/bricks/virtualhub/build/virtualhub-micropython", "args": [ - "./tests/pup/motors/busy.py" + "./tests/motors/single_motor.py" ], "stopAtEntry": false, "cwd": "${workspaceFolder}", }, { "name": "PBIO_VIRTUAL_PLATFORM_MODULE", - "value": "pbio_virtual.platform.turtle" + ...
Describe --key and --cert in help
@@ -2407,6 +2407,10 @@ Options: handshake completes. --no-preferred-addr Do not try to use preferred address offered by server. + --key=<PATH> + The path to client private key PEM file. + --cert=<PATH> + The path to client certificate PEM file. --download=<PATH> The path to the directory to save a downloaded content. I...
Improve delivery of stream reset notifications
@@ -3993,10 +3993,17 @@ sctp_notify_stream_reset_add(struct sctp_tcb *stcb, uint16_t numberin, uint16_t struct sctp_stream_change_event *stradd; if ((stcb == NULL) || - (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_STREAM_CHANGEEVNT))) { + (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE) || + (s...
fix path id4good
-APP_LOAD_PARAMS += "44'/161803'" +APP_LOAD_PARAMS += --path "44'/161803'" DEFINES += CHAINID_UPCASE=\"ID4GOOD\" CHAINID_COINNAME=\"A4G\" CHAIN_KIND=CHAIN_KIND_ID4GOOD CHAIN_ID=846000 APPNAME = "ID4Good"
bind address for msbench
@@ -24,15 +24,24 @@ static uint16_t config_port = 8080; static uint16_t config_log_level = 1; static uint16_t config_num_flows = 3; static uint16_t config_max_flows = 100; -static char *config_property = "\ -{\ +static char *config_property = "{\ \"transport\": [\ {\ \"value\": \"SCTP\",\ \"precedence\": 1\ }\ + ],\ + ...
RTX5: minor optimization in mutex priority inversion
@@ -82,6 +82,7 @@ void osRtxMutexOwnerRestore (const os_mutex_t *mutex, const os_thread_t *thread_ int8_t priority; // Restore owner Thread priority + if ((mutex->attr & osMutexPrioInherit) != 0U) { thread = mutex->owner_thread; priority = thread->priority_base; mutex0 = thread->mutex_list; @@ -106,6 +107,7 @@ void osR...
wpa_supplicant: Fix supplicant debug logs errors.
@@ -41,7 +41,7 @@ static void aes_ccm_auth_start(void *aes, size_t M, size_t L, const u8 *nonce, os_memcpy(&b[1], nonce, 15 - L); WPA_PUT_BE16(&b[AES_BLOCK_SIZE - L], plain_len); - wpa_hexdump_key(MSG_EXCESSIVE, "CCM B_0", b, AES_BLOCK_SIZE); + wpa_hexdump_key(MSG_DEBUG, "CCM B_0", b, AES_BLOCK_SIZE); aes_encrypt(aes, ...
Fix use before definition in
@@ -99,6 +99,8 @@ typedef enum SceKernelModel { SCE_KERNEL_MODEL_VITATV = 0x20000 } SceKernelModel; +typedef int (*SceClassCallback)(void *item); + typedef struct SceClass { struct SceClass *next; struct SceClass *root; @@ -251,8 +253,6 @@ int ksceKernelUidRetain(SceUID uid); */ int ksceKernelUidRelease(SceUID uid); -t...
Added k_yield to switch context so that MPU settings can be applied.
@@ -535,7 +535,8 @@ void *uPortAcquireExecutableChunk(void *pChunkToMakeExecutable, k_mem_domain_init(&dom0, ARRAY_SIZE(app_parts), app_parts); k_mem_domain_add_thread(&dom0, k_current_get()); - + // Need to switch context to make the memory domain changes active + k_yield(); *pSize = U_CFG_OS_EXECUTABLE_CHUNK_INDEX_0_...
ignores AddressSanitizer errors in jets.c
/* _cj_count(): count and link dashboard entries. */ + __attribute__((no_sanitize("address"))) static c3_w _cj_count(u3j_core* par_u, u3j_core* dev_u) { } /* _cj_install(): install dashboard entries. */ + __attribute__((no_sanitize("address"))) static c3_w _cj_install(u3j_core* ray_u, c3_w jax_l, u3j_core* dev_u) { @@ ...
tcl: remove plugin fixes
@@ -96,7 +96,6 @@ spec-namespace (put a focus on having nice syntax for metadata): - [ni](ni/) parses INI files based on (including metadata) [ni](https://lab.burn.capital/chaz-attic/bohr/-/blob/main/include/bohr/ni.h). -- [tcl](tcl/)-like config files (including metadata). Only suited for import/export:
Improved wording on push continue toggle
@@ -426,7 +426,7 @@ export const EventFields = { [EVENT_ACTOR_PUSH]: [ { key: "continue", - label: "Continue Until Collision", + label: "Slide Until Collision", type: "checkbox", defaultValue: false }
Remove the additional UNLINKDIR to fix parallel build break
@@ -67,7 +67,6 @@ $(TOPDIR)$(DELIM).config: $(PLATFORMDIR): $(TOPDIR)$(DELIM).config @echo "LN: platform$(DELIM)board to $(LINKDIR)" - $(Q) $(DIRUNLINK) $(PLATFORMDIR) $(Q) $(DIRLINK) $(LINKDIR) $(PLATFORMDIR) dirlinks: $(PLATFORMDIR)
CI: Check file is executable if in the list of executables
@@ -35,11 +35,14 @@ def check_executable_list(): def check_executables(files): ret = 0 for fn in files: - if not is_executable(fn): - continue - if fn not in known_executables: + fn_executable = is_executable(fn) + fn_in_list = fn in known_executables + if fn_executable and not fn_in_list: print('"{}" is not in {}'.for...
Don't use variable length arrays in exception code OMG Kees Cook was right, the code is *smaller*. We save like a dozen instructions in the exception path!
@@ -39,14 +39,15 @@ static void dump_regs(struct stack_frame *stack) i, stack->gpr[i], i + 16, stack->gpr[i + 16]); } +#define EXCEPTION_MAX_STR 320 + void exception_entry(struct stack_frame *stack) { bool fatal = false; bool hv; uint64_t nip; uint64_t msr; - const size_t max = 320; - char buf[max]; + char buf[EXCEPTIO...
feat: add get_guild_member
@@ -92,6 +92,36 @@ void run( } } // namespace create_channel +namespace get_guild_member { +void +run(client *client, u64_snowflake_t guild_id, u64_snowflake_t user_id, member::dati **p_member) +{ + if (!guild_id) { + D_PUTS("Missing 'guild_id'"); + return; + } + if (!user_id) { + D_PUTS("Missing 'user_id'"); + return;...