message
stringlengths
6
474
diff
stringlengths
8
5.22k
integer scaling, not integral
@@ -65,8 +65,8 @@ must be separated by one space. For example: recommended, but fractional values are also supported. If a fractional value are specified, be warned that it is not possible to faithfully represent the contents of your windows - they will be rendered at the next - highest integral scale factor and downsc...
updates FreeRTOS.h to handle new usages of task notify
@@ -637,7 +637,7 @@ hold explicit before calling the code. */ #endif #ifndef traceTASK_NOTIFY_TAKE - #define traceTASK_NOTIFY_TAKE() + #define traceTASK_NOTIFY_TAKE( uxIndexToWait ) #endif #ifndef traceTASK_NOTIFY_WAIT_BLOCK @@ -645,7 +645,7 @@ hold explicit before calling the code. */ #endif #ifndef traceTASK_NOTIFY_W...
name a magical logic to check if a number is a power of 2
@@ -843,10 +843,13 @@ def generate_filter_cflag(candidates): return "-DCHECK_ALLOWED_RES_HEADER_NAME(s,l)=(%s)" % " || ".join(conditions) +def is_power_of_two(n): + return (n > 0) and (n & (n-1) == 0) + def is_valid_page_cnt(s): try: n = int(s) - return (n > 0) and (n & (n-1) == 0) + return is_power_of_two(n) except: r...
nuc-samples: use huge page as default launch_uos cmdline we should use hugetlb as default uos memory allocation solution
@@ -16,7 +16,10 @@ fi #for memsize setting mem_size=1000M -acrn-dm -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \ +# make sure there is enough 2M hugepages in the pool +echo 1024 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages + +acrn-dm -T -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc...
switched to older bash silencing syntax
@@ -6,7 +6,7 @@ set(GSLMD5 dba736f15404807834dc1c7b93e83b92) find_package(GSL 2.4) # If GSL is not installed, lets go ahead and compile it -if(NOT GSL_FOUND ) +if( GSL_FOUND ) message(STATUS "GSL not found, downloading and compiling from source") ExternalProject_Add(GSL PREFIX GSL @@ -17,7 +17,7 @@ if(NOT GSL_FOUND ) -...
initial implementation of printing logic
bas=fuse-source con=(list [fuse-source germ]) == +:: Request to list current fuses. ~ means "list all" +:: ++$ kiln-fuse-list (unit desk) -- |= [bowl:gall state] ?> =(src our) ?~ +< abet abet:abet:(merge:(work syd) ali sud cas gim) :: +++ poke-fuse-list + => + |% + ++ format-fuse + |= pf=per-fuse + ^- tang + [>bas.kf.p...
Resolve duplicate label
@@ -47,7 +47,7 @@ The first step in attaching the FIR filter as a MMIO peripheral is to create an :start-after: DOC include start: GenericFIRBlock chisel :end-before: DOC include end: GenericFIRBlock chisel -Connecting by TileLink +Connecting DspBlock by TileLink ---------------------- With these classes implemented, y...
Add time since last test started to test output. This makes it easier to see the timing of each step in the test.
@@ -46,6 +46,8 @@ static char testGroupData[64]; static struct HarnessTestLocal { + uint64_t logLastBeginTime; // Store the begin time of the last log for deltas + struct HarnessTestResult { bool running; // Is the test currently running? @@ -208,6 +210,8 @@ testBegin(const char *name) result = true; } + harnessTestLoc...
[ci] Fix gitlab's CI to match the new dependency target
@@ -102,7 +102,7 @@ verilator-model: ln -s $VERILATOR_ROOT/share/verilator/bin/verilator_includer $VERILATOR_ROOT/bin/verilator_includer # Build the verilator model git submodule update --init --recursive -- hardware/deps/* - make patch-hw + make update-deps make -C hardware $ROOT_DIR/hardware/verilator_build/Vmempool_...
Fix potential not initialized warning
@@ -291,6 +291,9 @@ void mpi_mod_raw_sub( char * input_A, size_t limbs_N; size_t limbs_res; + mbedtls_mpi_mod_modulus m; + mbedtls_mpi_mod_modulus_init( &m ); + TEST_EQUAL( mbedtls_test_read_mpi_core( &A, &limbs_A, input_A ), 0 ); TEST_EQUAL( mbedtls_test_read_mpi_core( &B, &limbs_B, input_B ), 0 ); TEST_EQUAL( mbedtls...
MPU6050: removed extra param comments
@@ -81,7 +81,6 @@ static const struct sensor_driver g_mpu6050_sensor_driver = { * Writes a single byte to the specified register * * @param The sensor interface - * @param The I2C address to use * @param The register address to write to * @param The value to write * @@ -117,7 +116,6 @@ mpu6050_write8(struct sensor_itf ...
Update README.md Inform about the actual dependencies.
@@ -14,14 +14,18 @@ other UNIX tools. ## Installing RGBDS (UNIX) -RGBDS requires libpng and pkg-config to be installed. +RGBDS requires yacc, flex, libpng and pkg-config to be installed. On Mac OS X, install them with [Homebrew](http://brew.sh/). On other Unixes, -use the built-in package manager. +use the built-in pac...
doc: v2.0 release notes
@@ -126,6 +126,9 @@ a passthrough device to/from a post-launched VM is shown in the following figure ptdev de-assignment control flow +.. _vtd-posted-interrupt: + + VT-d Interrupt-remapping ************************
Restore ADDRESS_SANITIZER blocks to reduce diff with upstream.
#include "arena.h" + +#ifdef ADDRESS_SANITIZER +#include <sanitizer/asan_interface.h> +#endif + namespace google { namespace protobuf { @@ -129,6 +134,12 @@ Arena::Block* Arena::NewBlock(void* me, Block* my_last_block, size_t n, b->pos = kHeaderSize + n; b->size = size; b->owner = me; +#ifdef ADDRESS_SANITIZER + // Poi...
Moved =, in /lib/hall-json to the top level.
:: /- hall /+ old-zuse +=, hall :: |_ bol/bowl:gall ++ en-tape ::> sur to tape - =, hall |% ++ circ ::> circle |= a/circle -- :: ++ de-tape ::> tape to sur (parse) - =, hall |% ++ circ ::> circle ;~((glue fas) ;~(pfix sig fed:ag) urt:ab) -- :: ++ enjs ::> sur to json - =, hall =, enjs:format |% ::TODO these first few s...
Update docs/Coding style.md Fix duplicated word.
@@ -153,7 +153,7 @@ C++ code explicitly expresss lifetime semantics. - If required by a platform (e.g, Microsoft COM), use the appropriate ref-counted type, but do not expose those types to platform agnostic code, - prefer to use use an abstraction. + prefer to use an abstraction. Python code -----------
perf-tools/tau: remove patch debug
CFLAGS = $(TAU_MPI_COMPILE_INCLUDE) $(TAU_INCLUDE) $(TAU_DEFS) $(USER_OPT) $(TAU_INTERNAL_FLAGS) -fPIC -LDFLAGS = $(TAU_MPI_LIB) -+LDFLAGS = -L/tmp/opt/ohpc/pub/libs/gnu7/openmpi3/tau/2.27/lib $(TAU_MPI_LIB) ++LDFLAGS = -L$(TAU_PREFIX_INSTALL_DIR)/lib $(TAU_MPI_LIB) OBJS = libtau_plugin_function_registration_complete.s...
cancel remaining subs on [%news
?. (~(has by def.deh.bay) dep) ~&([%wasp-unknown dep] this) :: - |^ ?:(ask start cancel) - ++ start - ^+ this + ?:(ask (wasp-start dep) (wasp-cancel dep)) + :: + ++ wasp-start + |= dep=@uvH ^+ this ?: (~(has by sup.bay) dep) :: already requested this(sup.bay (~(put ju sup.bay) dep hen)) =. sup.bay (~(put ju sup.bay) de...
jni-documentation: extend document for macOS
@@ -30,6 +30,7 @@ The java plugin itself needs to have the following methods: ## Installation ## +### Java prerequisites on Linux (Debian) ### Please install java8 as package, e.g. [for debian](http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html) and then let cmake actually find jdk8: @@ -47,6 +4...
tls: pake: do not destroy key on errors while setting opaque password
@@ -1950,31 +1950,24 @@ int mbedtls_ssl_set_hs_ecjpake_password_opaque( mbedtls_ssl_context *ssl, status = psa_pake_setup( &ssl->handshake->psa_pake_ctx, &cipher_suite ); if( status != PSA_SUCCESS ) - { - psa_destroy_key( ssl->handshake->psa_pake_password ); - return( MBEDTLS_ERR_SSL_HW_ACCEL_FAILED ); - } + goto error...
Ask for review less often
@@ -17,10 +17,10 @@ import StoreKit if minLaunches == nil { minLaunches = 0 } else if (minLaunches as! Int) == 0 { - minLaunches = 3 - } else if launches == 3 { - minLaunches = 5 - } else if launches >= 5 { + minLaunches = 6 + } else if launches == 6 { + minLaunches = 10 + } else if launches >= 10 { minLaunches = 0 }
Remove duplicated debug macro
@@ -1007,30 +1007,6 @@ Once LOGM is approved, each module should have its own index #endif #endif /* CONFIG_CPP_HAVE_VARARGS */ -#ifdef CONFIG_DEBUG_AUDIO_ERROR -#define auddbg dbg -#define audlldbg lldbg -#else -#define auddbg(...) -#define audlldbg(...) -#endif - -#ifdef CONFIG_DEBUG_AUDIO_WARN -#define audwdbg wdbg ...
Work CI-CD Update win32 task to update pip on the fly. ***NO_CI***
@@ -44,10 +44,13 @@ steps: targetType: 'inline' script: | + # update pip (until the build agent image is updated) + python -m pip install --upgrade pip + # install Cloudsmith CLI python -m pip install --upgrade cloudsmith-cli cloudsmith push raw net-nanoframework/$(CLOUDSMITH_REPO) $(Build.ArtifactStagingDirectory)\$(T...
RNG seed: add get_entropy hook for seeding.
@@ -34,6 +34,8 @@ static OSSL_FUNC_rand_verify_zeroization_fn seed_src_verify_zeroization; static OSSL_FUNC_rand_enable_locking_fn seed_src_enable_locking; static OSSL_FUNC_rand_lock_fn seed_src_lock; static OSSL_FUNC_rand_unlock_fn seed_src_unlock; +static OSSL_FUNC_rand_get_seed_fn seed_get_seed; +static OSSL_FUNC_ra...
Corrected false character in some defines
@@ -866,7 +866,7 @@ static struct stlink_chipid_params devices[] = { { // STM32H7A3/7B3 // RM0455 - .chip_id = STLINK_CHIPID_STM32_H7AX, + .chip_id = STLINK_CHIPID_STM32_H7Ax, .description = "H7Ax/H7Bx", .flash_type = STLINK_FLASH_TYPE_H7, .flash_size_reg = 0x08FFF80C, // "Flash size register" (p.2949) @@ -883,7 +883,7...
genesis: Redefine GPIO BJ_ADP_PRESENT_L TEST=Built EC for genesis Tested-by: Neill Corlett
@@ -45,6 +45,7 @@ GPIO_INT(EC_RECOVERY_BTN_ODL, PIN(F, 1), GPIO_INT_BOTH, button_interrupt) * Recovery button input from H1. */ GPIO_INT(H1_EC_RECOVERY_BTN_ODL, PIN(2, 4), GPIO_INT_BOTH, button_interrupt) +GPIO(BJ_ADP_PRESENT_L, PIN(8, 2), GPIO_INT_BOTH | GPIO_PULL_UP) /* Port power control interrupts */ GPIO_INT(HDMI_...
[mod_webdav] define _NETBSD_SOURCE on NetBSD NetBSD dirent.h improperly hides fdopendir() (POSIX.1-2008) declaration which should be visible w/ _XOPEN_SOURCE 700 or _POSIX_C_SOURCE 200809L
#if !defined(_XOPEN_SOURCE) || _XOPEN_SOURCE-0 < 700 #undef _XOPEN_SOURCE #define _XOPEN_SOURCE 700 +/* NetBSD dirent.h improperly hides fdopendir() (POSIX.1-2008) declaration + * which should be visible with _XOPEN_SOURCE 700 or _POSIX_C_SOURCE 200809L */ +#ifdef __NetBSD__ +#define _NETBSD_SOURCE +#endif #endif /* DT...
[net][at] Fix AT Socket select send data issue.
@@ -200,7 +200,7 @@ static void at_do_event_changes(struct at_socket *sock, at_event_t event, rt_boo { if (is_plus) { - sock->sendevent++; + sock->sendevent = 1; #ifdef SAL_USING_POSIX rt_wqueue_wakeup(&sock->wait_head, (void*) POLLOUT); @@ -209,7 +209,7 @@ static void at_do_event_changes(struct at_socket *sock, at_eve...
Make calc_sao_bands less opaque
@@ -254,8 +254,11 @@ static void calc_sao_bands(const encoder_state_t * const state, const kvz_pixel //Loop pixels and take top 5 bits to classify different bands for (y = 0; y < block_height; ++y) { for (x = 0; x < block_width; ++x) { - sao_bands[0][rec_data[y * block_width + x]>>shift] += orig_data[y * block_width + ...
Switch to star refinement in TZ search
@@ -614,8 +614,8 @@ static void tz_search(inter_search_info_t *info, vector2d_t extra_mv) const int iRaster = 5; // search distance limit and downsampling factor for step 3 const unsigned step2_type = 0; // search patterns for steps 2 and 4 const unsigned step4_type = 0; - const bool bRasterRefinementEnable = true; // ...
arch in lib path
@@ -129,7 +129,7 @@ fi -pdt=$PDTOOLKIT_DIR \ -useropt="%optflags -I$MPI_INCLUDE_DIR -I$PWD/include -fno-strict-aliasing" \ -openmp \ - -extrashlibopts="-fPIC -L$MPI_LIB_DIR -lmpi -L/tmp/%{install_path}/lib" + -extrashlibopts="-fPIC -L$MPI_LIB_DIR -lmpi -L/tmp/%{install_path}/lib -L/tmp/%{install_path}/%{machine}/lib" m...
scripts: do not fail if backend was down see
@@ -40,13 +40,13 @@ echo -n "Old PID was: " cat /run/elektra-rest-backend.pid || /bin/true echo -# then restart the backend -kdb stop-rest-backend +# then restart the backend, succeed if it was not started before.. +kdb stop-rest-backend || /bin/true # avoid 'address already in use' while netstat --listen --numeric-por...
sailfish: adding net and net-ssh gems to gemspec
@@ -34,6 +34,8 @@ Gem::Specification.new do |s| s.add_dependency('rdoc', '4.2.2') s.add_dependency('deep_merge','1.1.1') s.add_dependency('nokogiri', '1.8.2') + s.add_dependency('net', '0.3.3') + s.add_dependency('net-ssh', '5.0.2') s.post_install_message = "Thanks for installing Rhodes ! Please visit our website: http...
collector_runner: avoid shadowing variable
@@ -85,11 +85,11 @@ collector_runner(void *s) logout("%s", metric); \ else { \ size_t len = strlen(metric); \ - char *m = malloc(sizeof(char) * len + sizeof(len)); \ - if (m != NULL) { \ - *((size_t *)m) = len; \ - memcpy(m + sizeof(len), metric, len); \ - server_send(submission, m, 1); \ + char *mtrc = malloc(sizeof(c...
do non case sensitve VENDOR search
@@ -1991,6 +1991,7 @@ return; static void readoui() { static int len; +static int c; static uid_t uid; static struct passwd *pwd; static struct stat statinfo; @@ -2015,6 +2016,15 @@ else if(stat(ouinameuser, &statinfo) == 0) usedoui = ouinamesystemwide; else return; if((fh_oui = fopen(usedoui, "r")) == NULL) return; ze...
Update settings.c Update the AWS Elastic Load Balancing log format
@@ -72,7 +72,7 @@ static const GPreConfLog logs = { "%d %t %^ %m %U %q %^ %^ %h %u %R %s %^ %^ %L", /* W3C */ "%d\\t%t\\t%^\\t%b\\t%h\\t%m\\t%v\\t%U\\t%s\\t%R\\t%u\\t%q\\t%^\\t%C\\t%^\\t%^\\t%^\\t%^\\t%T\\t%^\\t%K\\t%k\\t%^\\t%H\\t%^", /* CloudFront */ "\"%x\",\"%h\",%^,%^,\"%m\",\"%U\",\"%s\",%^,\"%b\",\"%D\",%^,\"%R\...
releases/describe_firmware: remove bitbox02 dependency As per the releases/README, the file is supposed to be easy to audit. Pulling in a dependency makes audit more difficult. It also makes the script harder to use, if the user does not have the dependency installed. This commit inlines the relevant parse_signed_firmw...
# limitations under the License. """CLI tool to dump infos about a signed firmware binary""" -try: - from bitbox02.bitbox02.bootloader import ( - parse_signed_firmware, - SIGDATA_MAGIC_STANDARD, - SIGDATA_MAGIC_BTCONLY, - SIGNING_PUBKEYS_DATA_LEN, - MAX_FIRMWARE_SIZE, - ) -except ModuleNotFoundError: - print("bitbox02 ...
fix travis broken
@@ -42,7 +42,15 @@ install: protobuf-c thrift - brew outdated libyaml || brew upgrade libyaml - - brew outdated json-c || brew upgrade json-c + - git clone https://github.com/json-c/json-c.git + - pushd json-c + - git reset --hard json-c-0.12.1-20160607 + - sh autogen.sh + - ./configure + - make + - make install + - po...
Fix broken shell command
if (BUILD_TESTING) - add_test (NAME "test_bindings_elixir" COMMAND sh -c "cd ${CMAKE_CURRENT_BINARY_DIR} && mix test") + add_test (NAME "test_bindings_elixir" COMMAND sh -c "cd \"${CMAKE_CURRENT_BINARY_DIR}\" && mix test") endif (BUILD_TESTING)
unix/coverage: Init all pairheap test nodes before using them.
@@ -149,6 +149,9 @@ STATIC int pairheap_lt(mp_pairheap_t *a, mp_pairheap_t *b) { // ops array contain operations: x>=0 means push(x), x<0 means delete(-x) STATIC void pairheap_test(size_t nops, int *ops) { mp_pairheap_t node[8]; + for (size_t i = 0; i < MP_ARRAY_SIZE(node); ++i) { + mp_pairheap_init_node(pairheap_lt, &...
1. changed pin_type of Legacy Paring from FIXED to VARIABLE to avoid authentication failure 2. provide compatibilities with devices that do not support Secure Simple Paring Closes Closes
@@ -412,8 +412,25 @@ static void bt_gap_event_handler(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_para case ESP_BT_GAP_MODE_CHG_EVT: ESP_LOGI(TAG, "BT GAP MODE_CHG_EVT mode:%d", param->mode_chg.mode); break; + case ESP_BT_GAP_PIN_REQ_EVT: { + ESP_LOGI(TAG, "ESP_BT_GAP_PIN_REQ_EVT min_16_digit:%d", param->pin_req.min_16_...
process: fix crash when parent process kstack size is reduced
@@ -817,7 +817,7 @@ int proc_copyexec(void) current->kstack = current->execkstack; kstack = current->execkstack + current->kstacksz - sizeof(cpu_context_t); - hal_memcpy(kstack, current->parentkstack + current->kstacksz - sizeof(cpu_context_t), sizeof(cpu_context_t)); + hal_memcpy(kstack, parent->kstack + current->ksta...
modify incorrect comment on socket.h CONFIG_CUSTOM_SOCKETS -> CONFIG_NET_SOCKET
#ifdef CONFIG_NET_SOCKET #include <net/lwip/sockets.h> #include <net/lwip/api.h> -#endif /* CONFIG_CUSTOM_SOCKETS */ +#endif /* CONFIG_NET_SOCKET */ /**************************************************************************** * Public Function Prototypes
naive: fix rank-filter
:: ++ filter-rank |= [=rank =event-list] - (skim event-list |=(=event =(rank.event event))) + (skim event-list |=(=event =(rank.event rank))) :: ++ filter-owner |= [owner=? =event-list]
fix qpack integer test 255
@@ -45,7 +45,7 @@ static uint8_t h3zero_pref127_valmax[] = { 0xFF, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F }; static uint8_t h3zero_pref7_err1[] = { 0x07 }; static uint8_t h3zero_pref7_err2[] = { 0x07, 0xFF, 0xFF, 0x80, 0x80, 0x80 }; -static uint8_t h3zero_pref127_val255[] = { 0x1F, 0xE0, 0x01 }; +static u...
update patches for Linux 5.10
@@ -492,3 +492,15 @@ diff -rupN old/linux-5.10/include/linux/usb/chipidea.h linux-5.10/include/linux/ enum usb_dr_mode dr_mode; #define CI_HDRC_CONTROLLER_RESET_EVENT 0 #define CI_HDRC_CONTROLLER_STOPPED_EVENT 1 +diff -rupN old/linux-5.10/scripts/gcc-plugins/Kconfig linux-5.10/scripts/gcc-plugins/Kconfig +--- old/linux...
Added a test for EFRA
@@ -16,7 +16,9 @@ temp1=temp1.$label.grib temp2=temp2.$label.grib temp3=temp3.$label.grib - +# --------------------------- +# Stream EFAS +# --------------------------- # Create a starting GRIB with a basic local definition for MARS ${tools_dir}/grib_set -s tablesVersion=19,setLocalDefinition=1,stream=efas $ECCODES_SAM...
nvbios/gpio: 0x5d output is most likely another PWM
@@ -238,6 +238,7 @@ static struct enum_val gpio_spec_out[] = { { 0x5a, "THERMAL_LOAD_STEP_0" }, { 0x5b, "THERMAL_LOAD_STEP_1" }, { 0x5c, "PWM_0" }, + { 0x5d, "PWM_1" }, { 0x80, "SOR0_PANEL_BACKLIGHT_LEVEL" }, { 0x81, "SOR0_PANEL_POWER" }, { 0x82, "SOR0_PANEL_BACKLIGHT_ON" },
Document new native platform defines
#define LOG_MODULE "Native" #define LOG_LEVEL LOG_LEVEL_MAIN +/*---------------------------------------------------------------------------*/ +/** + * \name Native Platform Configuration + * + * @{ + */ + +/* + * Defines the maximum number of file descriptors monitored by the platform + * main loop. + */ #ifdef SELECT_...
Fix emenu crash from commit
@@ -3309,10 +3309,11 @@ VOID PhMwpUpdateUsersMenu( escapedMenuText = PhEscapeStringForMenuPrefix(&menuText->sr); PhDereferenceObject(menuText); - PhInsertEMenuItem(UsersMenu, userMenu = PhCreateEMenuItem(0, IDR_USER, escapedMenuText->Buffer, NULL, UlongToPtr(sessions[i].SessionId)), -1); + userMenu = PhCreateEMenuItem(...
Fix topics decoding to work with zero values
:: tox: list of hex words |* [tox=(lest @ux) tys=(list etyp)] =- (decode-arguments (crip -) tys) - %+ render-hex-bytes (mul 32 (lent tox)) %+ roll `(list @ux)`tox - |= [top=@ux tos=@] - (cat 8 top tos) + |= [top=@ tos=tape] + (weld tos (render-hex-bytes 32 top)) :: ++ decode-results :: rex: string of hex bytes with lea...
wifi: remove esp_phy_enable/disable IRAM_attr esp_phy_enable and esp_phy_disable were declared both with IRAM attr and with (noflash) in the linker fragment file, causing ldgen to emit warnings. Remove IRAM_attr and let the linker fragment decide placement
@@ -195,7 +195,7 @@ IRAM_ATTR void esp_phy_common_clock_disable(void) wifi_bt_common_module_disable(); } -IRAM_ATTR void esp_phy_enable(void) +void esp_phy_enable(void) { _lock_acquire(&s_phy_access_lock); @@ -231,7 +231,7 @@ IRAM_ATTR void esp_phy_enable(void) _lock_release(&s_phy_access_lock); } -IRAM_ATTR void esp_p...
fix fdatasync bug
@@ -24400,13 +24400,9 @@ SQLITE_API int sqlite3_fullsync_count = 0; ** then simply compile with -Dfdatasync=fdatasync */ #if !defined(fdatasync) -#include "dfs.h" -#include "dfs_file.h" int fdatasync(fd) { - struct dfs_fd *dfs_fd; - dfs_fd = fd_get(fd); - return dfs_file_flush(dfs_fd); + fsync(fd); } #endif
out_stackdriver: fix metadata not assigned correctly
@@ -415,6 +415,7 @@ static int process_local_resource_id(struct flb_stackdriver *ctx, char *type) { int ret = -1; int first = FLB_TRUE; + int counter = 0; int len_k8s_container; int len_k8s_node; int len_k8s_pod; @@ -451,15 +452,26 @@ static int process_local_resource_id(struct flb_stackdriver *ctx, char *type) } /* Fo...
add data partition to python
@@ -1548,6 +1548,7 @@ class CatBoostClassifier(CatBoost): max_bin=None, scale_pos_weight=None, gpu_cat_features_storage=None, + data_partition=None, **kwargs ): if objective is not None: @@ -1874,6 +1875,7 @@ class CatBoostRegressor(CatBoost): eta=None, max_bin=None, gpu_cat_features_storage=None, + data_partition=None...
SOVERSION bump to version 5.1.10
@@ -39,7 +39,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 1) -set(SYSREPO_MICRO_SOVERSION 9) +set(SYSREPO_MICRO_SO...
initrd_fopen properly contains filenames beginning with numbers
@@ -60,14 +60,15 @@ fs_node_t* finddir_fs(fs_node_t* node, char* name) { fd_entry_t _tab[512]; static int _fd_count = 0; FILE* initrd_fopen(const char* filename, char* mode) { - //printf("initrd_fopen(\"%s\")\n", filename); + printf("initrd_fopen(\"%s\")\n", filename); //skip preceding ./ //TODO properly traverse file ...
Correct the no-dh and no-dsa fix The condition wasn't quite right
@@ -60,7 +60,7 @@ my %conf_dependent_tests = ( "10-resumption.conf" => !$is_default_tls, "11-dtls_resumption.conf" => !$is_default_dtls, "19-mac-then-encrypt.conf" => !$is_default_tls, - "20-cert-select.conf" => !$is_default_tls && !$no_dh && !$no_dsa, + "20-cert-select.conf" => !$is_default_tls || $no_dh || $no_dsa, )...
[chainmaker]change the header file function declaration
@@ -262,7 +262,7 @@ void BoatHlchainmakerTxDeInit(BoatHlchainmakerTx *tx_ptr); * @return * Return \c BOAT_SUCCESS if set success, otherwise return a error code. ******************************************************************************/ -BOAT_RESULT BoatHlchainmakerAddTxParam(BoatHlchainmakerTx *tx_ptr, const BCHAR...
hv: bugfix in min() and max() MACROs These two MACROs shall be wrapped as a single value respectively, hence brackets should be used.
/** Roundup (x) to (y) aligned **/ #define roundup(x, y) (((x) + ((y) - 1UL)) & (~((y) - 1UL))) -#define min(x, y) ((x) < (y)) ? (x) : (y) +#define min(x, y) (((x) < (y)) ? (x) : (y)) -#define max(x, y) ((x) < (y)) ? (y) : (x) +#define max(x, y) (((x) < (y)) ? (y) : (x)) /** Replaces 'x' by the string "x". */ #define S...
doc: Sentences are short and written in one line.
# Documentation This document gives guidelines for contributors concerning Elektra's documentation. -This document takes preference to the actual situation, so if you see documentation -not according to this document, please [create an issue](https://issue.libelektra.org) -or directly fix it with your next PR. +This do...
apps/ocf_sample; client was not actually toggling light value to opposite value.
@@ -156,7 +156,7 @@ observe_light(oc_client_response_t *rsp) }; len = coap_get_payload(rsp->packet, &m, &data_off); - if (cbor_read_mbuf_attrs(m, data_off, len, attrs)) { + if (!cbor_read_mbuf_attrs(m, data_off, len, attrs)) { printf("OBSERVE_light: %d\n", state); light_state = state; }
BIER coveroty fix for unintialised return value on error
@@ -293,7 +293,7 @@ vl_api_bier_imp_add_t_handler (vl_api_bier_imp_add_t * mp) { vl_api_bier_imp_add_reply_t *rmp; vnet_main_t *vnm; - index_t bii; + index_t bii = ~0; int rv = 0; vnm = vnet_get_main ();
Fix coverity bug, dead code
@@ -2577,10 +2577,6 @@ static ACVP_RESULT acvp_build_kas_ecc_register_cap(ACVP_CTX *ctx, break; case ACVP_KAS_ECC_PARMSET: default: - if (i != ACVP_KAS_ECC_MODE_NONE) { - ACVP_LOG_ERR("Unsupported KAS-ECC kdf %d", kdf); - return ACVP_INVALID_ARG; - } break; } switch (scheme) {
Fix oesign test without quote provider
#include <openenclave/host.h> #include <openenclave/internal/error.h> #include <openenclave/internal/load.h> +#include <openenclave/internal/sgx/tests.h> #include <openenclave/internal/tests.h> #include <stdio.h> #include "../host/sgx/cpuid.h" @@ -93,7 +94,10 @@ int main(int argc, const char* argv[]) } } - if (_is_kss_...
OcMemoryLib: Fix casting issues closes acidanthera/bugtracker#798
@@ -631,7 +631,7 @@ OcSplitMemoryEntryByAttribute ( } NewMemoryMapEntry = NEXT_MEMORY_DESCRIPTOR (MemoryMapEntry, DescriptorSize); - DiffPages = EFI_SIZE_TO_PAGES (MemoryAttribte->PhysicalStart - MemoryMapEntry->PhysicalStart); + DiffPages = (UINTN) EFI_SIZE_TO_PAGES (MemoryAttribte->PhysicalStart - MemoryMapEntry->Phy...
LICENSE: add license for apps/wireless/wapi add the license for apps/wireless/wapi
@@ -587,4 +587,37 @@ apps/canutils/libcanutils Send feedback to <linux-can@vger.kernel.org> +apps/wireless/wapi +================== + + Copyright (C) 2011, 2017 Gregory Nutt. All rights reserved. + Author: Gregory Nutt <gnutt@nuttx.org> + + Adapted for NuttX from WAPI: + + Copyright (c) 2010, Volkan YAZICI <volkan.yazi...
Add PhSetThreadIdealProcessor
@@ -1077,6 +1077,31 @@ PhGetThreadIdealProcessor( ); } +FORCEINLINE +NTSTATUS +PhSetThreadIdealProcessor( + _In_ HANDLE ThreadHandle, + _In_ PPROCESSOR_NUMBER ProcessorNumber, + _Out_opt_ PPROCESSOR_NUMBER PreviousIdealProcessor + ) +{ + NTSTATUS status; + PROCESSOR_NUMBER processorNumber; + + processorNumber = *Proces...
[core] dup FILE_CHUNK fd when splitting FILE_CHUNK
@@ -507,6 +507,8 @@ void chunkqueue_steal(chunkqueue * const restrict dest, chunkqueue * const restr case FILE_CHUNK: /* tempfile flag is in "last" chunk after the split */ chunkqueue_append_file(dest, c->mem, c->file.start + c->offset, use); + if (c->file.fd >= 0) + dest->last->file.fd = fdevent_dup_cloexec(c->file.fd...
Fix input select to prevent case where no button is selected
@@ -90,8 +90,10 @@ const renderButton = (id, value, onChange) => input => ( } onChange={() => { if (Array.isArray(value)) { - if (value.indexOf(input.key) > -1 && value.length > 1) { + if (value.indexOf(input.key) > -1) { + if (value.length > 1) { onChange(value.filter(i => i !== input.key)); + } } else { onChange([].c...
Remove risattacking member.
@@ -2509,7 +2509,6 @@ typedef struct entity e_update_mark update_mark; // Which updates are completed. ~~ - int riseattacking; // playing rise attack animation int edge; // in edge (unbalanced) int normaldamageflipdir; // used to reset backpain direction int frozen; // Flag to determine if an entity is frozen
moved output complete to hex format
@@ -445,7 +445,7 @@ if((anonceliste != NULL) && (anonceoutname != NULL)) if((memcmp(zeigerold->mac_ap, zeiger->mac_ap, 6) != 0) && (memcmp(zeigerold->mac_sta, zeiger->mac_sta, 6) != 0) && (memcmp(zeigerold->anonce, zeiger->anonce, 32) != 0)) { fwritetimestamphigh(zeiger->tv_sec, fhoutlist); - fprintf(fhoutlist, "%8x:",...
tools: Produce user friendly error during install when the server is down Closes
@@ -565,11 +565,16 @@ class IDFTool(object): for retry in range(DOWNLOAD_RETRY_COUNT): local_temp_path = local_path + '.tmp' info('Downloading {} to {}'.format(archive_name, local_temp_path)) + try: urlretrieve(url, local_temp_path, report_progress if not global_non_interactive else None) sys.stdout.write("\rDone\n") +...
docs(lv_obj_style) update add_style and remove_style function headers
@@ -67,10 +67,10 @@ void _lv_obj_style_init(void); /** * Add a style to an object. * @param obj pointer to an object - * @param part a part of the object to which the style should be added E.g. `LV_PART_MAIN` or `LV_PART_KNOB` - * @param state a state or combination of states to which the style should be assigned * @pa...
SOVERSION bump to version 6.4.6
@@ -68,7 +68,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 6) set(SYSREPO_MINOR_SOVERSION 4) -set(SYSREPO_MICRO_SOVERSION 5) +set(SYSREPO_MICRO_SO...
options/linux-headers: Add some missing v4l2 defines
#define V4L2_CAP_RADIO 0x00040000 #define V4L2_CAP_READWRITE 0x01000000 +#define V4L2_CAP_VIDEO_CAPTURE_MPLANE 0x00001000 +#define V4L2_CAP_VIDEO_OUTPUT_MPLANE 0x00002000 + +#define V4L2_CAP_DEVICE_CAPS 0x80000000 + #ifdef __cplusplus extern "C" { #endif
build docs separately.
@@ -39,7 +39,8 @@ main = shakeMain $ do -- fake "." pats "sanity" $ const $ do need [ "tests-error" ] - need [ "docs", "lint", "weed" ] + need [ "docs" ] + need [ "lint", "weed" ] -- | Default things to run. --
admin/meta-packages: typo
@@ -332,7 +332,7 @@ Requires: scalasca-gnu%{gnu_major_ver}-openmpi%{openmpi_major_ver}%{PROJ_DELIM} Requires: scorep-gnu%{gnu_major_ver}-openmpi%{openmpi_major_ver}%{PROJ_DELIM} %ifnarch aarch64 Requires: wxparaver-gnu%{gnu_major_ver}-openmpi%{openmpi_major_ver}%{PROJ_DELIM} -$endif +%endif Requires: papi%{PROJ_DELIM} ...
docs: fix FIH example command in design.md
@@ -1468,8 +1468,8 @@ are issued from the MCUboot source directory): ```sh $ mkdir docker $ ./ci/fih-tests_install.sh -$ FIH_LEVEL=MCUBOOT_FIH_PROFILE_MEDIUM BUILD_TYPE=RELEASE SKIP_SIZE=2 \ - DAMAGE_TYPE=SIGNATURE ./ci/fih-tests_run.sh +$ FIH_LEVEL=MEDIUM BUILD_TYPE=RELEASE SKIP_SIZE=2 DAMAGE_TYPE=SIGNATURE \ + ./ci/f...
chip/stm32/usb_isochronous.c: Format with clang-format BRANCH=none TEST=none
#include "usb_hw.h" #include "usb_isochronous.h" - /* Console output macro */ #define CPRINTF(format, args...) cprintf(CC_USB, format, ##args) #define CPRINTS(format, args...) cprints(CC_USB, format, ##args) @@ -65,8 +64,7 @@ static usb_uint *get_app_addr(struct usb_isochronous_config const *config, * Sets number of by...
fix bug in septrafo (broke cdf97 wavelets)
@@ -1322,10 +1322,11 @@ static void md_septrafo_r(unsigned int D, unsigned int R, long dimensions[D], un void* nptr[1] = { ptr }; const long* nstrides[1] = { strides }; - dimensions[R] = 1; // we made a copy in md_septrafo2 long dimsR = dimensions[R]; long strsR = strides[R]; // because of clang + dimensions[R] = 1; //...
Fix setting of normal vector.
@@ -1515,9 +1515,9 @@ ts_bspline_compute_rmf(const tsBSpline *spline, /* Compute vector s_{i+1} of U_{i+1}. */ ts_vec3_cross(xn, xc, frames[i+1].binormal); - /* Set vector t_{i+1} and r_{i+1} of U_{i+1}. */ + /* Set vectors t_{i+1} and r_{i+1} of U_{i+1}. */ ts_vec3_set(frames[i+1].tangent, xn, 3); - ts_vec3_set(xc, fr...
reSync asset after baking so there is a fresh copy of the output immediately available for feedback.
@@ -49,8 +49,12 @@ houdiniEngine_bakeAsset(string $assetNode) else delete $child; } - // don't disconnect output transforms, because they connect back to the asset - // and that connection is determinded by the asset options, and not the existence ot + // don't disconnect output transforms, since they connect back to t...
Read latest build tools version id from buildTools folder
@@ -7,10 +7,10 @@ import getTmp from "../helpers/getTmp"; const rmdir = promisify(rimraf); -const EXPECTED_TOOLS_VERSION = "2.0.0"; - const ensureBuildTools = async () => { const buildToolsPath = `${buildToolsRoot}/${process.platform}-${process.arch}`; + const expectedBuildToolsVersionPath = `${buildToolsPath}/tools_ve...
u3: updates u3qe_en_base16() to use slab api
@@ -9,21 +9,18 @@ const c3_y hex_y[16] = { '0', '1', '2', '3', '4', '5', '6', '7', u3_noun u3qe_en_base16(u3_atom len, u3_atom dat) { - c3_w len_w, byt_w; - if ( c3n == u3a_is_cat(len) ) { return u3m_bail(c3__fail); } else { - len_w = (c3_w)len; - byt_w = len_w * 2; + c3_w len_w = (c3_w)len; + u3i_slab sab_u; - if ( (b...
netkvm: log device RSS feature is presented
@@ -408,6 +408,7 @@ static void DumpVirtIOFeatures(PPARANDIS_ADAPTER pContext) {VIRTIO_F_RING_PACKED, "VIRTIO_F_RING_PACKED"}, {VIRTIO_NET_F_CTRL_GUEST_OFFLOADS, "VIRTIO_NET_F_CTRL_GUEST_OFFLOADS" }, {VIRTIO_NET_F_RSC_EXT, "VIRTIO_NET_F_RSC_EXT" }, + {VIRTIO_NET_F_RSS, "VIRTIO_NET_F_RSS" }, }; UINT i; for (i = 0; i < s...
Filling cmsghdr with 0 to pass Go 1.11 message validation.
@@ -2167,9 +2167,12 @@ nxt_unit_send_mmap(nxt_unit_ctx_t *ctx, nxt_unit_port_id_t *port_id, int fd) msg.mf = 0; msg.tracking = 0; -#if (NXT_VALGRIND) + /* + * Fill all padding fields with 0. + * Code in Go 1.11 validate cmsghdr using padding field as part of len. + * See Cmsghdr definition and socketControlMessageHeade...
correct tests for jenkins
@@ -96,7 +96,7 @@ rm -f snap_scatter_gather.log touch snap_scatter_gather.log if [ $duration = "SHORT" ]; then - tests=5 + tests=2 elif [ $duration = "NORMAL" ]; then tests=20 else @@ -104,20 +104,20 @@ else fi echo "Run $tests tests for each testpoint. (num = $num, scatter_size = $scatter_size)" -args=("-K1" "-K4" "-K...
Fixes some issues in the pubsub zmq admin
@@ -515,8 +515,8 @@ static celix_status_t pubsub_zmqAdmin_connectEndpointToReceiver(pubsub_zmq_admin const char *url = celix_properties_get(endpoint, PUBSUB_ZMQ_URL_KEY, NULL); if (url == NULL) { - const char *admin = celix_properties_get(endpoint, PUBSUB_ENDPOINT_ADMIN_TYPE); - const char *type = celix_properties_get(...
Updated lua.c to fix telnet issue
@@ -335,7 +335,8 @@ static int l_read_stdin (lua_State *L) { return 1; /* return false if pipe empty */ if (b[l-1] != '\n') { /* likewise if not CR terminated, then unread and ditto */ - lua_getfield(L, 1, "unread"); + lua_insert(L, 1); /* insert false return above the pipe */ + lua_getfield(L, 2, "unread"); lua_insert...
Remove reference to legacy aliases for MAC and KDF
@@ -68,14 +68,10 @@ information on what parameters each implementation supports. =item B<-kdf-algorithms> Display a list of key derivation function algorithms. -If a line is of the form C<foo =E<gt> bar> then B<foo> is an alias for the -official algorithm name, B<bar>. =item B<-mac-algorithms> Display a list of message...
update ya tool yfm 0.24.6
}, "yfm": { "formula": { - "sandbox_id": [407397469, 407398241, 407398546], + "sandbox_id": 440317482, "match": "YFM" },
travis: Add checking duplicated NID name between multiple libs resolve
@@ -49,19 +49,29 @@ def read_def_groups(): return definitions def read_nids(): - nids = dict() + errors = [] + user_nids = dict() + kernel_nids = dict() + nids = None with open(DB_FILE_PATH, 'r') as d: SECTION = None - for line in d.xreadlines(): + for line_no, line in enumerate(d.xreadlines()): line = line.strip() - k...
Don't negotiate TLSv1.3 with the ossl_shim The ossl_shim doesn't know about TLSv1.3 so we should disable that protocol version for all tests for now. This fixes the current Travis failures. [extended tests]
@@ -533,6 +533,12 @@ static bssl::UniquePtr<SSL_CTX> SetupCtx(const TestConfig *config) { !SSL_CTX_set_max_proto_version(ssl_ctx.get(), TLS1_3_VERSION)) { return nullptr; } +#else + /* Ensure we don't negotiate TLSv1.3 until we can handle it */ + if (!config->is_dtls && + !SSL_CTX_set_max_proto_version(ssl_ctx.get(), T...
Fix DDF Javascript numeric value convesion for Attr.val For some data types a string instead of numeric was returned. If the expression was evaluated weird results appeared, e.g: "5" + 1 = "51" This fixes DDF state/humidity values.
@@ -154,16 +154,24 @@ QVariant JsZclAttribute::value() const case deCONZ::Zcl56BitBitMap: case deCONZ::Zcl56BitData: case deCONZ::Zcl56BitUint: + return QVariant::fromValue(quint64(attr->numericValue().u64)); + case deCONZ::Zcl64BitBitMap: case deCONZ::Zcl64BitUint: case deCONZ::Zcl64BitData: case deCONZ::ZclIeeeAddres...
Use local max_idle_timeout if remote one is 0
@@ -9265,6 +9265,7 @@ ngtcp2_tstamp ngtcp2_conn_get_idle_expiry(ngtcp2_conn *conn) { completion. */ if (!(conn->flags & NGTCP2_CONN_FLAG_HANDSHAKE_COMPLETED) || + conn->remote.transport_params.max_idle_timeout == 0 || (conn->local.settings.transport_params.max_idle_timeout && conn->local.settings.transport_params.max_i...
admin/docs: bump to v2.0
%include %{_sourcedir}/OHPC_macros Name: docs%{PROJ_DELIM} -Version: 1.3.9 +Version: 2.0.0 Release: 1 Summary: OpenHPC documentation License: BSD-3-Clause
Make dotnet module optional
@@ -3,7 +3,6 @@ MODULES = modules/tests.c MODULES += modules/pe.c MODULES += modules/elf.c MODULES += modules/math.c -MODULES += modules/dotnet.c if CUCKOO_MODULE MODULES += modules/cuckoo.c @@ -17,6 +16,10 @@ if HASH_MODULE MODULES += modules/hash.c endif +if DOTNET_MODULE +MODULES += modules/dotnet.c +endif + # This ...
Correct debug output for padding options.
@@ -358,9 +358,14 @@ dio_input(void) goto discard; } - LOG_DBG("Incoming DIO (option, length) = (%u, %u)\n", subopt_type, len - 2); + LOG_DBG("Incoming DIO (option, length) = (%u, %u)\n", + subopt_type, len); switch(subopt_type) { + case RPL_OPTION_PAD1: + case RPL_OPTION_PADN: + LOG_DBG("PAD %u bytes\n", len); + break...
add fallback when accelerate fails, closes
#include "scs_blas.h" #include "util.h" -/* This file uses acceleration to improve the convergence of the - * ADMM iteration z^+ = \phi(z). At each iteration we need to solve a (small) - * linear system, we do this using LAPACK, first forming the normal equations - * and using ?posv (fastest, but bad numerical stabilit...