message
stringlengths
6
474
diff
stringlengths
8
5.22k
lwip-2.0.2: always use the force option for barrelfish pbuf header
@@ -244,7 +244,7 @@ pbuf_header_impl(struct pbuf *p, s16_t header_size_increment, u8_t force) u8_t pbuf_header(struct pbuf *p, s16_t header_size_increment) { - return pbuf_header_impl(p, header_size_increment, 0); + return pbuf_header_impl(p, header_size_increment, 1); } /**
reverted macOS_gcc10.yml
@@ -53,9 +53,7 @@ jobs: swig \ yajl \ zeromq - brew install openjdk@11 - ln -sfn /usr/local/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk - export PATH="/usr/local/opt/openjdk@11/bin:$PATH" + brew install --cask adoptopenjdk - name: Setup Build Environment run: |
use cudagdb for cuda programs
@@ -78,3 +78,13 @@ rule("cuda.env") target:add("includedirs", cuda.includedirs) end) + before_run(function (target) + import("core.project.config") + import("lib.detect.find_tool") + + local debugger = config.get("debugger") + if not debugger and find_tool("cudagdb") then + config.set("debugger", "cudagdb") + end + end) +
esp_http_client: fix redirect by resetting location before parsing Closes
@@ -512,6 +512,10 @@ static esp_err_t esp_http_client_prepare(esp_http_client_handle_t client) client->process_again = 0; client->response->data_process = 0; client->first_line_prepared = false; + if (client->location != NULL) { + free(client->location); + client->location = NULL; + } http_parser_init(client->parser, HTTP_RESPONSE); if (client->connection_info.username) { char *auth_response = NULL;
peview: Remove unused win10 sets support
@@ -158,10 +158,6 @@ INT CALLBACK PvpPropSheetProc( PhSetWindowContext(hwndDlg, UCHAR_MAX, context); SetWindowLongPtr(hwndDlg, GWLP_WNDPROC, (LONG_PTR)PvpPropSheetWndProc); - // HACK HACK HACK - if (WindowsVersion >= WINDOWS_10_RS3) - PhSetWindowStyle(hwndDlg, WS_POPUP, 0); - if (MinimumSize.left == -1) { RECT rect;
Split the "contains" test into "start" and "contains"
@@ -40,13 +40,16 @@ describe("Pallene lexer", function() it("can lex some keywords", function() assert_lex("and", {"and"}, {}) + assert_lex("else", {"else"}, {}) + assert_lex("if", {"if"}, {}) assert_lex("function", {"function"}, {}) end) - it("can lex keywords that contain other keywords", function() - assert_lex("if", {"if"}, {}) - assert_lex("else", {"else"}, {}) + it("can lex keywords that start with other keywords", function() assert_lex("elseif", {"elseif"}, {}) + end) + + it("can lex keywodds that contain other keywords", function() assert_lex("record", {"record"}, {}) -- (contains "or") end)
src: Restructure parts of the website
"path": "doc/BIGPICTURE.md" } }, - { - "name": "Meta-Specification", - "type": "staticfile", - "options": { - "path": "doc/METADATA.ini" - } - }, { "name": "FAQ", "type": "staticfile", }] }, { - "name": "Keynames", + "name": "Installation", "type": "staticlist", - "ref": "keynames", - "dev-comment": "", + "ref": "installation", "children": [{ - "name": "keynames", + "name": "Installation", "type": "staticfile", "options": { - "path": "doc/KEYNAMES.md" + "path": "doc/INSTALL.md" } - }] + + }], + "dev-comment": "" }, { "name": "Compiling", "options": { "path": "doc/VERSION.md" } + } + ] }, { "name": "Tutorials", - "type": "staticref", + "type": "parsereadme", + "ref": "tutorials", "options": { - "path": "tutorials" - } + "path": "doc/tutorials/README.md", + "target_file": [], + "parsing": { + "section_regex": "## ([^#]+)", + "entry_regex": "^\\- \\[(.+)\\]\\(([^\\)]+)\\)(.*)" + }, + "name": { + "make_pretty": false } - ] + }, + "dev-comment": "Names are already pretty in the linked readme, we do not have to change them." }, { "name": "Examples",
make: cortex-a7: pass valid -mfpu Correct fpu flag is needed for successful build in case of multi-lib toolchain
@@ -20,7 +20,7 @@ ifneq (, $(findstring arm-, $(TARGET))) CC = $(CROSS)gcc CFLAGS += -Wall -Wstrict-prototypes -I$(SRCDIR) -nostartfiles -nostdlib\ - -mcpu=cortex-a7 -mtune=cortex-a7 -mfloat-abi=hard -mthumb -mthumb-interwork\ + -mcpu=cortex-a7 -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -mthumb -mthumb-interwork\ -fomit-frame-pointer -ffreestanding -mno-unaligned-access\ -DVERSION=\"$(VERSION)\" -DCORE_VERSION=\"$(CORE_VERSION)\" -DAPP_VERSION=\"$(APP_VERSION)\" -DHAL=\"hal//arm//hal.h\"
parser: Use platform slashes to fix the Windows build (whoops).
@@ -689,30 +689,42 @@ static void link_module_to(lily_module_entry *target, lily_module_entry *to_link target->module_chain = new_link; } +#define PACKAGE_DIR LILY_PATH_SLASH "packages" LILY_PATH_SLASH + +#define FIRST_PATH "%s" LILY_PATH_SLASH "%s.lily" +#define SECOND_PATH "%s" LILY_PATH_SLASH "%s." LILY_LIB_SUFFIX +#define THIRD_PATH "%s" PACKAGE_DIR "%s" LILY_PATH_SLASH "%s.lily" +#define FOURTH_PATH "%s" PACKAGE_DIR "%s" LILY_PATH_SLASH "%s." LILY_LIB_SUFFIX + void lily_default_import_func(lily_state *s, const char *root, const char *source, const char *name) { lily_msgbuf *msgbuf = lily_get_clean_msgbuf(s); const char *path; - path = lily_mb_sprintf(msgbuf, "%s/%s.lily", source, name); + path = lily_mb_sprintf(msgbuf, FIRST_PATH, source, name); if (lily_load_file(s, path)) return; - path = lily_mb_sprintf(msgbuf, "%s/%s." LILY_LIB_SUFFIX, source, name); + path = lily_mb_sprintf(msgbuf, SECOND_PATH, source, name); if (lily_load_library(s, path)) return; - path = lily_mb_sprintf(msgbuf, "%s/packages/%s/%s.lily", root, name, name); + path = lily_mb_sprintf(msgbuf, THIRD_PATH, root, name, name); if (lily_load_file(s, path)) return; - path = lily_mb_sprintf(msgbuf, "%s/packages/%s/%s." LILY_LIB_SUFFIX, root, - name, name); + path = lily_mb_sprintf(msgbuf, FOURTH_PATH, root, name, name); if (lily_load_library(s, path)) return; } +#undef PACKAGE_DIR +#undef FIRST_PATH +#undef SECOND_PATH +#undef THIRD_PATH +#undef FOURTH_PATH + static lily_module_entry *load_module(lily_parse_state *parser, const char *name) {
Return an error from mbedtls_ssl_handshake_step() if neither client nor server This prevents an infinite loop in mbedtls_ssl_handshake(). Fixes
@@ -3243,6 +3243,10 @@ int mbedtls_ssl_handshake_step( mbedtls_ssl_context *ssl ) if( ret != 0 ) goto cleanup; + /* If ssl->conf->endpoint is not one of MBEDTLS_SSL_IS_CLIENT or + * MBEDTLS_SSL_IS_SERVER, this is the return code we give */ + ret = MBEDTLS_ERR_SSL_BAD_INPUT_DATA; + #if defined(MBEDTLS_SSL_CLI_C) if( ssl->conf->endpoint == MBEDTLS_SSL_IS_CLIENT ) {
debug: num_bl(oc)ks is rename to ACK Block Count with draft-08
@@ -288,8 +288,8 @@ void print_frame(ngtcp2_dir dir, const ngtcp2_frame *fr) { case NGTCP2_FRAME_ACK: { print_indent(); fprintf(outfile, - "num_blks=%zu largest_ack=%" PRIu64 " ack_delay=%" PRIu64 "\n", - fr->ack.num_blks, fr->ack.largest_ack, fr->ack.ack_delay); + "largest_ack=%" PRIu64 " ack_delay=%" PRIu64 " ack_block_count=%zu\n", + fr->ack.largest_ack, fr->ack.ack_delay, fr->ack.num_blks); print_indent(); auto largest_ack = fr->ack.largest_ack; auto min_ack = fr->ack.largest_ack - fr->ack.first_ack_blklen;
revert back to building via github tarball
@@ -11,9 +11,9 @@ License: MIT URL: https://github.com/indigo-dc/oidc-agent # use `make rpmsource` to generate the required tarball #Source0: https://github.com/indigo-dc/oidc-agent/archive/refs/heads/master.zip -Source0: https://github.com/indigo-dc/oidc-agent/archive/refs/heads/docker-builds.zip +#Source0: https://github.com/indigo-dc/oidc-agent/archive/refs/heads/docker-builds.zip #Source0: oidc-agent-4.1.1.tar.gz - +Source0: https://github.com/indigo-dc/oidc-agent/archive/refs/tags/v%{version}.tar.gz BuildRequires: gcc >= 4.8 BuildRequires: libcurl-devel >= 7.29 @@ -121,7 +121,7 @@ dialog windows. It uses yad to create windows. %prep -%setup -n oidc-agent-docker-builds +%setup -q %build export USE_CJSON_SO=0
try bootstrapping libstdc++ on sles
@@ -98,7 +98,7 @@ cp /etc/zypp/zypp.conf $SINGULARITY_ROOTFS/$ZYPP_CONF echo 'cachedir=/var/cache/zypp-bootstrap' >> "$SINGULARITY_ROOTFS/$ZYPP_CONF" cp /etc/zypp/repos.d/* $SINGULARITY_ROOTFS/$ZYPP_CONF_DIRNAME/repos.d/. -if ! eval "$INSTALL_CMD -c $SINGULARITY_ROOTFS/$ZYPP_CONF --root $SINGULARITY_ROOTFS --gpg-auto-import-keys -n install --auto-agree-with-licenses sles-release coreutils $INSTALLPKGS"; then +if ! eval "$INSTALL_CMD -c $SINGULARITY_ROOTFS/$ZYPP_CONF --root $SINGULARITY_ROOTFS --gpg-auto-import-keys -n install --auto-agree-with-licenses sles-release coreutils libstdc++-devel $INSTALLPKGS"; then message ERROR "Bootstrap failed... exiting\n" ABORT 255 fi
set debug loglevel
@@ -320,6 +320,7 @@ func Start(filename string) error { filePerms := os.FileMode(0644) internal.CreateLogFile(filepath.Join("/tmp/scope.log"), filePerms) + internal.SetDebug() cfgData, err := ioutil.ReadFile(filename) if err != nil {
Clarify line length policy
@@ -199,7 +199,7 @@ There are many advantages to using a single sentence per line mostly having to d This practice, of course, does not apply to source code. It applies only to ascii files that are intended to represent, more or less, human readable prose. Going forward, we will not reformat existing documentation to a sentence per line en masse. -However, when updates to documentation are made we will encourage developers to follow this practice and request changes in PRs when it is not followed. +However, when updating any *existing* paragraph or adding new paragraphs, we will encourage developers to follow this practice for the *whole* paragraph and request changes in PRs when it is not followed. .. _contributing_images:
Update config template to include multicast module
@@ -962,6 +962,7 @@ int config_write_template(const char *file, const struct config *cfg) (void)re_fprintf(f, "#module_app\t\t" "ctrl_tcp" MOD_EXT "\n"); (void)re_fprintf(f, "module_app\t\t" "vidloop"MOD_EXT"\n"); (void)re_fprintf(f, "#module_app\t\t" "httpreq"MOD_EXT"\n"); + (void)re_fprintf(f, "#module_app\t\t" "multicast"MOD_EXT"\n"); (void)re_fprintf(f, "\n"); (void)re_fprintf(f, "\n#------------------------------------"
Fix gplogfilter csv generation The result of gplogfilter is ambiguously perceived by parsers. To fix this, the standard csv.writer class is used to generate csv.
@@ -42,11 +42,15 @@ Module contents: spiffInterval() - get begin/end datetime given any subset of begin/end/duration """ +import io +import csv from datetime import date, datetime import re import sys import time +csvDelimeter = '|' + timestampPattern = re.compile(r'\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d(\.\d*)?') # This pattern matches the date and time stamp at the beginning of a line # in a GPDB log file. The timestamp format is: YYYY-MM-DD HH:MM:SS[.frac] @@ -264,6 +268,8 @@ class CsvFlatten(object): def __init__(self,iterable): self.source = iter(iterable) + self.buffer = io.StringIO() + self.writer = csv.writer(self.buffer, delimiter=csvDelimeter, quotechar='"', quoting=csv.QUOTE_MINIMAL) def __iter__(self): return self @@ -273,8 +279,11 @@ class CsvFlatten(object): #we need to make a minor format change to the log level field so that # our single regex will match both. item[16] = item[16] + ": " - return '|'.join(item) + "\n" + self.buffer.truncate(0) + self.writer.writerow(item) + + return self.buffer.getvalue() #------------------------------- Spying -------------------------------- @@ -697,13 +706,13 @@ def MatchColumns(iterable, cols): n = 1 out = [] - for c in s.split('|'): + for c in csv.reader(s, delimiter=csvDelimeter, quotechar='"'): if n in cols: out.append(c) n += 1 if len(out): #print out - ret.append('|'.join(out) + "\n") + ret.append(csvDelimeter.join(out) + "\n") yield ret #-------------------------------- Slicing --------------------------------
latex fix; removed exta {
@@ -697,7 +697,7 @@ where the angular lensing convergence power spectrum $C^{ab}_\ell$ is given abov Note that, in the above, ``Galaxy'' and ``Lensing'' can be replaced by any spin-0 and spin-2 fields on the sphere respectively (e.g. the CMB lensing convergence would play the same role as the galaxy overdensity field in all the formulas above). -{In addition to the angular correlation functions, the 3-dimensional spatial correlation function $\xi(r)$ is also calculated from the power spectrum $P(k)$ using +In addition to the angular correlation functions, the 3-dimensional spatial correlation function $\xi(r)$ is also calculated from the power spectrum $P(k)$ using \begin{equation} \xi(r) = \frac{1}{2 \pi^2} \int dk \; k^2 P(k) \frac{\sin(kr)}{kr} \end{equation}
Do not require Perl for MSVC if CMake >= 3.4
@@ -119,7 +119,9 @@ endif () # Only generate .def for dll on MSVC and always produce pdb files for debug and release if(MSVC) + if (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} LESS 3.4) set(OpenBLAS_DEF_FILE "${PROJECT_BINARY_DIR}/openblas.def") + endif() set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /Zi") set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /DEBUG /OPT:REF /OPT:ICF") endif() @@ -141,7 +143,15 @@ endif() # add objects to the openblas lib add_library(${OpenBLAS_LIBNAME} ${LA_SOURCES} ${LAPACKE_SOURCES} ${TARGET_OBJS} ${OpenBLAS_DEF_FILE}) +# Handle MSVC exports +if(MSVC AND BUILD_SHARED_LIBS) + if (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} LESS 3.4) include("${PROJECT_SOURCE_DIR}/cmake/export.cmake") + else() + # Creates verbose .def file (51KB vs 18KB) + set_target_properties(${OpenBLAS_LIBNAME} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS true) + endif() +endif() # Set output for libopenblas set_target_properties( ${OpenBLAS_LIBNAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib) @@ -164,7 +174,6 @@ if (USE_THREAD) set_property(TARGET ${OpenBLAS_LIBNAME} PROPERTY COMPILE_OPTIONS "-pthread") set_property(TARGET ${OpenBLAS_LIBNAME} PROPERTY INTERFACE_COMPILE_OPTIONS "-pthread") endif() - message("PTHREAD: ${CMAKE_THREAD_LIBS_INIT}") target_link_libraries(${OpenBLAS_LIBNAME} ${CMAKE_THREAD_LIBS_INIT}) endif()
fix newline bug in prompt
package cmd import ( + "bufio" "fmt" "os" @@ -20,19 +21,22 @@ func sessionByID(id int) history.SessionList { } sessionCount := len(sessions) if sessionCount != 1 { - util.ErrAndExit("error expected a single session, saw: %d", sessionCount) + util.ErrAndExit("Session not found. Session count: %d", sessionCount) } return sessions } func promptClean(sl history.SessionList) { - fmt.Print("Invalid session, likely an invalid command was scoped or a session file was modified. Would you like to delete this session? (default: yes) [y/n] ") - var response string - _, err := fmt.Scanf("%s", &response) - util.CheckErrSprintf(err, "error reading response: %v", err) - if !(response == "n" || response == "no") { - sl.Remove() + fmt.Println("Invalid session, likely an invalid command was scoped or a session file was modified. Would you like to delete this session? (y/yes)") + in := bufio.NewScanner(os.Stdin) + in.Scan() + response := in.Text() + if !(response == "y" || response == "yes") { + fmt.Println("No action taken") + os.Exit(0) } + sl.Remove() + fmt.Println("Deleted session.") os.Exit(0) }
PR pipeline: use 'version: every' for downstream jobs
@@ -136,6 +136,7 @@ jobs: - get: bin_gpdb resource: bin_gpdb_centos passed: [compile_gpdb_centos6] + version: every trigger: true - get: centos-gpdb-dev-6 - task: ic_gpdb @@ -164,6 +165,7 @@ jobs: - get: bin_gpdb resource: bin_gpdb_centos passed: [compile_gpdb_centos6] + version: every trigger: true - get: centos-gpdb-dev-6 - task: ic_gpdb @@ -192,6 +194,7 @@ jobs: - get: bin_gpdb resource: bin_gpdb_centos passed: [compile_gpdb_centos6] + version: every trigger: true - get: centos-gpdb-dev-6 - task: MU_check_centos
Change defaults for Particle
#ifndef m3_config_h #define m3_config_h +//TODO: move to a separate file +# if defined(PARTICLE) +# define d_m3LogOutput false +# define d_m3MaxFunctionStackHeight 256 +# endif + # if defined(__clang__) # define M3_COMPILER_CLANG 1 # elif defined(__GNUC__) || defined(__GNUG__)
.gitattributes: Remove special text handling of stm32 usbdev files.
tests/basics/string_cr_conversion.py -text tests/basics/string_crlf_conversion.py -text ports/stm32/pybcdc.inf_template -text -ports/stm32/usbd_* -text -ports/stm32/usbdev/** -text ports/stm32/usbhost/** -text ports/cc3200/hal/aes.c -text ports/cc3200/hal/aes.h -text
travis CHANGE move to Ubuntu Xenial (16.04)
language: c sudo: required -dist: trusty +dist: xenial branches: only: - libyang2 @@ -34,7 +34,7 @@ jobs: branch_pattern: libyang2 before_install: # check if something changed from the last coverity build - - if [ `git rev-parse HEAD` = `cat $HOME/cache/coveritybuild` ]; then echo "Codebase did not change from previous build."; travis_terminate 0; fi + - if [ "`git rev-parse HEAD`" = "`cat $HOME/cache/coveritybuild`" ]; then echo "Codebase did not change from previous build."; travis_terminate 0; fi - if [ ! -d $HOME/cache ]; then mkdir -p $HOME/cache; fi - git rev-parse HEAD > $HOME/cache/coveritybuild # get everything for coverity
lib/libc/lib_localtime : Fix miscalculation on strncpy On converting from strcpy to strncpy, should apply "+1" for null termination.
@@ -536,9 +536,9 @@ static int tzload(FAR const char *name, FAR struct state_s *const sp, const int goto oops; } - strncpy(fullname, p, p_len); + strncpy(fullname, p, p_len + 1); strncat(fullname, "/", strlen("/")); - strncat(fullname, name, name_len + 1); + strncat(fullname, name, name_len); /* Set doaccess if '.' (as in "../") shows up in name. */
Testing: Remove information about crypto variants
@@ -11,8 +11,6 @@ doc/help/kdb-get.md for INI We disabled the tests -- `testmod_crypto_botan`, -- `testmod_crypto_openssl`, - `testmod_dbus`, - `testmod_dbusrecv`, - `testmod_fcrypt`, @@ -98,8 +96,6 @@ ASAN disables the following parts during cmake as they throw errors: - SWIG - GLIB - IO (+async notification example) -- plugins: - - crypto_botan Further kdb_check_internal skips tests that output sanitizer warnings during load as it would make the test fail.
Allow overriding CMAKE_POSITION_INDEPENDENT_CODE from command line MIPS EABI that is used for i.a. psp doesn't support PIC, so we need to disable it when compiling PSP version
@@ -119,7 +119,9 @@ endif() set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) +if (NOT DEFINED CMAKE_POSITION_INDEPENDENT_CODE) set(CMAKE_POSITION_INDEPENDENT_CODE ON) +endif() if(MSVC)
better summary output
@@ -1911,7 +1911,7 @@ if(mp0c != 0) if(mp1c != 0) { printf("message pair M14E4...............: %lld", mp1c); - if(mp80c != 0) + if(mp81c != 0) { printf(" (warning: %lld not replaycount checked)", mp81c); } @@ -1920,7 +1920,7 @@ if(mp1c != 0) if(mp2c != 0) { printf("message pair M32E2...............: %lld", mp2c); - if(mp80c != 0) + if(mp82c != 0) { printf(" (warning: %lld not replaycount checked)", mp82c); } @@ -1929,7 +1929,7 @@ if(mp2c != 0) if(mp3c != 0) { printf("message pair M32E3...............: %lld", mp3c); - if(mp80c != 0) + if(mp83c != 0) { printf(" (warning: %lld not replaycount checked)", mp83c); } @@ -1938,7 +1938,7 @@ if(mp3c != 0) if(mp4c != 0) { printf("message pair M34E3...............: %lld", mp4c); - if(mp80c != 0) + if(mp84c != 0) { printf(" (warning: %lld not replaycount checked)", mp84c); } @@ -1947,7 +1947,7 @@ if(mp4c != 0) if(mp5c != 0) { printf("message pair M34E4...............: %lld", mp5c); - if(mp80c != 0) + if(mp85c != 0) { printf(" (warning: %lld not replaycount checked)", mp85c); }
rpc: error code nit
@@ -32,8 +32,9 @@ ssize_t crpc_send_one(struct crpc_session *s, struct crpc_hdr chdr; ssize_t ret; - if (len > SRPC_BUF_SIZE) - return -ENOBUFS; + /* implementation is currently limited to a maximum payload size */ + if (unlikely(len > SRPC_BUF_SIZE)) + return -E2BIG; /* adjust the window */ if (atomic_read(&s->win_used) >= s->win_avail)
sse2: correct typos in simde_x_mm_broadcastlow_pd Correct typos:- inpu -> input altivec_s64 -> altivec_f64. Also remove duplicate SIMDE_ARM_NEON_A64V8_NATIVE case.
@@ -707,7 +707,7 @@ simde_mm_move_sd (simde__m128d a, simde__m128d b) { SIMDE_FUNCTION_ATTRIBUTES simde__m128d simde_x_mm_broadcastlow_pd(simde__m128d a) { - /* This function broadcasts the first element in the inpu vector to + /* This function broadcasts the first element in the input vector to * all lanes. It is used to avoid generating spurious exceptions in * *_sd functions since there may be garbage in the upper lanes. */ @@ -720,10 +720,8 @@ simde_x_mm_broadcastlow_pd(simde__m128d a) { #if defined(SIMDE_ARM_NEON_A64V8_NATIVE) r_.neon_f64 = vdupq_laneq_f64(a_.neon_f64, 0); - #elif defined(SIMDE_ARM_NEON_A64V8_NATIVE) - r_.neon_i64 = vdupq_laneq_s64(a_.neon_i64, 0); #elif defined(SIMDE_POWER_ALTIVEC_P7_NATIVE) - r_.altivec_s64 = vec_splat(a_.altivec_s64, 0); + r_.altivec_f64 = vec_splat(a_.altivec_f64, 0); #elif defined(SIMDE_SHUFFLE_VECTOR_) r_.f64 = SIMDE_SHUFFLE_VECTOR_(64, 16, a_.f64, a_.f64, 0, 0); #else
Initialize new go async API
@@ -30,6 +30,12 @@ type callSafeWork struct { ret chan callReturnSafeWork } +type callSafeAsyncWork struct { + function string + args []interface{} + ret chan callReturnSafeWork +} + const PtrSizeInBytes = (32 << uintptr(^uintptr(0)>>63)) >> 3 var queue = make(chan interface{}, 1) @@ -89,6 +95,11 @@ func Initialize() error { value, err := CallUnsafe(v.function, v.args...) v.ret <- callReturnSafeWork{value, err} } + case callSafeAsyncWork: + { + value, err := CallAwaitUnsafe(v.function, v.args...) + v.ret <- callReturnSafeWork{value, err} + } } wg.Done() } @@ -185,7 +196,8 @@ func CallAwaitUnsafe(function string, args ...interface{}) (interface{}, error) } })() - ret := C.metacallfv(cFunc, (*unsafe.Pointer)(cArgs)) + //ret := C.metacallfv(cFunc, (*unsafe.Pointer)(cArgs)) + ret := C.metacallfv_await(cFunc, (*unsafe.Pointer)(cArgs)) if ret != nil { defer C.metacall_value_destroy(ret) @@ -318,6 +330,22 @@ func Call(function string, args ...interface{}) (interface{}, error) { return result.value, result.err } +// CallAsync sends asynchronous work and blocks until it's processed +func CallAsync(function string, args ...interface{}) (interface{}, error) { + ret := make(chan callReturnSafeWork, 1) + w := callSafeAsyncWork{ + function: function, + args: args, + ret: ret, + } + wg.Add(1) + queue <- w + + result := <-ret + + return result.value, result.err +} + func DestroyUnsafe() { C.metacall_destroy() }
Now getting correct extents for vti files
@@ -543,6 +543,9 @@ avtVTKFileReader::ReadInFile(int _domain) // Kathleen Biagas, Fri Feb 6 06:00:16 PST 2015 // Added ability for parsing 'MeshName' field data from vtk file. // +// Matt Larsen, Fri Mar 2 09:00:15 PST 2018 +// Getting image data extents correctly from vti files +// // **************************************************************************** void @@ -687,9 +690,24 @@ avtVTKFileReader::ReadInDataset(int domain) // The old dataset passed in will be deleted, a new one will be // returned. // + if(pieceExtents[domain] == NULL && + dataset->GetDataObjectType() == VTK_IMAGE_DATA) + { + + vtkImageData *img = vtkImageData::SafeDownCast(dataset); + if(img) + { + int *ext = img->GetExtent(); + dataset = ConvertStructuredPointsToRGrid((vtkStructuredPoints*)dataset, + ext); + } + } + else + { dataset = ConvertStructuredPointsToRGrid((vtkStructuredPoints*)dataset, pieceExtents[domain]); } + } if(dataset->GetDataObjectType() == VTK_RECTILINEAR_GRID) {
unclear the blacklist.
@@ -650,6 +650,9 @@ uint16_t neighbors_getLinkMetric(uint8_t index) { ){ // PDR too low, put the neighbor in blacklist neighbors_vars.neighbors[index].inBlacklist = TRUE; + } else { + // Remove the neighbor from blacklist + neighbors_vars.neighbors[index].inBlacklist = FALSE; } } return rankIncrease;
nacm BUGFIX invalid index use Fixes
@@ -223,12 +223,15 @@ cleanup_unlock: } static struct sr_nacm_group * -sr_nacm_group_find(const char *group_name) +sr_nacm_group_find(const char *group_name, uint32_t *idx) { uint32_t i; for (i = 0; i < nacm.group_count; ++i) { if (!strcmp(nacm.groups[i].name, group_name)) { + if (idx) { + *idx = i; + } return &nacm.groups[i]; } } @@ -246,7 +249,7 @@ sr_nacm_group_cb(sr_session_ctx_t *session, uint32_t UNUSED(sub_id), const char const struct lyd_node *node; const char *group_name, *user_name; struct sr_nacm_group *group = NULL; - uint32_t i; + uint32_t i, j; char *xpath2; int rc; void *mem; @@ -292,18 +295,19 @@ sr_nacm_group_cb(sr_session_ctx_t *session, uint32_t UNUSED(sub_id), const char break; case SR_OP_DELETED: /* find it */ - group = sr_nacm_group_find(group_name); + group = sr_nacm_group_find(group_name, &j); assert(group && nacm.group_count); - /* delete it */ + /* delete all group users */ free(group->name); for (i = 0; i < group->user_count; ++i) { free(group->users[i]); } free(group->users); + /* delete the group */ --nacm.group_count; - if (i < nacm.group_count) { + if (j < nacm.group_count) { memcpy(group, &nacm.groups[nacm.group_count], sizeof *group); } if (!nacm.group_count) { @@ -322,7 +326,7 @@ sr_nacm_group_cb(sr_session_ctx_t *session, uint32_t UNUSED(sub_id), const char } else { /* name must be present */ assert(!strcmp(node->parent->child->schema->name, "name")); - group = sr_nacm_group_find(lyd_get_value(node->parent->child)); + group = sr_nacm_group_find(lyd_get_value(node->parent->child), NULL); if (!strcmp(node->schema->name, "user-name")) { if ((op == SR_OP_DELETED) && !group) {
ws_socket(): check socket() call for failure
@@ -2650,7 +2650,8 @@ ws_socket (int *listener) { FATAL ("Unable to set server: %s.", gai_strerror (errno)); /* Create a TCP socket. */ - *listener = socket (ai->ai_family, ai->ai_socktype, ai->ai_protocol); + if ((*listener = socket (ai->ai_family, ai->ai_socktype, ai->ai_protocol)) == -1) + FATAL ("Unable to open socket: %s.", strerror (errno)); /* Options */ if (setsockopt (*listener, SOL_SOCKET, SO_REUSEADDR, &ov, sizeof (ov)) == -1)
iOS: fix image rotation issue
*/ } + + // normalize orientation + if ([theImage imageOrientation] != UIImageOrientationUp) { + + CGImageRef cgImage = [img CGImage]; + CGColorSpaceRef rgb_space = CGColorSpaceCreateDeviceRGB(); + + int curWidth = CGImageGetWidth(cgImage); + int curHeight = CGImageGetHeight(cgImage); + + int newWidth = curWidth; + int newHeight = curHeight; + + if (([theImage imageOrientation] == UIImageOrientationLeft) || ([theImage imageOrientation] == UIImageOrientationRight)) { + newWidth = curHeight; + newHeight = curWidth; + } + + void * data = malloc(newWidth*newHeight*4); + + CGContextRef cgContext = CGBitmapContextCreate( data, + newWidth, + newHeight, + 8, + newWidth*4, + rgb_space, + kCGImageAlphaNoneSkipLast); + + CGFloat rotation = 0.0; + + if ([theImage imageOrientation] == UIImageOrientationLeft) { + rotation = 90.0 * M_PI / 180.0; + } + if ([theImage imageOrientation] == UIImageOrientationRight) { + rotation = 270.0 * M_PI / 180.0; + } + if ([theImage imageOrientation] == UIImageOrientationDown) { + rotation = 180.0 * M_PI / 180.0; + } + + + CGContextTranslateCTM(cgContext, ((double)newWidth) / 2.0f, ((double)newHeight) / 2.0f); + CGContextRotateCTM(cgContext, rotation); + + + CGContextDrawImage(cgContext, CGRectMake(-(((double)curWidth) / 2.0f), -(((double)curHeight) / 2.0f), curWidth, curHeight), cgImage); + + CGImageRef rgbImage = CGBitmapContextCreateImage(cgContext); + //[img release]; + UIImage* newImg = [UIImage imageWithCGImage:rgbImage scale:1.0 orientation:UIImageOrientationUp]; + if (img != theImage) { + //[img release]; + } + img = newImg; + + CGColorSpaceRelease(rgb_space); + CGImageRelease(rgbImage); + CGContextRelease(cgContext); + free(data); + + } + + int imageWidth = (int)img.size.width; int imageHeight = (int)img.size.height;
Apply binding animation flag constants. Also adds experimental option to kill when frame match is unavailable.
@@ -21307,13 +21307,15 @@ void adjust_bind(entity *e) { if(e->binding.ent) { + if(e->binding.ani_bind) { if(e->animnum != e->binding.ent->animnum) { if(!validanim(e, e->binding.ent->animnum)) { - if(e->binding.ani_bind & 4) + // Don't have the animation? Kill ourself. + if(e->binding.ani_bind & BINDING_ANI_ANIMATION_KILL) { kill_entity(e); } @@ -21322,11 +21324,25 @@ void adjust_bind(entity *e) } ent_set_anim(e, e->binding.ent->animnum, 1); } - if(e->animpos != e->binding.ent->animpos && e->binding.ani_bind & 2) + + if(e->animpos != e->binding.ent->animpos && e->binding.ani_bind & BINDING_ANI_FRAME_MATCH) + { + // If we don't have the frame and frame kill flag is set, kill ourself. + if(e->animation[e->animnum].numframes < e->binding.ent->animation[e->binding.ent->animnum].numframes) { + if(e->binding.ani_bind & BINDING_ANI_FRAME_KILL) + { + kill_entity(e); + e->binding.ent = NULL; + return; + } + } + update_frame(e, e->binding.ent->animpos); } } + + if (e->binding.enable.z) e->position.z = e->binding.ent->position.z + e->binding.offset.z; if (e->binding.enable.y) e->position.y = e->binding.ent->position.y + e->binding.offset.y; e->sortid = e->binding.ent->sortid + e->binding.sortid;
* Fix astylerc
---style=java ---pad-header ---pad-oper ---unpad-paren ---indent=spaces=2 ---indent-classes ---indent-modifiers ---indent-preproc-define ---indent-col1-comments ---min-conditional-indent=0 ---max-instatement-indent=120 ---fill-empty-lines --align-pointer=name --align-reference=name ---convert-tabs --close-templates +--convert-tabs +--indent-classes +--indent-col1-comments +--indent-modifiers +--indent-preproc-define +--indent-switches +--indent=spaces=2 +--lineend=linux --max-code-length=120 +--max-instatement-indent=120 +--min-conditional-indent=0 --mode=c ---lineend=linux ---indent-switches +--pad-header +--pad-oper +--style=java +--unpad-paren
Adapt HMAC proof to new struct name in s2n_hash.h
@@ -60,7 +60,7 @@ let setup_hash_state pstate = do { u0 <- crucible_fresh_var "u" (llvm_array 16 (llvm_int 64)); num0 <- crucible_fresh_var "num" (llvm_int 32); md_len0 <- crucible_fresh_var "md_len" (llvm_int 32); - (_, pimpl) <- ptr_to_fresh "impl" (llvm_struct "struct.s2n_hash_implementation"); + (_, pimpl) <- ptr_to_fresh "impl" (llvm_struct "struct.s2n_hash"); crucible_points_to pstate (crucible_struct [ crucible_term alg0
Allow more error codes
@@ -112,6 +112,9 @@ static int conn_call_recv_crypto_data(ngtcp2_conn *conn, switch (rv) { case 0: case NGTCP2_ERR_CRYPTO: + case NGTCP2_ERR_REQUIRED_TRANSPORT_PARAM: + case NGTCP2_ERR_MALFORMED_TRANSPORT_PARAM: + case NGTCP2_ERR_TRANSPORT_PARAM: case NGTCP2_ERR_PROTO: case NGTCP2_ERR_CALLBACK_FAILURE: return rv;
arch:arm64: add support for nuttx arm64 Toolchain Selection Summary: 1. to enable Toolchain select Kconfig option, making something depend on the opton to be configured with menuconfig
if ARCH_ARM64 comment "ARM64 Options" +choice + prompt "ARM64 Toolchain Selection" + default ARM64_TOOLCHAIN_GNU_EABI + +config ARM64_TOOLCHAIN_GNU_EABI + bool "Generic GNU EABI toolchain" + select ARCH_TOOLCHAIN_GNU + ---help--- + This option should work for any modern GNU toolchain (GCC 4.5 or newer) + +config ARM64_TOOLCHAIN_CLANG + bool "LLVM Clang toolchain" + select ARCH_TOOLCHAIN_CLANG + +endchoice + choice prompt "ARM64 chip selection" default ARCH_CHIP_QEMU
11. demacrotizes %6, %7, %8, and %9
[%0 =(p.hed p.tal)] :: {$6 b/* c/* d/*} - $(fol =>(fol [2 [0 1] 2 [1 c d] [1 0] 2 [1 2 3] [1 0] 4 4 b])) + =+ ben=$(fol b.fol) + ?. ?=($0 -.ben) ben + ?: =(& p.ben) $(fol c.fol) + ?: =(| p.ben) $(fol d.fol) + [%2 tax] + :: + {$7 b/* c/*} + =+ ben=$(fol b.fol) + ?. ?=($0 -.ben) ben + $(sub p.ben, fol c.fol) :: - {$7 b/* c/*} $(fol =>(fol [2 b 1 c])) - {$8 b/* c/*} $(fol =>(fol [7 [[7 [0 1] b] 0 1] c])) - {$9 b/* c/*} $(fol =>(fol [7 c 2 [0 1] 0 b])) + {$8 b/* c/*} + =+ ben=$(fol b.fol) + ?. ?=($0 -.ben) ben + $(sub [p.ben sub], fol c.fol) + :: + {$9 b/* c/*} + =+ ben=$(fol c.fol) + ?. ?=($0 -.ben) ben + =. sub p.ben + =+ lof=$(fol [0 b.fol]) + ?. ?=($0 -.lof) lof + $(fol p.lof) :: {$10 {b/@ c/*} d/*} =+ bog=$(fol d.fol)
Remove sym references
@@ -87,6 +87,7 @@ lv_obj_t * lv_rotary_create(lv_obj_t * par, const lv_obj_t * copy) ext->sensitivity = 1; ext->threshold = 1; ext->dragging = false; + ext->type = LV_ROTARY_TYPE_NORMAL; lv_style_list_init(&ext->style_knob); /*The signal and design functions are not copied so set them here*/ @@ -110,8 +111,7 @@ lv_obj_t * lv_rotary_create(lv_obj_t * par, const lv_obj_t * copy) ext->sensitivity = copy_ext->sensitivity; ext->threshold = copy_ext->threshold; ext->dragging = copy_ext->dragging; - ext->sym = copy_ext->sym; - ext->reverse = copy_ext->reverse; + ext->type = copy_ext->type; lv_style_list_copy(&ext->style_knob, &copy_ext->style_knob); lv_obj_refresh_style(rotary, LV_OBJ_PART_ALL);
py/persistentcode: Enable persistent code saving for Windows ports.
@@ -756,7 +756,7 @@ void mp_raw_code_save(mp_raw_code_t *rc, mp_print_t *print) { // here we define mp_raw_code_save_file depending on the port // TODO abstract this away properly -#if defined(__i386__) || defined(__x86_64__) || defined(__unix__) +#if defined(__i386__) || defined(__x86_64__) || defined(_WIN32) || defined(__unix__) #include <unistd.h> #include <sys/stat.h>
board/vell/led.c: Format with clang-format BRANCH=none TEST=none
#define LED_ON_TIME_MS (1000 * MSEC) #define LED_ON_TICKS (LED_ON_TIME_MS / LED_TICK_INTERVAL_MS) -const enum ec_led_id supported_led_ids[] = { - EC_LED_ID_LEFT_LED, - EC_LED_ID_RIGHT_LED -}; +const enum ec_led_id supported_led_ids[] = { EC_LED_ID_LEFT_LED, + EC_LED_ID_RIGHT_LED }; const int supported_led_ids_count = ARRAY_SIZE(supported_led_ids); @@ -41,10 +39,7 @@ enum led_color { LED_COLOR_COUNT /* Number of colors, not a color itself */ }; -enum led_port { - RIGHT_PORT = 0, - LEFT_PORT -}; +enum led_port { RIGHT_PORT = 0, LEFT_PORT }; uint8_t bat_led_on; uint8_t bat_led_off; @@ -173,31 +168,39 @@ static void led_set_battery(void) */ if (led_auto_control_is_enabled(EC_LED_ID_RIGHT_LED)) { if (charge_get_percent() < BATT_LOW_BCT) - led_set_color_battery(RIGHT_PORT, - (battery_ticks % LED_TICKS_PER_CYCLE - < LED_ON_TICKS) ? LED_AMBER : LED_OFF); + led_set_color_battery( + RIGHT_PORT, + (battery_ticks % LED_TICKS_PER_CYCLE < + LED_ON_TICKS) ? + LED_AMBER : + LED_OFF); else led_set_color_battery(RIGHT_PORT, LED_OFF); } if (led_auto_control_is_enabled(EC_LED_ID_LEFT_LED)) { if (charge_get_percent() < BATT_LOW_BCT) - led_set_color_battery(LEFT_PORT, - (battery_ticks % LED_TICKS_PER_CYCLE - < LED_ON_TICKS) ? LED_AMBER : LED_OFF); + led_set_color_battery( + LEFT_PORT, + (battery_ticks % LED_TICKS_PER_CYCLE < + LED_ON_TICKS) ? + LED_AMBER : + LED_OFF); else led_set_color_battery(LEFT_PORT, LED_OFF); } break; case PWR_STATE_ERROR: if (led_auto_control_is_enabled(EC_LED_ID_RIGHT_LED)) { - led_set_color_battery(RIGHT_PORT, (battery_ticks & 0x1) - ? LED_AMBER : LED_OFF); + led_set_color_battery( + RIGHT_PORT, + (battery_ticks & 0x1) ? LED_AMBER : LED_OFF); } if (led_auto_control_is_enabled(EC_LED_ID_LEFT_LED)) { - led_set_color_battery(LEFT_PORT, (battery_ticks & 0x1) - ? LED_AMBER : LED_OFF); + led_set_color_battery(LEFT_PORT, (battery_ticks & 0x1) ? + LED_AMBER : + LED_OFF); } break; case PWR_STATE_CHARGE_NEAR_FULL: @@ -205,9 +208,11 @@ static void led_set_battery(void) break; case PWR_STATE_IDLE: /* External power connected in IDLE */ if (chflags & CHARGE_FLAG_FORCE_IDLE) - set_active_port_color((battery_ticks % - LED_TICKS_PER_CYCLE < LED_ON_TICKS) ? - LED_AMBER : LED_OFF); + set_active_port_color( + (battery_ticks % LED_TICKS_PER_CYCLE < + LED_ON_TICKS) ? + LED_AMBER : + LED_OFF); else set_active_port_color(LED_WHITE); break;
Temporarily add InternetChecksum_t for PSA, improve parser local var types
@@ -18,9 +18,13 @@ from hlir16.utils_hlir16 import * #[ #define __HEADER_INFO_H__ #[ #include <byteswap.h> +#[ #include <stdbool.h> #[ // TODO add documentation -#[ #define MODIFIED 1 +#[ #define MODIFIED true + +# TODO put this in a proper header +#[ typedef struct {} InternetChecksum_t; #{ typedef struct parsed_fields_s { @@ -302,7 +306,7 @@ for error in hlir16.objects['Type_Error']: #[ #[ // HW optimization related infos #[ // -------------------- -#[ #define OFFLOAD_CHECKSUM ${1 if []!=[x for x in hlir16.sc_annotations if x.name=='offload'] else 0} +#[ #define OFFLOAD_CHECKSUM ${'true' if []!=[x for x in hlir16.sc_annotations if x.name=='offload'] else 'false'} #[ // Parser state local vars @@ -310,11 +314,17 @@ for error in hlir16.objects['Type_Error']: parser = hlir16.objects['P4Parser'][0] -#[ typedef struct parser_state_s { +#{ typedef struct parser_state_s { for loc in parser.parserLocals: + if hasattr(loc.type, 'type_ref'): + if loc.type.type_ref.node_type == 'Type_Extern': + #[ ${loc.type.type_ref.name}_t ${loc.name}; + else: #[ uint8_t ${loc.name}[${loc.type.type_ref.byte_width}]; + else: + #[ uint8_t ${loc.name}[(${loc.type.size}+7)/8]; #[ uint8_t ${loc.name}_var; // Width of the variable width field -#[ } parser_state_t; +#} } parser_state_t; #[ #endif // __HEADER_INFO_H__
Utilities: Deduplication support for DeviceProperties
#include "ocvalidate.h" #include "OcValidateLib.h" +STATIC +BOOLEAN +DevPropsAddHasDuplication ( + IN CONST VOID *PrimaryEntry, + IN CONST VOID *SecondaryEntry + ) +{ + CONST OC_STRING *DevPropsAddPrimaryEntry; + CONST OC_STRING *DevPropsAddSecondaryEntry; + CONST CHAR8 *DevPropsAddPrimaryDevicePathString; + CONST CHAR8 *DevPropsAddSecondaryDevicePathString; + + DevPropsAddPrimaryEntry = *(CONST OC_STRING **) PrimaryEntry; + DevPropsAddSecondaryEntry = *(CONST OC_STRING **) SecondaryEntry; + DevPropsAddPrimaryDevicePathString = OC_BLOB_GET (DevPropsAddPrimaryEntry); + DevPropsAddSecondaryDevicePathString = OC_BLOB_GET (DevPropsAddSecondaryEntry); + + return StringIsDuplicated ("DeviceProperties->Add", DevPropsAddPrimaryDevicePathString, DevPropsAddSecondaryDevicePathString); +} + +STATIC +BOOLEAN +DevPropsDeleteHasDuplication ( + IN CONST VOID *PrimaryEntry, + IN CONST VOID *SecondaryEntry + ) +{ + CONST OC_STRING *DevPropsDeletePrimaryEntry; + CONST OC_STRING *DevPropsDeleteSecondaryEntry; + CONST CHAR8 *DevPropsDeletePrimaryDevicePathString; + CONST CHAR8 *DevPropsDeleteSecondaryDevicePathString; + + DevPropsDeletePrimaryEntry = *(CONST OC_STRING **) PrimaryEntry; + DevPropsDeleteSecondaryEntry = *(CONST OC_STRING **) SecondaryEntry; + DevPropsDeletePrimaryDevicePathString = OC_BLOB_GET (DevPropsDeletePrimaryEntry); + DevPropsDeleteSecondaryDevicePathString = OC_BLOB_GET (DevPropsDeleteSecondaryEntry); + + return StringIsDuplicated ("DeviceProperties->Delete", DevPropsDeletePrimaryDevicePathString, DevPropsDeleteSecondaryDevicePathString); +} + UINT32 CheckDeviceProperties ( IN OC_GLOBAL_CONFIG *Config @@ -58,8 +98,28 @@ CheckDeviceProperties ( ++ErrorCount; } } + + // + // Check duplicated properties in DeviceProperties->Delete[N]. + // + ErrorCount += FindArrayDuplication ( + UserDevProp->Delete.Values[DeviceIndex]->Values, + UserDevProp->Delete.Values[DeviceIndex]->Count, + sizeof (UserDevProp->Delete.Values[DeviceIndex]->Values[0]), + DevPropsDeleteHasDuplication + ); } + // + // Check duplicated entries in DeviceProperties->Delete. + // + ErrorCount += FindArrayDuplication ( + UserDevProp->Delete.Keys, + UserDevProp->Delete.Count, + sizeof (UserDevProp->Delete.Keys[0]), + DevPropsDeleteHasDuplication + ); + for (DeviceIndex = 0; DeviceIndex < UserDevProp->Add.Count; ++DeviceIndex) { PropertyMap = UserDevProp->Add.Values[DeviceIndex]; AsciiDevicePath = OC_BLOB_GET (UserDevProp->Add.Keys[DeviceIndex]); @@ -85,7 +145,27 @@ CheckDeviceProperties ( ++ErrorCount; } } + + // + // Check duplicated properties in DeviceProperties->Add[N]. + // + ErrorCount += FindArrayDuplication ( + PropertyMap->Keys, + PropertyMap->Count, + sizeof (PropertyMap->Keys[0]), + DevPropsAddHasDuplication + ); } + // + // Check duplicated entries in DeviceProperties->Add. + // + ErrorCount += FindArrayDuplication ( + UserDevProp->Add.Keys, + UserDevProp->Add.Count, + sizeof (UserDevProp->Add.Keys[0]), + DevPropsAddHasDuplication + ); + return ReportError (__func__, ErrorCount); }
doc: Change a news entry
@@ -195,7 +195,7 @@ you up to date with the multi-language support provided by Elektra. - Checks for `kdbCommit` have been added to [kdb plugin-check](../help/kdb-plugin-check.md). _(Vid Leskovar)_ - add PID file config setting for kdb-run-rest-frontend _(Markus Raab)_ - Added `kdb meta-show` command which prints out all metadata along with its values for a given key. _(Michael Zronek)_ -- Renamed kdb plugin commands following a hierarchical structure. `kdb info` is now `kdb plugin-info`, `kdb check` is now `kdb plugin-check` and `kdb list` is now `kdb plugin-list`. We also removed the obsolete `kdb fstab` functionality. _(Philipp Gackstatter)_ +- Renamed kdb plugin commands following a hierarchical structure. `kdb info` is now `kdb plugin-info`, `kdb check` is now `kdb plugin-check` and `kdb list` is now `kdb plugin-list`. We also removed the obsolete `kdb fstab`. _(Philipp Gackstatter)_ - Renamed kdb meta commands: - `kdb getmeta` is now `kdb meta-get` - `kdb lsmeta` is now `kdb meta-ls`
Allow eventGroup to occur before fadeIn on scene init
@@ -3,8 +3,8 @@ const id = "EVENT_GROUP"; const fields = [ { key: "true", - type: "events" - } + type: "events", + }, ]; const compile = (input, helpers) => { @@ -15,5 +15,6 @@ const compile = (input, helpers) => { module.exports = { id, fields, - compile + compile, + allowedBeforeInitFade: true, };
Disable Gpio on F091 board It seems to go out of memory otherwise.
@@ -18,7 +18,7 @@ matrix: include: - env: CMAKE_OPTIONS="-DTOOLCHAIN_PREFIX=/home/travis/gcc-arm-none-eabi-6-2017-q1-update -DCHIBIOS_VERSION=17.6.2 -DCHIBIOS_BOARD=ST_STM32F4_DISCOVERY -DTARGET_SERIES=STM32F4xx -DUSE_FPU=TRUE -DCMAKE_BUILD_TYPE=MinSizeRel -DNF_FEATURE_DEBUGGER=TRUE -DNF_FEATURE_RTC=ON -DAPI_Windows.Devices.Gpio=ON" - env: CMAKE_OPTIONS="-DTOOLCHAIN_PREFIX=/home/travis/gcc-arm-none-eabi-6-2017-q1-update -DCHIBIOS_VERSION=17.6.2 -DCHIBIOS_BOARD=ST_STM32F429I_DISCOVERY -DTARGET_SERIES=STM32F4xx -DUSE_FPU=TRUE -DCMAKE_BUILD_TYPE=MinSizeRel -DNF_FEATURE_DEBUGGER=TRUE -DNF_FEATURE_RTC=ON -DAPI_Windows.Devices.Gpio=ON" - - env: CMAKE_OPTIONS="-DTOOLCHAIN_PREFIX=/home/travis/gcc-arm-none-eabi-6-2017-q1-update -DCHIBIOS_VERSION=17.6.2 -DCHIBIOS_BOARD=ST_NUCLEO64_F091RC -DTARGET_SERIES=STM32F0xx -DCMAKE_BUILD_TYPE=MinSizeRel -DNF_FEATURE_DEBUGGER=TRUE -DNF_FEATURE_RTC=ON -DAPI_Windows.Devices.Gpio=ON" + - env: CMAKE_OPTIONS="-DTOOLCHAIN_PREFIX=/home/travis/gcc-arm-none-eabi-6-2017-q1-update -DCHIBIOS_VERSION=17.6.2 -DCHIBIOS_BOARD=ST_NUCLEO64_F091RC -DTARGET_SERIES=STM32F0xx -DCMAKE_BUILD_TYPE=MinSizeRel -DNF_FEATURE_DEBUGGER=TRUE -DNF_FEATURE_RTC=ON -DAPI_Windows.Devices.Gpio=OFF" - env: CMAKE_OPTIONS="-DTOOLCHAIN_PREFIX=/home/travis/gcc-arm-none-eabi-6-2017-q1-update -DCHIBIOS_VERSION=17.6.2 -DCHIBIOS_BOARD=ST_NUCLEO144_F746ZG -DTARGET_SERIES=STM32F7xx -DUSE_FPU=TRUE -DCMAKE_BUILD_TYPE=MinSizeRel -DNF_FEATURE_DEBUGGER=TRUE -DNF_FEATURE_RTC=ON -DAPI_Windows.Devices.Gpio=ON" - env: CMAKE_OPTIONS="-DTOOLCHAIN_PREFIX=/home/travis/gcc-arm-none-eabi-6-2017-q1-update -DCHIBIOS_VERSION=17.6.2 -DCHIBIOS_BOARD=MBN_QUAIL -DTARGET_SERIES=STM32F4xx -DUSE_FPU=TRUE -DCMAKE_BUILD_TYPE=MinSizeRel -DNF_FEATURE_DEBUGGER=TRUE -DNF_FEATURE_RTC=ON -DAPI_Windows.Devices.Gpio=ON -DAPI_Windows.Devices.Spi=ON" - env: CMAKE_OPTIONS="-DTOOLCHAIN_PREFIX=/home/travis/gcc-arm-none-eabi-6-2017-q1-update -DCHIBIOS_VERSION=17.6.2 -DCHIBIOS_BOARD=ST_STM32F769I_DISCOVERY -DTARGET_SERIES=STM32F7xx -DUSE_FPU=TRUE -DCMAKE_BUILD_TYPE=MinSizeRel -DNF_FEATURE_DEBUGGER=TRUE -DNF_FEATURE_RTC=ON -DAPI_Windows.Devices.Gpio=ON -DNF_FEATURE_USE_NETWORKING=ON"
Docs: added references to alter user
@@ -51,7 +51,10 @@ ALTER USER <varname>name</varname> [ [WITH] <varname>option</varname> [ ... ] ]< </section> <section id="section5"> <title>See Also</title> - <p><codeph><xref href="ALTER_ROLE.xml#topic1" type="topic" format="dita"/></codeph></p> + <p><codeph><xref href="ALTER_ROLE.xml#topic1" type="topic" format="dita"/></codeph>, + <codeph><xref href="CREATE_USER.xml#topic1" type="topic" format="dita" + /></codeph>, <codeph><xref href="DROP_USER.xml#topic1" type="topic" + format="dita"/></codeph></p> </section> </body> </topic>
Add supporting LibreSSL 2.7
#include <stdlib.h> /* backports for OpenSSL 1.0.2 */ -#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) +#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL) #define BIO_get_data(bio) ((bio)->ptr) #define BIO_set_data(bio, p) ((bio)->ptr = (p)) @@ -57,7 +57,7 @@ static inline BIO_METHOD *BIO_meth_new(int type, const char *name) #endif /* backports for OpenSSL 1.0.1 and LibreSSL */ -#if OPENSSL_VERSION_NUMBER < 0x10002000L || defined(LIBRESSL_VERSION_NUMBER) +#if OPENSSL_VERSION_NUMBER < 0x10002000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL) #define SSL_is_server(ssl) ((ssl)->server)
docs: fix commit hash and link for bpf_redirect_map() The link wrongly pointed to the same commit as for bpf_sk_redirect_map().
@@ -138,7 +138,7 @@ Helper | Kernel version | Commit `BPF_FUNC_probe_read_str()` | 4.11 | [`a5e8c07059d0`](https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=a5e8c07059d0f0b31737408711d44794928ac218) `BPF_FUNC_probe_write_user()` | 4.8 | [`96ae52279594`](https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=96ae52279594470622ff0585621a13e96b700600) `BPF_FUNC_redirect()` | 4.4 | [`27b29f63058d`](https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=27b29f63058d26c6c1742f1993338280d5a41dc6) -`BPF_FUNC_redirect_map()` | 4.14 | [`174a79ff9515`](https://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/commit/?id=174a79ff9515f400b9a6115643dafd62a635b7e6) +`BPF_FUNC_redirect_map()` | 4.14 | [`97f91a7cf04f`](https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=97f91a7cf04ff605845c20948b8a80e54cbd3376) `BPF_FUNC_set_hash()` | 4.13 | [`ded092cd73c2`](https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=ded092cd73c2c56a394b936f86897f29b2e131c0) `BPF_FUNC_set_hash_invalid()` | 4.9 | [`7a4b28c6cc9f`](https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=7a4b28c6cc9ffac50f791b99cc7e46106436e5d8) `BPF_FUNC_setsockopt()` | 4.13 | [`8c4b4c7e9ff0`](https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=8c4b4c7e9ff0447995750d9329949fa082520269)
npu2: hw-procedures: Add comments denoting procedure number There are comments in this file to indicate where each numbered procedure from the programming guide is implemented, for easy searching. Add a couple which were missing. Acked-By: Alistair Popple
@@ -312,6 +312,7 @@ static uint32_t phy_reset_complete(struct npu2_dev *ndev) } DEFINE_PROCEDURE(phy_reset, phy_reset_wait, phy_reset_complete); +/* Procedure 1.2.6 - I/O PHY Tx Impedance Calibration */ static uint32_t phy_tx_zcal(struct npu2_dev *ndev) { if (ndev->npu->tx_zcal_complete[ndev->index > 2]) @@ -502,6 +503,7 @@ static uint32_t phy_enable_tx_rxcal(struct npu2_dev *ndev) } DEFINE_PROCEDURE(phy_enable_tx_rxcal); +/* Procedure 1.2.9 - Disable Downstream Link Training */ static uint32_t phy_disable_tx_rxcal(struct npu2_dev *ndev) { int lane;
OcMainLib: Update kext blocker logs
@@ -413,7 +413,7 @@ OcKernelBlockKexts ( Exclude = AsciiStrCmp (Strategy, "Exclude") == 0; // - // TODO: Implement prelinked exclusion first, then cacheless and mkext. + // TODO: Implement cacheless and mkext exclusion if possible. // if (CacheType == CacheTypeCacheless) { Status = CachelessContextBlock (Context, Target, Exclude); @@ -427,8 +427,9 @@ OcKernelBlockKexts ( DEBUG (( EFI_ERROR (Status) ? DEBUG_WARN : DEBUG_INFO, - "OC: %a blocker result %u for %a (%a) - %r\n", + "OC: %a blocker (%a) result %u for %a (%a) - %r\n", PRINT_KERNEL_CACHE_TYPE (CacheType), + Exclude ? "Exclude" : "Disable", Index, Target, Comment,
input: return value in FLB_INPUT_RETURN macro to fit input collect callbacks.
@@ -510,7 +510,7 @@ static inline void flb_input_return_do(int ret) { #define FLB_INPUT_RETURN(x) \ flb_input_return_do(x); \ - return + return x; static inline int flb_input_buf_paused(struct flb_input_instance *i) {
Fix typo to let serve-expired-ttl work with ub_ctx_set_option(), by Florian Obser
12 December 2019: Ralph - Master is 1.9.7 in development. + - Fix typo to let serve-expired-ttl work with ub_ctx_set_option(), by + Florian Obser 10 December 2019: Wouter - Fix to make auth zone IXFR to fallback to AXFR if a single
opae-sdk: add support to crate rpm on rhel 8 and rhel 9
@@ -68,10 +68,10 @@ OPAE headers, tools, sample source, and documentation %build %cmake -DOPAE_MINIMAL_BUILD=ON -%if 0%{?rhel} - %make_build -%else +%if 0%{rhel} > 8 %cmake_build +%else + %make_build %endif %install @@ -130,10 +130,10 @@ cp binaries/opae.io/opae/*.py %{buildroot}%{_usr}/src/opae/samples/opae.io/opae cp binaries/opae.io/opae/io/*.py %{buildroot}%{_usr}/src/opae/samples/opae.io/opae/io cp binaries/opae.io/scripts/*.py %{buildroot}%{_usr}/src/opae/samples/opae.io/scripts -%if 0%{?rhel} - %make_install -%else +%if 0%{rhel} > 8 %cmake_install +%else + %make_install %endif prev=$PWD
add dns requirements for fat tests issue:DEVTOOLS-4045
@@ -25,6 +25,7 @@ CANON_MDS_RESOURCE_REGEX = re.compile(re.escape(MDS_URI_PREFIX) + r'(.*?)($|#)') CANON_SBR_RESOURCE_REGEX = re.compile(r'(sbr:/?/?(\d+))') VALID_NETWORK_REQUIREMENTS = ("full", "restricted") +VALID_DNS_REQUIREMENTS = ("default", "local", "dns64") BLOCK_SEPARATOR = '=============================================================' SPLIT_FACTOR_MAX_VALUE = 1000 @@ -84,7 +85,7 @@ def validate_test(kw, is_fuzz_test): is_force_sandbox = 'ya:force_sandbox' in tags in_autocheck = "ya:not_autocheck" not in tags and 'ya:manual' not in tags requirements = {} - valid_requirements = {'cpu', 'disk_usage', 'ram', 'ram_disk', 'container', 'sb', 'sb_vault', 'network'} + valid_requirements = {'cpu', 'disk_usage', 'ram', 'ram_disk', 'container', 'sb', 'sb_vault', 'network', 'dns'} for req in get_list("REQUIREMENTS"): if ":" in req: req_name, req_value = req.split(":", 1) @@ -137,6 +138,10 @@ def validate_test(kw, is_fuzz_test): if req_value not in VALID_NETWORK_REQUIREMENTS: errors.append("Unknown 'network' requirement: [[imp]]{}[[rst]], choose from [[imp]]{}[[rst]]".format(req_value, ", ".join(VALID_NETWORK_REQUIREMENTS))) continue + elif req_name == "dns": + if req_value not in VALID_DNS_REQUIREMENTS: + errors.append("Unknown 'dns' requirement: [[imp]]{}[[rst]], choose from [[imp]]{}[[rst]]".format(req_value, ", ".join(VALID_DNS_REQUIREMENTS))) + continue requirements[req_name] = req_value else: errors.append("Invalid requirement syntax [[imp]]{}[[rst]]: expect <requirement>:<value>".format(req))
Fix duplicate KEM assignment in pq_kem_test
@@ -71,7 +71,6 @@ static const struct s2n_kem_test_vector test_vectors[] = { }, { .kem = &s2n_kyber_512_r3, - .kem = &s2n_sike_p434_r3, .asm_is_enabled = s2n_pq_no_asm_available, .enable_asm = s2n_pq_noop_asm, .disable_asm = s2n_pq_noop_asm,
Do fast special cases for +slaw instead of always calling +slay. +slay is a giant, recursive, slow parser combinator. +slaw is called on every beam handling. In actual usage, we can special case based on the passed in type and use a much smaller parser.
~/ %slaw |= {mod/@tas txt/@ta} ^- (unit @) + ?+ mod + :: slow fallback case to the full slay + :: =+ con=(slay txt) ?.(&(?=({~ $$ @ @} con) =(p.p.u.con mod)) ~ [~ q.p.u.con]) + :: + %p + (rust (trip txt) ;~(pfix sig fed:ag)) + :: + %ud + (rust (trip txt) dem:ag) + :: + %ux + (rust (trip txt) ;~(pfix (jest '0x') hex:ag)) + :: + %tas + (rust (trip txt) sym) + == :: ++ slay |= txt/@ta ^- (unit coin)
asurada: rev1: update sensor rotation matrix TEST=`accelinfo on`, verify lid angle looks reasonable BRANCH=none Tested-by: Ting Shen
@@ -649,7 +649,8 @@ static struct bmi_drv_data_t g_bmi160_data; static struct stprivate_data g_lis2dwl_data; /* Matrix to rotate accelerometer into standard reference frame */ -static const mat33_fp_t base_standard_ref = { +/* for rev 0 */ +static const mat33_fp_t base_standard_ref_rev0 = { {FLOAT_TO_FP(-1), 0, 0}, {0, FLOAT_TO_FP(1), 0}, {0, 0, FLOAT_TO_FP(-1)}, @@ -674,6 +675,17 @@ static struct als_drv_data_t g_tcs3400_data = { }, }; +static void update_rotation_matrix(void) +{ + if (board_get_version() == 0) { + motion_sensors[BASE_ACCEL].rot_standard_ref = + &base_standard_ref_rev0; + motion_sensors[BASE_GYRO].rot_standard_ref = + &base_standard_ref_rev0; + } +} +DECLARE_HOOK(HOOK_INIT, update_rotation_matrix, HOOK_PRIO_INIT_ADC + 1); + static struct tcs3400_rgb_drv_data_t g_tcs3400_rgb_data = { /* * TODO: calculate the actual coefficients and scaling factors @@ -733,7 +745,7 @@ struct motion_sensor_t motion_sensors[] = { .drv_data = &g_bmi160_data, .port = I2C_PORT_ACCEL, .i2c_spi_addr_flags = BMI160_ADDR0_FLAGS, - .rot_standard_ref = &base_standard_ref, + .rot_standard_ref = NULL, /* identity matrix */ .default_range = 4, /* g, to meet CDD 7.3.1/C-1-4 reqs */ .min_frequency = BMI_ACCEL_MIN_FREQ, .max_frequency = BMI_ACCEL_MAX_FREQ, @@ -762,7 +774,7 @@ struct motion_sensor_t motion_sensors[] = { .port = I2C_PORT_ACCEL, .i2c_spi_addr_flags = BMI160_ADDR0_FLAGS, .default_range = 1000, /* dps */ - .rot_standard_ref = &base_standard_ref, + .rot_standard_ref = NULL, /* identity matrix */ .min_frequency = BMI_GYRO_MIN_FREQ, .max_frequency = BMI_GYRO_MAX_FREQ, },
filter: release temporal buffer and adjust ref pointer
@@ -98,8 +98,12 @@ void flb_filter_do(struct flb_input_instance *i_ins, flb_filter_replace(i_ins, /* input instance */ bytes, /* passed data */ out_buf, out_size); /* new data */ - data = out_buf; + /* Release new temporal buffer */ + flb_free(out_buf); + + /* Point back the 'data' pointer to the new address */ bytes = out_size; + data = i_ins->mp_sbuf.data + (i_ins->mp_sbuf.size - out_size); } } }
drivers/video: Return zero if gamma curve isn't supported in initialize_scene_gamma
@@ -824,7 +824,7 @@ static int32_t initialize_scene_gamma(uint8_t **gamma) if ((g_video_sensor_ops->get_supported_value == NULL) || (g_video_sensor_ops->get_value == NULL)) { - return -ENOTTY; + return 0; } ret = g_video_sensor_ops->get_supported_value @@ -833,7 +833,7 @@ static int32_t initialize_scene_gamma(uint8_t **gamma) { /* Unsupported parameter */ - return -EINVAL; + return 0; } switch (sup_val.type) @@ -844,7 +844,7 @@ static int32_t initialize_scene_gamma(uint8_t **gamma) { /* Multiplication overflow */ - return -EINVAL; + return 0; } break; @@ -855,7 +855,7 @@ static int32_t initialize_scene_gamma(uint8_t **gamma) { /* Multiplication overflow */ - return -EINVAL; + return 0; } break; @@ -866,7 +866,7 @@ static int32_t initialize_scene_gamma(uint8_t **gamma) { /* Multiplication overflow */ - return -EINVAL; + return 0; } break;
Zoul platform.c: removing leftover PRINTF
@@ -124,7 +124,7 @@ rtc_init(void) */ /* Get the system date in the following format: wd dd mm yy hh mm ss */ - PRINTF("Setting RTC from system date: %s\n", DATE); + LOG_INFO("Setting RTC from system date: %s\n", DATE); /* Configure the RTC with the current values */ td.weekdays = (uint8_t)strtol(DATE, &next, 10); @@ -149,7 +149,7 @@ rtc_init(void) /* Set the time and date */ if(rtcc_set_time_date(&td) == AB08_ERROR) { - PRINTF("Failed to set time and date\n"); + LOG_INFO("Failed to set time and date\n"); } #endif #endif
Always compile `app/crypto` folder
@@ -20,7 +20,7 @@ FLAVOR = debug ifndef PDIR # { GEN_IMAGES= eagle.app.v6.out GEN_BINS= eagle.app.v6.bin -OPT_MKTARGETS := coap crypto dht http mqtt pcm sjson sqlite3 tsl2561 websocket +OPT_MKTARGETS := coap dht http mqtt pcm sjson sqlite3 tsl2561 websocket OPT_MKLIBTARGETS := u8g2 ucg SEL_MKTARGETS := $(shell $(CC) -E -dM include/user_modules.h | sed -n '/^\#define LUA_USE_MODULES_/{s/.\{24\}\(.*\)/\L\1/; p}') OPT_SEL_MKLIBTARGETS := $(foreach tgt,$(OPT_MKLIBTARGETS),$(findstring $(tgt), $(SEL_MKTARGETS))) @@ -31,6 +31,7 @@ SPECIAL_MKTARGETS :=$(APP_MKTARGETS) SUBDIRS= \ user \ + crypto \ driver \ mbedtls \ platform \ @@ -63,6 +64,7 @@ LD_FILE = $(LDDIR)/nodemcu.ld COMPONENTS_eagle.app.v6 = \ user/libuser.a \ + crypto/libcrypto.a \ driver/libdriver.a \ platform/libplatform.a \ task/libtask.a \
Fix handle search filter strings
@@ -209,10 +209,10 @@ static int __cdecl PhpStringObjectTypeCompare( _In_ const void *elem2 ) { - PWSTR entry1 = *(PWSTR *)elem1; - PWSTR entry2 = *(PWSTR *)elem2; + PPH_STRING entry1 = *(PPH_STRING *)elem1; + PPH_STRING entry2 = *(PPH_STRING *)elem2; - return PhCompareStringZ(entry1, entry2, TRUE); + return PhCompareString(entry1, entry2, TRUE); } static VOID PhpPopulateObjectTypes( @@ -236,7 +236,7 @@ static VOID PhpPopulateObjectTypes( for (ULONG i = 0; i < objectTypes->NumberOfTypes; i++) { - PhAddItemList(objectTypeList, PhDuplicateStringZ(objectType->TypeName.Buffer)); + PhAddItemList(objectTypeList, PhCreateStringFromUnicodeString(&objectType->TypeName)); objectType = PH_NEXT_OBJECT_TYPE(objectType); } @@ -244,13 +244,13 @@ static VOID PhpPopulateObjectTypes( } // Sort the object types. - qsort(objectTypeList->Items, objectTypeList->Count, sizeof(PWSTR), PhpStringObjectTypeCompare); + qsort(objectTypeList->Items, objectTypeList->Count, sizeof(PVOID), PhpStringObjectTypeCompare); // Add the types to the object filter combobox. for (ULONG i = 0; i < objectTypeList->Count; i++) { - ComboBox_AddString(FilterTypeCombo, objectTypeList->Items[i]); - PhFree(objectTypeList->Items[i]); + ComboBox_AddString(FilterTypeCombo, PhGetString(objectTypeList->Items[i])); + PhDereferenceObject(objectTypeList->Items[i]); } PhDereferenceObject(objectTypeList);
Restrict cursor drawing in tui to visible area
@@ -163,12 +163,13 @@ void tui_cursor_move_relative(Tui_cursor* tc, Usz field_h, Usz field_w, tc->x = (Usz)x0; } -void tdraw_tui_cursor(WINDOW* win, Glyph const* gbuffer, Usz field_h, - Usz field_w, Usz ruler_spacing_y, Usz ruler_spacing_x, - Usz cursor_y, Usz cursor_x) { +void tdraw_tui_cursor(WINDOW* win, int win_h, int win_w, Glyph const* gbuffer, + Usz field_h, Usz field_w, Usz ruler_spacing_y, + Usz ruler_spacing_x, Usz cursor_y, Usz cursor_x) { (void)ruler_spacing_y; (void)ruler_spacing_x; - if (cursor_y >= field_h || cursor_x >= field_w) + if (cursor_y >= field_h || cursor_x >= field_w || (int)cursor_y >= win_h || + (int)cursor_x >= win_w) return; Glyph beneath = gbuffer[cursor_y * field_w + cursor_x]; char displayed = beneath == '.' ? '@' : beneath; @@ -548,9 +549,9 @@ int main(int argc, char** argv) { wmove(cont_win, y, 0); wclrtoeol(cont_win); } - tdraw_tui_cursor(cont_win, field.buffer, field.height, field.width, - ruler_spacing_y, ruler_spacing_x, tui_cursor.y, - tui_cursor.x); + tdraw_tui_cursor(cont_win, cont_win_h, cont_win_w, field.buffer, + field.height, field.width, ruler_spacing_y, + ruler_spacing_x, tui_cursor.y, tui_cursor.x); if (content_h > 3) { tdraw_hud(cont_win, content_h - 2, 0, 2, content_w, input_file, field.height, field.width, ruler_spacing_y, ruler_spacing_x,
change how we initilize the array. See if that makes KWStyle happy
@@ -40,12 +40,9 @@ struct s2n_array *s2n_array_new(size_t element_size) struct s2n_blob mem = {0}; GUARD_PTR(s2n_alloc(&mem, sizeof(struct s2n_array))); + struct s2n_array initilizer = {.mem = {0}, .num_of_elements = 0, .capacity = 0, .element_size = element_size}; struct s2n_array *array = (void *) mem.data; - array->mem = (struct s2n_blob) {0}; - array->num_of_elements = 0; - array->capacity = 0; - array->element_size = element_size; - + *array = initilizer; GUARD_PTR(s2n_array_enlarge(array, S2N_INITIAL_ARRAY_SIZE)); return array;
YAMBi: Catch lexer exceptions
* */ +#include <stdexcept> + #include <kdb.hpp> #include <kdbconfig.h> +#include <kdberrors.h> #include "convert.hpp" #include "yambi.hpp" @@ -18,6 +21,9 @@ using ckdb::keyNew; using CppKey = kdb::Key; using CppKeySet = kdb::KeySet; +using std::exception; +using std::runtime_error; + namespace { @@ -56,7 +62,19 @@ int elektraYambiGet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned, Key * pa return ELEKTRA_PLUGIN_STATUS_SUCCESS; } - int status = addToKeySet (keys, parent, parent.getString ()); + int status = ELEKTRA_PLUGIN_STATUS_ERROR; + try + { + status = addToKeySet (keys, parent, parent.getString ()); + } + catch (runtime_error const & runtimeError) + { + ELEKTRA_SET_ERROR (ELEKTRA_ERROR_PARSE, *parent, runtimeError.what ()); + } + catch (exception const & error) + { + ELEKTRA_SET_ERROR (ELEKTRA_ERROR_UNCAUGHT_EXCEPTION, *parent, error.what ()); + } parent.release (); keys.release ();
README: modify information of Tizen RT We will add many documents at docs folder. This is noticed at README.
[![Build Status](https://travis-ci.org/Samsung/TizenRT.svg?branch=master)](https://travis-ci.org/Samsung/TizenRT) lightweight RTOS-based platform to support low-end IoT devices. -Please find project details like **APIs**, **Specification** and **Long-term Goals** on our [Tizen Site](https://source.tizen.org/documentation/tizen-rt). +Please find project details like APIs reference at [docs](docs/) folder. Wiki will be provided. ## Contents
Removed unused histogram
@@ -1171,30 +1171,13 @@ static void compute_swapchain_display(struct swapchain_data *data) data->time_dividor = 1000000.0f; ImGui::PushStyleColor(ImGuiCol_FrameBg, ImVec4(0.0f, 0.0f, 0.0f, 0.0f)); - if (s == OVERLAY_PARAM_ENABLED_frame_timing || - s == OVERLAY_PARAM_ENABLED_present_timing || - s == OVERLAY_PARAM_ENABLED_gpu_timing) { - // double min_time = data->stats_min.stats[s] / data->time_dividor; - // double max_time = data->stats_max.stats[s] / data->time_dividor; + if (s == OVERLAY_PARAM_ENABLED_frame_timing) { double min_time = 0.0f; double max_time = 50.0f; ImGui::PlotLines(hash, get_time_stat, data, ARRAY_SIZE(data->frames_stats), 0, NULL, min_time, max_time, ImVec2(ImGui::GetContentRegionAvailWidth(), 50)); - // ImGui::Text("%s: %.3fms [%.3f, %.3f]", overlay_param_names[s], - // get_time_stat(data, ARRAY_SIZE(data->frames_stats) - 1), - // min_time, max_time); - } else { - ImGui::PlotHistogram(hash, get_stat, data, - ARRAY_SIZE(data->frames_stats), 0, - NULL, - data->stats_min.stats[s], - data->stats_max.stats[s], - ImVec2(ImGui::GetContentRegionAvailWidth(), 50)); - // ImGui::Text("%s: %.0f [%" PRIu64 ", %" PRIu64 "]", overlay_param_names[s], - // get_stat(data, ARRAY_SIZE(data->frames_stats) - 1), - // data->stats_min.stats[s], data->stats_max.stats[s]); } ImGui::PopStyleColor(); }
get_test_evals error message
@@ -845,7 +845,7 @@ class _CatBoostBase(object): test_evals = self._object._get_test_evals() if len(test_evals) == 0: if self.is_fitted(): - raise CatboostError('You should train the model with the test set.') + raise CatboostError('The model was trained without eval set.') else: raise CatboostError('You should train the model first.') if len(test_evals) > 1: @@ -857,7 +857,7 @@ class _CatBoostBase(object): test_evals = self._object._get_test_evals() if len(test_evals) == 0: if self.is_fitted(): - raise CatboostError('You should train the model with the test set.') + raise CatboostError('The model was trained without eval set.') else: raise CatboostError('You should train the model first.') return test_evals
esp_wifi: fix esp32c3 connect fail Closes
@@ -1716,7 +1716,7 @@ ic_reset_rx_ba = 0x4000184c; ieee80211_align_eb = 0x40001850; ieee80211_ampdu_reorder = 0x40001854; ieee80211_ampdu_start_age_timer = 0x40001858; -ieee80211_encap_esfbuf = 0x4000185c; +/*ieee80211_encap_esfbuf = 0x4000185c;*/ ieee80211_is_tx_allowed = 0x40001860; ieee80211_output_pending_eb = 0x40001864; ieee80211_output_process = 0x40001868;
Add asserts to ensure hostId > 0. hostId is 1-based (e.g. pg1-*) so it should always be > 0.
@@ -95,6 +95,8 @@ pgIsLocal(unsigned int hostId) FUNCTION_LOG_PARAM(UINT, hostId); FUNCTION_LOG_END(); + ASSERT(hostId > 0); + FUNCTION_LOG_RETURN(BOOL, !cfgOptionTest(cfgOptPgHost + hostId - 1)); } @@ -110,6 +112,8 @@ protocolLocalParam(ProtocolStorageType protocolStorageType, unsigned int hostId, FUNCTION_LOG_PARAM(UINT, protocolId); FUNCTION_LOG_END(); + ASSERT(hostId > 0); + StringList *result = NULL; MEM_CONTEXT_TEMP_BEGIN() @@ -156,6 +160,8 @@ protocolLocalGet(ProtocolStorageType protocolStorageType, unsigned int hostId, u FUNCTION_LOG_PARAM(UINT, protocolId); FUNCTION_LOG_END(); + ASSERT(hostId > 0); + protocolHelperInit(); // Allocate the client cache @@ -323,6 +329,8 @@ protocolRemoteGet(ProtocolStorageType protocolStorageType, unsigned int hostId) FUNCTION_LOG_PARAM(UINT, hostId); FUNCTION_LOG_END(); + ASSERT(hostId > 0); + // Is this a repo remote? bool isRepo = protocolStorageType == protocolStorageTypeRepo;
build: fix error messages in check_commit_msg.sh Type: fix
@@ -12,7 +12,7 @@ if [ $(echo ${FEATURES} | wc -w) -eq 0 ]; then echo "git commit 'Subject:' line must contain at least one known feature id." echo "feature id(s) must be listed before ':' and space delimited " echo "if more then one is listed." - echo "Please reffer to MAINTAINERS file (I: lines) for known feature ids." + echo "Please refer to the MAINTAINERS file (I: lines) for known feature ids." echo $ERR exit 1 fi @@ -26,8 +26,8 @@ for i in ${FEATURES}; do if [ ${is_known} = "false" ] ; then echo $ERR echo "Unknown feature '${i}' in commit 'Subject:' line." - echo "Feature must exist in MAINTAINERS file. If this commit intruduces " - echo "new feature, then this commit must add new entry into the " + echo "Feature must exist in MAINTAINERS file. If this commit introduces " + echo "a new feature, then this commit must add an entry to the " echo "MAINTAINERS file." echo $ERR exit 1 @@ -47,4 +47,3 @@ if [ ${is_known} = "false" ] ; then echo $ERR exit 1 fi -
Updated NEWS with latest v1.4 changes.
@@ -2,7 +2,7 @@ Copyright (C) 2009-2020 Gerardo Orellana <[email protected]> * Version history: - - 1.4 [TBD] + - 1.4 [Monday, May 18, 2020] . GoAccess 1.4 Released. See ChangeLog for new features/bug-fixes. - 1.3 [Friday, November 23, 2018] . GoAccess 1.3 Released. See ChangeLog for new features/bug-fixes.
Circle-ci config for phpize link
@@ -26,6 +26,7 @@ dependencies: pre: - sudo apt-get update && sudo DEBIAN_FRONTEND=noninteractive apt-get -y install cmake libssl-dev python3 python3-setuptools ruby ninja-build lcov build-essential libc6-dbg - sudo ln -sf /usr/bin/gcov-4.9 /usr/bin/gcov + - sudo ln -sf /opt/circleci/.phpenv/shims/phpize /usr/bin/phpize - if [ ! -d $GOROOT ]; then cd $HOME && wget https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz && tar xf go1.6.2.linux-amd64.tar.gz; fi - gem install coveralls-lcov - go get github.com/mattn/goveralls
Fix potential UB caused by C99 spec wording of array offset
@@ -75,11 +75,13 @@ ORCA_PURE static bool oper_has_neighboring_bang(Glyph const* gbuf, Usz h, Usz w, Glyph const* gp = gbuf + w * y + x; if (x < w && gp[1] == '*') return true; - if (x > 0 && gp[-1] == '*') + if (x > 0 && *(gp - 1) == '*') return true; if (y < h && gp[w] == '*') return true; - if (y > 0 && gp[-w] == '*') + // note: negative array subscript on rhs of short-circuit, may cause ub if + // the arithmetic under/overflows, even if guarded the guard on lhs is false + if (y > 0 && *(gp - w) == '*') return true; return false; }
test: add ethereum test cases test_004ParametersInit_0004TxInitSuccessGasPriceHexNullOx test_004ParametersInit_0005TxInitFailureGasLimitErrorHexFormat test_004ParametersInit_0006TxInitSuccessGasLimitHexNullOx
@@ -199,7 +199,49 @@ START_TEST(test_004ParametersInit_0003TxInitFailureErrorGasPriceHexFormat) rtnVal = BoatEthTxInit(g_ethereum_wallet_ptr, &tx_ptr, TEST_IS_SYNC_TX, "0x123G", TEST_GAS_LIMIT, TEST_RECIPIENT_ADDRESS); ck_assert(rtnVal == BOAT_ERROR_COMMON_INVALID_ARGUMENT); + BoatIotSdkDeInit(); +} +END_TEST + +START_TEST(test_004ParametersInit_0004TxInitSuccessGasPriceHexNullOx) +{ + BSINT32 rtnVal; + BoatEthTx tx_ptr; + rtnVal = ethereumWalletPrepare(); + ck_assert_int_eq(rtnVal, BOAT_SUCCESS); + rtnVal = BoatEthTxInit(g_ethereum_wallet_ptr, &tx_ptr, TEST_IS_SYNC_TX, "A", + TEST_GAS_LIMIT, TEST_RECIPIENT_ADDRESS); + ck_assert(rtnVal == BOAT_SUCCESS); + ck_assert(param_check(&tx_ptr) == BOAT_SUCCESS); + BoatIotSdkDeInit(); +} +END_TEST + +START_TEST(test_004ParametersInit_0005TxInitFailureGasLimitErrorHexFormat) +{ + BSINT32 rtnVal; + BoatEthTx tx_ptr; + rtnVal = ethereumWalletPrepare(); + ck_assert_int_eq(rtnVal, BOAT_SUCCESS); + rtnVal = BoatEthTxInit(g_ethereum_wallet_ptr, &tx_ptr, TEST_IS_SYNC_TX, TEST_GAS_PRICE, + "0x123G", TEST_RECIPIENT_ADDRESS); + ck_assert(rtnVal == BOAT_ERROR_COMMON_INVALID_ARGUMENT); + BoatIotSdkDeInit(); +} +END_TEST + +START_TEST(test_004ParametersInit_0006TxInitSuccessGasLimitHexNullOx) +{ + BSINT32 rtnVal; + BoatEthTx tx_ptr; + rtnVal = ethereumWalletPrepare(); + ck_assert_int_eq(rtnVal, BOAT_SUCCESS); + rtnVal = BoatEthTxInit(g_ethereum_wallet_ptr, &tx_ptr, TEST_IS_SYNC_TX, TEST_GAS_PRICE, + "333333", TEST_RECIPIENT_ADDRESS); + ck_assert(rtnVal == BOAT_SUCCESS); + ck_assert(param_check(&tx_ptr) == BOAT_SUCCESS); + BoatIotSdkDeInit(); } END_TEST @@ -217,6 +259,9 @@ Suite *make_parameters_suite(void) tcase_add_test(tc_param_api, test_004ParametersInit_0001TxInitSuccess); tcase_add_test(tc_param_api, test_004ParametersInit_0002TxInitFailureNullParam); tcase_add_test(tc_param_api, test_004ParametersInit_0003TxInitFailureErrorGasPriceHexFormat); + tcase_add_test(tc_param_api, test_004ParametersInit_0004TxInitSuccessGasPriceHexNullOx); + tcase_add_test(tc_param_api, test_004ParametersInit_0005TxInitFailureGasLimitErrorHexFormat); + tcase_add_test(tc_param_api, test_004ParametersInit_0006TxInitSuccessGasLimitHexNullOx); return s_param; }
nhit PP: Prevent setting nhit policy again if it was already set
@@ -68,6 +68,12 @@ ocf_error_t ocf_promotion_set_policy(ocf_promotion_policy_t policy, prev_policy = cache->conf_meta->promotion_policy_type; + if (type == prev_policy) { + ocf_cache_log(cache, log_info, "Promotion policy '%s' is already set\n", + ocf_promotion_policies[type].name); + return 0; + } + if (ocf_promotion_policies[prev_policy].deinit) ocf_promotion_policies[prev_policy].deinit(policy);
[persistence] use LOCK_CACHE() and UNLOCK_CACHE() functions.
@@ -8399,7 +8399,6 @@ void item_stats_dump(struct default_engine *engine, /* item scan structure */ typedef struct _item_scan_t { - struct default_engine *engine; struct assoc_scan asscan; /* assoc scan */ const char *prefix; int nprefix; @@ -8466,7 +8465,6 @@ void *itscan_open(struct default_engine *engine, item_scan_t *sp = do_itscan_alloc(); if (sp != NULL) { assoc_scan_init(&sp->asscan); - sp->engine = engine; sp->prefix = prefix; sp->nprefix = nprefix; sp->is_used = true; @@ -8478,13 +8476,13 @@ int itscan_getnext(void *scan, void **item_array, int item_arrsz) { item_scan_t *sp = (item_scan_t *)scan; hash_item *it; - rel_time_t curtime = sp->engine->server.core->get_current_time(); + rel_time_t curtime = svcore->get_current_time(); int scan_count = item_arrsz < MAX_ITSCAN_ITEMS ? item_arrsz : MAX_ITSCAN_ITEMS; int item_count; int real_count; - pthread_mutex_lock(&sp->engine->cache_lock); + LOCK_CACHE(); item_count = assoc_scan_next(&sp->asscan, (hash_item**)item_array, scan_count); if (item_count < 0) { real_count = -1; /* The end of assoc scan */ @@ -8515,29 +8513,27 @@ int itscan_getnext(void *scan, void **item_array, int item_arrsz) real_count += 1; } } - pthread_mutex_unlock(&sp->engine->cache_lock); + UNLOCK_CACHE(); return real_count; } void itscan_release(void *scan, void **item_array, int item_count) { - item_scan_t *sp = (item_scan_t *)scan; - - pthread_mutex_lock(&sp->engine->cache_lock); + LOCK_CACHE(); for (int idx = 0; idx < item_count; idx++) { do_item_release(item_array[idx]); } - pthread_mutex_unlock(&sp->engine->cache_lock); + UNLOCK_CACHE(); } void itscan_close(void *scan) { item_scan_t *sp = (item_scan_t *)scan; - pthread_mutex_lock(&sp->engine->cache_lock); + LOCK_CACHE(); assoc_scan_final(&sp->asscan); - pthread_mutex_unlock(&sp->engine->cache_lock); + UNLOCK_CACHE(); sp->is_used = false; do_itscan_free(sp);
driver/retimer/tusb544.c: Format with clang-format BRANCH=none TEST=none
static int tusb544_write(const struct usb_mux *me, int offset, int data) { - return i2c_write8(me->i2c_port, - me->i2c_addr_flags, - offset, data); + return i2c_write8(me->i2c_port, me->i2c_addr_flags, offset, data); } static int tusb544_read(const struct usb_mux *me, int offset, int *data) { - return i2c_read8(me->i2c_port, - me->i2c_addr_flags, - offset, data); + return i2c_read8(me->i2c_port, me->i2c_addr_flags, offset, data); } int tusb544_i2c_field_update8(const struct usb_mux *me, int offset, @@ -27,11 +23,8 @@ int tusb544_i2c_field_update8(const struct usb_mux *me, int offset, { int rv; - rv = i2c_field_update8(me->i2c_port, - me->i2c_addr_flags, - offset, - field_mask, - set_value); + rv = i2c_field_update8(me->i2c_port, me->i2c_addr_flags, offset, + field_mask, set_value); return rv; }
BugID:16846667: Fix compilation issues modified: stm32f429zi-syscall/src/ethernetif.c
****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ -#include "stm32f4xx_hal.h" -#include "aos/kernel.h" +#include <string.h> #include <k_api.h> -#include "network/network.h" +#include <aos/kernel.h> +#include <aos/log.h> #include <lwip/tcpip.h> -#include "netif/etharp.h" - +#include <netif/etharp.h> +#include <network/network.h> +#include <stm32f4xx_hal.h> #include "ethernetif.h" -#include <string.h> /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/
Sort uniforms in ShaderBlocks;
@@ -1740,7 +1740,13 @@ static void lovrShaderSetupUniforms(Shader* shader) { } else { uniform.size = 4 * (uniform.components == 3 ? 4 : uniform.components); } - vec_push(&block->uniforms, uniform); + + // Uniforms in the block need to be in order of their offset, so find the right index for it + int index = 0; + while (index < block->uniforms.length && block->uniforms.data[index].offset < uniform.offset) { + index++; + } + vec_insert(&block->uniforms, index, uniform); continue; } else if (uniform.location == -1) { continue;
Removed graph background, plotlines color to green
@@ -1181,6 +1181,7 @@ static void compute_swapchain_display(struct swapchain_data *data) if (s == OVERLAY_PARAM_ENABLED_gpu_timing) data->time_dividor = 1000000.0f; + ImGui::PushStyleColor(ImGuiCol_FrameBg, ImVec4(0.0f, 0.0f, 0.0f, 0.0f)); if (s == OVERLAY_PARAM_ENABLED_frame_timing || s == OVERLAY_PARAM_ENABLED_acquire_timing || s == OVERLAY_PARAM_ENABLED_present_timing || @@ -1207,6 +1208,7 @@ static void compute_swapchain_display(struct swapchain_data *data) // get_stat(data, ARRAY_SIZE(data->frames_stats) - 1), // data->stats_min.stats[s], data->stats_max.stats[s]); } + ImGui::PopStyleColor(); } data->window_size = ImVec2(data->window_size.x, ImGui::GetCursorPosY() + 10.0f); } @@ -1886,6 +1888,10 @@ static void setup_swapchain_data(struct swapchain_data *data, ImGui::GetIO().IniFilename = NULL; ImGui::GetIO().DisplaySize = ImVec2((float)data->width, (float)data->height); + ImGuiStyle& style = ImGui::GetStyle(); + //style.Colors[ImGuiCol_FrameBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.00f); // Setting temporarily with PushStyleColor() + style.Colors[ImGuiCol_PlotLines] = ImVec4(0.0f, 1.0f, 0.0f, 1.00f); + struct device_data *device_data = data->device; /* Render pass */
Update changelog for v0.13.0 Update changelog
@@ -10,6 +10,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [Unreleased][Unreleased_log] -------------- +[v0.13.0][v0.13.0_log] +-------------- + +### Added +- OpenSSL version 1.1.1 libraries are now available for an enclave to use. See the [attested_tls sample](samples/attested_tls#build-and-run) for an example of building enclaves with OpenSSL. +- Enabled oe_verify_evidence() with a NULL format id to verify the legacy report generated by oe_get_report(). +- Added the following SGX attestation claims from oe_verify_evidence(): + - OE_CLAIM_SGX_PF_GP_EXINFO_ENABLED + - OE_CLAIM_SGX_ISV_EXTENDED_PRODUCT_ID + - OE_CLAIM_SGX_IS_MODE64BIT + - OE_CLAIM_SGX_HAS_PROVISION_KEY + - OE_CLAIM_SGX_HAS_EINITTOKEN_KEY + - OE_CLAIM_SGX_USES_KSS + - OE_CLAIM_SGX_CONFIG_ID + - OE_CLAIM_SGX_CONFIG_SVN + - OE_CLAIM_SGX_ISV_FAMILY_ID +- Added the following fields for SGX KSS (Key Separation and Sharing) support: + - FamilyID + - ExtendedProductID + ## Breaking Changes - liboecryptombed is now called liboecryptombedtls and will no longer be automatically included as a link dependency when linking liboeenclave in CMake. - The `openenclave-config.cmake` and `openenclave-lvi-mitigation-config.cmake` will not specify the renamed liboecryptombedtls as a `PUBLIC` link requirement for liboeenclave. @@ -24,6 +44,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 The command `objdump -t enclave-filename | grep oe_SYS_` can be used to figure out the list of syscalls invoked by code within the enclave. While most syscall implementations make OCALLs, some may be implemented entirely within the enclave or may be noops (e.g SYS_futex). +- Changed the attestation evidence extension OIDs for certificates generated by the following APIs. Verifiers must call oe_verify_attestation_certificate APIs from v.0.11.0 or above. + - oe_generate_attestation_certificate(): "1.3.6.1.4.1.311.105.1" + - oe_get_attestation_certificate_with_evidnece(): "1.3.6.1.4.1.311.105.2" [v0.12.0][v0.12.0_log] -------------- @@ -535,7 +558,9 @@ as listed below. Initial private preview release, no longer supported. -[Unreleased_log]:https://github.com/openenclave/openenclave/compare/v0.12.0...HEAD +[Unreleased_log]:https://github.com/openenclave/openenclave/compare/v0.13.0...HEAD + +[v0.13.0_log]:https://github.com/openenclave/openenclave/compare/v0.12.0...v0.13.0 [v0.12.0_log]:https://github.com/openenclave/openenclave/compare/v0.11.0...v0.12.0
Build debug openmp libraries by dropping use of AOMP_BUILD_TRUNK
@@ -129,11 +129,8 @@ fi # This is how we tell the hsa plugin where to find hsa export HSA_RUNTIME_PATH=$ROCM_DIR/hsa -# Trunk does not yet use standard library search for HIP device libs -# So tell HIP where to find rocm-device-libs with HIP_DEVICE_LIB_PATH -if [ "$AOMP_BUILD_TRUNK" != 0 ] ; then + export HIP_DEVICE_LIB_PATH=$ROCM_DIR/lib -fi if [ "$1" != "nocmake" ] && [ "$1" != "install" ] ; then @@ -166,8 +163,6 @@ if [ "$1" != "nocmake" ] && [ "$1" != "install" ] ; then exit 1 fi - # We cannot build debug libs with hip till hip has support for robust posix printf - if [ "$AOMP_BUILD_TRUNK" == 0 ] ; then echo rm -rf $BUILD_DIR/build/openmp_debug rm -rf $BUILD_DIR/build/openmp_debug MYCMAKEOPTS="$COMMON_CMAKE_OPTS -DLIBOMPTARGET_NVPTX_DEBUG=ON -DCMAKE_BUILD_TYPE=Debug $AOMP_ORIGIN_RPATH -DROCM_DIR=$ROCM_DIR" @@ -188,7 +183,6 @@ if [ "$1" != "nocmake" ] && [ "$1" != "install" ] ; then exit 1 fi fi -fi cd $BUILD_DIR/build/openmp echo @@ -203,7 +197,6 @@ if [ $? != 0 ] ; then exit 1 fi -if [ "$AOMP_BUILD_TRUNK" == 0 ] ; then cd $BUILD_DIR/build/openmp_debug echo echo @@ -221,7 +214,6 @@ else echo fi fi -fi # ----------- Install only if asked ---------------------------- if [ "$1" == "install" ] ; then @@ -234,7 +226,6 @@ if [ "$1" == "install" ] ; then exit 1 fi - if [ "$AOMP_BUILD_TRUNK" == 0 ] ; then cd $BUILD_DIR/build/openmp_debug echo echo " -----Installing to $INSTALL_OPENMP/lib-debug ---- " @@ -244,4 +235,3 @@ if [ "$1" == "install" ] ; then exit 1 fi fi -fi
Fixed path for publishing in Jenkinsfile.
@@ -1122,7 +1122,7 @@ def buildDebianPackage(stageName, image) { publishPackages('a7', 'compose/frontend/volumes/incoming') } if(stageName == 'buildPackage/ubuntu/bionic'){ - publishPackages('doc.libelektra.org', '/srv/repositories/incoming/') + publishPackages('doc.libelektra.org', '/incoming/') } } }
Restore -march flag for Android builds fixes - renewed discussion in suggests removal of the option was primarily aimed at non-Android builds
ifeq ($(CORE), $(filter $(CORE),ARMV7 CORTEXA9 CORTEXA15)) ifeq ($(OSNAME), Android) -CCOMMON_OPT += -mfpu=neon -FCOMMON_OPT += -mfpu=neon +CCOMMON_OPT += -mfpu=neon -march=armv7-a +FCOMMON_OPT += -mfpu=neon -march=armv7-a else CCOMMON_OPT += -mfpu=vfpv3 -march=armv7-a FCOMMON_OPT += -mfpu=vfpv3 -march=armv7-a
add docu for new go lib functions
@@ -19,11 +19,11 @@ provider from `oidc-agent`. All functions take a `TokenRequest` struct. This struct describes the request: ```go +// TokenRequest is used to request an access token from the agent type TokenRequest struct { - // The account short name that should be used (Can be omitted if IssuerURL is - // specified) + // ShortName that should be used (Can be omitted if IssuerURL is specified) ShortName string - // The IssuerURL for which an access token should be obtained (Can be omitted + // IssuerURL for which an access token should be obtained (Can be omitted // if ShortName is specified) IssuerURL string // MinValidPeriod specifies how long the access token should be valid at @@ -33,10 +33,11 @@ type TokenRequest struct { Scopes []string // The audiences for the requested access token Audiences []string - // An string describing the requesting application (i.e. its name). It might - // be displayed to the user, if the requested must be confirmed or an account + // A string describing the requesting application (i.e. its name). It might + // be displayed to the user, if the request must be confirmed or an account // configuration loaded. ApplicationHint string +} ``` ### GetAccessToken @@ -172,3 +173,27 @@ if err != nil { } ``` +## Getting Loaded Accounts + +```go +func GetLoadedAccounts() (accountNames []string, err error) { +``` + +This function requests the list of currently loaded accounts from oidc-agent. + +#### Return Value + +The function returns a list of the currently loaded accounts as a `[]string` on success and an `OIDCAgentError` on +failure. + +## Getting Configured Accounts + +```go +func GetConfiguredAccounts() (accounts []string) { +``` + +This function checks the oidc-agent directory for the configured accounts. + +#### Return Value + +The function returns a list of the configured accounts as a `[]string`.
doc: Add sentence explaining what the Jenkins section does
@@ -165,6 +165,7 @@ If you feel like your inquiry does not warrent a issue on its own, please use [our buildserver issue](https://issues.libelektra.org/160). ## Jenkins +This section describes how to replicate the current jenkins configuration. ### Jenkins libelektra configuration The `libelektra` build job is a multibranch pipeline job.
add GPFDIST_APR_MEM_MAX_SIZE to limit memory pool of gpfdist
@@ -3444,6 +3444,18 @@ int gpfdist_init(int argc, const char* const argv[]) { pthread_create(&watchdog, 0, watchdog_thread, 0); } } + + char* aprMemStr = getenv("GPFDIST_APR_MEM_MAX_SIZE"); + long aprMemSize = 0; + if (aprMemStr != NULL) { + aprMemSize = strtol(aprMemStr, &endptr, 10); + + if (endptr != aprMemStr + strlen(aprMemStr) || aprMemSize > INT_MAX) { + fprintf(stderr, "incorrect GPFDIST_APR_MEM_MAX_SIZE: %s\n", aprMemStr); + return -1; + } + apr_allocator_max_free_set(apr_pool_allocator_get(gcb.pool), aprMemSize); + } #endif return 0; }
[acrn-configuration tool] make scenario shared file error cp error Fixed the error that the "'chmod +x ./build/acrn_release_deb/DEBIAN/preinst'" command and "sed -i \'s/\r//\' ./build/acrn_release_deb/DEBIAN/preinst" command are still executed when there is no "./build/acrn_release_deb/DEBIAN/preinst" file after build.
@@ -127,6 +127,7 @@ def create_acrn_deb(board, scenario, version, build_dir): run_command('chmod +x ./build/acrn_release_deb/etc/grub.d/100_ACRN', cur_dir) run_command('chmod +x ./build/acrn_release_deb/DEBIAN/postinst', cur_dir) run_command('sed -i \'s/\r//\' ./build/acrn_release_deb/DEBIAN/postinst', cur_dir) + if os.path.exists('./build/acrn_release_deb/DEBIAN/preinst'): run_command('chmod +x ./build/acrn_release_deb/DEBIAN/preinst', cur_dir) run_command('sed -i \'s/\r//\' ./build/acrn_release_deb/DEBIAN/preinst', cur_dir)
dns-address: subscribe before poke
?. good %+ strand-fail:strandio %bail-early-self-check [>"couldn't access ship on port 80"< ~] + ;< our=@p bind:m get-our:strandio + ;< ~ bind:m (watch:strandio /sub collector-app /(scot %p our)) ;< ~ bind:m (poke:strandio collector-app %dns-address !>([%if if])) =/ msg=cord (cat 3 'request for DNS sent to ' (scot %p p:collector-app)) ;< ~ bind:m (app-message:strandio %dns msg ~) - ;< our=@p bind:m get-our:strandio - ;< ~ bind:m (watch:strandio /sub collector-app /(scot %p our)) =/ msg=cord (cat 3 'awaiting response from ' (scot %p p:collector-app)) ;< ~ bind:m (app-message:strandio %dns msg ~)
fix axis_pps_counter
@@ -17,11 +17,23 @@ module axis_pps_counter # output wire m_axis_tvalid ); - reg [CNTR_WIDTH-1:0] int_cntr_reg, int_cntr_next; - reg int_enbl_reg, int_enbl_next; - reg [2:0] int_data_reg; - - wire int_edge_wire; + reg [CNTR_WIDTH-1:0] int_cntr_reg; + reg int_enbl_reg; + reg [1:0] int_data_reg; + + wire int_edge_wire, int_pps_wire; + + xpm_cdc_single #( + .DEST_SYNC_FF(4), + .INIT_SYNC_FF(0), + .SRC_INPUT_REG(0), + .SIM_ASSERT_CHK(0) + ) cdc_0 ( + .src_in(pps_data), + .src_clk(), + .dest_out(int_pps_wire), + .dest_clk(aclk) + ); always @(posedge aclk) begin @@ -29,33 +41,17 @@ module axis_pps_counter # begin int_cntr_reg <= {(CNTR_WIDTH){1'b0}}; int_enbl_reg <= 1'b0; - int_data_reg <= 3'd0; + int_data_reg <= 2'd0; end else begin - int_cntr_reg <= int_cntr_next; - int_enbl_reg <= int_enbl_next; - int_data_reg <= {int_data_reg[1:0], pps_data}; + int_cntr_reg <= int_edge_wire ? {(CNTR_WIDTH){1'b0}} : int_cntr_reg + 1'b1; + int_enbl_reg <= int_edge_wire ? 1'b1 : int_enbl_reg; + int_data_reg <= {int_data_reg[0], ~int_pps_wire}; end end - assign int_edge_wire = ~int_data_reg[2] & int_data_reg[1]; - - always @* - begin - int_cntr_next = int_cntr_reg + 1'b1; - int_enbl_next = int_enbl_reg; - - if(~int_enbl_reg & int_edge_wire) - begin - int_enbl_next = 1'b1; - end - - if(int_edge_wire) - begin - int_cntr_next = {(CNTR_WIDTH){1'b0}}; - end - end + assign int_edge_wire = int_data_reg[1] & ~int_data_reg[0]; assign m_axis_tdata = {{(AXIS_TDATA_WIDTH-CNTR_WIDTH){1'b0}}, int_cntr_reg}; assign m_axis_tvalid = int_enbl_reg & int_edge_wire;
Modernize the cups-threads autoconf source file.
@@ -9340,19 +9340,26 @@ then : fi -have_pthread=no +have_pthread="no" PTHREAD_FLAGS="" -if test "x$enable_threads" != xno; then +if test "x$enable_threads" != xno +then : + ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" if test "x$ac_cv_header_pthread_h" = xyes then : + + printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h + fi - if test x$ac_cv_header_pthread_h = xyes; then + if test x$ac_cv_header_pthread_h = xyes +then : + for flag in -lpthreads -lpthread -pthread; do { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5 printf %s "checking for pthread_create using $flag... " >&6; } @@ -9360,38 +9367,54 @@ printf %s "checking for pthread_create using $flag... " >&6; } LIBS="$flag $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + #include <pthread.h> int main (void) { + pthread_create(0, 0, 0, 0); + ; return 0; } + _ACEOF if ac_fn_c_try_link "$LINENO" then : - have_pthread=yes + + have_pthread="yes" + else $as_nop + LIBS="$SAVELIBS" + fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5 printf "%s\n" "$have_pthread" >&6; } - if test $have_pthread = yes; then + if test $have_pthread = yes +then : + PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT" - # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to - # be POSIX-compliant... :( - if test $host_os_name = sunos; then + # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to be POSIX- + # compliant... :( + if test $host_os_name = sunos +then : + PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS" + fi break + fi done + fi + fi
stm32/modusocket: Handle case of NULL NIC in socket ioctl.
@@ -369,6 +369,13 @@ mp_uint_t socket_ioctl(mp_obj_t self_in, mp_uint_t request, uintptr_t arg, int * } return 0; } + if (self->nic == MP_OBJ_NULL) { + if (request == MP_STREAM_POLL) { + return MP_STREAM_POLL_NVAL; + } + *errcode = MP_EINVAL; + return MP_STREAM_ERROR; + } return self->nic_type->ioctl(self, request, arg, errcode); }
Allow mount even if restore failed. Even if restore failed, clean journal area & execute bind when mount
@@ -2001,7 +2001,8 @@ int smartfs_journal_init(struct smartfs_mountpt_s *fs) * restored yet */ ret = process_transaction(fs); if (ret != OK) { - goto err_out; + fdbg("process_transaction failed, but clean journal area\n"); + break; } } else { /* If a valid transaction does not exist here, stop checking further */ @@ -2013,7 +2014,7 @@ int smartfs_journal_init(struct smartfs_mountpt_s *fs) /* Now restore write transactions from the list */ ret = restore_write_transactions(fs); if (ret != OK) { - goto err_out; + fdbg("restore_write_transactions failed, but clean journal area\n"); } } }
GSettings: fix ksLookup calls
@@ -325,7 +325,7 @@ static void elektra_settings_backend_reset (GSettingsBackend * backend, const gc g_free (keypathname); if (gkey != NULL) { - gelektra_keyset_lookup (esb->gks, gkey, KDB_O_POP); + gelektra_keyset_lookup (esb->gks, gkey, GELEKTRA_KDB_O_POP); g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s.", "Key not found and reseted"); g_settings_backend_changed (backend, key, origin_tag); } @@ -480,7 +480,7 @@ static void elektra_settings_backend_unsubscribe (GSettingsBackend * backend, co if (*counter == 0) { g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s", "Subscription found deleting"); - gelektra_keyset_lookup (esb->subscription_gks, gkey, KDB_O_POP); + gelektra_keyset_lookup (esb->subscription_gks, gkey, GELEKTRA_KDB_O_POP); } return; }