message
stringlengths
6
474
diff
stringlengths
8
5.22k
Updated homebridge-hue dependecies removed forced nodejs update version
UPDATE_VERSION_HB="1.1.0" UPDATE_VERSION_HB_HUE="0.11.74" -UPDATE_VERSION_HB_LIB="4.7.14" +UPDATE_VERSION_HB_LIB="4.7.15" UPDATE_VERSION_NPM="6.14.7" -UPDATE_VERSION_NODE="12.18.3" +UPDATE_VERSION_NODE="12.18.4" # use install name to install the specific node version via apt. Retrieve it via: apt-cache policy nodejs -U...
Fix EN_setnodevalue for EN_MINLEVEL Vmin was not updated correctly
@@ -3044,7 +3044,7 @@ int DLLEXPORT EN_setnodevalue(EN_ProjectHandle ph, int index, int code, EN_API_F if (Tank[j].Vcurve > 0) return set_error(p->error_handle, 202); Tank[j].Hmin = Htmp; - Tank[j].Vmin = tankvolume(p, j, Tank[j].Hmin); + Tank[j].Vmin = (Tank[j].Hmin - Node[index].El) * Tank[j].A; } else { return set_e...
Allow deletion of selected cells in tracker
@@ -322,12 +322,54 @@ export const SongTracker = ({ } }; + const deleteSelectedTrackerFields = () => { + if (pattern && selectedTrackerFields) { + const newPattern = cloneDeep(pattern); + for (let i = 0; i < selectedTrackerFields.length; i++) { + const field = selectedTrackerFields[i]; + const newPatternCell = { + ...n...
Finalize peername and localname Both now do the right thing and give back all information (host and port) when possible as a tuple of (host port).
@@ -720,7 +720,7 @@ static inline void *sa_aton_(void *dst, size_t lim, const char *src) { } */ -static JanetString janet_so_getname(const struct sockaddr_storage *ss, socklen_t slen) { +static Janet janet_so_getname(const struct sockaddr_storage *ss, socklen_t slen) { uint8_t *hn = NULL; uint16_t hp = 0; size_t plen =...
Makefile: support both RHEL and CentOS in install-dep
@@ -296,8 +296,12 @@ endif @sudo -E apt-get update @sudo -E apt-get $(APT_ARGS) $(CONFIRM) $(FORCE) install $(DEB_DEPENDS) else ifneq ("$(wildcard /etc/redhat-release)","") - @sudo -E yum groupinstall $(CONFIRM) $(RPM_DEPENDS_GROUPS) +ifeq ($(OS_ID),rhel) + @sudo -E yum-config-manager --enable rhel-server-rhscl-7-rpms ...
vcl: fix sleep time in ldp_pselect() Type: fix
@@ -724,10 +724,11 @@ ldp_pselect (int nfds, fd_set * __restrict readfds, time_out = (timeout->tv_sec == 0 && timeout->tv_nsec == 0) ? (f64) 0 : (f64) timeout->tv_sec + (f64) timeout->tv_nsec / (f64) 1e9; + time_out += clib_time_now (&ldpw->clib_time); + /* select as fine grained sleep */ if (!nfds) { - time_out += cli...
sdl: video: Fix stub
@@ -44,12 +44,11 @@ static int SDL_SetWindowOpacity(SDL_Window* window, float opacity) } #pragma message("SDL_GetWindowOpacity is not supported before SDL 2.0.5") -static int SDL_GetWindowOpacity(SDL_Window* window, float opacity) +static int SDL_GetWindowOpacity(SDL_Window* window, float *opacity) { return -1; } - #pr...
Exclude files with the --exclude-from option Which was introduced to exclude a large amount of paths. Also changed the excluding logic of './db_dumps' and './promote'. They were excluded only when an empty 'excludePaths' was specified by the caller, this is weird, so I changed the logic to always exclude these two pat...
import os import pipes +import tempfile from gppylib.gplog import * from gppylib.gparray import * @@ -196,17 +197,27 @@ class PgBaseBackup(Command): cmd_tokens.append('--target-gp-dbid') cmd_tokens.append(str(target_gp_dbid)) + # Create a temp file to include the exclude paths + exclude_fd, exclude_filename = tempfile....
Fix 'missing braces around initializer' warning
@@ -77,7 +77,7 @@ static struct mock_dev { int valid; fpga_objtype objtype; char pathname[MAX_STRLEN]; -} mock_devs[MAX_FD] = {0}; +} mock_devs[MAX_FD] = {{0}}; typedef int (*open_func)(const char *pathname, int flags); typedef int (*open_mode_func)(const char *pathname, int flags, mode_t m);
Add Luos assert to detect any new default
@@ -246,6 +246,8 @@ void MsgAlloc_EndMsg(void) mem_stat->msg_drop_number++; } } + LUOS_ASSERT(msg_tasks[msg_tasks_stack_id] == 0); + LUOS_ASSERT(!(msg_tasks_stack_id > 0) || (((uint32_t)msg_tasks[0] >= (uint32_t)&msg_buffer[0]) && ((uint32_t)msg_tasks[0] < (uint32_t)&msg_buffer[MSG_BUFFER_SIZE]))); msg_tasks[msg_tasks_...
c++utils: Add set_value to option_map Add option_map::set_value to set values of options in the option map. This checks if the option exists in the map first before attempting to set the value.
@@ -152,6 +152,20 @@ public: } + template<typename T> + bool set_value(const std::string & name, const T & value) + { + auto it = options_.find(name); + if (it != options_.end()) + { + *(it->second) = value; + return true; + } + // TODO: Add debug log message here indicating no option found + return false; + + } + opti...
Add fps_only to legacy_elements, fixes
@@ -907,6 +907,7 @@ void HudElements::legacy_elements(){ ordered_functions.push_back({ram, value}); ordered_functions.push_back({battery, value}); ordered_functions.push_back({fps, value}); + ordered_functions.push_back({fps_only, value}); #ifndef MANGOAPP ordered_functions.push_back({engine_version, value}); #endif
VERSION bump to version 0.11.4
@@ -29,7 +29,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 11) -set(LIBNETCONF2_MICRO_VERSION 3) +set(LIBNETCONF2_MICRO_VERSION 4) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(LIB...
more zeroed mac fixes
@@ -683,7 +683,7 @@ macmaclist_t *zeiger; zeiger = pownedlist; for(c = 0; c < POWNEDLIST_MAX; c++) { - if(memcmp(zeiger->addr2, &mac_null, 6) == 0) + if(zeiger->timestamp == 0) { return 0; } @@ -704,7 +704,7 @@ macmaclist_t *zeiger; zeiger = pownedlist; for(c = 0; c < POWNEDLIST_MAX; c++) { - if(memcmp(zeiger->addr2, &...
drivers/eeprom/i2c_xx24xx.c: Fix compiler warnings Debug prints were not able to handle 64bit off_t and size_t.
#include <debug.h> #include <errno.h> #include <string.h> +#include <inttypes.h> #include <nuttx/fs/fs.h> #include <nuttx/kmalloc.h> @@ -472,7 +473,7 @@ static off_t ee24xx_seek(FAR struct file *filep, off_t offset, int whence) { filep->f_pos = newpos; ret = newpos; - finfo("SEEK newpos %d\n", newpos); + finfo("SEEK ne...
removes %jael west/coop printfs
:: [%vent ~] :: %vent - ~& %west-vent $(tac [%vent our]) :: :: =* wir t.tea ?- hin [%a %woot *] - ?~ q.hin ~&(%coop-fine +>.$) + ?~ q.hin +>.$ ?~ u.q.hin ~&(%ares-fine +>.$) ~& [%woot-bad p.u.u.q.hin] ~_ q.u.u.q.hin
Added RuntimeException to javadoc for setDutyCycle. and fixed mistaken javadoc previously set on setPulseWidth
@@ -98,6 +98,7 @@ public interface PwmOutput extends Closeable { * * @param dutyCycle The duty cycle, as a real value from 0.0 to 1.0. * @throws ConnectionLostException The connection to the IOIO has been lost. + * @throws RuntimeException dutyCycle must take values from 0 to 1 (inclusive). * @see #setPulseWidth(int) *...
Implement the androidapilevel() API in Android packaging projects
end + function android.androidAPILevel(cfg) + if cfg.androidapilevel ~= nil then + _p(2,'<AndroidAPILevel>android-%d</AndroidAPILevel>', cfg.androidapilevel) + end + end + + premake.override(vc2010.elements, "configurationProperties", function(oldfn, cfg) local elements = oldfn(cfg) if cfg.kind == p.ANDROIDPROJ then el...
change title because this page is just for no root rpm install
-# AOMP RPM Install +# No root RPM Install <!-- ### RPM Install For rpm-based Linux distributions, use this rpm @@ -7,7 +7,6 @@ wget https://github.com/ROCm-Developer-Tools/aomp/releases/download/rel_0.7-4/ao sudo rpm -i aomp-0.7-4.x86_64.rpm ``` --> -### No root RPM install By default, the packages install their conte...
GraphNotification: safe property access
@@ -145,8 +145,7 @@ function ContentSummary({ icon, name, author, to }) { export const GraphNodeContent = ({ post, mod, index, hidden, association }) => { const { contents } = post; const idx = index.slice(1).split("/"); - const { group, resource } = association; - const url = getNodeUrl(mod, hidden, group, resource, i...
misc: configurator: Fix user-input working directory not working User-input working directory will not work if there's no path split at the end. This patch checks and adds if no path split at the end of working directory path.
@@ -59,6 +59,9 @@ export default { if (folderPath[0] === '~') { folderPath = window.systemInfo.homeDir + window.systemInfo.pathSplit + folderPath.substring(1) } + if (folderPath.charAt(folderPath.length - 1) !== window.systemInfo.pathSplit) { + folderPath = folderPath + window.systemInfo.pathSplit; + } this.WorkingFold...
Removed unused divider on Add Command List
@@ -132,7 +132,6 @@ class AddCommandButton extends Component { /> </div> <div className="AddCommandButton__List"> - <div className="AddCommandButton__ListDivider" /> {actionsList.map((action, actionIndex) => ( <div key={action}
Add vsmgw-no-typedef to examples.cfg
@@ -6,6 +6,7 @@ vss-example default 16 64 v1model no_nic silent bit48-field-in-action default 16 64 v1model no_nic silent l2fwd 2cores 0ports smgw default 16 2048 v1model dpdk_default smgw 2cores 2x1ports +vsmgw-no-typedef default 16 2048 v1model dpdk_default smgw 2cores 2x1ports smgw-no-typedef-no-bit48 default 16 64 ...
the new way of creating the ar file name
@@ -1006,6 +1006,7 @@ NVM_API char nvm_get_action_required(CONST CHAR8* dimm_uid) NVM_API int nvm_clear_action_required(UINT32 event_id) { char log_file_name[SYSTEM_LOG_FILE_NAME_MAX_LEN] = { 0 }; + char dimm_uid[SYSTEM_LOG_FILE_NAME_MAX_LEN] = { 0 }; EFI_STATUS efi_status = EFI_SUCCESS; FILE *h_file = NULL; NVM_EVENT_...
hv: Remove nested check when dump exception removed unnecessary nested check when dump exception Acked-by: Eddie Dong
@@ -296,11 +296,6 @@ void __assert(uint32_t line, const char *file, char *txt) void dump_exception(struct intr_excp_ctx *ctx, uint32_t cpu_id) { const char *name = "Not defined"; - static int nested = 1; - - /* avoid endless loop, only dump the first exception */ - if (nested++ > 1) - return; if (ctx->vector < 0x20) na...
interface: fix back button not showing up on mobile
@@ -52,9 +52,7 @@ export function GroupFeedHeader(props) { borderBottom={1} borderColor="lightGray"> <Box display='block'> - { ( baseUrl !== historyLocation && - `${baseUrl}/feed` !== historyLocation - ) ? ( + { ( baseUrl !== historyLocation ) ? ( <Text pl="1" pr="1" cursor="pointer" onClick={() => { let loc = location...
hslua-aeson: avoid getting full sequence length
@@ -91,7 +91,9 @@ peekValue idx = liftLua (ltype idx) >>= \case peekArray = Aeson.Array . Vector.fromList <$!> (retrieving "vector" $! peekList peekValue idx) isarray = getmetatable idx >>= \case - False -> (> 0) <$> rawlen idx -- nonempty sequence + False -> + -- check for nonempty sequence + (/= TypeNil) <$> rawgeti ...
view_dialog.c: don't use GtkTable there was no need to add a GtkTable..
@@ -220,7 +220,7 @@ view_file (char *filename, int fd, unsigned int viewedit, unsigned int del_file, unsigned int start_pos, unsigned int dontupload, char *remote_filename, gftp_window_data * wdata) { - GtkWidget * dialog, * view, * table, * tempwid, *main_vbox; + GtkWidget * dialog, * view, * scrolledw, *main_vbox; ch...
stm32: Compilation fix
@@ -1279,8 +1279,13 @@ int proc_threadsList(int n, threadinfo_t *info) info[i].pid = -1; info[i].tid = t->id; +#ifndef CPU_STM32 info[i].load = threads_getCpuTime(t); info[i].cpu_time = (unsigned int) (TIMER_CYC2US(t->load.total) / 1000000); +#else + info[i].load = 0; + info[i].cpu_time = 0; +#endif info[i].priority = ...
Allow easy preloading of modules
@@ -19,6 +19,8 @@ module Foreign.Lua.Module , Module (..) , Field (..) , registerModule + , preloadModule + , pushModule -- * Documentation , render ) @@ -112,11 +114,22 @@ data Field = Field , fieldPushValue :: Lua () } + -- | Registers a 'Module'; leaves a copy of the module table on -- the stack. registerModule :: M...
Remove Flare and Flare Coston
@@ -384,4 +384,4 @@ include $(BOLOS_SDK)/Makefile.rules dep/%.d: %.c Makefile listvariants: - @echo VARIANTS CHAIN ethereum ropsten ethereum_classic expanse poa rsk rsk_testnet ubiq wanchain pirl akroma atheios callisto ethersocial ether1 gochain musicoin ethergem mix ellaism reosc hpb tomochain dexon volta ewc thunder...
print ipc result only to stdout instead of stderr as in this case it is not an error
@@ -66,7 +66,7 @@ char* gen_parseResponse(char* res, const struct arguments* arguments) { arguments->only_at ? "access token" : "updated config"); } } - printNormal("%s\n", _status); + printStdout("%s\n", _status); if (strcaseequal(_status, STATUS_SUCCESS)) { if (arguments->only_at == 0) { printStdout(
implement some changes suggested by ruki
@@ -42,13 +42,14 @@ function main(name, opt) -- get package files list local file_path = "/var/db/pkg/*/" .. name .. "-*/" local file = find_file("CONTENTS", file_path) - local file_contents = try { function() return io.readfile(file) end } - -- if the file contents couldn't be obtained, the package isn't installed - i...
Minor documentation update (added WiFi Driver Validation)
@@ -463,27 +463,38 @@ The following CMSIS-Drivers can be tested with the current release: - \ref usart_interface_gr : with loop back test of communication. - \ref usbd_interface_gr : only API and setup; does not test data transfer. - \ref usbh_interface_gr : only API and setup; does not test data transfer. + - \ref wif...
board/servo_v4p1/usb_pd_config.h: Format with clang-format BRANCH=none TEST=none
#define CC_ENABLE_DRP BIT(3) /* Enable dual-role port */ #define CC_SNK_WITH_PD BIT(4) /* Force enabling PD comm for sink role */ #define CC_POLARITY BIT(5) /* CC polarity */ -#define CC_EMCA_SERVO BIT(6) /* - * Emulate Electronically Marked Cable Assembly - * (EMCA) servo (or non-EMCA) +#define CC_EMCA_SERVO \ + BIT(6...
Removed debian jessie from arm64 deb workflow.
@@ -21,8 +21,6 @@ jobs: distro: ubuntu20.04 - arch: aarch64 distro: ubuntu22.04 - - arch: aarch64 - distro: jessie - arch: aarch64 distro: stretch - arch: aarch64
bug fix - if # active threads reaches # maximum threads, it still needs to mark it as congested.
@@ -249,8 +249,14 @@ static void simple_notify_congested(struct proc *p, bitmap_ptr_t threads, goto done; } + /* if there is no more core to allocate, + * no need to try simple_add_kthread */ + if (sd->threads_active >= sd->threads_max) { + simple_mark_congested(sd); + } + /* do nothing if already marked as congested *...
`GetPathOfficial` add `scope_geteuid`
@@ -326,7 +326,7 @@ GetPathOfficial(void **state) { char expected_location[PATH_MAX] = {0}; // Create dummy directory scope_snprintf(expected_location, PATH_MAX, "%s/%s/", TEST_INSTALL_BASE, normVer); - mkdir_status_t mkres = libdirCreateDirIfMissing(expected_location, 0777, scope_getuid(), scope_getegid()); + mkdir_st...
dpdk: prefetch both cachelines during buffer free
@@ -363,7 +363,7 @@ dpdk_prefetch_buffer_by_index (vlib_main_t * vm, u32 bi) struct rte_mbuf *mb; b = vlib_get_buffer (vm, bi); mb = rte_mbuf_from_vlib_buffer (b); - CLIB_PREFETCH (mb, CLIB_CACHE_LINE_BYTES, STORE); + CLIB_PREFETCH (mb, 2 * CLIB_CACHE_LINE_BYTES, STORE); CLIB_PREFETCH (b, CLIB_CACHE_LINE_BYTES, LOAD); ...
SOVERSION bump to version 4.1.5
@@ -35,7 +35,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 4) set(SYSREPO_MINOR_SOVERSION 1) -set(SYSREPO_MICRO_SOVERSION 4) +set(SYSREPO_MICRO_SO...
Clear some sslapitest global variables after use Otherwise we get a use after free if the test order is randomised.
@@ -3227,6 +3227,7 @@ static int test_export_key_mat_early(int idx) SSL_SESSION_free(sess); SSL_SESSION_free(clientpsk); SSL_SESSION_free(serverpsk); + clientpsk = serverpsk = NULL; SSL_free(serverssl); SSL_free(clientssl); SSL_CTX_free(sctx);
[numerics] Add display norm of solutions.
#include <time.h> #include "SiconosConfig.h" // for HAVE_GAMS_C_API // IWYU pragma: keep #include <string.h> +#include "SiconosLapack.h" void print_problem_data_in_Matlab_file(GlobalFrictionContactProblem * problem, FILE * file); @@ -113,6 +114,10 @@ int globalFrictionContact_test_function(TestCase* current) int print_...
Fix dark theme menubar
@@ -1918,6 +1918,39 @@ LRESULT CALLBACK PhpThemeWindowSubclassProc( if (PhThemeWindowDrawItem((LPDRAWITEMSTRUCT)lParam)) return TRUE; break; + case WM_NCPAINT: + case WM_NCACTIVATE: + { + LRESULT result = CallWindowProc(oldWndProc, hWnd, uMsg, wParam, lParam); + + if (GetMenu(hWnd)) + { + RECT clientRect; + RECT window...
publish: temporarily disable tokenizing publish
@@ -20,7 +20,8 @@ export function newPost( signatures: [] }; - const tokenisedBody = tokenizeMessage(body); + // re-enable on mainnet deploy + //const tokenisedBody = tokenizeMessage(body); const revContainer: Post = { ...root, index: root.index + '/1' }; const commentsContainer = { ...root, index: root.index + '/2' };...
nat: pool allocation function fix Type: fix
@@ -36,7 +36,7 @@ nat_add_del_ip4_pool_addr (nat_ip4_pool_t * pool, ip4_address_t addr, vlib_thread_main_t *tm = vlib_get_thread_main (); // lookup for the address - for (i = 0; i < vec_len (pool); i++) + for (i = 0; i < vec_len (pool->pool_addr); i++) { if (pool->pool_addr[i].addr.as_u32 == addr.as_u32) {
FIX: Use the second ip when it is 127.0.0.1
@@ -1188,8 +1188,7 @@ static int get_zk_client_ipport(char *startp, char *endp, char *buf) { clientp++; colonp = memchr(clientp, ':', endp - clientp); - if (colonp && strncmp(clientp, "0.0.0.0", colonp - clientp) != 0 - && strncmp(clientp, "127.0.0.1", colonp - clientp) != 0) { + if (colonp && strncmp(clientp, "0.0.0.0...
tinyusb: Fix stm32f4 VBUS detection VBUS detection A9 pin should be set as input not AF10. Bit USB_OTG_GCCFG_VBUSASEN was not set instead all others were which does not make sense.
@@ -69,8 +69,8 @@ tinyusb_hardware_init(void) #else USB_OTG_FS->GCCFG &= ~USB_OTG_GCCFG_NOVBUSSENS; USB_OTG_FS->GCCFG &= ~USB_OTG_GCCFG_VBUSBSEN; - USB_OTG_FS->GCCFG |= ~USB_OTG_GCCFG_VBUSASEN; - hal_gpio_init_af(MCU_GPIO_PORTA(9), GPIO_AF10_OTG_FS, GPIO_NOPULL, GPIO_MODE_AF_PP); + USB_OTG_FS->GCCFG |= USB_OTG_GCCFG_VB...
Create repeated string literals only once
@@ -652,12 +652,14 @@ function Coder:init_upvalues() for _, v in ipairs(ir.get_srcs(cmd)) do if v._tag == "ir.Value.String" then local str = v.value + if not self.upvalue_of_string[str] then table.insert(self.upvalues, coder.Upvalue.String(str)) self.upvalue_of_string[str] = #self.upvalues end end end end + end -- Func...
We need the save context for plugin adapters
/// @page state-context extension /// @brief extended state handling /// -/// This extension let the host specify how the plugin state should be loaded. +/// This extension let the host save and load the plugin state for special purpose. /// /// Briefly, when loading a preset or duplicating a device, the plugin may wan...
declare lv_img_set_offset() with new params.
@@ -105,11 +105,28 @@ void lv_img_set_auto_size(lv_obj_t * img, bool autosize_en); /** * Set an offset for the source of an image. - * so the image will be displayed from this new origin. + * so the image will be displayed from the new origin. * @param img pointer to an image - * @param en true: auto size enable, false...
Fix possible unreachable code
@@ -783,9 +783,9 @@ psa_status_t psa_driver_wrapper_cipher_encrypt( output, output_size, output_length ) ); -#endif /* MBEDTLS_PSA_BUILTIN_CIPHER */ - +#else return( PSA_ERROR_NOT_SUPPORTED ); +#endif /* MBEDTLS_PSA_BUILTIN_CIPHER */ /* Add cases for opaque driver here */ #if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESE...
papi: use python3 for papi install Breaks on Ubuntu 20.04 otherwise. Type: fix
# See the License for the specific language governing permissions and # limitations under the License. -find_package(PythonInterp 2.7) +find_package(Python3 COMPONENTS Interpreter) if(PYTHONINTERP_FOUND) install(
Add core lock for timeout
@@ -123,13 +123,16 @@ esp_timeout_add(uint32_t time, esp_timeout_fn fn, void* arg) { esp_timeout_t* to; uint32_t now, diff = 0; + ESP_ASSERT("fn != NULL", fn != NULL); + to = esp_mem_calloc(1, sizeof(*to)); /* Allocate memory for timeout structure */ if (to == NULL) { return espERR; } + esp_core_lock(); now = esp_sys_n...
Remove special cases, non needed tests
@@ -413,14 +413,8 @@ boot_read_status_bytes(const struct flash_area *fap, struct boot_status *bs) if (found) { i--; - /* FIXME: is this test required? */ - if (fap->fa_id != FLASH_AREA_IMAGE_SCRATCH) { bs->idx = i / BOOT_STATUS_STATE_COUNT; bs->state = i % BOOT_STATUS_STATE_COUNT; - } else { - bs->idx = 0; - bs->state ...
native_sock: Make accept()ed sockets nonblocking Prior to commit: mn_socket() creates nonblocking sockets. mn_listen() creates *blocking* sockets. This inconsistency is a problem becausae the mn_sockets API assumes all sockets are nonblocking. Fix: change mn_listen() so that it creates nonblocking sockets.
@@ -248,6 +248,15 @@ native_sock_addr_to_mn_addr(struct sockaddr *sa, struct mn_sockaddr *ms) return 0; } +static void +native_sock_set_nonblocking(struct native_sock *ns) +{ + int rc; + + rc = fcntl(ns->ns_fd, F_SETFL, fcntl(ns->ns_fd, F_GETFL, 0) | O_NONBLOCK); + assert(rc == 0); +} + int native_sock_create(struct mn...
Use LibFuzzer data as it is
@@ -22,12 +22,6 @@ Abstract: extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { - uint8_t *Buf = (uint8_t *)malloc(size); - if (Buf == NULL) { - return 0; - } - memcpy(Buf, data, size); - const MsQuicApi* MsQuic = new(std::nothrow) MsQuicApi(); for (uint32_t Param = QUIC_PARAM_GLOBAL_RETRY_MEMORY...
Check for duplicate registry instances to avoid creating a loop in the list
@@ -115,7 +115,7 @@ stats_register_internal(const char *name, struct stats_hdr *shdr) * is already registered. */ STAILQ_FOREACH(cur, &g_stats_registry, s_next) { - if (!strcmp(cur->s_name, name)) { + if (!strcmp(cur->s_name, name) || cur == shdr) { rc = -1; goto err; }
firinterp/autotest: adding a few more tests
@@ -208,3 +208,12 @@ void testbench_firinterp_crcf_nyquist(int _ftype, void autotest_firinterp_crcf_rnyquist_0() { testbench_firinterp_crcf_nyquist(LIQUID_FIRFILT_KAISER, 2, 9,0.3f); } +void autotest_firinterp_crcf_rnyquist_1() + { testbench_firinterp_crcf_nyquist(LIQUID_FIRFILT_KAISER, 3, 9,0.3f); } + +void autotest_f...
Fix CID 168591
@@ -1247,7 +1247,7 @@ sctp6_connect(struct socket *so, struct mbuf *nam, struct proc *p) if (inp->sctp_flags & SCTP_PCB_FLAGS_CONNECTED) { stcb = LIST_FIRST(&inp->sctp_asoc_list); if (stcb) { - SCTP_TCB_UNLOCK(stcb); + SCTP_TCB_LOCK(stcb); } SCTP_INP_RUNLOCK(inp); } else {
ps8xxx: Fix a typo of product ID, PS8751 vs PS8705 Should be PS8751 instead of PS8705. BRANCH=None TEST=Built a Trogdor image successfully.
@@ -487,7 +487,7 @@ static int ps8xxx_enter_low_power_mode(int port) * its own in ~2 seconds. Other chips don't have it. Stub it out for * PS8751. */ - if (product_id[port] == PS8705_PRODUCT_ID) + if (product_id[port] == PS8751_PRODUCT_ID) return EC_SUCCESS; return tcpci_enter_low_power_mode(port);
fix build error - make_unique is c++14
@@ -498,7 +498,7 @@ Asset::Asset( // initialize values here because instantiating the asset could error out myAssetInputs(NULL) { - myParmNameCache = std::make_unique<ParmNameCache>(); + myParmNameCache = std::unique_ptr<ParmNameCache>(new ParmNameCache()); HAPI_Result hapiResult = HAPI_RESULT_SUCCESS;
automation: Fix Doxygen output The error messages were printed in the middle of stdout output. Now the error messages will be printed separately after all the stdout output so the lines will be intact. Also adjusted the log level to so that all the text isn't red.
@@ -57,21 +57,26 @@ def run(ubxlib_dir, reporter): try: my_env = os.environ.copy() my_env['UBX_WORKDIR'] = working_dir - text = subprocess.check_output(["doxygen", config_path], - stderr=subprocess.STDOUT, - env=my_env, - shell=True) # Jenkins hangs without this + proc = subprocess.run(["doxygen", config_path], + captu...
add buildserver docu to website
}, "dev-comment": "The readme does already contain nicely formatted titles." }, + { + "name": "Build Server Docu", + "type": "staticref", + "options": { + "path": "doc/BUILDSERVER.md" + } + }, { "name": "Authors", "type": "staticlist",
travis: add new build config and install new tools in docker 1. Add st_things build configuration 2. Install cmake and scons
@@ -12,15 +12,16 @@ env: - BUILD_CONFIG=artik053/nettest - BUILD_CONFIG=artik053/minimal - BUILD_CONFIG=artik053/tc +- BUILD_CONFIG=artik053/st_things - BUILD_CONFIG=qemu/tc_64k before_install: -- docker pull an4967/tizenrt:1.1 +- docker pull tizenrt/tizenrt:1.2 - echo "${TRAVIS_BUILD_DIR}" script: -- docker run -d -it...
runtime - TCP perform writes with lock held
@@ -941,16 +941,30 @@ ssize_t tcp_write(tcpconn_t *c, const void *buf, size_t len) size_t winlen; ssize_t ret; - /* block until the data can be sent */ - ret = tcp_write_wait(c, &winlen); - if (ret) - return ret; + spin_lock_np(&c->lock); + + /* block until there is an actionable event */ + while (!c->tx_closed && + (c...
Fix splice -> unquote splice
:error (error (parser/error p))) # Make ast from forms - (def ast ~(fn [params &] (default params @{}) (,buffer ;forms))) + (def ast ~(fn [params &] (default params @{}) (,buffer ,;forms))) (def ctor (compile ast *env* source)) (if-not (function? ctor)
the automatic addition of IP address to the magic TAP interface should only happen for one table
#include <vlib/unix/unix.h> #include <vnet/ip/ip.h> +#include <vnet/fib/fib_table.h> #include <vnet/ethernet/ethernet.h> #include <vnet/devices/devices.h> @@ -692,6 +693,16 @@ tuntap_ip4_add_del_interface_address (ip4_main_t * im, if (tm->have_normal_interface || tm->dev_tap_fd < 0) return; + /* if the address is being...
Added new ui images to ui page
@@ -51,9 +51,15 @@ function mapStateToProps(state) { const files = projectRoot ? [ { - id: "ui", - name: "UI", - filename: `ui.png`, + id: "ascii", + name: "ASCII Extended", + filename: `ascii.png`, + _v: uiVersion + }, + { + id: "frame", + name: "Window Frame", + filename: `frame.png`, _v: uiVersion }, {
build: subproject support for wayland-protocols As in wlroots: [1] [1]:
-wl_protocol_dir = wayland_protos.get_variable(pkgconfig: 'pkgdatadir') +wl_protocol_dir = wayland_protos.get_variable('pkgdatadir') wayland_scanner_dep = dependency('wayland-scanner', required: false, native: true) if wayland_scanner_dep.found()
for smoke test flang-315870 we are change to code object v5 to avoid backend issue with this flang test
@@ -5,7 +5,7 @@ TESTSRC_MAIN = flang-315870.f90 TESTSRC_AUX = TESTSRC_ALL = $(TESTSRC_MAIN) $(TESTSRC_AUX) -FLANG ?= flang +FLANG ?= flang -mcode-object-version=5 OMP_BIN = $(AOMP)/bin/$(FLANG) CC = $(OMP_BIN) $(VERBOSE) CFLAGS =
HLS memcopy : putting back handskake for Action_Config
@@ -117,10 +117,9 @@ void action_wrapper(ap_uint<MEMDW> *din_gmem, ap_uint<MEMDW> *dout_gmem, // Host Memory AXI Lite Master Interface #pragma HLS DATA_PACK variable=Action_Config -#pragma HLS INTERFACE s_axilite port=Action_Config offset=0x010 bundle=ctrl_reg -#pragma HLS INTERFACE ap_none port=Action_Config //remove ...
added more information to the cryptol semantics hmac directory
These are files detailing the verification of HMAC with respect to the HMAC specification provided by Andrew Appel's HMAC verification effort. +The files in this repository constitue a proof of equivalence between +the [Cryptol specification of HMAC](../../HMAC.cry) and the [HMAC +specification](HMAC_spec.v) used for t...
Add FIRRTL_LOGLEVEL variable
@@ -152,6 +152,8 @@ define run_scala_main endef endif +FIRRTL_LOGLEVEL ?= error + ######################################################################################### # output directory for tests #########################################################################################
[numerics] Fix conflict after merge
@@ -7307,9 +7307,9 @@ void grfc3d_IPM_set_default(SolverOptions* options) /* 0: convex case; 1: non-smooth case */ options->iparam[SICONOS_FRICTION_3D_IPM_IPARAM_UPDATE_S] = 0; - options->iparam[SICONOS_FRICTION_3D_IPM_IPARAM_LS_FORM] = SICONOS_FRICTION_3D_IPM_IPARAM_LS_3X3_NOSCAL; + // options->iparam[SICONOS_FRICTION...
add patch for rtl8192cu-fixes driver
@@ -229,3 +229,16 @@ diff -rupN old/linux-xlnx-xilinx-v2016.4/drivers/net/wireless/realtek/Makefile l -obj-$(CONFIG_RTL8XXXU) += rtl8xxxu/ +obj-$(CONFIG_RTL8192CU) += rtl8192cu/ +diff -rupN old/linux-xlnx-xilinx-v2016.4/drivers/net/wireless/realtek/rtl8192cu/Kconfig linux-xlnx-xilinx-v2016.4/drivers/net/wireless/realte...
viofs-svc: fix commit (resolve symbolic links on path walkthough) File's path should be null-terminated in the FixReparsePointAttributes function as well.
@@ -594,7 +594,9 @@ static NTSTATUS SubmitReadLinkRequest(HANDLE Device, UINT64 NodeId, int namelen = readlink_out.hdr.len - sizeof(readlink_out.hdr); *SubstituteNameLength = (USHORT)MultiByteToWideChar(CP_UTF8, 0, - readlink_out.name, namelen, SubstituteName, MAX_PATH); + readlink_out.name, namelen, SubstituteName, MA...
jenkins: push ftp repo to community mirror on releases
@@ -464,6 +464,16 @@ def publishSource(artifactStageName) { sh 'cp ../release-artifact/*/*.tar.gz* ./releases/' sh "git commit -a -m 'release: add ${RELEASE_VERSION}'" pushGitRepo('ftp') + withCredentials([sshUserPrivateKey(credentialsId: "community-ssh-git", keyFileVariable: "privateSshKey", usernameVariable: 'GIT_USE...
BugID:16967023:[ota] set ota gloabal init flag after init success
@@ -253,7 +253,6 @@ void *IOT_OTA_Init(const char *product_key, const char *device_name, void *ch_si OTA_LOG_ERROR("iot ota has been initialized"); return NULL; } - g_ota_is_initialized = 1; if ((NULL == product_key) || (NULL == device_name)) { OTA_LOG_ERROR("one or more parameters is invalid"); @@ -288,7 +287,7 @@ voi...
[hardware] Update global interconnect register location
@@ -154,9 +154,8 @@ module mempool #( .DataWidth (DataWidth ), .AddrMemWidth (TCDMAddrMemWidth + $clog2(NumBanksPerTile)), .Topology (tcdm_interconnect_pkg::BFLY4 ), - // One spill register every two levels of arbitration - .SpillRegisterReq ({32{2'b01}} ), - .SpillRegisterResp({32{2'b01}} ) + .SpillRegisterReq (64'b01...
sd: remove dead code Dead code is a maintenance burden.
@@ -320,22 +320,6 @@ bool sd_card_inserted(void) #endif } -/** - * Deletes the directory in the given sub-directory if no files are in the directory. - * Expects that the filesystem is already mounted. - */ -static bool _delete_dir(const char* dir_name) -{ - char absolute_path[772] = {0}; - if (!_get_absolute_path(NULL...
SOVERSION bump to version 2.4.9
@@ -63,7 +63,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_ # set version of the library set(LIBYANG_MAJOR_SOVERSION 2) set(LIBYANG_MINOR_SOVERSION 4) -set(LIBYANG_MICRO_SOVERSION 8) +set(LIBYANG_MICRO_SOVERSION 9) set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MI...
Feat:Update boatiotsdk.h for demo
@@ -65,4 +65,8 @@ boatiotsdk.h is the wrapper header file for 3rd application to include. #include "protocolapi/api_hw_bcs.h" #endif +#if PROTOCOL_USE_CHAINMAKER == 1 +#include "protocolapi/api_chainmaker.h" +#endif + #endif
Delay future Dag generation
@@ -73,7 +73,7 @@ namespace MiningCore.Crypto.Hashing.Ethash } // If we used up the future cache, or need a refresh, regenerate - if (future == null || future.Epoch <= epoch) + else if (future == null || future.Epoch <= epoch) { logger.Info(() => $"Pre-generating DAG for epoch {epoch + 1}"); future = new Dag(epoch + 1)...
Only enable test.pl --debug-test-trace option when --debug also enabled. The other way makes no sense and leads to compile errors since --debug-test-trace requires some code that is only enabled by --debug.
@@ -417,7 +417,8 @@ sub run (vmWithBackTrace($self->{oTest}->{&TEST_VM}) && $self->{bBackTrace} ? ' -DWITH_BACKTRACE' : '') . ($self->{oTest}->{&TEST_CDEF} ? " $self->{oTest}->{&TEST_CDEF}" : '') . (vmCoverageC($self->{oTest}->{&TEST_VM}) && $self->{bCoverageUnit} ? ' -DDEBUG_COVERAGE' : '') . - ($self->{bDebug} ? '' :...
VERSION bump to version 0.12.51
@@ -34,7 +34,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 12) -set(LIBNETCONF2_MICRO_VERSION 50) +set(LIBNETCONF2_MICRO_VERSION 51) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(L...
[kernel] ZeroOrderHoldOSI needs deltax dslink\
@@ -132,6 +132,7 @@ void ZeroOrderHoldOSI::initializeDynamicalSystem(Model& m, double t, SP::Dynamic // Get work buffers from the graph workVectors.resize(OneStepIntegrator::work_vector_of_vector_size); workVectors[OneStepIntegrator::free].reset(new SiconosVector(ds->dimension())); + workVectors[OneStepIntegrator::delt...
chip/stm32/bkpdata.c: Format with clang-format BRANCH=none TEST=none
@@ -76,8 +76,7 @@ uint32_t bkpdata_read_reset_flags() return flags; } -__overridable -void bkpdata_write_reset_flags(uint32_t save_flags) +__overridable void bkpdata_write_reset_flags(uint32_t save_flags) { bkpdata_write(BKPDATA_INDEX_SAVED_RESET_FLAGS, save_flags & 0xffff); #ifdef CONFIG_STM32_EXTENDED_RESET_FLAGS
aix compat fixes for ocsp.c WCOREDUMP and vsyslog are not portable
@@ -813,7 +813,10 @@ log_message(int level, const char *fmt, ...) va_start(ap, fmt); # ifdef OCSP_DAEMON if (multi) { - vsyslog(level, fmt, ap); + char buf[1024]; + if (vsnprintf(buf, sizeof(buf), fmt, ap) > 0) { + syslog(level, "%s", buf); + } if (level >= LOG_ERR) ERR_print_errors_cb(print_syslog, &level); } @@ -928,...
zmodem: Remove CONFIG_HAVE_INLINE from compiler.h follow up the kernel side change
# undef CONFIG_PTR_IS_NOT_INT #endif -/* GCC supports inlined functions */ - -# define CONFIG_HAVE_INLINE 1 - /* GCC supports both types double and long long */ # define CONFIG_HAVE_LONG_LONG 1 # define CONFIG_PTR_IS_NOT_INT 1 #endif -/* SDCC does not support inline functions */ - -# undef CONFIG_HAVE_INLINE -# define ...
Renamed CADDY JSON log field from remote_addr to remote_ip (v2.5.0).
@@ -78,7 +78,7 @@ static const GPreConfLog logs = { "%^ %v [%d:%t %^] %h %^\"%r\" %s %^ %b %^ %L %^ \"%R\" \"%u\"", /* Amazon S3 */ /* Caddy JSON */ - "{ \"ts\": \"%x.%^\", \"request\": { \"remote_addr\": \"%h\", \"proto\":" + "{ \"ts\": \"%x.%^\", \"request\": { \"remote_ip\": \"%h\", \"proto\":" "\"%H\", \"method\": ...
Update README examples;
@@ -40,25 +40,25 @@ then write a `main.lua` script and drag its parent folder onto the executable. #### Hello World ```lua -function lovr.draw() - lovr.graphics.print('Hello World!', 0, 1.7, -3, .5) +function lovr.draw(pass) + pass:text('Hello World!', 0, 1.7, -3, .5) end ``` #### Spinning Cube ```lua -function lovr.dr...
fixup! fixup! net/lwip: fix neighbor cache free function
@@ -491,10 +491,11 @@ void nd6_input(struct pbuf *p, struct netif *inp) /* RFC 4861 page 91, appendix c */ if ((neighbor_cache[i].state == ND6_INCOMPLETE) && neighbor_cache[i].q != NULL) { + neighbor_cache[i].state = ND6_STALE; nd6_send_q(i); - } - + } else { neighbor_cache[i].state = ND6_STALE; + } } else { /* Add the...
CI: add docs_full label info to readme
- `custom_test[_esp32/esp32s2/...]` - `docker` - `docs` +- `docs_full`, triggers a full docs build, not a fast build which is the CI default. This includes PDF and doxygen generated API documentation. - `example_test[_esp32/esp32s2/...]` - `fuzzer_test` - `host_test`
display all warnings
@@ -26,6 +26,6 @@ script: - rake build - find pkg/iodine-*.gem -exec gem install -V {} + - gem uninstall -x iodine - - CC=gcc find pkg/iodine-*.gem -exec gem install -V {} + + - CFLAGS=-Wall CC=gcc find pkg/iodine-*.gem -exec gem install -V {} + - gem uninstall -x iodine - - CC=gcc-5 find pkg/iodine-*.gem -exec gem ins...
ptest: Support new format of .travis.yml The change "Add Mynewt target builds to CI" changes the format of the .travis.yml file a bit. Fix up the ptest utility so that it is still able to run the simulator tests.
@@ -186,7 +186,14 @@ impl Matrix { None => continue, }; - let fset = FeatureSet::decode(env)?; + // Skip features not targeted to this build. + let fset = match FeatureSet::decode(env) { + Ok(fset) => fset, + Err(err) => { + warn!("Skipping: {:?}", err); + continue; + } + }; debug!("fset: {:?}", fset); if false { @@ -2...
tools: mountsnoop, change memset to __builtin_memset The bpf program generated with memset() call in this tool contains BPF_JMP|BPF_CALL instruction with imm=-1. The verifier rejects the program. Let's use llvm built-in function __builtin_memset
@@ -110,22 +110,22 @@ int syscall__mount(struct pt_regs *ctx, char __user *source, events.perf_submit(ctx, &event, sizeof(event)); event.type = EVENT_MOUNT_SOURCE; - memset(event.str, 0, sizeof(event.str)); + __builtin_memset(event.str, 0, sizeof(event.str)); bpf_probe_read(event.str, sizeof(event.str), source); events...
BugID:16836152:mqtt:sub sync set max timeout limit
@@ -3409,6 +3409,7 @@ int IOT_MQTT_Subscribe(void *handle, return iotx_mc_subscribe(client, topic_filter, qos, topic_handle_func, pcontext); } +#define SUBSCRIBE_SYNC_TIMEOUT_MAX 10000 int IOT_MQTT_Subscribe_Sync(void *handle, const char *topic_filter, iotx_mqtt_qos_t qos, @@ -3425,6 +3426,9 @@ int IOT_MQTT_Subscribe_S...
Use fewer loop threads
@@ -56,11 +56,12 @@ namespace MiningCore.Stratum protected readonly IComponentContext ctx; protected readonly IMasterClock clock; - protected readonly Dictionary<int, Async> ports = new Dictionary<int, Async>(); + protected readonly Dictionary<int, Tcp> ports = new Dictionary<int, Tcp>(); protected ClusterConfig cluste...
VXLAN:fix tunnel delete not returning sw_if_index when tunnel is deleted reply should include the tunnel's sw_if_index instead of ~0
@@ -576,6 +576,7 @@ int vnet_vxlan_add_del_tunnel t = pool_elt_at_index (vxm->tunnels, p[0]); + sw_if_index = t->sw_if_index; vnet_sw_interface_set_flags (vnm, t->sw_if_index, 0 /* down */); vnet_sw_interface_t * si = vnet_get_sw_interface (vnm, t->sw_if_index); si->flags |= VNET_SW_INTERFACE_FLAG_HIDDEN;
pci: return the found index when query suceeds
@@ -84,9 +84,11 @@ static errval_t device_lookup_iommu_by_pci(uint16_t seg, uint8_t bus, uint8_t de "write(u(T,I)).", seg, bus, dev, fun); if (err_is_ok(err)) { err = skb_read_output("u(%d,%d)", &type, &idx); - PCI_DEBUG("[pci] found device at iommu with idx %u\n", idx); - assert(err_is_ok(err)); + + PCI_DEBUG("[pci] f...