message
stringlengths
6
474
diff
stringlengths
8
5.22k
[autobuild] remove obsolete warning about mmap use lighttpd protects against SIGBUS when accessing mmap'd files
@@ -1184,14 +1184,13 @@ if test "$ipv6" = true; then fi fi -# disable mmap by default; if a mmapped file gets truncated, the process gets a SIGBUS signal -# on reading the truncated area which we can't handle (yet). +# disable mmap by default # lighttpd may always use mmap with files it owns (created tmp files) AC_MSG_NOTICE([----------------------------------------]) -AC_MSG_CHECKING([use mmap if available (dangerous)]) +AC_MSG_CHECKING([use mmap if available]) AC_ARG_ENABLE([mmap], [AC_HELP_STRING([--enable-mmap], - [use mmap if available (DANGEROUS, allows local users to trigger SIGBUS crashes)] + [use mmap if available] )], [ case "${enableval}" in
system/sched_note: fix build break
@@ -121,7 +121,7 @@ static void dump_notes(size_t nread) while (offset < nread) { note = (FAR struct note_common_s *)&g_note_buffer[offset]; - trace_dump_unflatten(&pid, note->note->nc_pid, sizeof(pid)); + trace_dump_unflatten(&pid, note->nc_pid, sizeof(pid)); #ifdef CONFIG_SCHED_INSTRUMENTATION_HIRES trace_dump_unflatten(&systime_nsec, note->nc_systime_nsec, sizeof(systime_nsec));
rtdl: move __dlapi_close behind posix option
@@ -303,13 +303,6 @@ extern "C" void *interpreterMain(uintptr_t *entry_stack) { return executableSO->entry; } -extern "C" [[ gnu::visibility("default") ]] -int __dlapi_close(void *) { - if (logDlCalls) - mlibc::infoLogger() << "mlibc: dlclose() is a no-op" << frg::endlog; - return 0; -} - const char *lastError; extern "C" [[ gnu::visibility("default") ]] uintptr_t *__dlapi_entrystack() { @@ -543,6 +536,13 @@ int __dlapi_reverse(const void *ptr, __dlapi_symbol *info) { return -1; } +extern "C" [[ gnu::visibility("default") ]] +int __dlapi_close(void *) { + if (logDlCalls) + mlibc::infoLogger() << "mlibc: dlclose() is a no-op" << frg::endlog; + return 0; +} + #endif extern "C" [[ gnu::visibility("default") ]]
ip: add the missing offload check Type: fix
@@ -1479,10 +1479,10 @@ ip4_local_check_l4_csum_x2 (vlib_main_t * vm, vlib_buffer_t ** b, if (PREDICT_FALSE (ip4_local_need_csum_check (is_tcp_udp[0], b[0]) || ip4_local_need_csum_check (is_tcp_udp[1], b[1]))) { - if (is_tcp_udp[0]) + if (is_tcp_udp[0] && !ip4_local_csum_is_offloaded (b[0])) ip4_local_l4_csum_validate (vm, b[0], ih[0], is_udp[0], &error[0], &good_tcp_udp[0]); - if (is_tcp_udp[1]) + if (is_tcp_udp[1] && !ip4_local_csum_is_offloaded (b[1])) ip4_local_l4_csum_validate (vm, b[1], ih[1], is_udp[1], &error[1], &good_tcp_udp[1]); }
cortex-m: stop generating the map file The mapfile is only used by Cooja and MSPSim in Contiki-NG nowadays.
@@ -14,7 +14,7 @@ MODULES += os/lib/newlib LDFLAGS += -T $(LDSCRIPT) LDFLAGS += -Wl,--gc-sections,--sort-section=alignment -LDFLAGS += -Wl,-Map=$(CONTIKI_NG_PROJECT_MAP),--cref,--no-warn-mismatch +LDFLAGS += -Wl,--cref,--no-warn-mismatch OBJCOPY_FLAGS += --gap-fill 0xff
linux-raspberrypi: Update to v4.14.58
-LINUX_VERSION ?= "4.14.52" +LINUX_VERSION ?= "4.14.58" -SRCREV = "36d224f4ae8759252a3583f147ae4487a9790073" +SRCREV = "a06f9e522301dfacc1f382d72e6a9792d8350328" SRC_URI = " \ git://github.com/raspberrypi/linux.git;branch=rpi-4.14.y \ file://0001-menuconfig-check-lxdiaglog.sh-Allow-specification-of.patch \
BugID:22520178: fixed complilation issue on linuxhost
@@ -21,7 +21,7 @@ extern "C" { #define cut_free free #define CUT_CASE_MAX_CNT (64) -#define CUT_MSG_MAX_LEN (64) +#define CUT_MSG_MAX_LEN (128) extern int cut_main(int argc, char** argv); extern struct cut_runtime cut;
Bug fix: OTA update did not complete because the job name was set to null during testing phase. The code now frees up the job name and sets it to null after sending back the appropriate status message for completion.
@@ -2610,8 +2610,11 @@ static OTA_FileContext_t * prvParseJobDoc( const char * pcJSON, if ( (C != NULL) && (C->pucJobName != NULL) ) { xOTA_Agent.pcOTA_Singleton_ActiveJobName = C->pucJobName; - /* TODO: Report version other than 0 */ + C->pucJobName = NULL; prvUpdateJobStatus( NULL, eJobStatus_Succeeded, ( int32_t ) eJobReason_Accepted, 0 ); + /* We don't need the job name memory anymore since we're done with this job. */ + vPortFree( xOTA_Agent.pcOTA_Singleton_ActiveJobName ); + xOTA_Agent.pcOTA_Singleton_ActiveJobName = NULL; } else { @@ -2657,7 +2660,6 @@ static OTA_FileContext_t * prvParseJobDoc( const char * pcJSON, if( pxFinalFile == NULL ) { ( void ) prvOTA_Close( C ); /* Ignore impossible false result by design */ - xOTA_Agent.pcOTA_Singleton_ActiveJobName = NULL; /* Clean up global context */ } /* Return pointer to populated file context or NULL if it failed. */
Remove author/version for files
@@ -246,6 +246,8 @@ void load_current_game_metadata() { selected_game_metadata.description = "Launches with: " + selected_game_metadata.title; selected_game_metadata.title = game.title; + selected_game_metadata.author = ""; + selected_game_metadata.version = ""; loaded = true; } else loaded = parse_file_metadata(game.filename, selected_game_metadata, true);
Fix CREAL,CIMAG macros for PGI
@@ -556,8 +556,13 @@ static void __inline blas_lock(volatile BLASULONG *address){ #endif #if defined(C_PGI) || defined(C_SUN) + #if defined(__STDC_IEC_559_COMPLEX__) + #define CREAL(X) creal(X) + #define CIMAG(X) cimag(X) + #else #define CREAL(X) (*((FLOAT *)&X + 0)) #define CIMAG(X) (*((FLOAT *)&X + 1)) + #endif #else #ifdef OPENBLAS_COMPLEX_STRUCT #define CREAL(Z) ((Z).real)
guybrush: Add A1 retimer gpio A1 retimer gpio on io expander were missed. TEST=ioxget BRANCH=None
@@ -141,6 +141,8 @@ IOEX(USB_A0_LIMIT_SDP, EXPIN(USBC_PORT_C0, 1, 6), GPIO_OUT_LOW) IOEX(USB_C0_SBU_FLIP, EXPIN(USBC_PORT_C0, 1, 7), GPIO_OUT_LOW) /* TCPC C1 */ +IOEX(USB_A1_RETIMER_EN, EXPIN(USBC_PORT_C1, 0, 0), GPIO_OUT_LOW) +IOEX(USB_A1_RETIMER_RST, EXPIN(USBC_PORT_C1, 0, 1), GPIO_OUT_LOW) IOEX(USB_C1_IN_HPD, EXPIN(USBC_PORT_C1, 0, 3), GPIO_OUT_LOW) IOEX(USB_C1_PPC_EN_L, EXPIN(USBC_PORT_C1, 1, 0), GPIO_OUT_LOW) IOEX(USB_C1_PPC_ILIM_3A_EN, EXPIN(USBC_PORT_C1, 1, 1), GPIO_OUT_LOW)
vere: fixes re-entrancy bug in term.c write() wrapper
@@ -39,8 +39,10 @@ _write(c3_i fid_i, const void* buf_v, size_t len_i) // assert on true errors // + // NB: can't call u3l_log here or we would re-enter _write() + // if ( ret_i < 0 ) { - u3l_log("term: write failed %s\r\n", strerror(errno)); + fprintf(stderr, "term: write failed %s\r\n", strerror(errno)); c3_assert(0); } // continue partial writes
Check Formatting: Fail if `reformat-cmake` fails
@@ -23,7 +23,7 @@ fi if which sponge > /dev/null || which cmake-format > /dev/null then - scripts/reformat-cmake + scripts/reformat-cmake || exit 1 else echo 'Warning: Since either `sponge` or `cmake-format` is not available I will not check the formatting of the CMake code.' fi
Avoid const castaway warning
@@ -162,8 +162,8 @@ static int test_engines(void) ENGINE_free(ptr); } for (loop = 0; loop < NUMTOADD; loop++) { - OPENSSL_free((void *)ENGINE_get_id(block[loop])); - OPENSSL_free((void *)ENGINE_get_name(block[loop])); + OPENSSL_free((void *)(intptr_t)ENGINE_get_id(block[loop])); + OPENSSL_free((void *)(intptr_t)ENGINE_get_name(block[loop])); } to_return = 1;
Fixed setting timezone on RPI
@@ -264,6 +264,8 @@ void DeRestPluginPrivate::initTimezone() if (getenv("TZ") != gwTimezone) { setenv("TZ", qPrintable(gwTimezone), 1); + //also set zoneinfo on RPI + symlink("/usr/share/zoneinfo/" + timezone, "/etc/localtime"); } } tzset(); @@ -1960,6 +1962,9 @@ int DeRestPluginPrivate::modifyConfig(const ApiRequest &req, ApiResponse &rsp) int rc = setenv("TZ", qPrintable(timezone), 1); tzset(); + //also set zoneinfo on RPI + symlink("/usr/share/zoneinfo/" + timezone, "/etc/localtime"); + if (rc != 0) { rsp.list.append(errorToMap(ERR_INTERNAL_ERROR, QString("/config/timezone"), QString("Error setting timezone")));
Ask glfw for an srgb capable window;
@@ -156,6 +156,7 @@ void lovrGraphicsCreateWindow(int w, int h, bool fullscreen, int msaa, const cha glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0); glfwWindowHint(GLFW_SAMPLES, msaa); + glfwWindowHint(GLFW_SRGB_CAPABLE, state.gammaCorrect); #else glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); @@ -163,6 +164,7 @@ void lovrGraphicsCreateWindow(int w, int h, bool fullscreen, int msaa, const cha glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); glfwWindowHint(GLFW_SAMPLES, msaa); glfwWindowHint(GLFW_RESIZABLE, GL_FALSE); + glfwWindowHint(GLFW_SRGB_CAPABLE, state.gammaCorrect); #endif GLFWmonitor* monitor = glfwGetPrimaryMonitor();
Teach cmake to find libusb-1.0 port/pkg on OpenBSD On OpenBSD libusb is provided by the libusb1 port/package.
@@ -43,6 +43,23 @@ elseif (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") # FreeBSD; libusb is message(FATAL_ERROR "Expected libusb library not found on your system! Verify your system integrity.") endif () +elseif (CMAKE_SYSTEM_NAME STREQUAL "OpenBSD") # OpenBSD; libusb-1.0 is available from ports + FIND_PATH( + LIBUSB_INCLUDE_DIR NAMES libusb.h + HINTS /usr/local/include + PATH_SUFFIXES libusb-1.0 + ) + set(LIBUSB_NAME usb-1.0) + find_library( + LIBUSB_LIBRARY NAMES ${LIBUSB_NAME} + HINTS /usr/local + ) + FIND_PACKAGE_HANDLE_STANDARD_ARGS(libusb DEFAULT_MSG LIBUSB_LIBRARY LIBUSB_INCLUDE_DIR) + mark_as_advanced(LIBUSB_INCLUDE_DIR LIBUSB_LIBRARY) + if (NOT LIBUSB_FOUND) + message(FATAL_ERROR "No libusb-1.0 library found on your system! Install libusb-1.0 from ports or packages.") + endif () + elseif (WIN32 OR (EXISTS "/etc/debian_version" AND MINGW)) # Windows or MinGW-toolchain on Debian # MinGW/MSYS/MSVC: 64-bit or 32-bit? if (CMAKE_SIZEOF_VOID_P EQUAL 8)
examples/sx127x_demo/sx127x_demo.c: RX/TX only if RX/TX enabled
@@ -435,7 +435,9 @@ errout: int main(int argc, FAR char *argv[]) { +#ifdef CONFIG_LPWAN_SX127X_RXSUPPORT struct sx127x_read_hdr_s data; +#endif struct sx127x_chanscan_ioc_s chanscan; struct args_s *args; struct timespec tstart; @@ -528,6 +530,7 @@ int main(int argc, FAR char *argv[]) { switch (args->app_mode) { +#ifdef CONFIG_LPWAN_SX127X_TXSUPPORT /* Transmit some data */ case APP_MODE_TX: @@ -543,7 +546,9 @@ int main(int argc, FAR char *argv[]) break; } +#endif +#ifdef CONFIG_LPWAN_SX127X_RXSUPPORT /* Receive data */ case APP_MODE_RX: @@ -579,6 +584,7 @@ int main(int argc, FAR char *argv[]) break; } +#endif /* Send some data and wait for response */
BugID:22318586:[coap]add sleep for CoAPMessage_cycle to reduce power consumption
@@ -648,11 +648,14 @@ static void Retansmit(void *context) extern void *coap_yield_mutex; +#define COAP_CYCLE_DURATION 100 int CoAPMessage_cycle(CoAPContext *context) { int res = 0; CoAPIntContext *ctx = (CoAPIntContext *)context; + uint32_t exp_time, after_time; + exp_time = (uint32_t)HAL_UptimeMs() + COAP_CYCLE_DURATION; if (NULL == context) { return COAP_ERROR_NULL; @@ -670,10 +673,11 @@ int CoAPMessage_cycle(CoAPContext *context) HAL_MutexUnlock(coap_yield_mutex); } - if (res < 0) { - HAL_SleepMs(20); - } + after_time = (uint32_t)HAL_UptimeMs(); + if ((exp_time - after_time) < (UINT32_MAX / 2)) { + HAL_SleepMs(exp_time - after_time); + } return res; }
mangoapp: don't write imgui.ini
@@ -124,6 +124,7 @@ GLFWwindow* init(GLFWwindow* window, const char* glsl_version){ glfwSwapInterval(1); // Enable vsync ImGui::CreateContext(); ImGuiIO& io = ImGui::GetIO(); (void)io; + io.IniFilename = NULL; ImGui::StyleColorsDark(); ImGui_ImplGlfw_InitForOpenGL(window, true); ImGui_ImplOpenGL3_Init(glsl_version);
Removed unused ++etch arms from agent.
~& [%r-peer-sole ost.hid] ra-abet:(ra-console:ra src.hid t.pax) :: -::TODO move to lib. -++ etch :: parse wire - ::x parse wire to obtain either %friend with story and station or %repeat - ::x with message number, source ship and story. - :: - |= way/wire - ^- weir - ?+ -.way !! - $friend - ?> ?=({$show @ @ @ $~} t.way) - [%friend i.t.t.way (slav %p i.t.t.t.way) i.t.t.t.t.way] - :: - $repeat - ?> ?=({@ @ @ $~} t.way) - [%repeat (slav %ud i.t.way) (slav %p i.t.t.way) i.t.t.t.way] - == -:: -++ etch-friend :: - ::x parse a /friend wire, call gate with resulting data. - :: - |= {way/wire fun/$-({man/knot cuz/station} {(list move) _.})} - =+ wer=(etch way) - ?>(?=($friend -.wer) (fun p.wer q.wer)) -:: ++ diff-talk-lowdown ::x incoming talk-lowdown. process it. ::
add fortran build components for powerpc. Now all archs build all components
@@ -89,12 +89,8 @@ elif [ "$AOMP_STANDALONE_BUILD" != 1 ] ; then components="project libdevice comgr rocminfo hip extras atmi openmp pgmath flang flang_runtime" else # The standalone build builds all rocm components and installs in the compiler installation. - if [ "$AOMP_PROC" == "ppc64le" ] ; then - components="roct rocr project libdevice comgr rocminfo hcc hip extras atmi openmp" - else components="roct rocr project libdevice comgr rocminfo hcc hip extras atmi openmp pgmath flang flang_runtime" fi -fi #Partial build options. Check if argument was given. if [ -n "$1" ] ; then
Fix gpsegstop unittests It looks like this is passing in concourse, however, this test suite is having issues running properly. One of the mocks is not returning the proper behavior causing the test to fail.
@@ -38,7 +38,8 @@ class SegStopTestCase(unittest.TestCase): @patch('gppylib.commands.gp.SegmentIsShutDown.is_shutdown', return_value=True) @patch('gpsegstop.unix.kill_9_segment_processes') @patch('gpsegstop.pg.ReadPostmasterTempFile.getResults', return_value=(True, 1234, '/tmp/gpseg0')) - def test_run(self, mock1, mock2, mock3, mock4, mock5): + @patch('gpsegstop.unix.check_pid', return_value=False) + def test_run(self, mock1, mock2, mock3, mock4, mock5, mock6): self.segstop.db = '/tmp/gpseg0:1234' self.segstop.mode = 'smart' self.segstop.timeout = '10' @@ -51,7 +52,8 @@ class SegStopTestCase(unittest.TestCase): @patch('gpsegstop.pg.ReadPostmasterTempFile.getResults', return_value=(True, 1234, '/tmp/gpseg0')) @patch('gpsegstop.unix.kill_sequence') @patch('gpsegstop.unix.kill_9_segment_processes') - def test_run_with_error(self, mock1, mock2, mock3, mock4, mock5): + @patch('gpsegstop.unix.check_pid', return_value=False) + def test_run_with_error(self, mock1, mock2, mock3, mock4, mock5, mock6): self.segstop.db = '/tmp/gpseg0:1234' self.segstop.mode = 'smart' self.segstop.timeout = '10' @@ -65,7 +67,8 @@ class SegStopTestCase(unittest.TestCase): @patch('gpsegstop.pg.ReadPostmasterTempFile.getResults', return_value=(True, 1234, '/tmp/gpseg0')) @patch('gpsegstop.unix.kill_sequence') @patch('gpsegstop.unix.kill_9_segment_processes') - def test_run_with_pg_controldata_error(self, mock1, mock2, mock3, mock4, mock5, mock6): + @patch('gpsegstop.unix.check_pid', return_value=False) + def test_run_with_pg_controldata_error(self, mock1, mock2, mock3, mock4, mock5, mock6, mock7): self.segstop.db = '/tmp/gpseg0:1234' self.segstop.mode = 'smart' self.segstop.timeout = '10' @@ -78,7 +81,8 @@ class SegStopTestCase(unittest.TestCase): @patch('gppylib.commands.gp.SegmentIsShutDown.is_shutdown', return_value=False) @patch('gpsegstop.pg.ReadPostmasterTempFile.getResults', return_value=(True, 1234, '/tmp/gpseg0')) @patch('gpsegstop.unix.kill_9_segment_processes') - def test_run_with_pg_controldata_error_in_immediate_mode(self, mock1, mock2, mock3, mock4, mock5): + @patch('gpsegstop.unix.check_pid', return_value=False) + def test_run_with_pg_controldata_error_in_immediate_mode(self, mock1, mock2, mock3, mock4, mock5, mock6): self.segstop.db = '/tmp/gpseg0:1234' self.segstop.mode = 'immediate' self.segstop.timeout = '10'
spi_slave.c:fix DMA channel set to zero which might gets conflict with assert close
@@ -218,7 +218,7 @@ cleanup: free(spihost[host]); spihost[host] = NULL; spicommon_periph_free(host); - spicommon_dma_chan_free(dma_chan); + if (dma_chan != 0) spicommon_dma_chan_free(dma_chan); return ret; }
adjusts schematic for renderer tests, disables failing renderers
our live=| ^- schematic:ford - :: XX what should the rail be? - :- [%bake a fake-fcgi now-disc /example] + =/ bem=beam (need (de-beam %/example)) + =/ =rail [[p q] s]:bem + :- [%bake a fake-fcgi rail] [%$ %cont !>(b)] :: ++ poke-noun %cores [ost (build-core [- +]:(list-hoons p.a skip=(sy /sys /ren ~)))]~ %names ~&((list-names p.a) ~) %marks ~|(%stub !!) ::TODO restore historical handler - %renders :: XX temporarily disabled - :: [ost (build-rend [- +]:(list-names (weld /ren p.a)))]~ - ~ + %renders [ost (build-rend [- +]:(list-names (weld /ren p.a)))]~ == :: ++ list-names :- /ren/js "not meant to be called outside /web/pack" :- /ren/run "not meant to be called except on a (different) hoon file" :- /ren/collections "temporarily disabled" + :- /ren/test-gen "temporarily disabled" + :- /ren/tree-index "temporarily disabled" + :- /ren/tree-elem "temporarily disabled" :- /ren/x-urb "temporarily disabled" :- /ren/x-htm "temporarily disabled" :- /ren/x-collections-snip "temporarily disabled"
Package: Shallow clone repository
os.rmdir(pkgName) print("Cloning source code") - local z = execQuiet("git clone .. %s -b %s --recurse-submodules", pkgName, branch) + local z = execQuiet("git clone .. %s -b %s --recurse-submodules --depth 1 --shallow-submodules", pkgName, branch) if not z then error("clone failed", 0) end
in_serial: replace msgpack_pack_bin with str
@@ -83,8 +83,8 @@ static inline int process_pack(struct flb_in_serial_config *ctx, msgpack_pack_uint64(&ctx->i_ins->mp_pck, time(NULL)); msgpack_pack_map(&ctx->i_ins->mp_pck, 1); - msgpack_pack_bin(&ctx->i_ins->mp_pck, 3); - msgpack_pack_bin_body(&ctx->i_ins->mp_pck, "msg", 3); + msgpack_pack_str(&ctx->i_ins->mp_pck, 3); + msgpack_pack_str_body(&ctx->i_ins->mp_pck, "msg", 3); msgpack_pack_object(&ctx->i_ins->mp_pck, entry); }
mINI: Extend test for configuration write back
key=value +space=wide open spaces
ansi: Fix bug in strncpy()
@@ -26,7 +26,7 @@ void *memmove(void *dest, const void *src, size_t size) { char *strcpy(char *__restrict dest, const char *src) { char *dest_bytes = (char *)dest; char *src_bytes = (char *)src; - for(size_t i = 0; *src_bytes; i++) + while(*src_bytes) *(dest_bytes++) = *(src_bytes++); *dest_bytes = 0; return dest; @@ -35,12 +35,14 @@ char *strncpy(char *__restrict dest, const char *src, size_t max_size) { auto dest_bytes = static_cast<char *>(dest); auto src_bytes = static_cast<const char *>(src); size_t i = 0; - while(src_bytes[i]) { - dest_bytes[i] = src_bytes[i]; + while(*src_bytes && i < max_size) { + *(dest_bytes++) = *(src_bytes++); + i++; + } + while(i < max_size) { + *(dest_bytes++) = 0; i++; } - for(size_t j = i; j < max_size; j++) - dest_bytes[j] = 0; return dest; }
Dashed lines on connections
@@ -86,6 +86,7 @@ export default React.memo( e="M10 80 Q 95 10 180 80" stroke="#00bcd4" fill="transparent" + strokeDasharray="3" /> </g> ))}
[examples] Fix tetra.py comments.
@@ -46,11 +46,11 @@ with Hdf5() as io: ch = ConvexHull(pts) inertia,volume=ch.inertia(ch.centroid()) - # The cube object made with an unique Contactor : the tetrahedron shape. - # As a mass is given, it is a dynamic system involved in contact - # detection and in the simulation. With no group id specified the - # Contactor belongs to group 0 - io.addObject('cube', [Contactor('Tetra', collision_group=1)], + # The tetra object made with an unique Contactor : the tetrahedron + # shape. As a mass is given, it is a dynamic system involved in + # contact detection and in the simulation. With no group id + # specified the Contactor belongs to group 0 + io.addObject('tetra', [Contactor('Tetra', collision_group=1)], translation=[0, 0, 4], velocity=[0, 0, 0, 0, 0, 0], mass=1, inertia=inertia)
Mention FP opcodes in CHANGELOG
@@ -32,6 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added support for the OTP `math` module - Added support for `erlang:integer_to_list/2` and `erlang:integer_to_binary/2` - Added functions `esp:sleep_enable_ext0_wakeup/2` and `esp:sleep_enable_ext1_wakeup/2.` +- Added support for FP opcodes 94-102 thus removing the need for `AVM_DISABLE_FP=On` with OTP-22+ ### Fixed - Fixed issue with formatting integers with io:format() on STM32 platform
Add the ability to supress deprecation warnings We add a new macro OPENSSL_SUPRESS_DEPRECATED which enables applications to supress deprecation warnings where necessary.
*/ # ifndef DECLARE_DEPRECATED # define DECLARE_DEPRECATED(f) f; +# ifndef OPENSSL_SUPPRESS_DEPRECATED # ifdef __GNUC__ # if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0) # undef DECLARE_DEPRECATED # endif # endif # endif +# endif /* * Applications should use -DOPENSSL_API_COMPAT=<version> to suppress the
[core] make setrlimit() warn, not fatal (thx limb) make setrlimit() issue warning on error, not fatal, and add suggesting to configure SELinux permissions
@@ -1357,7 +1357,8 @@ static int server_main_setup (server * const srv, int argc, char **argv) { if (0 != setrlimit(RLIMIT_NOFILE, &rlim)) { log_perror(srv->errh, __FILE__, __LINE__, "setrlimit()"); - return -1; + log_error(srv->errh, __FILE__, __LINE__, "setrlimit() may need root to run once: setsebool -P httpd_setrlimit on"); + use_rlimit = 0; } }
Update sandbox whitelists
@@ -196,7 +196,7 @@ void LuaSandbox::InitializeExtraLibsForSandbox(Sandbox& aSandbox) const auto& sbEnv = aSandbox.GetEnvironment(); // copy extra whitelisted libs from global table - constexpr std::array<std::string_view, 18> whitelistedTables = + constexpr std::array<std::string_view, 22> whitelistedTables = { "ImGui", "ImGuiCond", @@ -213,6 +213,10 @@ void LuaSandbox::InitializeExtraLibsForSandbox(Sandbox& aSandbox) const "ImGuiStyleVar", "ImGuiTabBarFlags", "ImGuiSliderFlags", + "ImGuiTableFlags", + "ImGuiTableColumnFlags", + "ImGuiTableRowFlags", + "ImGuiTableBgTarget", "ImGuiCol", "ImGuiDir", "json"
Updated MPI layer to post Irecvs and **not** issues any Iprobes as part of recv. message processing.
@@ -33,8 +33,8 @@ static struct act_q posted_sends; static struct act_q posted_recvs; static tw_eventq outq; -static unsigned int read_buffer = 50000; -static unsigned int send_buffer = 50000; +static unsigned int read_buffer = 16; +static unsigned int send_buffer = 1024; static int world_size = 1; static const tw_optdef mpi_opts[] = { @@ -50,6 +50,13 @@ static const tw_optdef mpi_opts[] = { TWOPT_END() }; +// Forward declarations of functions used in MPI network message processing +static int recv_begin(tw_pe *me); +static void recv_finish(tw_pe *me, tw_event *e, char * buffer); +static int send_begin(tw_pe *me); +static void send_finish(tw_pe *me, tw_event *e, char * buffer); + +// Start of implmentation of network processing routines/functions void tw_comm_set(MPI_Comm comm) { MPI_COMM_ROSS = comm; @@ -158,6 +165,9 @@ tw_net_start(void) init_q(&posted_recvs, "MPI recv queue"); g_tw_net_device_size = read_buffer; + + // pre-post all the Irecv operations + recv_begin( g_tw_pe[0] ); } void @@ -253,9 +263,12 @@ test_q( } /* Collapse the lists to remove any holes we left. */ - for (i = 0, n = 0; i < q->cur; i++) { - if (q->event_list[i]) { - if (i != n) { + for (i = 0, n = 0; i < q->cur; i++) + { + if (q->event_list[i]) + { + if (i != n) + { // swap the event pointers q->event_list[n] = q->event_list[i]; @@ -271,9 +284,9 @@ test_q( q->buffers[n] = q->buffers[i]; q->buffers[i] = tmp; #endif - } + } // endif (i != n) n++; - } + } // endif (q->event_list[i]) } q->cur -= ready; @@ -294,29 +307,15 @@ recv_begin(tw_pe *me) { unsigned id = posted_recvs.cur; - MPI_Iprobe(MPI_ANY_SOURCE, - MPI_ANY_TAG, - MPI_COMM_ROSS, - &flag, - &status); - - if(flag) - { if(!(e = tw_event_grab(me))) { if(tw_gvt_inprogress(me)) tw_error(TW_LOC, "out of events in GVT!"); - - break; - } - } else - { return changed; } #if ROSS_MEMORY - if(!flag || - MPI_Irecv(posted_recvs.buffers[id], + if( MPI_Irecv(posted_recvs.buffers[id], EVENT_SIZE(e), MPI_BYTE, MPI_ANY_SOURCE, @@ -324,8 +323,7 @@ recv_begin(tw_pe *me) MPI_COMM_ROSS, &posted_recvs.req_list[id]) != MPI_SUCCESS) #else - if(!flag || - MPI_Irecv(e, + if( MPI_Irecv(e, (int)EVENT_SIZE(e), MPI_BYTE, MPI_ANY_SOURCE,
Code of conduct link in contributing guidelines was broken
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change. -Please note we have a [Code of Conduct](/.github/CODE_OF_CONDUCT), please follow it in all your interactions with the project. +Please note we have a [Code of Conduct](/.github/CODE_OF_CONDUCT.md), please follow it in all your interactions with the project. ## Pull Request Process
Do not destroy uninitialized screen When --no-display was passed, screen_destroy() was called while screen_init() was never called. In practice, it did not crash because it just freed NULL pointers, but it was still incorrect.
@@ -282,6 +282,7 @@ scrcpy(const struct scrcpy_options *options) { bool stream_started = false; bool controller_initialized = false; bool controller_started = false; + bool screen_initialized = false; bool record = !!options->record_filename; struct server_params params = { @@ -399,6 +400,7 @@ scrcpy(const struct scrcpy_options *options) { &screen_params)) { goto end; } + screen_initialized = true; if (options->turn_screen_off) { struct control_msg msg; @@ -427,9 +429,11 @@ scrcpy(const struct scrcpy_options *options) { ret = event_loop(options); LOGD("quit..."); +end: + if (screen_initialized) { screen_destroy(&screen); + } -end: // stop stream and controller so that they don't continue once their socket // is shutdown if (stream_started) {
nimble/hw: Apply and erratas also for nRF52840 Although Nordic's infocenter claims this is fixed in final build of nRF52840, LL/ENC/MAS/BI-01-C was failing without enabling those.
@@ -245,7 +245,6 @@ struct nrf_ccm_data struct nrf_ccm_data g_nrf_ccm_data; #endif -#ifdef NRF52 static void ble_phy_apply_errata_102_106_107(void) { @@ -256,7 +255,6 @@ ble_phy_apply_errata_102_106_107(void) *(volatile uint32_t *)0x40001774 = ((*(volatile uint32_t *)0x40001774) & 0xfffffffe) | 0x01000000; } -#endif #if (BLE_LL_BT5_PHY_SUPPORTED == 1) @@ -1842,9 +1840,7 @@ ble_phy_set_access_addr(uint32_t access_addr) g_ble_phy_data.phy_access_address = access_addr; -#ifdef NRF52 ble_phy_apply_errata_102_106_107(); -#endif return 0; }
mpi-families/libfabric: bump version to v1.10.1
%define pname libfabric Name: libfabric%{PROJ_DELIM} -Version: 1.10.0 +Version: 1.10.1 Release: 1%{?dist} Summary: User-space RDMA Fabric Interfaces Group: %{PROJ_NAME}/mpi-families
Note version requirement for glfw;
@@ -93,6 +93,9 @@ elseif(NOT EMSCRIPTEN) include_directories(${GLFW_INCLUDE_DIRS}) set(LOVR_GLFW ${GLFW_LIBRARIES}) endif() +if(GLFW_VERSION VERSION_LESS "3.2") + message(FATAL_ERROR "GLFW 3.2 is required") +endif() unset(LIB_SUFFIX CACHE) # Lua
odissey: print periodic statistics
#include "od_fe.h" #include "od_be.h" +static inline void +od_periodic_stats (od_pooler_t *pooler) +{ + od_log(&pooler->od->log, NULL, "statistics: clients %d", + pooler->client_list.count); + od_list_t *i; + od_listforeach(&pooler->route_pool.list, i) { + od_route_t *route; + route = od_container_of(i, od_route_t, link); + od_log(&pooler->od->log, NULL, + " [%.*s, %.*s] clients %d, " + "servers_active %d, " + "servers_idle %d, " + "servers_reset %d", + route->id.database_len, + route->id.database, + route->id.user_len, + route->id.user, + route->client_pool.count_active, + route->server_pool.count_active, + route->server_pool.count_idle, + route->server_pool.count_reset); + } +} + static inline int od_expire_mark(od_server_t *server, void *arg) { @@ -65,6 +90,7 @@ od_expire_mark(od_server_t *server, void *arg) void od_periodic(void *arg) { od_pooler_t *pooler = arg; + int stats_tick = 0; for (;;) { @@ -111,6 +137,15 @@ void od_periodic(void *arg) od_beclose(server); } + /* stats */ + if (pooler->od->scheme.stats_period > 0) { + stats_tick++; + if (stats_tick >= pooler->od->scheme.stats_period) { + od_periodic_stats(pooler); + stats_tick = 0; + } + } + /* 1 second soft interval */ mm_sleep(pooler->env, 1000); }
memif: construct interface name out of socket file idx and intf id
@@ -50,9 +50,11 @@ static char *memif_tx_func_error_strings[] = { u8 * format_memif_device_name (u8 * s, va_list * args) { - u32 i = va_arg (*args, u32); + u32 dev_instance = va_arg (*args, u32); + memif_main_t *mm = &memif_main; + memif_if_t *mif = pool_elt_at_index (mm->interfaces, dev_instance); - s = format (s, "memif%u", i); + s = format (s, "memif%lu/%lu", mif->socket_file_index, mif->id); return s; }
common BUGFIX condition typo
@@ -2331,7 +2331,7 @@ sr_chmodown(const char *path, const char *owner, const char *group, mode_t perm) /* apply owner changes, if any */ if (chown(path, uid, gid) == -1) { - if ((errno == EACCES) || (errno = EPERM)) { + if ((errno == EACCES) || (errno == EPERM)) { err_code = SR_ERR_UNAUTHORIZED; } else { err_code = SR_ERR_INTERNAL;
Fix typo in comment The one in rsa.c was overlooked when fixing the same comment in pkey.c as part of
@@ -230,7 +230,7 @@ int rsa_main(int argc, char **argv) ERR_GET_REASON(err) != ERR_R_MALLOC_FAILURE) { BIO_printf(out, "RSA key error: %s\n", ERR_reason_error_string(err)); - ERR_get_error(); /* remove e from error stack */ + ERR_get_error(); /* remove err from error stack */ } } else if (r == -1) { ERR_print_errors(bio_err);
py/objgenerator: Save state in old_globals instead of local variable. The code_state.old_globals variable is there to save the globals state so should be used for this purpose, to avoid the need for additional local variables on the C stack.
@@ -117,10 +117,10 @@ mp_vm_return_kind_t mp_obj_gen_resume(mp_obj_t self_in, mp_obj_t send_value, mp_ *self->code_state.sp = send_value; } } - mp_obj_dict_t *old_globals = mp_globals_get(); + self->code_state.old_globals = mp_globals_get(); mp_globals_set(self->globals); mp_vm_return_kind_t ret_kind = mp_execute_bytecode(&self->code_state, throw_value); - mp_globals_set(old_globals); + mp_globals_set(self->code_state.old_globals); switch (ret_kind) { case MP_VM_RETURN_NORMAL:
Fix a crash with malformed user notice policy numbers
@@ -345,10 +345,10 @@ static int nref_nos(STACK_OF(ASN1_INTEGER) *nnums, STACK_OF(CONF_VALUE) *nos) return 1; merr: + ASN1_INTEGER_free(aint); X509V3err(X509V3_F_NREF_NOS, ERR_R_MALLOC_FAILURE); err: - sk_ASN1_INTEGER_pop_free(nnums, ASN1_STRING_free); return 0; }
core: cleanup old global keyset code
@@ -535,9 +535,7 @@ static int elektraGetCheckUpdateNeeded (Split * split, Key * parentKey, KeySet * ksRewind (split->keysets[i]); keySetName (parentKey, keyName (split->parents[i])); keySetString (parentKey, ""); - resolver->global = global; ret = resolver->kdbGet (resolver, split->keysets[i], parentKey); - resolver->global = 0; // store resolved filename keySetString (split->parents[i], keyString (parentKey)); // no keys in that backend @@ -1310,9 +1308,7 @@ int kdbGet (KDB * handle, KeySet * ks, Key * parentKey) cacheFile = keyNew (cacheFileName, KEY_VALUE, cacheFileName, KEY_END); if (handle->globalPlugins[PREGETCACHE][MAXONCE]) { - handle->globalPlugins[PREGETCACHE][MAXONCE]->global = global; elektraGlobalGet (handle, cache, cacheFile, PREGETCACHE, MAXONCE); - handle->globalPlugins[PREGETCACHE][MAXONCE]->global = 0; if (kdbCacheCheckParent (handle, global, cachedParent) != 0) { @@ -1474,10 +1470,8 @@ cachefail: { if (handle->globalPlugins[POSTGETCACHE][MAXONCE]) { - handle->globalPlugins[POSTGETCACHE][MAXONCE]->global = global; kdbStoreSplitState (handle, split, global, cachedParent); elektraGlobalSet (handle, ks, cacheFile, POSTGETCACHE, MAXONCE); - handle->globalPlugins[POSTGETCACHE][MAXONCE]->global = 0; ELEKTRA_LOG_DEBUG (">>>>>>>>>>>>>> PRINT GLOBAL KEYSET"); output_keyset (global); ELEKTRA_LOG_DEBUG (">>>>>>>>>>>>>> END GLOBAL KEYSET");
Clean up: Remove examples/examples.dev from distro
@@ -425,10 +425,10 @@ add_subdirectory( ifs_samples ) # must come after samples # ecbuild_dont_pack( DIRS samples DONT_PACK_REGEX "*.grib" ) ecbuild_dont_pack( DIRS - concepts tests.ecmwf doxygen confluence examples.dev templates parameters java + concepts tests.ecmwf doxygen confluence templates parameters java perl config m4 rpms gaussian_experimental gribex examples/F77 - examples/extra examples/deprecated bamboo fortran/fortranCtypes tigge/tools - share/eccodes .settings ) + examples/examples.dev examples/extra examples/deprecated bamboo + fortran/fortranCtypes tigge/tools share/eccodes .settings ) #ecbuild_dont_pack( DIRS data/bufr DONT_PACK_REGEX "*.bufr" ) #ecbuild_dont_pack( DIRS data/tigge DONT_PACK_REGEX "*.grib" )
Fix update_config.sh to consider the new app scenario If user enables a new app and calls update_config.sh, updated_config.sh will concatenate new app config with .config
@@ -35,27 +35,34 @@ function write_config(){ sed -i '/CONFIG_ENTRY_MANUAL/{ s/# //g ; s/ is not set/=y/g }' $config_path fi - # update .config use config from metafile; - # if OLD_CONFIG_USE is not updated => maintain origin CONFIG_USE; - # else OLD_CONFIG and NEW_CONFIG are not equal => change CONFIG_USE; + # update .config with reference to metafile. + # .config will be updated only if config is newly created or config value is changed. UPDATED_APP_LIST=`sed -n '/{.*}/p' $file_path | sed -n 's/ //pg'` for UPDATED_APP in $UPDATED_APP_LIST do CONFIG_NAME=`echo "$UPDATED_APP" | awk 'BEGIN {FS=","} {print$3}'` - OLD_CONFIG=`sed -n "/# $CONFIG_NAME is not set/p" $config_path` - if [ "$OLD_CONFIG" = "" ] - then OLD_USE_CONFIG="y" - else - OLD_USE_CONFIG="n" - fi - NEW_USE_CONFIG=`echo "$UPDATED_APP" | awk 'BEGIN {FS=","} {print$4}'` - if [ "$OLD_USE_CONFIG" != "$NEW_USE_CONFIG" ] - then if [ "$NEW_USE_CONFIG" = "y" ] - then sed -i "s/# $CONFIG_NAME is not set/$CONFIG_NAME=y/" $config_path + NEW_CONFIG_VALUE=`echo "$UPDATED_APP" | awk 'BEGIN {FS=","} {print$4}'` + + if [ "`sed -n "/^$CONFIG_NAME=y/p" $config_path`" ] + then + OLD_CONFIG_VALUE="y" + elif [ "`sed -n "/^\# $CONFIG_NAME is not set/p" $config_path`" ] + then + OLD_CONFIG_VALUE="n" else - sed -i "s/$CONFIG_NAME=./# $CONFIG_NAME is not set/" $config_path + OLD_CONFIG_VALUE="x" fi + + if [ "$OLD_CONFIG_VALUE" == "y" ] && [ "$NEW_CONFIG_VALUE" == "n" ] + then + sed -i "s/^$CONFIG_NAME=y/# $CONFIG_NAME is not set/" $config_path + elif [ "$OLD_CONFIG_VALUE" == "n" ] && [ "$NEW_CONFIG_VALUE" == "y" ] + then + sed -i "s/^# $CONFIG_NAME is not set/$CONFIG_NAME=y/" $config_path + elif [ "$OLD_CONFIG_VALUE" == "x" ] && [ "$NEW_CONFIG_VALUE" == "y" ] + then + echo "$CONFIG_NAME=y" >> $config_path fi done }
sdl/render: use normal SDL_RenderCopy() if `dst` is nil There was a workaround to prevent memory corruption if passed `dst` from Go but it failed to account for nil `dst`.
@@ -770,6 +770,14 @@ func (renderer *Renderer) FillRects(rects []Rect) error { // Copy copies a portion of the texture to the current rendering target. // (https://wiki.libsdl.org/SDL_RenderCopy) func (renderer *Renderer) Copy(texture *Texture, src, dst *Rect) error { + if dst == nil { + return errorFromInt(int( + C.SDL_RenderCopy( + renderer.cptr(), + texture.cptr(), + src.cptr(), + dst.cptr()))) + } return errorFromInt(int( C.RenderCopy( renderer.cptr(),
Packages: include unit.spec under specs target.
@@ -59,7 +59,7 @@ all: check-build-depends-all unit modules modules: $(addprefix unit-, $(MODULES)) -specs: $(addsuffix .spec, $(addprefix rpmbuild/SPECS/unit-, $(MODULES))) +specs: rpmbuild/SPECS/unit.spec $(addsuffix .spec, $(addprefix rpmbuild/SPECS/unit-, $(MODULES))) check-build-depends-%: @{ \
update link to HermesIntf in sdr_receiver_hpsdr/bazaar/index.html
<h3>Running CW Skimmer Server</h3> <ul> <li>Install <a href="http://dxatlas.com/skimserver" target="_blank">CW Skimmer Server</a>.</li> -<li>Copy <a href="https://sourceforge.net/projects/hermesintf/files" target="_blank">HermesIntf.dll</a> to the CW Skimmer Server program directory (C:\Program Files (x86)\Afreet\SkimSrv).</li> +<li>Copy <a href="https://github.com/k3it/HermesIntf/releases" target="_blank">HermesIntf.dll</a> to the CW Skimmer Server program directory (C:\Program Files (x86)\Afreet\SkimSrv).</li> <li>Install <a href="http://www.reversebeacon.net/pages/Aggregator+19" target="_blank">Reverse Beacon Network Aggregator</a>.</li> <li>Start CW Skimmer Server, configure frequencies and your call sign.</li> <li>Start Reverse Beacon Network Aggregator.</li>
publish: set font size for ordered lists
@@ -242,7 +242,7 @@ a { display: none; } -.md h1, .md h2, .md h3, .md h4, .md h5, .md p, .md a, .md ul, .md blockquote,.md code,.md pre { +.md h1, .md h2, .md h3, .md h4, .md h5, .md p, .md a, .md ul, .md ol, .md blockquote,.md code,.md pre { font-size: 14px; margin-bottom: 16px; }
I modified the CMakeLists.txt file in the data directory to untar files of the name "*test_data*.tar.gz" instead of just "*test_data.tar.gz".
# properly. Reworked the create_data_examples targets so things work # correctly on Windows. # +# Eric Brugger, Wed Sep 20 17:35:37 PDT 2017 +# Modify the script to untar files of the name "*test_data*.tar.gz" instead +# of just "*test_data.tar.gz". +# #****************************************************************************/ cmake_minimum_required(VERSION 2.8) @@ -427,7 +431,7 @@ ENDIF(NOT WIN32) # of the source tarball. This makes tracking the dependencies simple. # #----------------------------------------------------------------------------- -FILE(GLOB ARCHIVED_TARGETS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *test_data.tar.gz) +FILE(GLOB ARCHIVED_TARGETS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *test_data*.tar.gz) #----------------------------------------------------------------------------- # Add a custom command to extract each archived dataset & collect
sys/config: Simplify conf_str_from_value() Don't treat 64-bit integers specially. Just convert all integers to 64-bit and process them with common code.
@@ -258,45 +258,45 @@ conf_bytes_from_str(char *val_str, void *vp, int *len) char * conf_str_from_value(enum conf_type type, void *vp, char *buf, int buf_len) { - int32_t val; - uint32_t uval; + int64_t val; + uint64_t uval; if (type == CONF_STRING) { return vp; } switch (type) { + case CONF_BOOL: case CONF_INT8: case CONF_INT16: case CONF_INT32: - case CONF_BOOL: + case CONF_INT64: if (type == CONF_BOOL) { val = *(bool *)vp; } else if (type == CONF_INT8) { val = *(int8_t *)vp; } else if (type == CONF_INT16) { val = *(int16_t *)vp; - } else { + } else if (type == CONF_INT32) { val = *(int32_t *)vp; + } else { + val = *(int64_t *)vp; } - snprintf(buf, buf_len, "%ld", (long)val); - return buf; - case CONF_INT64: - snprintf(buf, buf_len, "%lld", *(long long *)vp); + snprintf(buf, buf_len, "%lld", val); return buf; case CONF_UINT8: case CONF_UINT16: case CONF_UINT32: + case CONF_UINT64: if (type == CONF_UINT8) { uval = *(uint8_t *)vp; } else if (type == CONF_UINT16) { uval = *(uint16_t *)vp; - } else { + } else if (type == CONF_UINT32) { uval = *(uint32_t *)vp; + } else { + uval = *(uint64_t *)vp; } - snprintf(buf, buf_len, "%lu", (unsigned long)uval); - return buf; - case CONF_UINT64: - snprintf(buf, buf_len, "%llu", *(unsigned long long *)vp); + snprintf(buf, buf_len, "%llu", uval); return buf; default: return NULL;
Added surface_area_over_time tests to the skip list.
{"category":"operators","file":"ic_streamlines.py"}, {"category":"operators","file":"lcs_operator.py"}, {"category":"queries","file":"IntegralCurveInfo.py"}, + {"category":"queries","file":"surface_area_over_time.py"}, {"category":"rendering","file":"view.py","cases":["view_16","view_17"]}, {"category":"simulation","file":"curve.py","cases":["curve03","curve04"]}, {"category":"simulation","file":"life.py","cases":["life03"]}, {"category":"operators","file":"remap.py"}, {"category":"queries","file":"IntegralCurveInfo.py"}, {"category":"queries","file":"revolved_surface_area.py"}, + {"category":"queries","file":"surface_area_over_time.py"}, {"category":"rendering","file":"compositing.py"}, {"category":"rendering","file":"view.py","cases":["view_16","view_17"]}, {"category":"rendering","file":"pixeldata.py","cases":["pixeldata_0_05","pixeldata_0_07","pixeldata_0_09","pixeldata_0_11"]}, {"category":"operators","file":"transform.py","cases":["ops_transform05"]}, {"category":"queries","file":"IntegralCurveInfo.py"}, {"category":"queries","file":"revolved_surface_area.py"}, + {"category":"queries","file":"surface_area_over_time.py"}, {"category":"rendering","file":"line3d.py","cases":["line3d07","line3d08","line3d09","line3d10","line3d11","line3d12"]}, {"category":"rendering","file":"pixeldata.py","cases":["pixeldata_0_05","pixeldata_0_07","pixeldata_0_09","pixeldata_0_11"]}, {"category":"session","file":"correlationsession.py","cases":["correlationsession00"]},
meson: fixed warnings.
@@ -75,7 +75,7 @@ libcriterion = both_libraries('criterion', sources, version: '3.1.0', dependencies: deps, install: true, - link_args: cc.get_supported_arguments([ + link_args: cc.get_supported_link_arguments([ '-Wl,--exclude-libs,ALL', ]), ) @@ -90,6 +90,5 @@ pkgconfig.generate( name: meson.project_name(), description: 'A KISS, Cross platform unit testing framework for C and C++', url: 'https://snai.pe/git/criterion', - dependencies: deps, libraries: [criterion], )
Add sce_paf_malloc_align function
@@ -15,6 +15,8 @@ extern "C" { void sce_paf_private_free(void *ptr); void *sce_paf_private_malloc(SceSize size); +void *sce_paf_malloc_align(SceUInt32 align, SceSize length); + void *sce_paf_private_bzero(void *ptr, SceSize num); void *sce_paf_private_memchr(const void *ptr, int value, SceSize num); int sce_paf_private_memcmp(const void *ptr1, const void *ptr2, SceSize num);
dpdk: QAT devices update, add c4xxx and xeon d15xx Type: feature
@@ -915,7 +915,8 @@ dpdk_bind_devices_to_uio (dpdk_config_main_t * conf) ; /* all Intel QAT devices VFs */ else if (d->vendor_id == 0x8086 && d->device_class == PCI_CLASS_PROCESSOR_CO && - (d->device_id == 0x0443 || d->device_id == 0x37c9 || d->device_id == 0x19e3)) + (d->device_id == 0x0443 || d->device_id == 0x18a1 || d->device_id == 0x19e3 || + d->device_id == 0x37c9 || d->device_id == 0x6f55)) ; /* Cisco VIC */ else if (d->vendor_id == 0x1137 &&
Add -d flag to list -u details (now normally off)
@@ -19,17 +19,19 @@ use lib catdir(dirname($0), "perl"); use OpenSSL::Util::Pod; # Options. -our($opt_s); -our($opt_u); +our($opt_d); our($opt_h); -our($opt_n); our($opt_l); +our($opt_n); our($opt_p); +our($opt_s); +our($opt_u); sub help() { print <<EOF; Find small errors (nits) in documentation. Options: + -d Detailed list of undocumented (implies -u) -l Print bogus links -n Print nits in POD pages -s Also print missing sections in POD pages (implies -n) @@ -282,7 +284,7 @@ sub checkmacros() || $macro =~ /DEPRECATEDIN/ || $macro =~ /IMPLEMENT_/ || $macro =~ /DECLARE_/; - print "$f:$macro\n"; + print "$f:$macro\n" if $opt_d; $count++; } close(IN); @@ -302,7 +304,7 @@ sub printem() # Skip ASN1 utilities next if $func =~ /^ASN1_/; - print "$libname:$func\n"; + print "$libname:$func\n" if $opt_d; $count++; } print "# Found $count missing from $numfile\n\n"; @@ -395,14 +397,15 @@ sub publicize() { } } -getopts('lnsphu'); +getopts('dlnsphu'); &help() if $opt_h; +$opt_n = 1 if $opt_s or $opt_p; +$opt_u = 1 if $opt_d; -die "Need one of -l -n -s -p or -u flags.\n" - unless $opt_l or $opt_n or $opt_s or $opt_p or $opt_u; +die "Need one of -[dlnspu] flags.\n" + unless $opt_l or $opt_n or $opt_u; -$opt_n = 1 if $opt_s or $opt_p; if ( $opt_n ) { &publicize() if $opt_p;
configs/imxrt1020-evk: Enable BCH driver by default Binary manager has a dependency on BCH so this config needs to be enabled by default.
@@ -489,7 +489,7 @@ CONFIG_SPI_EXCHANGE=y # CONFIG_GPIO is not set CONFIG_I2S=y # CONFIG_AUDIO_DEVICES is not set -# CONFIG_BCH is not set +CONFIG_BCH=y # CONFIG_RTC is not set # CONFIG_WATCHDOG is not set # CONFIG_TIMER is not set
apps/builtin/Makefile. This commit changes apps/builtin to search the registry recursively. By supporting directories, external projects can install the hooks into the registry and easily clean them up and reinstall if something needs to be updated. Based on an idea from Anthony Merlino.
############################################################################ # apps/builtin/Makefile # -# Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. +# Copyright (C) 2011-2012, 2018 Gregory Nutt. All rights reserved. # Author: Gregory Nutt <[email protected]> # # Redistribution and use in source and binary forms, with or without @@ -60,6 +60,17 @@ endif ROOTDEPPATH = --dep-path . VPATH = +# RWILDCARD - Recursive wildcard used to get lists of files + +define RWILDCARD + $(foreach d,$(wildcard $1/*),$(call RWILDCARD,$d/)$(filter $(subst *,%,$2),$d)) +endef + +# Registry entry lists + +PDATLIST = $(call RWILDCARD, registry, *.pdat) +BDATLIST = $(call RWILDCARD, registry, *.bdat) + # Build Targets all: .built @@ -80,31 +91,13 @@ builtin_list$(OBJEXT): builtin_list.h builtin_proto.h builtin_list.h: registry$(DELIM).updated $(call DELFILE, .xx_builtin_list.h) $(Q) touch .xx_builtin_list.h -ifeq ($(CONFIG_WINDOWS_NATIVE),y) - $(Q) (for /f %%G in ('dir /b registry\*.bdat') do ( type registry\%%G >> .xx_builtin_list.h )) || echo "" -else - $(Q) ( \ - filelist=`ls registry/*.bdat 2>/dev/null || echo ""`; \ - for file in $$filelist; \ - do cat $$file >> .xx_builtin_list.h; \ - done; \ - ) -endif + $(call CATFILE, .xx_builtin_list.h, $(BDATLIST)) $(Q) mv .xx_builtin_list.h builtin_list.h builtin_proto.h: registry$(DELIM).updated $(call DELFILE, .xx_builtin_proto.h) $(Q) touch .xx_builtin_proto.h -ifeq ($(CONFIG_WINDOWS_NATIVE),y) - $(Q) (for /f %%G in ('dir /b registry\*.pdat') do ( type registry\%%G >> .xx_builtin_proto.h )) || echo "" -else - $(Q) ( \ - filelist=`ls registry/*.pdat 2>/dev/null || echo ""`; \ - for file in $$filelist; \ - do cat $$file >> .xx_builtin_proto.h; \ - done; \ - ) -endif + $(call CATFILE, .xx_builtin_proto.h, $(PDATLIST)) $(Q) mv .xx_builtin_proto.h builtin_proto.h .built: $(OBJS)
BugID:16846667:Remove aos.c from mcu/stm32f4xx_syscall/aos.mk
@@ -6,7 +6,7 @@ $(NAME)_VERSION := 1.0.0 $(NAME)_SUMMARY := driver & sdk for platform/mcu stm32f4xx_syscall $(NAME)_COMPONENTS += arch_armv7m-svc -$(NAME)_COMPONENTS += newlib_stub rhino vfs +$(NAME)_COMPONENTS += newlib_stub rhino vfs log GLOBAL_DEFINES += USE_HAL_DRIVER @@ -102,20 +102,12 @@ $(NAME)_SOURCES := Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/system_stm32f4xx.c $(NAME)_SOURCES += aos/soc_impl.c \ - aos/aos.c \ hal/hal_uart_stm32f4.c \ hal/hw.c \ hal/hal_flash_stm32f4.c \ hal/hal_gpio_stm32f4.c \ hal/hal_spi_stm32f4.c \ - hal/hal_i2c_stm32f4.c #\ - hal/hal_sd_stm32f4.c \ - hal/hal_adc_stm32f4.c \ - hal/hal_rtc_stm32f4.c \ - hal/hal_spi_stm32f4.c \ - hal/hal_qspi_stm32f4.c \ - hal/hal_nand_stm32f4.c \ - hal/hal_nor_stm32f4.c + hal/hal_i2c_stm32f4.c ifeq ($(COMPILER),armcc) GLOBAL_CFLAGS += --c99 --cpu=Cortex-M4 --apcs=/hardfp --fpu=vfpv4_sp_d16 -D__MICROLIB -g --split_sections
IOC Mediator: Add return value check for snprintf Return value check for snprintf function. Acked-by: Yu Wang
@@ -1550,9 +1550,13 @@ ioc_parse(const char *opts) { char *tmp; char *param = strdup(opts); + int rc; tmp = strtok(param, ","); - snprintf(virtual_uart_path, sizeof(virtual_uart_path), "%s", param); + rc = snprintf(virtual_uart_path, sizeof(virtual_uart_path), "%s", param); + if (rc < 0 || rc >= sizeof(virtual_uart_path)) + WPRINTF("ioc gets incomplete virtual uart path:%s\r\n", + virtual_uart_path); if (tmp != NULL) { tmp = strtok(NULL, ","); if (tmp != NULL) { @@ -1575,6 +1579,7 @@ int ioc_init(struct vmctx *ctx) { int i; + int rc; struct ioc_dev *ioc; IOC_LOG_INIT; @@ -1668,7 +1673,10 @@ ioc_init(struct vmctx *ctx) ARRAY_SIZE(wlist_tx_group_table)); /* Setup IOC rx members */ - snprintf(ioc->rx_name, sizeof(ioc->rx_name), "ioc_rx"); + rc = snprintf(ioc->rx_name, sizeof(ioc->rx_name), "ioc_rx"); + if (rc < 0) + WPRINTF("%s", "ioc fails to set ioc_rx thread name\r\n"); + ioc->ioc_dev_rx = cbc_rx_handler; pthread_cond_init(&ioc->rx_cond, NULL); pthread_mutex_init(&ioc->rx_mtx, NULL); @@ -1683,7 +1691,10 @@ ioc_init(struct vmctx *ctx) ioc->rx_config.wlist_grp_tbl = wlist_rx_group_table; /* Setup IOC tx members */ - snprintf(ioc->tx_name, sizeof(ioc->tx_name), "ioc_tx"); + rc = snprintf(ioc->tx_name, sizeof(ioc->tx_name), "ioc_tx"); + if (rc < 0) + WPRINTF("%s", "ioc fails to set ioc_tx thread name\r\n"); + ioc->ioc_dev_tx = cbc_tx_handler; pthread_cond_init(&ioc->tx_cond, NULL); pthread_mutex_init(&ioc->tx_mtx, NULL); @@ -1710,7 +1721,10 @@ ioc_init(struct vmctx *ctx) if (ioc_create_thread(ioc->tx_name, &ioc->tx_tid, ioc_tx_thread, (void *)ioc) < 0) goto work_err; - snprintf(ioc->name, sizeof(ioc->name), "ioc_core"); + rc = snprintf(ioc->name, sizeof(ioc->name), "ioc_core"); + if (rc < 0) + WPRINTF("%s", "ioc fails to set ioc_core thread name\r\n"); + if (ioc_create_thread(ioc->name, &ioc->tid, ioc_core_thread, (void *)ioc) < 0) goto work_err;
Fix to mrb_gc_register for channel receivers
@@ -57,6 +57,7 @@ static mrb_value channel_initialize_method(mrb_state *mrb, mrb_value self) assert(shared_ctx->current_context != NULL); ctx->ctx = shared_ctx->current_context; ctx->receivers = mrb_ary_new(mrb); + mrb_gc_register(mrb, ctx->receivers); mrb_iv_set(mrb, self, mrb_intern_lit(mrb, "@queue"), mrb_ary_new(mrb));
RPL Native Border Router: fix SLIP bug that may occur whenever there is more bytes left in tx buffer than what we just sent
@@ -336,7 +336,7 @@ slip_flushbuf(int fd) if(slip_begin == slip_packet_end) { slip_packet_count--; if(slip_end > slip_packet_end) { - memcpy(slip_buf, slip_buf + slip_packet_end, + memmove(slip_buf, slip_buf + slip_packet_end, slip_end - slip_packet_end); } slip_end -= slip_packet_end;
eldrid: Configure temperature sensors Enable the ADC alternate function to reduce power usage. TEST=make buildall BRANCH=none
@@ -177,3 +177,6 @@ ALTERNATE(PIN_MASK(0, BIT(0) | BIT(1) | BIT(2)), 0, MODULE_PMU, 0) /* GPIO00 = GPIO01 = H1_EC_PWR_BTN_ODL GPIO02 = EC_RST_ODL */ +/* Temperature sensors */ +ALTERNATE(PIN_MASK(4, BIT(2) | BIT(4) | BIT(5)), 0, MODULE_ADC, 0) /* TEMP_SENSOR1,2,4 */ +ALTERNATE(PIN(F, 1), 0, MODULE_ADC, 0) /* TEMP_SENSOR3 */
Update SSDT-EC-USBX.dsl
@@ -77,8 +77,9 @@ DefinitionBlock ("", "SSDT", 2, "ACDT", "SsdtEC", 0x00001000) }) } } + } - Scope (PCI0.LPCB) + Scope (\_SB.PCI0.LPCB) { Device (EC) { @@ -97,4 +98,3 @@ DefinitionBlock ("", "SSDT", 2, "ACDT", "SsdtEC", 0x00001000) } } } -}
For aes, check the init return code
@@ -801,8 +801,14 @@ ACVP_RESULT acvp_aes_kat_handler (ACVP_CTX *ctx, JSON_Object *obj) { * TODO: this does mallocs, we can probably do the mallocs once for * the entire vector set to be more efficient */ - acvp_aes_init_tc(ctx, &stc, tc_id, test_type, key, pt, ct, iv, tag, aad, - kwcipher, keylen, ivlen, ptlen, aadlen, taglen, alg_id, dir); + rv = acvp_aes_init_tc(ctx, &stc, tc_id, test_type, key, + pt, ct, iv, tag, aad, kwcipher, keylen, + ivlen, ptlen, aadlen, taglen, alg_id, dir); + if (rv != ACVP_SUCCESS) { + ACVP_LOG_ERR("Init for stc (test case) failed"); + acvp_aes_release_tc(&stc); + return rv; + } /* If Monte Carlo start that here */ if (stc.test_type == ACVP_SYM_TEST_TYPE_MCT) {
test: add platone test case test_002InitWallet_0009InitPlatoneWalletWithNullConfig fix the issue aitos-io#1176 teambition task id:
@@ -759,6 +759,20 @@ START_TEST(test_002InitWallet_0008SetNodeUrlFailureNodeUrlOutOfLimit) } END_TEST +START_TEST(test_002InitWallet_0009InitPlatoneWalletWithNullConfig) +{ + BoatPlatoneWallet *rtnVal; + + /* 1. execute unit test */ + rtnVal = BoatPlatoneWalletInit(NULL, sizeof(BoatPlatoneWalletConfig)); + /* 2. verify test result */ + /* 2-1. verify the return value */ + ck_assert_ptr_eq(rtnVal,NULL); + + /* 2-2. verify the global variables that be affected */ +} +END_TEST + Suite *make_wallet_suite(void) { /* Create Suite */ @@ -797,6 +811,7 @@ Suite *make_wallet_suite(void) tcase_add_test(tc_wallet_api, test_002InitWallet_0006SetNodeUrlFailureNullParam); tcase_add_test(tc_wallet_api, test_002InitWallet_0007SetNodeUrlFailureErrorNodeUrlFormat); tcase_add_test(tc_wallet_api, test_002InitWallet_0008SetNodeUrlFailureNodeUrlOutOfLimit); + tcase_add_test(tc_wallet_api, test_002InitWallet_0009InitPlatoneWalletWithNullConfig); return s_wallet; }
Update ir_protocols_main.c RMT write should be non-blocking to wait the correct time for sending the repeat frame
@@ -99,12 +99,12 @@ static void example_ir_tx_task(void *arg) ESP_ERROR_CHECK(ir_builder->build_frame(ir_builder, addr, cmd)); ESP_ERROR_CHECK(ir_builder->get_result(ir_builder, &items, &length)); //To send data according to the waveform items. - rmt_write_items(example_tx_channel, items, length, true); + rmt_write_items(example_tx_channel, items, length, false); // Send repeat code vTaskDelay(pdMS_TO_TICKS(ir_builder->repeat_period_ms)); ESP_ERROR_CHECK(ir_builder->build_repeat_frame(ir_builder)); ESP_ERROR_CHECK(ir_builder->get_result(ir_builder, &items, &length)); - rmt_write_items(example_tx_channel, items, length, true); + rmt_write_items(example_tx_channel, items, length, false); cmd++; } ir_builder->del(ir_builder);
Remove redundant header listing
@@ -94,77 +94,7 @@ target_include_directories(${PROJECT_NAME} ) # Target for header-only usage -add_library(${PROJECT_NAME}_headers INTERFACE - include/cglm/affine-mat.h - include/cglm/affine.h - include/cglm/affine2d.h - include/cglm/applesimd.h - include/cglm/bezier.h - include/cglm/box.h - include/cglm/call.h - include/cglm/cam.h - include/cglm/cglm.h - include/cglm/color.h - include/cglm/common.h - include/cglm/curve.h - include/cglm/ease.h - include/cglm/euler.h - include/cglm/frustum.h - include/cglm/io.h - include/cglm/mat2.h - include/cglm/mat3.h - include/cglm/mat4.h - include/cglm/plane.h - include/cglm/project.h - include/cglm/quat.h - include/cglm/ray.h - include/cglm/sphere.h - include/cglm/struct.h - include/cglm/types-struct.h - include/cglm/types.h - include/cglm/util.h - include/cglm/vec2-ext.h - include/cglm/vec2.h - include/cglm/vec3-ext.h - include/cglm/vec3.h - include/cglm/vec4-ext.h - include/cglm/vec4.h - include/cglm/version.h - include/cglm/simd/arm.h - include/cglm/simd/avx/affine.h - include/cglm/simd/avx/mat4.h - include/cglm/simd/intrin.h - include/cglm/simd/neon/mat4.h - include/cglm/simd/sse2/affine.h - include/cglm/simd/sse2/mat2.h - include/cglm/simd/sse2/mat3.h - include/cglm/simd/sse2/mat4.h - include/cglm/simd/sse2/quat.h - include/cglm/simd/x86.h - include/cglm/struct/affine.h - include/cglm/struct/affine2d.h - include/cglm/struct/box.h - include/cglm/struct/cam.h - include/cglm/struct/color.h - include/cglm/struct/curve.h - include/cglm/struct/euler.h - include/cglm/struct/frustum.h - include/cglm/struct/io.h - include/cglm/struct/mat2.h - include/cglm/struct/mat3.h - include/cglm/struct/mat4.h - include/cglm/struct/plane.h - include/cglm/struct/project.h - include/cglm/struct/quat.h - include/cglm/struct/sphere.h - include/cglm/struct/vec2-ext.h - include/cglm/struct/vec2.h - include/cglm/struct/vec3-ext.h - include/cglm/struct/vec3.h - include/cglm/struct/vec4-ext.h - include/cglm/struct/vec4.h - ) - +add_library(${PROJECT_NAME}_headers INTERFACE) target_include_directories(${PROJECT_NAME}_headers INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include)
[vioscsi] fix for bz#1791147 BSOD when running Bus Reset Test
@@ -207,6 +207,9 @@ ENTER_FN(); cmd->req.tmf.type = VIRTIO_SCSI_T_TMF; cmd->req.tmf.subtype = VIRTIO_SCSI_T_TMF_LOGICAL_UNIT_RESET; + srbExt->psgl = srbExt->vio_sg; + srbExt->pdesc = srbExt->desc_alias; + srbExt->allocated = 0; sgElement = 0; srbExt->psgl[sgElement].physAddr = StorPortGetPhysicalAddress(DeviceExtension, NULL, &cmd->req.tmf, &fragLen); srbExt->psgl[sgElement].length = sizeof(cmd->req.tmf);
app_trace: Update esp_apptrace_lock_take() to use portTRY_ENTER_CRITICAL() Previously, esp_apptrace_lock_take() would manually disable interrupts and acquire the spinlock in order to allow the criticla section entry to have time outs, and also be preemptable in between attempts to acquired. However, the same can be achieved by using portTRY_ENTER_CRITICAL(), thus allowing us to make spinlock_acquire/spinlock_release private.
@@ -57,47 +57,26 @@ esp_err_t esp_apptrace_tmo_check(esp_apptrace_tmo_t *tmo) esp_err_t esp_apptrace_lock_take(esp_apptrace_lock_t *lock, esp_apptrace_tmo_t *tmo) { - int res; + esp_err_t ret; while (1) { - //Todo: Replace the current locking mechanism and int_state with portTRY_ENTER_CRITICAL() instead. - // do not overwrite lock->int_state before we actually acquired the mux -#if CONFIG_FREERTOS_SMP - unsigned int_state = portDISABLE_INTERRUPTS(); -#else - unsigned int_state = portSET_INTERRUPT_MASK_FROM_ISR(); -#endif - bool success = spinlock_acquire(&lock->mux, 0); - if (success) { - lock->int_state = int_state; + // Try enter a critical section (i.e., take the spinlock) with 0 timeout + if (portTRY_ENTER_CRITICAL(&(lock->mux), 0) == pdTRUE) { return ESP_OK; } -#if CONFIG_FREERTOS_SMP - portRESTORE_INTERRUPTS(int_state); -#else - portCLEAR_INTERRUPT_MASK_FROM_ISR(int_state); -#endif - // we can be preempted from this place till the next call (above) to portSET_INTERRUPT_MASK_FROM_ISR() - res = esp_apptrace_tmo_check(tmo); - if (res != ESP_OK) { - break; + // Failed to enter the critical section, so interrupts are still enabled. Check if we have timed out. + ret = esp_apptrace_tmo_check(tmo); + if (ret != ESP_OK) { + break; // Timed out, exit now } + // Haven't timed out, try again } - return res; + return ret; } esp_err_t esp_apptrace_lock_give(esp_apptrace_lock_t *lock) { - // save lock's irq state value for this CPU - unsigned int_state = lock->int_state; - // after call to the following func we can not be sure that lock->int_state - // is not overwritten by other CPU who has acquired the mux just after we released it. See esp_apptrace_lock_take(). - spinlock_release(&lock->mux); -#if CONFIG_FREERTOS_SMP - portRESTORE_INTERRUPTS(int_state); -#else - portCLEAR_INTERRUPT_MASK_FROM_ISR(int_state); -#endif + portEXIT_CRITICAL(&(lock->mux)); return ESP_OK; }
add copyright info for cJSON and list
@@ -4,7 +4,7 @@ Upstream-Contact: Gabriel Zachmann <[email protected]> Source: https://github.com/indigo-dc/oidc-agent Files: * -Copyright: 2017 - 2020 Gabriel Zachmann +Copyright: 2017 - 2020 Gabriel Zachmann <[email protected]> License: MIT-License License: MIT-License @@ -27,3 +27,52 @@ License: MIT-License LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Files: lib/cJSON +Copyright: 2009 - 2017 Dave Gamble <https://github.com/DaveGamble/cJSON> +License: MIT + . + Copyright (c) 2009-2017 Dave Gamble and cJSON contributors + . + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +Files: lib/list +Copyright: TJ Holowaychuk <[email protected]> +License: MIT + . + Copyright (c) 2009-2010 TJ Holowaychuk <[email protected]> + . + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the + 'Software'), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to permit + persons to whom the Software is furnished to do so, subject to the + following conditions: + . + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE.
Check that Java 11 is present
@@ -17,11 +17,11 @@ check_java() if [[ "$_java" ]]; then version=$("$_java" -version 2>&1 | awk -F '"' '/version/ {print $2}' | awk -F '.' '{print $1}') echo version "$version" - if [[ "$version" -ge "1" ]]; then - echo Java version detected is OK + if [[ "$version" -ge "11" ]]; then + echo Java version detected $version : OK else - echo Java version is not >=1.8. Please install at least Java 8. Program will exit + echo Java version is not >=11. Please install at least Java 11. Program will exit exit fi fi
envydis/falcon: add missing indirect crypt opcodes
@@ -557,10 +557,12 @@ static struct insn tabm[] = { { 0x00010cf2, 0x001f0fff, OP3B, N("cimov"), REG1, .fmask = F_CRYPT }, { 0x00020cf2, 0x001f0fff, OP3B, N("cixsin"), REG1, .fmask = F_CRYPT }, { 0x00030cf2, 0x001f0fff, OP3B, N("cixsout"), REG1, .fmask = F_CRYPT }, + { 0x00040cf2, 0x001f0fff, OP3B, N("cirnd"), REG1, .fmask = F_CRYPT }, { 0x00050cf2, 0x001f0fff, OP3B, N("cis0begin"), REG1, .fmask = F_CRYPT }, { 0x00060cf2, 0x001f0fff, OP3B, N("cis0exec"), REG1, .fmask = F_CRYPT }, { 0x00070cf2, 0x001f0fff, OP3B, N("cis1begin"), REG1, .fmask = F_CRYPT }, { 0x00080cf2, 0x001f0fff, OP3B, N("cis1exec"), REG1, .fmask = F_CRYPT }, + { 0x000a0cf2, 0x001f0fff, OP3B, N("cichmod"), REG1, .fmask = F_CRYPT }, { 0x000b0cf2, 0x001f0fff, OP3B, N("cixor"), REG1, .fmask = F_CRYPT }, { 0x000c0cf2, 0x001f0fff, OP3B, N("ciadd"), REG1, .fmask = F_CRYPT }, { 0x000d0cf2, 0x001f0fff, OP3B, N("ciand"), REG1, .fmask = F_CRYPT }, @@ -572,7 +574,9 @@ static struct insn tabm[] = { { 0x00130cf2, 0x001f0fff, OP3B, N("cikrexp"), REG1, .fmask = F_CRYPT }, { 0x00140cf2, 0x001f0fff, OP3B, N("cienc"), REG1, .fmask = F_CRYPT }, { 0x00150cf2, 0x001f0fff, OP3B, N("cidec"), REG1, .fmask = F_CRYPT }, + { 0x00160cf2, 0x001f0fff, OP3B, N("cisigcmp"), REG1, .fmask = F_CRYPT }, { 0x00170cf2, 0x001f0fff, OP3B, N("cisigenc"), REG1, .fmask = F_CRYPT }, + { 0x00180cf2, 0x001f0fff, OP3B, N("cisigclr"), REG1, .fmask = F_CRYPT }, { 0x00000cf2, 0x00000fff, OP3B, OOPS, REG1, .fmask = F_CRYPT }, { 0x000000f2, 0x000000ff, OP3B, OOPS, REG1, IMM8 },
Add Siri Shortcuts feature in page
@@ -52,6 +52,10 @@ features : description : Run code with the REPL. fontawesome_icon_name : play + - title : Siri Shortcuts + description : Run scripts or custom code with Siri Shortcuts. + fontawesome_icon_name : cubes + - title : PyPi description : Install pure Python modules from PyPi. fontawesome_icon_name : box-open
acl: fix set acl-plugin cli unformat free. Type: fix
@@ -2844,6 +2844,7 @@ acl_set_aclplugin_interface_fn (vlib_main_t * vm, break; } + unformat_free (line_input); if (~0 == sw_if_index) return (clib_error_return (0, "invalid interface")); if (~0 == acl_index) @@ -2851,7 +2852,6 @@ acl_set_aclplugin_interface_fn (vlib_main_t * vm, acl_interface_add_del_inout_acl (sw_if_index, is_add, is_input, acl_index); - unformat_free (line_input); return (NULL); } @@ -2984,6 +2984,7 @@ acl_set_aclplugin_acl_fn (vlib_main_t * vm, vec_free (rules); vec_free (tag); + unformat_free (line_input); if (rv) return (clib_error_return (0, "failed"));
interface: create proper group feed back button behavior
import { Box, Row, Text } from '@tlon/indigo-react'; import bigInt from 'big-integer'; -import React from 'react'; +import React, { + useEffect, + useState +} from 'react'; export function GroupFeedHeader(props) { const { baseUrl, history, graphResource, vip } = props; @@ -9,13 +12,18 @@ export function GroupFeedHeader(props) { const historyLocation = history.location.pathname; const graphId = `${graphResource.ship.slice(1)}/${graphResource.name}`; + const [locationList, setLocationList] = useState([]); + useEffect(() => { + locationList.push(history.location.pathname); + setLocationList(locationList); + }, [history.location.pathname]); + const isHome = historyLocation === baseUrl || historyLocation === `${baseUrl}/feed`; const locationUrl = history.location.pathname.replace(`${baseUrl}/feed`, ''); - console.log(locationUrl); let splitLoc = locationUrl.split('/'); let indicator = ''; @@ -25,7 +33,6 @@ export function GroupFeedHeader(props) { } const nodeIndex = splitLoc.slice(1).map((ind) => bigInt(ind)); - console.log(nodeIndex); let node; nodeIndex.forEach((i) => { @@ -63,14 +70,22 @@ export function GroupFeedHeader(props) { > <Box display='block'> { ( baseUrl !== historyLocation ) ? ( - <Text pl={1} pr={1} -cursor="pointer" onClick={() => { + <Text pl={1} pr={1} cursor="pointer" onClick={() => { let loc = history.location.pathname.replace(`${baseUrl}`, '').split('/'); loc.pop(); loc = loc.join('/'); - // TODO: improve + if (history.location.pathname === `${baseUrl}/feed`) { + history.push(baseUrl); + } else if (indicator === 'thread' || indicator === 'replies') { + if (locationList.length === 1) { + history.push(`${baseUrl}/feed`); + } else { + history.goBack(); + } + } else { history.push(`${baseUrl}/feed`); + } }} >{'<- Back'}</Text> ) : null
[external/error_report]: Fix rendundant parameter in error report The `prv_fetch_taskaddr` internal function in error report does not require the `pid` argument, and can be deleted.
@@ -66,7 +66,7 @@ err_status_t error_report_deinit(void) return ERR_SUCCESS; } -static unsigned long prv_fetch_taskaddr(pid_t pid) +static unsigned long prv_fetch_taskaddr(void) { unsigned long task_addr = ERROR; const char buf[ERR_TASKADDR_LEN]; @@ -121,7 +121,7 @@ error_data_t *error_report_data_create(int module_id, int error_code, uint32_t p ret->error_code = error_code; ret->pc_value = pc_value; nwerr_vdbg("pc_value: %08x\n", pc_value); - ret->task_addr = prv_fetch_taskaddr(getpid()); + ret->task_addr = prv_fetch_taskaddr(); nwerr_vdbg("task_addr: %08x\n", ret->task_addr); if (g_err_info.fsm == ERRSTATE_MEMUNDERFLOW) { g_err_info.fsm = ERRSTATE_INITIALIZED;
bump Easybuild to v3.3.1
Summary: Build and installation framework Name: EasyBuild%{PROJ_DELIM} -Version: 3.2.1 +Version: 3.3.1 Release: 1 License: GPLv2 Group: %{PROJ_NAME}/dev-tools
Increase STM32L0 option_size to 20 The FLASH_OPTR, FLASH_WRPROT1 and FLASH_WRPROT2 registers are spread across 20 option bytes. With the original option_size of 4, only the lower 16 bits of FLASH_OPTR could be modified.
@@ -386,7 +386,7 @@ static const struct stlink_chipid_params devices[] = { .bootrom_base = 0x1ff0000, .bootrom_size = 0x1000, .option_base = STM32_L0_CATx_OPTION_BYTES_BASE, - .option_size = 4, + .option_size = 20, }, { // STM32L0x Category 5 @@ -400,7 +400,7 @@ static const struct stlink_chipid_params devices[] = { .bootrom_base = 0x1ff0000, .bootrom_size = 0x2000, .option_base = STM32_L0_CATx_OPTION_BYTES_BASE, - .option_size = 4, + .option_size = 20, }, { // STM32L0x Category 2 @@ -414,7 +414,7 @@ static const struct stlink_chipid_params devices[] = { .bootrom_base = 0x1ff0000, .bootrom_size = 0x1000, .option_base = STM32_L0_CATx_OPTION_BYTES_BASE, - .option_size = 4, + .option_size = 20, }, { // STM32F334, STM32F303x6/8, and STM32F328
test BUGFIX data race Fixes
@@ -508,8 +508,6 @@ notif_stop_cb(sr_session_ctx_t *session, uint32_t sub_id, const sr_ev_notif_type case 1: assert_int_equal(notif_type, SR_EV_NOTIF_TERMINATED); assert_null(notif); - - pthread_barrier_wait(&st->barrier); break; default: fail(); @@ -517,6 +515,9 @@ notif_stop_cb(sr_session_ctx_t *session, uint32_t sub_id, const sr_ev_notif_type /* signal that we were called */ ATOMIC_INC_RELAXED(st->cb_called); + if (notif_type == SR_EV_NOTIF_TERMINATED) { + pthread_barrier_wait(&st->barrier); + } } static void
YAML CPP: Fix short variable name
Key * parentKey = keyNew (parent, KEY_END); \ KeySet * conf = ksNew (0, KS_END); \ PLUGIN_OPEN ("yamlcpp"); \ - KeySet * ks = ksNew (0, KS_END) + KeySet * keySet = ksNew (0, KS_END) #define CLOSE_PLUGIN() \ keyDel (parentKey); \ - ksDel (ks); \ + ksDel (keySet); \ PLUGIN_CLOSE () // -- Functions ---------------------------------------------------------------------------------------------------------------------------- @@ -37,7 +37,7 @@ static void test_contract (void) INIT_PLUGIN ("system/elektra/modules/yamlcpp"); - succeed_if (plugin->kdbGet (plugin, ks, parentKey) == ELEKTRA_PLUGIN_STATUS_SUCCESS, "Could not retrieve plugin contract"); + succeed_if (plugin->kdbGet (plugin, keySet, parentKey) == ELEKTRA_PLUGIN_STATUS_SUCCESS, "Could not retrieve plugin contract"); CLOSE_PLUGIN (); }
Android builds may take longer
@@ -156,7 +156,7 @@ jobs: build-android: runs-on: ubuntu-latest - timeout-minutes: 5 + timeout-minutes: 10 steps: - uses: actions/checkout@v1 - uses: seanmiddleditch/gha-setup-ninja@master
Emitter: IS_LOOP_BLOCK is only used in one place so remove it.
#include "lily_int_opcode.h" #include "lily_int_code_iter.h" -# define IS_LOOP_BLOCK(b) (b == block_while || \ - b == block_do_while || \ - b == block_for_in) - # define lily_raise_adjusted(r, adjust, message, ...) \ { \ r->line_adjust = adjust; \ @@ -730,7 +726,9 @@ static lily_block *find_deepest_loop(lily_emit_state *emit) ret = NULL; for (block = emit->block; block; block = block->prev) { - if (IS_LOOP_BLOCK(block->block_type)) { + if (block->block_type == block_while || + block->block_type == block_do_while || + block->block_type == block_for_in) { ret = block; break; }
Completions: Add suggestions for `remount`
@@ -193,6 +193,14 @@ function __fish_kdb_subcommand_needs_storage_plugin -d 'Check if the current sub not __input_includes (__fish_kdb_print_storage_plugins) end +function __fish_kdb_subcommand_remount_needs_namespace -d 'Check if the subcommand remount needs a namespace completion' + not __fish_kdb_subcommand_includes remount + and return 1 + + set -l number_arguments (__fish_kdb__number_arguments_input_left) + test $number_arguments -eq 3 -o $number_arguments -eq 4 +end + # ============ # = Printers = # ============ @@ -365,6 +373,7 @@ complete -c kdb -n "$completion_function" -x -a '(__fish_kdb_print_namespaces)' complete -c kdb -n '__fish_kdb_needs_namespace cp mv 2' -x -a '(__fish_kdb_print_namespaces)' complete -c kdb -n '__fish_kdb_needs_namespace merge 4' -x -a '(__fish_kdb_print_namespaces)' complete -c kdb -n '__fish_kdb_subcommand_mount_needs_namespace' -x -a '(__fish_kdb_print_namespaces)' +complete -c kdb -n '__fish_kdb_subcommand_remount_needs_namespace' -x -a '(__fish_kdb_print_namespaces)' complete -c kdb -n '__fish_kdb_needs_plugin' -x -a '(__fish_kdb_print_plugins)'
UpnpInitLog, UpnpSetLogLevel and UpnpSetLogFileNames need also to be exported.
@@ -106,7 +106,7 @@ typedef enum Upnp_LogLevel_e * * \return -1 if fails or UPNP_E_SUCCESS if succeeds. */ -int UpnpInitLog(void); +UPNP_EXPORT_SPEC int UpnpInitLog(void); #if defined NDEBUG && !defined UPNP_DEBUG_C #define UpnpInitLog UpnpInitLog_Inlined @@ -115,7 +115,7 @@ static UPNP_INLINE int UpnpInitLog_Inlined(void) { return UPNP_E_SUCCESS; } /*! * \brief Set the log level (see \c Upnp_LogLevel). */ -void UpnpSetLogLevel( +UPNP_EXPORT_SPEC void UpnpSetLogLevel( /*! [in] Log level. */ Upnp_LogLevel log_level); @@ -143,7 +143,7 @@ static UPNP_INLINE void UpnpCloseLog_Inlined(void) {} * second parameter has been kept for compatibility but is ignored. * Use a NULL file name for logging to stderr. */ -void UpnpSetLogFileNames( +UPNP_EXPORT_SPEC void UpnpSetLogFileNames( /*! [in] Name of the log file. */ const char *fileName, /*! [in] Ignored. */
[catboost] Make native lib build script wrapper compatible with oss yatool Opensource version yatool requires explicit `{-o|--output}` option to provide build artifacts.
from __future__ import absolute_import, print_function +import contextlib import os import shutil import subprocess import sys +import tempfile + + [email protected] +def _tempdir(prefix=None): + tmp_dir = tempfile.mkdtemp(prefix=prefix) + yield tmp_dir + # TODO(yazevnul): log error + shutil.rmtree(tmp_dir, ignore_errors=True) def _get_platform(): @@ -49,9 +59,11 @@ def _get_package_resources_dir(): os.path.join(*'catboost/jvm-packages/catboost4j-inference/src/main/resources/lib'.split('/'))) -def _get_native_lib_dir(): +def _get_native_lib_dir(relative=None): + if relative is None: + relative = _get_arcadia_root() return os.path.join( - _get_arcadia_root(), + relative, os.path.join(*'catboost/jvm-packages/catboost4j-inference/src/native'.split('/'))) @@ -72,8 +84,11 @@ def _main(): print('building dynamic library with `ya`', file=sys.stderr) sys.stderr.flush() + ya_tool = [ya_path] if _get_platform() != 'win32' else ['python', ya_path] + with _tempdir(prefix='catboost_build-') as build_output_dir: + ya_make = ya_tool + ['make'] + sys.argv[1:] + [native_lib_dir, '--output', build_output_dir] subprocess.check_call( - [ya_path, 'make'] + sys.argv[1:] + [native_lib_dir], + ya_make, env=env, stdout=sys.stdout, stderr=sys.stderr) @@ -87,7 +102,7 @@ def _main(): print('copying dynamic library to resources/lib', file=sys.stderr) shutil.copy( - os.path.join(native_lib_dir, native_lib_name), + os.path.join(_get_native_lib_dir(build_output_dir), native_lib_name), resources_dir)
groups: prevent long title from pushing buttons
@@ -154,7 +154,7 @@ export function GroupSwitcher(props: { > <Row p={2} alignItems="center"> <Row alignItems="center" mr={1} flex='1'> - <Text overflow='hidden' display='inline-block' maxWidth='144px' style={{ textOverflow: 'ellipsis', whiteSpace: 'pre'}}>{title}</Text> + <Text overflow='hidden' display='inline-block' maxWidth='131px' style={{ textOverflow: 'ellipsis', whiteSpace: 'pre'}}>{title}</Text> </Row> <Icon size='12px' ml='1' mt="0px" display="inline-block" icon="ChevronSouth" /> </Row>
ignore validation failures with NO_CERTIFICATE_VALIDATION
@@ -1976,8 +1976,9 @@ CxPlatTlsWriteDataToSchannel( } } SecPkgContext_CertificateValidationResult CertValidationResult = {0,0}; - if (TlsContext->SecConfig->Flags & QUIC_CREDENTIAL_FLAG_REQUIRE_CLIENT_AUTHENTICATION || - TlsContext->SecConfig->Flags & QUIC_CREDENTIAL_FLAG_DEFER_CERTIFICATE_VALIDATION) { + if (!(TlsContext->SecConfig->Flags & QUIC_CREDENTIAL_FLAG_NO_CERTIFICATE_VALIDATION) && + (TlsContext->SecConfig->Flags & QUIC_CREDENTIAL_FLAG_REQUIRE_CLIENT_AUTHENTICATION || + TlsContext->SecConfig->Flags & QUIC_CREDENTIAL_FLAG_DEFER_CERTIFICATE_VALIDATION)) { // // Collect the client cert validation result //
build CHANGE proper versioning scheme
@@ -5,13 +5,6 @@ include(GNUInstallDirs) include(CheckSymbolExists) include(CheckIncludeFile) -# setup version -set(SYSREPO_MAJOR_VERSION 1) -set(SYSREPO_MINOR_VERSION 0) -set(SYSREPO_MICRO_VERSION 0) -set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MICRO_VERSION}) -set(SYSREPO_SOVERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}) - # osx specific set(CMAKE_MACOSX_RPATH TRUE) @@ -31,6 +24,24 @@ if(NOT UNIX) message(FATAL_ERROR "Only Unix-like systems are supported.") endif() +# Version of the project +# Generic version of not only the library. Major version is reserved for really big changes of the project, +# minor version changes with added functionality (new tool, functionality of the tool or library, ...) and +# micro version is changed with a set of small changes or bugfixes anywhere in the project. +set(SYSREPO_MAJOR_VERSION 1) +set(SYSREPO_MINOR_VERSION 0) +set(SYSREPO_MICRO_VERSION 0) +set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MICRO_VERSION}) + +# Version of the library +# Major version is changed with every backward non-compatible API/ABI change in libyang, minor version changes +# with backward compatible change and micro version is connected with any internal change of the library. +set(SYSREPO_MAJOR_SOVERSION 1) +set(SYSREPO_MINOR_SOVERSION 0) +set(SYSREPO_MICRO_SOVERSION 0) +set(SYSREPO_SOVERSION_FULL ${SYSREPO_MAJOR_SOVERSION}.${SYSREPO_MINOR_SOVERSION}.${SYSREPO_MICRO_SOVERSION}) +set(SYSREPO_SOVERSION ${SYSREPO_MAJOR_SOVERSION}) + # options if((CMAKE_BUILD_TYPE_LOWER STREQUAL debug) OR (CMAKE_BUILD_TYPE_LOWER STREQUAL package)) option(ENABLE_TESTS "Build tests" ON) @@ -122,7 +133,7 @@ set(CMAKE_POSITION_INDEPENDENT_CODE TRUE) add_library(srobj OBJECT ${LIB_SRC}) set_target_properties(srobj PROPERTIES COMPILE_FLAGS "-fvisibility=hidden") add_library(sysrepo SHARED $<TARGET_OBJECTS:srobj>) -set_target_properties(sysrepo PROPERTIES VERSION ${SYSREPO_VERSION} SOVERSION ${SYSREPO_SOVERSION}) +set_target_properties(sysrepo PROPERTIES VERSION ${SYSREPO_VERSION} SOVERSION ${SYSREPO_SOVERSION_FULL}) # dependencies target_link_libraries(sysrepo rt)
Update another gmtime call.
@@ -214,7 +214,7 @@ server_log_to_file( *bufptr; /* Pointer into buffer */ ssize_t bytes; /* Number of bytes in message */ struct timeval curtime; /* Current time */ - struct tm *curdate; /* Current date and time */ + struct tm curdate; /* Current date and time */ static const char * const pris[] = /* Log priority strings */ { "<63>", /* Error message */ @@ -226,10 +226,10 @@ server_log_to_file( #ifdef _WIN32 _cups_gettimeofday(&curtime, NULL); time_t tv_sec = (time_t)curtime.tv_sec; - curdate = gmtime(&tv_sec); + gmtime_s(&tv_sec, &curdate); #else gettimeofday(&curtime, NULL); - curdate = gmtime(&curtime.tv_sec); + gmtime_r(&curtime.tv_sec, &curdate); #endif /* _WIN32 */ if (LogFile) @@ -238,7 +238,7 @@ server_log_to_file( * When logging to a file, use the syslog format... */ - snprintf(buffer, sizeof(buffer), "%s1 %04d-%02d-%02dT%02d:%02d:%02d.%03dZ %s ippserver %d - ", pris[level], curdate->tm_year + 1900, curdate->tm_mon + 1, curdate->tm_mday, curdate->tm_hour, curdate->tm_min, curdate->tm_sec, (int)curtime.tv_usec / 1000, ServerName, getpid()); + snprintf(buffer, sizeof(buffer), "%s1 %04d-%02d-%02dT%02d:%02d:%02d.%03dZ %s ippserver %d - ", pris[level], curdate.tm_year + 1900, curdate.tm_mon + 1, curdate.tm_mday, curdate.tm_hour, curdate.tm_min, curdate.tm_sec, (int)curtime.tv_usec / 1000, ServerName, getpid()); } else { @@ -246,7 +246,7 @@ server_log_to_file( * Otherwise just include the date and time for convenience... */ - snprintf(buffer, sizeof(buffer), "%04d-%02d-%02dT%02d:%02d:%02d.%03dZ ", curdate->tm_year + 1900, curdate->tm_mon + 1, curdate->tm_mday, curdate->tm_hour, curdate->tm_min, curdate->tm_sec, (int)curtime.tv_usec / 1000); + snprintf(buffer, sizeof(buffer), "%04d-%02d-%02dT%02d:%02d:%02d.%03dZ ", curdate.tm_year + 1900, curdate.tm_mon + 1, curdate.tm_mday, curdate.tm_hour, curdate.tm_min, curdate.tm_sec, (int)curtime.tv_usec / 1000); } bufptr = buffer + strlen(buffer);
tests/run-tests: Improve crash reporting when running on remote targets. It is very useful to know the actual error when debugging why a test fails.
@@ -143,8 +143,11 @@ def run_micropython(pyb, args, test_file, is_special=False): pyb.enter_raw_repl() try: output_mupy = pyb.execfile(test_file) - except pyboard.PyboardError: + except pyboard.PyboardError as e: had_crash = True + if not is_special and e.args[0] == 'exception': + output_mupy = e.args[1] + e.args[2] + b'CRASH' + else: output_mupy = b'CRASH' # canonical form for all ports/platforms is to use \n for end-of-line
docs/conf: Version 2.11.0.19.
@@ -74,7 +74,7 @@ copyright = '2014-2019, Damien P. George, Paul Sokolovsky, and contributors' # # We don't follow "The short X.Y version" vs "The full version, including alpha/beta/rc tags" # breakdown, so use the same version identifier for both to avoid confusion. -version = release = '2.11.0.18' +version = release = '2.11.0.19' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.
Rephrase to match docs on github
@@ -9,7 +9,7 @@ AppScope is a single binary download with three components: a command-line inter There are two ways to "scope" an application: 1. Attach AppScope to a running process. -1. Configure the AppScope library to be loaded when the process starts. +1. Scope a new process. ### The Command Line Interface (CLI) @@ -22,6 +22,11 @@ To scope a running process whose process ID (PID) is `12345`: ``` scope attach 12345 ``` +To scope a new process, for example the `top` program: + +``` +scope top +``` ### The Loader
Enable Back Windows ASAN Testing
@@ -604,7 +604,8 @@ stages: platform: windows tls: schannel logProfile: Full.Light - extraTestArgs: -Filter -*ValidateConfiguration:*ValidAlpnLengths:*ResumeRejection*:*ClientCertificate*:*LoadBalanced*:TlsTest.InProc* + extraArtifactDir: '_Sanitize' + extraTestArgs: -ExtraArtifactDir Sanitize -Filter -*ValidateConfiguration:*ValidAlpnLengths:*ResumeRejection*:*ClientCertificate*:*LoadBalanced*:TlsTest.InProc* - template: ./templates/run-bvt.yml parameters: pool: MsQuic-Win-Latest @@ -680,6 +681,8 @@ stages: platform: windows tls: schannel allocFail: 100 + extraArtifactDir: '_Sanitize' + extraTestArgs: -ExtraArtifactDir Sanitize - template: ./templates/run-spinquic.yml parameters: image: windows-2022
Change int to int64_t inside orka_iso8601_to_unix_ms
@@ -113,7 +113,7 @@ orka_iso8601_to_unix_ms(char *timestamp, size_t len, void *p_data) tm.tm_mon--; // struct tm takes month from 0 to 11 tm.tm_year -= 1900; // struct tm takes years from 1900 - int res = (((int64_t) mktime(&tm) - timezone) * 1000) + int64_t res = (((int64_t) mktime(&tm) - timezone) * 1000) + (int64_t) round(seconds * 1000.0); switch (tz_operator) { case '+': // Add hours and minutes