message
stringlengths
6
474
diff
stringlengths
8
5.22k
Add modelID to Develco motion sensor DDF
{ "schema": "devcap1.schema.json", - "manufacturername": "Develco Products A/S", - "modelid": "MOSZB-140", + "manufacturername": ["Develco Products A/S", "Develco Products A/S"], + "modelid": ["MOSZB-130", "MOSZB-140"], "vendor": "Develco Products", - "product": "MOSZB-140 motion sensor pro", + "product": "MOSZB-130/140 motion sensor pro", "sleeper": true, "status": "Gold", "subdevices": [
common CHANGE event pipe perms Only the owner should be able to read new events.
@@ -169,8 +169,8 @@ int pthread_mutex_timedlock(pthread_mutex_t *mutex, const struct timespec *absti /** permissions of all subscription SHMs */ #define SR_SUB_SHM_PERM 00666 -/** permissions of all event pipes */ -#define SR_EVPIPE_PERM 00666 +/** permissions of all event pipes (only owner read, anyone else write */ +#define SR_EVPIPE_PERM 00622 /** permissions of directories for sysrepo files */ #define SR_DIR_PERM 00777
Added --browsers-file command line option to man page.
-.TH goaccess 1 "MARCH 2017" Linux "User Manuals" +.TH goaccess 1 "NOVEMBER 2018" Linux "User Manuals" .SH NAME goaccess \- fast web log analyzer and interactive viewer. .SH SYNOPSIS @@ -527,6 +527,11 @@ e.g., 2a03:2880:2110:df07:face:b00c::1 => 2a03:2880:2110:df07:: Include static files that contain a query string. e.g., /fonts/fontawesome-webfont.woff?v=4.0.3 .TP +\fB\-\-browsers-file=<path> +Include an additional delimited list of browsers/crawlers/feeds etc. +See config/browsers.list for an example or +https://raw.githubusercontent.com/allinurl/goaccess/master/config/browsers.list +.TP \fB\-\-date-spec=<date|hr> Set the date specificity to either date (default) or hr to display hours appended to the date.
Update repository links to the gitlab instance. Neither git.xiph.org not the jenkins instances are still online. Point people at the new gitlab instance and build status badge instead.
# Vorbis +[![GitLab Build Status](https://gitlab.xiph.org/xiph/vorbis/badges/master/pipeline.svg)](https://gitlab.xiph.org/xiph/vorbis/-/pipelines) [![Travis Build Status](https://travis-ci.org/xiph/vorbis.svg?branch=master)](https://travis-ci.org/xiph/vorbis) -[![Jenkins Build Status](https://mf4.xiph.org/jenkins/job/libvorbis/badge/icon)](https://mf4.xiph.org/jenkins/job/libvorbis/) [![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/github/xiph/vorbis?branch=master&svg=true)](https://ci.appveyor.com/project/rillian/vorbis) Vorbis is a general purpose audio and music encoding format @@ -68,7 +68,7 @@ pre-built utilities may be found there. #### Building from master #### Development source is under git revision control at -https://git.xiph.org/vorbis.git. You will also need the +https://gitlab.xiph.org/xiph/vorbis.git. You will also need the newest versions of autoconf, automake, libtool and pkg-config in order to compile Vorbis from development source. A configure script is provided for you in the source tarball distributions.
Add http_buffer description
static const char *TAG = "HTTP_CLIENT"; +/** + * HTTP Buffer + */ typedef struct { - char *data; - int len; - char *raw_data; - int raw_len; - char *output_ptr; + char *data; /*!< The HTTP data received from the server */ + int len; /*!< The HTTP data len received from the server */ + char *raw_data; /*!< The HTTP data after decoding */ + int raw_len; /*!< The HTTP data len after decoding */ + char *output_ptr; /*!< The destination address of the data to be copied to after decoding */ } esp_http_buffer_t; + /** * private HTTP Data structure */
Fix typos in log.h
@@ -15,7 +15,7 @@ enum { CLAP_LOG_ERROR = 3, CLAP_LOG_FATAL = 4, - // Those severities should be used to report misbehaviour. + // These severities should be used to report misbehaviour. // The plugin one can be used by a layer between the plugin and the host. CLAP_LOG_HOST_MISBEHAVING = 5, CLAP_LOG_PLUGIN_MISBEHAVING = 6,
Remove Busch-Jaeger mac address hack, causes nwk address conflicts Issue
@@ -11161,12 +11161,6 @@ void DeRestPluginPrivate::handleIeeeAddressReqIndication(const deCONZ::ApsDataIn stream.setByteOrder(QDataStream::LittleEndian); extAddr = apsCtrl->getParameter(deCONZ::ParamMacAddress); - // trick OTA client of busch jaeger switch to think this is a bj dongle - if ((ind.srcAddress().ext() & macPrefixMask) == bjeMacPrefix) - { - extAddr &= ~macPrefixMask; - extAddr |= bjeMacPrefix; - } quint8 status = ZDP_SUCCESS; stream << seq;
Fix alignment errors in 32-bit build with MSVC Changes the work_tree parameter in search.c functions from an array to a pointer. Fixes "formal parameter with requested alignment of 8 won't be aligned" errors.
@@ -95,7 +95,7 @@ static INLINE void copy_cu_coeffs(int x_local, int y_local, int width, lcu_t *fr /** * Copy all non-reference CU data from next level to current level. */ -static void work_tree_copy_up(int x_local, int y_local, int depth, lcu_t work_tree[MAX_PU_DEPTH + 1]) +static void work_tree_copy_up(int x_local, int y_local, int depth, lcu_t *work_tree) { const int width = LCU_WIDTH >> depth; copy_cu_info (x_local, y_local, width, &work_tree[depth + 1], &work_tree[depth]); @@ -107,7 +107,7 @@ static void work_tree_copy_up(int x_local, int y_local, int depth, lcu_t work_tr /** * Copy all non-reference CU data from current level to all lower levels. */ -static void work_tree_copy_down(int x_local, int y_local, int depth, lcu_t work_tree[MAX_PU_DEPTH + 1]) +static void work_tree_copy_down(int x_local, int y_local, int depth, lcu_t *work_tree) { const int width = LCU_WIDTH >> depth; for (int i = depth + 1; i <= MAX_PU_DEPTH; i++) { @@ -386,7 +386,7 @@ static uint8_t get_ctx_cu_split_model(const lcu_t *lcu, int x, int y, int depth) * - All the final data for the LCU gets eventually copied to depth 0, which * will be the final output of the recursion. */ -static double search_cu(encoder_state_t * const state, int x, int y, int depth, lcu_t work_tree[MAX_PU_DEPTH + 1]) +static double search_cu(encoder_state_t * const state, int x, int y, int depth, lcu_t *work_tree) { const encoder_control_t* ctrl = state->encoder_control; const videoframe_t * const frame = state->tile->frame;
SOVERSION bump to version 6.1.13
@@ -68,7 +68,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 6) set(SYSREPO_MINOR_SOVERSION 1) -set(SYSREPO_MICRO_SOVERSION 12) +set(SYSREPO_MICRO_SOVERSION 13) set(SYSREPO_SOVERSION_FULL ${SYSREPO_MAJOR_SOVERSION}.${SYSREPO_MINOR_SOVERSION}.${SYSREPO_MICRO_SOVERSION}) set(SYSREPO_SOVERSION ${SYSREPO_MAJOR_SOVERSION})
out_bigquery: code style change
@@ -308,7 +308,8 @@ struct flb_bigquery *flb_bigquery_conf_create(struct flb_output_instance *ins, flb_bigquery_conf_destroy(ctx); return NULL; } - ctx->uri = flb_sds_printf(&ctx->uri, FLB_BIGQUERY_RESOURCE_TEMPLATE, ctx->project_id, ctx->dataset_id, ctx->table_id); + ctx->uri = flb_sds_printf(&ctx->uri, FLB_BIGQUERY_RESOURCE_TEMPLATE, + ctx->project_id, ctx->dataset_id, ctx->table_id); flb_info("[out_bigquery] project='%s' dataset='%s' table='%s'", ctx->project_id, ctx->dataset_id, ctx->table_id);
kadnode-ctl: respect linker flags
@@ -84,7 +84,7 @@ build/%.o : src/%.c src/%.h $(CC) $(CFLAGS) -c -o $@ $< kadnode-ctl: - $(CC) $(CFLAGS) src/kadnode-ctl.c -o build/kadnode-ctl + $(CC) $(CFLAGS) src/kadnode-ctl.c -o build/kadnode-ctl $(LFLAGS) libnss-kadnode.so.2: $(CC) $(CFLAGS) -fPIC -c -o build/ext-libnss.o src/ext-libnss.c
Updated "Validate Debug Unit" section.
Binary files a/CMSIS/DoxyGen/DAP/src/images/MDK_Validation.png and b/CMSIS/DoxyGen/DAP/src/images/MDK_Validation.png differ
Fix gpperfmon queries_history is showing 0 values for rows_out column Gpperfmon table rows_out queries_history shows zero values under column "rows_out", even though they returned several rows as output. This fix will decrease the possibility of occurance of this bug. But it is still possible due to gpperfmon harvest mode.
@@ -1047,7 +1047,7 @@ static void extract_segments_exec(gpmon_packet_t* pkt) { rec->u.queryseg.sum_cpu_elapsed += pidrec->cpu_elapsed; rec->u.queryseg.sum_measures_rows_out += p->rowsout; - if (p->key.hash_key.segid == -1 && p->key.hash_key.nid == 1) + if (p->key.hash_key.segid == -1 && p->key.hash_key.nid == 1 && (int64)(p->rowsout) > rec->u.queryseg.final_rowsout) { rec->u.queryseg.final_rowsout = p->rowsout; }
Support auto update certain R21 firmware versions
@@ -478,7 +478,7 @@ void DeRestPluginPrivate::queryFirmwareVersion() bool autoUpdate = false; // auto update factory fresh devices with too old or no firmware - if (fwVersion == FW_ONLY_R21_BOOTLOADER) + if (fwVersion == FW_ONLY_R21_BOOTLOADER || (fwVersion > 0 && fwVersion <= GW_AUTO_UPDATE_R21_FW_VERSION)) { autoUpdate = true; } @@ -488,7 +488,6 @@ void DeRestPluginPrivate::queryFirmwareVersion() DBG_Printf(DBG_INFO, "GW firmware start auto update\n"); startUpdateFirmware(); } - return; } else
Update PhVerifyFileWithAdditionalCatalog for NT paths
@@ -675,12 +675,27 @@ INT_PTR CALLBACK PhpProcessGeneralDlgProc( { case IDC_COMPANYNAME_LINK: { - if (processItem->FileNameWin32) + if (processItem->FileName) + { + NTSTATUS status; + HANDLE fileHandle; + + status = PhCreateFile( + &fileHandle, + processItem->FileName, + FILE_READ_DATA | FILE_READ_ATTRIBUTES | SYNCHRONIZE, + FILE_ATTRIBUTE_NORMAL, + FILE_SHARE_READ | FILE_SHARE_DELETE, + FILE_OPEN, + FILE_NON_DIRECTORY_FILE | FILE_SYNCHRONOUS_IO_NONALERT + ); + + if (NT_SUCCESS(status)) { PH_VERIFY_FILE_INFO info; memset(&info, 0, sizeof(PH_VERIFY_FILE_INFO)); - info.FileName = processItem->FileNameWin32->Buffer; + info.FileHandle = fileHandle; info.Flags = PH_VERIFY_VIEW_PROPERTIES; info.hWnd = hwndDlg; PhVerifyFileWithAdditionalCatalog( @@ -688,6 +703,13 @@ INT_PTR CALLBACK PhpProcessGeneralDlgProc( processItem->PackageFullName, NULL ); + + NtClose(fileHandle); + } + else + { + PhShowStatus(hwndDlg, L"Unable to perform the operation.", status, 0); + } } } break;
When peeking data in unsaved slot, just return 0
@@ -3229,10 +3229,16 @@ class ScriptBuilder { dataPeek = (slot = 0, variableSource: string, variableDest: string) => { const variableDestAlias = this.getVariableAlias(variableDest); const variableSourceAlias = this.getVariableAlias(variableSource); + const foundLabel = this.getNextLabel(); + this._addComment( `Store ${variableSourceAlias} from save slot ${slot} into ${variableDestAlias}` ); + this._stackPushConst(0); this._savePeek(".ARG0", variableDestAlias, variableSourceAlias, 1, slot); + this._ifConst(".EQ", ".ARG0", 1, foundLabel, 1); + this._setVariableConst(variableDest, 0); + this._label(foundLabel); this._addNL(); };
bin: fix abort() location on SIGSEGV signal
@@ -219,8 +219,8 @@ static void flb_signal_handler(int signal) case SIGSEGV: #ifdef FLB_HAVE_LIBBACKTRACE flb_stacktrace_print(); - abort(); #endif + abort(); default: break; }
build with dynamic modules to test a theory
/* These settings all affect linking, so use cautiously. */ #define JANET_SINGLE_THREADED -#define JANET_NO_DYNAMIC_MODULES +/* #define JANET_NO_DYNAMIC_MODULES */ #define JANET_NO_NANBOX /* #define JANET_API __attribute__((visibility ("default"))) */
reduce length of DEBUG ==> D WARNING ==> W ERROR ==> E and reduce the __FILE__ to print only the filename without path
*/ /** @file + + generic logging functions: + - OC_LOGipaddr + prints the endpoint information to stdout + - OC_LOGbytes + prints the bytes to stdout + - OC_DBG + prints information as Debug level + - OC_WRN + prints information as Warning level + - OC_ERR + prints information as Error level + + compile flags: + - OC_DEBUG + enables output of logging functions + - OC_NO_LOG_BYTES + disables output of OC_LOGbytes logging function + if OC_DEBUG is enabled. */ #ifndef OC_LOG_H #define OC_LOG_H #include <stdio.h> +#include <string.h> +#ifdef WIN32 +#define __FILENAME__ (strrchr(__FILE__, '\\') ? strrchr(__FILE__, '\\') + 1 : __FILE__) +#else +#define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__) +#endif #ifdef __ANDROID__ #include "android/oc_log_android.h" @@ -171,28 +196,34 @@ extern "C" #else /* ! __ANDROID */ #define OC_LOG(level, ...) \ do { \ - PRINT("%s: %s <%s:%d>: ", level, __FILE__, __func__, __LINE__); \ + PRINT("%s: %s <%s:%d>: ", level, __FILENAME__, __func__, __LINE__); \ PRINT(__VA_ARGS__); \ PRINT("\n"); \ } while (0) + #define OC_LOGipaddr(endpoint) \ do { \ - PRINT("DEBUG: %s <%s:%d>: ", __FILE__, __func__, __LINE__); \ + PRINT("DEBUG: %s <%s:%d>: ", __FILENAME__, __func__, __LINE__); \ PRINTipaddr(endpoint); \ PRINT("\n"); \ } while (0) + +#ifndef OC_NO_LOG_BYTES #define OC_LOGbytes(bytes, length) \ do { \ - PRINT("DEBUG: %s <%s:%d>: ", __FILE__, __func__, __LINE__); \ + PRINT("DEBUG: %s <%s:%d>: ", __FILENAME__, __func__, __LINE__); \ uint16_t i; \ for (i = 0; i < length; i++) \ PRINT(" %02X", bytes[i]); \ PRINT("\n"); \ } while (0) +#else +#endif /* NO_LOG_BYTES */ #endif /* __ANDROID__ */ -#define OC_DBG(...) OC_LOG("DEBUG", __VA_ARGS__) -#define OC_WRN(...) OC_LOG("WARNING", __VA_ARGS__) -#define OC_ERR(...) OC_LOG("ERROR", __VA_ARGS__) + +#define OC_DBG(...) OC_LOG("D", __VA_ARGS__) +#define OC_WRN(...) OC_LOG("W", __VA_ARGS__) +#define OC_ERR(...) OC_LOG("E", __VA_ARGS__) #else #define OC_LOG(...) #define OC_DBG(...)
docs/gadgets: Add missing "bash" to terminal snippets
@@ -25,14 +25,14 @@ We can use one or more of these parameters to choose which pods or containers will be inspected by our gadgets. For example: -``` +```bash $ kubectl gadget trace exec -n demo -l app=myapp ``` Will run the `exec` tracer for all pods in the `demo` namespace that have the `app=myapp` label. -``` +```bash $ kubectl gadget snapshot socket -A -p nginx ``` @@ -52,7 +52,7 @@ This can be overridden with either `json` or `custom-columns`. Passing `-o json` will print all the information gathered in JSON format. For example: -``` +```bash $ kubectl gadget trace tcp -A -o json | jq { "type": "normal", @@ -81,8 +81,8 @@ For example, when tracing which processes were killed because of the node running out of memory, we can choose to only print the PID and command of the killed process: -``` -kubectl gadget trace oomkill -A -o custom-columns=kpid,kcomm +```bash +$ kubectl gadget trace oomkill -A -o custom-columns=kpid,kcomm KPID KCOMM 15182 tail ``` @@ -97,7 +97,7 @@ we want to run the gadget. For example, we can trace files that get opened by pods in the `gadget` namespace during a window of 5 seconds, like this: -``` +```bash $ kubectl gadget trace open -n gadget --timeout 5 NODE NAMESPACE POD CONTAINER PID COMM FD ERR PATH minikube gadget gadget-vhcj7 gadget 1303299 gadgettracerman 3 0 /etc/ld.so.cache @@ -117,7 +117,7 @@ support for many CLI options that are common to many Kubernetes tools, which let us specify how to connect to the cluster, which kubeconfig to use, and so on. -``` +```bash --as string Username to impersonate for the operation --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. --cache-dir string Default cache directory (default "/home/marga/.kube/cache")
apps/builtin/Makefile: Move the RWILDCARD function definition from apps/builtin/Makefile to nuttx/tools/Config.mk. It may have a broader usage than it does now.
@@ -60,12 +60,6 @@ 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)
fix: modify uncorrect head file from qsee_head.h to qsee_geap.h in platform of mbedtls
@@ -158,7 +158,7 @@ int mbedtls_platform_set_calloc_free( void * (*calloc_func)( size_t, size_t ), #endif /* MBEDTLS_PLATFORM_FREE_MACRO && MBEDTLS_PLATFORM_CALLOC_MACRO */ #else /* !MBEDTLS_PLATFORM_MEMORY */ #if defined (MBEDTLS_PLATFORM_QSEE_ENTROPY) - #include "qsee_head.h" + #include "qsee_heap.h" #define mbedtls_free qsee_free #define mbedtls_calloc qsee_calloc #else
Changed GKeyData members to const as their value don't change up until hash insertion. Through the pointer.
@@ -168,13 +168,13 @@ typedef struct GRawData_ { * root value, i.e., Windows, and a unique key which is the combination of * date, IP and user agent */ typedef struct GKeyData_ { - void *data; - void *data_key; + const void *data; + const void *data_key; uint32_t data_nkey; uint32_t cdnkey; /* cache data nkey */ - void *root; - void *root_key; + const void *root; + const void *root_key; uint32_t root_nkey; uint32_t crnkey; /* cache root nkey */
data BUGFIX adding default nodes into data tree when parsing In case the data from a specific module was not present, the default data nodes from such a module were created, but not connected with the original data tree, causing not only incorrect data tree, but also memory leaks.
@@ -339,7 +339,7 @@ lyd_parse_data(const struct ly_ctx *ctx, struct ly_in *in, LYD_FORMAT format, ui if (!mod) { break; } - if (first == *tree) { + if (!first || first == *tree) { /* make sure first2 changes are carried to tree */ first2 = tree; } else {
Fix coeff split in poly kernel
@@ -396,13 +396,11 @@ static complex float krn_poly(void* _data, int s, const double mpos[3]) complex float val = 0.; - for (int p = 0; p < data->P; p++) { - - if (data->coeff && (s == p)) - continue; - + if (data->coeff) + val = (*data->p)[s].coeff * (data->kspace ? kpolygon : xpolygon)((*data->p)[s].N, *(*data->p)[s].pg, mpos); + else + for (int p = 0; p < data->P; p++) val += (*data->p)[p].coeff * (data->kspace ? kpolygon : xpolygon)((*data->p)[p].N, *(*data->p)[p].pg, mpos); - } return val; }
websockets: Set keepalive options after adding transport to the list To be in line with other code and mainly to support base/foundation transport used by both tcp and ssl transport layers
@@ -329,8 +329,8 @@ esp_websocket_client_handle_t esp_websocket_client_init(const esp_websocket_clie ESP_WS_CLIENT_MEM_CHECK(TAG, tcp, goto _websocket_init_fail); esp_transport_set_default_port(tcp, WEBSOCKET_TCP_DEFAULT_PORT); - esp_transport_tcp_set_keep_alive(tcp, &client->keep_alive_cfg); esp_transport_list_add(client->transport_list, tcp, "_tcp"); // need to save to transport list, for cleanup + esp_transport_tcp_set_keep_alive(tcp, &client->keep_alive_cfg); esp_transport_handle_t ws = esp_transport_ws_init(tcp); @@ -347,6 +347,7 @@ esp_websocket_client_handle_t esp_websocket_client_init(const esp_websocket_clie ESP_WS_CLIENT_MEM_CHECK(TAG, ssl, goto _websocket_init_fail); esp_transport_set_default_port(ssl, WEBSOCKET_SSL_DEFAULT_PORT); + esp_transport_list_add(client->transport_list, ssl, "_ssl"); // need to save to transport list, for cleanup if (config->use_global_ca_store == true) { esp_transport_ssl_enable_global_ca_store(ssl); } else if (config->cert_pem) { @@ -374,7 +375,6 @@ esp_websocket_client_handle_t esp_websocket_client_init(const esp_websocket_clie esp_transport_ssl_skip_common_name_check(ssl); } esp_transport_ssl_set_keep_alive(ssl, &client->keep_alive_cfg); - esp_transport_list_add(client->transport_list, ssl, "_ssl"); // need to save to transport list, for cleanup esp_transport_handle_t wss = esp_transport_ws_init(ssl); ESP_WS_CLIENT_MEM_CHECK(TAG, wss, goto _websocket_init_fail);
Add routine to colour convex_successors
@@ -1579,7 +1579,9 @@ int* get_common_parallel_dims(int scc_id, int* convex_successors, int num_convex v = succ_scc_offset+j; /* The vertex can be coloured if there is no self edge on j, * no edge between dimension j and k in the fcg, and there is - * no vertex adjecent to j that is already coloured. */ + * no vertex adjecent to j that is already coloured. Also + * vertex j must be parallel and fusing with dimension k + * must not hinder parallelism */ if (colour[v]==0 && !fcg->adj->val[v][v] && ! is_adjecent(fcg, v, scc_offset+k) && is_valid_colour (v, current_colour, fcg, colour)) { if (common_dims==NULL) { @@ -1613,6 +1615,30 @@ int get_colouring_dim(int *common_dims, int max_dim) } return dim; } +void colour_convex_successors(int *convex_successors, int num_successors, int *colour, int current_colour, PlutoProg *prog) +{ + Graph *fcg; + Scc *sccs; + int i, j, v, max_dim, scc_offset, scc_id; + + fcg = prog->fcg; + sccs = prog->ddg->sccs; + + for (i=0; i<num_successors; i++) { + scc_id = convex_successors[i]; + max_dim = sccs[scc_id].max_dim; + scc_offset = sccs[scc_id].fcg_scc_offset; + for (j=0;j<max_dim; j++) { + v = scc_offset +j; + if (colour[v]==0 && !fcg->adj->val[v][v] && + !par_preventing_adj_mat->val[v][v] && is_valid_colour (v, current_colour, fcg, colour)) { + colour[v] = current_colour; + sccs[scc_id].is_scc_coloured = true; + break; + } + } + } +} /* The scc being coloured has a parallel dimension. */ bool colour_scc_cluster_greedy(int scc_id, int *colour, int current_colour, PlutoProg* prog) @@ -1662,7 +1688,8 @@ bool colour_scc_cluster_greedy(int scc_id, int *colour, int current_colour, Plut } } - common_dims = get_common_parallel_dims(scc_id, convex_successors, num_convex_successors, colour, current_colour, parallel_dims, prog); + common_dims = get_common_parallel_dims(scc_id, convex_successors, + num_convex_successors, colour, current_colour, parallel_dims, prog); colouring_dim = get_colouring_dim(common_dims,max_dim); if (colouring_dim == -1) { for (i=0; i<max_dim; i++) { @@ -1674,10 +1701,8 @@ bool colour_scc_cluster_greedy(int scc_id, int *colour, int current_colour, Plut } } colour[v+colouring_dim] = current_colour; - /* colour_convex_successors (convex_successors, colour, current_successors, prog); */ - - - return false; + colour_convex_successors(convex_successors, num_convex_successors, colour, current_colour, prog); + return true; } bool colour_scc_cluster (int scc_id, int *colour, int current_colour, PlutoProg* prog)
vppinfra: Fix a bug related to path_search Type: fix
@@ -94,7 +94,7 @@ path_search (char *file) result = 0; if (i < vec_len (ps.path)) - result = (char *) format (0, "%s/%s%c", ps.path[i], file); + result = (char *) format (0, "%s/%s%c", ps.path[i], file, 0); path_search_free (&ps);
Fix default animation speed for new actors
@@ -1049,7 +1049,7 @@ const addActor: CaseReducer< spriteSheetId, direction: "down", moveSpeed: 1, - animSpeed: 3, + animSpeed: 15, paletteId: "", isPinned: false, collisionGroup: "",
MSR: fix string manipulation
@@ -165,7 +165,7 @@ translate() COMMAND=$(sed "s/\`[[:blank:]]*sudo\ /\`/" <<< "$COMMAND") if [ "${line: -1}" == "\\" ]; then - COMMAND="${COMMAND::-1}" + COMMAND="${COMMAND%?}" fi while [ "${line: -1}" == "\\" ]; do @@ -174,7 +174,7 @@ translate() line=$(sed "s/\`[[:blank:]]*sudo\ /\`/" <<< "$line") if [ "${line: -1}" == "\\" ]; then - COMMAND=$(printf "%s\\\n%s" "$COMMAND" "${line::-1}") + COMMAND=$(printf "%s\\\n%s" "$COMMAND" "${line%?}") else COMMAND=$(printf "%s\\\n%s\\\n" "$COMMAND" "$line") fi
Fixed ESP32 GPIO Uninitialize
@@ -147,18 +147,14 @@ bool CPU_GPIO_Initialize() bool CPU_GPIO_Uninitialize() { - gpio_input_state *pGpio; - - pGpio = gpioInputList.FirstNode(); - - // Clean up input state list - while (pGpio->Next() != NULL) + NANOCLR_FOREACH_NODE(gpio_input_state, pGpio, gpioInputList) { UnlinkInputState(pGpio); - pGpio = pGpio->Next(); } + NANOCLR_FOREACH_NODE_END(); gpio_uninstall_isr_service(); + return true; }
Use full filesystem paths
@@ -613,15 +613,15 @@ static void desktop_shortcuts_add(const char* display_name, const char* program_ } void windows_fetch_resource_images(void) { - _g_title_bar_image = load_image("titlebar7.bmp"); - _g_title_bar_x_filled = load_image("titlebar_x_filled2.bmp"); - _g_title_bar_x_unfilled = load_image("titlebar_x_unfilled2.bmp"); + _g_title_bar_image = load_image("/initrd/titlebar7.bmp"); + _g_title_bar_x_filled = load_image("/initrd/titlebar_x_filled2.bmp"); + _g_title_bar_x_unfilled = load_image("/initrd/titlebar_x_unfilled2.bmp"); for (int32_t i = 0; i < windows->size; i++) { user_window_t* w = array_lookup(windows, i); window_redraw_title_bar(w, false); } - _g_executable_image = load_image("executable_icon.bmp"); + _g_executable_image = load_image("/initrd/executable_icon.bmp"); desktop_shortcuts_add("Preferences", "preferences"); desktop_shortcuts_add("Logs Viewer", "logs_viewer");
Typo fix for the intro page.
@@ -18,7 +18,7 @@ include: - HID Over GATT (HOG) - This is the official term for Bluetooth Low Energy HID devices. - Keymaps and layers with basic keycodes. -- Somem initial work on one "action", Mod-Tap. +- Some initial work on one "action", Mod-Tap. - Basic HID over USB - This somehow _conflicts_ with BLE at least on the stm32wb55rg dev kit, so investigation needed. ## Missing Features
Added Cooja target config to rime-tsch example
#undef TSCH_LOG_CONF_ID_FROM_LINKADDR #define TSCH_LOG_CONF_ID_FROM_LINKADDR(addr) ((addr) ? (addr)->u8[LINKADDR_SIZE - 2] : 0) +#if CONTIKI_TARGET_COOJA +#define COOJA_CONF_SIMULATE_TURNAROUND 0 +#endif /* CONTIKI_TARGET_COOJA */ + + #endif /* __PROJECT_CONF_H__ */
cleanup cluster logic
@@ -46,10 +46,10 @@ void BedCluster::ClusterBed() { if (_bed->_status != BED_VALID) continue; + int distance = ((int) curr.start - end); + // new cluster, no overlap - if ( (((int) curr.start - end) > _maxDistance) || - (curr.chrom != prev.chrom) - ) + if ( (distance > _maxDistance) || (curr.chrom != prev.chrom) ) { cluster_id++; end = curr.end;
AlpsT4USB category change It's a VoodooI2C companion that attaches to ALPS USB touchpads (found in HP Elite X2 G1/G2).
@@ -35,6 +35,7 @@ Kexts - [VoodooPS2Controller.kext](https://github.com/acidanthera/VoodooPS2) - [VoodooInput.kext](https://github.com/acidanthera/VoodooInput) - [VoodooSMBus.kext](https://github.com/leo-labs/VoodooSMBus) +- [AlpsT4USB.kext](https://github.com/blankmac/AlpsT4USB) ## Video and audio @@ -70,7 +71,6 @@ Kexts - [SASMegaRAID.kext](https://github.com/dukzcry/osx-goodies) - [Sinetek-rtsx.kext](https://www.insanelymac.com/forum/topic/321080-sineteks-driver-for-realtek-rtsx-sdhc-card-readers/?do=findComment&comment=2376387) - [VoodooSDHC.kext](https://github.com/lvs1974/VoodooSDHCMod) -- [AlpsT4USB.kext](https://github.com/blankmac/AlpsT4USB) ## Other kexts
Coverity: Check return value of strcmp return value of strcmp is not checked in some branches.
@@ -3541,8 +3541,8 @@ _printTocEntry(ArchiveHandle *AH, TocEntry *te, bool isData) /* Set up OID mode too */ if (strcmp(te->desc, "TABLE") == 0 || - strcmp(te->desc, "EXTERNAL TABLE") || - strcmp(te->desc, "FOREIGN TABLE")) + strcmp(te->desc, "EXTERNAL TABLE") == 0 || + strcmp(te->desc, "FOREIGN TABLE") == 0) _setWithOids(AH, te); /* Emit header comment for item */
Fix array size bug in LMS7_Device::SetGFIRCoef()
@@ -918,7 +918,7 @@ int LMS7_Device::SetGFIRCoef(bool tx, size_t chan, lms_gfir_t filt, const float_ L = div; float_type max=0; - for (int i=0; i< (filt==LMS_GFIR3 ? 120 : 40); i++) + for (int i=0; i< count; i++) if (fabs(coef[i])>max) max=fabs(coef[i]);
add github.com/iancoleman/strcase
@@ -68,6 +68,9 @@ ALLOW .* -> vendor/github.com/getsentry/raven-go # configuration library ALLOW .* -> vendor/github.com/heetch/confita +# string case conversion library +ALLOW .* -> vendor/github.com/iancoleman/strcase + # PostgreSQL driver and toolkit for Go ALLOW .* -> vendor/github.com/jackc/pgx
interpreters: ficl: Add Apache License The initial contribution was missing a license.
+/*************************************************************************** + * apps/interpreters/ficl/src/nuttx.h + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. The + * ASF licenses this file to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + ***************************************************************************/ + #include <stdint.h> typedef int8_t ficlInteger8;
Check OCLint: Analyze YAMBi plugin
@@ -25,6 +25,7 @@ oclint -p "@PROJECT_BINARY_DIR@" -enable-global-analysis -enable-clang-static-an "src/plugins/cpptemplate/"*.cpp \ "src/plugins/directoryvalue/"*.cpp \ "src/plugins/mini/mini.c" \ + "src/plugins/yambi/"*.cpp \ "src/plugins/yamlcpp/"*.{c,cpp} \ "src/plugins/yamlsmith/"*.{c,cpp} \ "src/plugins/yanlr/"*.{c,cpp}
remove early return, amend comment
@@ -396,9 +396,8 @@ static void destroy_tunnel(struct st_h2o_http3_server_stream_t *stream) struct st_h2o_http3_server_conn_t *conn = get_conn(stream); if (stream->tunnel->datagram_flow_id != UINT64_MAX) { khiter_t iter = kh_get(stream, conn->datagram_flows, stream->tunnel->datagram_flow_id); - /* the tunnel wasn't established yet */ - if (iter == kh_end(conn->datagram_flows)) - return; + /* it's possible the tunnel wasn't established yet */ + if (iter != kh_end(conn->datagram_flows)) kh_del(stream, conn->datagram_flows, iter); } }
BugID:16846667: decoupled uspace with mbins modified: build_rules/aos_target_config.mk
@@ -331,14 +331,20 @@ endif # MBINS build support ifeq ($(MBINS),app) -COMPONENTS += mbins.umbins +ifeq ($(ENABLE_USPACE),1) COMPONENTS += mm COMPONENTS += uspace +else +COMPONENTS += mbins.umbins +endif AOS_SDK_DEFINES += BUILD_APP AOS_SDK_LDFLAGS += -Wl,-wrap,vprintf -Wl,-wrap,fflush -nostartfiles else ifeq ($(MBINS),kernel) -COMPONENTS += mbins.kmbins +ifeq ($(ENABLE_USPACE),1) COMPONENTS += uspace +else +COMPONENTS += mbins.kmbins +endif AOS_SDK_DEFINES += BUILD_KERNEL else ifeq (,$(MBINS)) AOS_SDK_DEFINES += BUILD_BIN
web-ui: only unfold items with children
@@ -185,7 +185,7 @@ export default class TreeView extends React.Component { const tree = this const strategies = { click: [ function unfoldOnSelectionByPath (item) { - if (!this.isSelected(item)) { + if (!this.isSelected(item) && item.children && item.children.length > 0) { const newUnfolded = unfolded.filter(p => p !== item.path) if (newUnfolded.length === unfolded.length) { newUnfolded.push(item.path)
Clarify documentation around pg_dump -t option The behavior is different for different types of objects, so make that more clear. Author: Ian Barwick
@@ -517,9 +517,7 @@ PostgreSQL documentation <listitem> <para> Dump only tables with names matching - <replaceable class="parameter">pattern</replaceable>. - For this purpose, <quote>table</quote> includes views, materialized views, - sequences, and foreign tables. Multiple tables + <replaceable class="parameter">pattern</replaceable>. Multiple tables can be selected by writing multiple <option>-t</option> switches. The <replaceable class="parameter">pattern</replaceable> parameter is interpreted as a pattern according to the same rules used by @@ -531,6 +529,14 @@ PostgreSQL documentation <xref linkend="pg-dump-examples"/> below. </para> + <para> + As well as tables, this option can be used to dump views, materialized views, + foreign tables, and sequence definitions. However it will not dump the contents + of views or materialized views, and the contents of foreign tables will only be + dumped if the corresponding foreign server is specified with + <option>--include-foreign-data</option>. + </para> + <para> The <option>-n</option> and <option>-N</option> switches have no effect when <option>-t</option> is used, because tables selected by <option>-t</option> will
Add SCE_KERNEL_ALLOC_MEMBLOCK_ATTR_HAS_ALIGNMENT to user header.
@@ -22,6 +22,10 @@ typedef enum SceKernelMemBlockType { SCE_KERNEL_MEMBLOCK_TYPE_USER_CDRAM_RW = 0x09408060 } SceKernelMemBlockType; +typedef enum SceKernelAllocMemBlockAttr { + SCE_KERNEL_ALLOC_MEMBLOCK_ATTR_HAS_ALIGNMENT = 0x00000004U +} SceKernelAllocMemBlockAttr; + typedef struct SceKernelAllocMemBlockOpt { SceSize size; SceUInt32 attr;
arm/toolchain: update toolchain comment to avoid confusion 1. add 'ARM' prefix to choice menu 2. rename 'Generic Clang toolchain' to 'LLVM Clang toolchain' to avoid confuse with CONFIG_ARM_TOOLCHAIN_ARMCLANG
@@ -7,7 +7,7 @@ if ARCH_ARM comment "ARM Options" choice - prompt "Toolchain Selection" + prompt "ARM Toolchain Selection" default ARM_TOOLCHAIN_GNU_EABI config ARM_TOOLCHAIN_IAR @@ -39,7 +39,7 @@ config ARM_TOOLCHAIN_GNU_OABI This option should work for any GNU toolchain. config ARM_TOOLCHAIN_CLANG - bool "Generic Clang toolchain" + bool "LLVM Clang toolchain" select ARCH_TOOLCHAIN_CLANG config ARM_TOOLCHAIN_ARMCLANG
[tests] t/test_mod_ssi adjust to follow symlinks t/test_mod_ssi adjust to follow symlinks /tmp may be a symlink on MacOS
@@ -149,6 +149,7 @@ void test_mod_ssi (void) r.tmp_buf = buffer_init(); r.conf.errh = fdlog_init(NULL, -1, FDLOG_FD); r.conf.errh->fd = -1; /* (disable) */ + r.conf.follow_symlink = 1; handler_ctx * const hctx = handler_ctx_init(p, r.conf.errh); assert(NULL != hctx);
Check Environment: Fix infinitely running command
#!/usr/bin/env sh generate_random_string() { - cat /dev/urandom | LC_ALL=C tr -dc 'a-z' | fold -w 6 | head -n 1 + # While this command might not produce 6 pseudo random lower case letters, depending on the content of `/dev/urandom`, it should + # do so most of the time. Even if the output is a shorter string, this should not matter for the purpose of this script. + head /dev/urandom | LC_ALL=C tr -dc 'a-z' | head -c 6 } if [ -z "$KDB" ]; then
system/cu/cu_main.c: Fix nxstyle complaints.
@@ -159,7 +159,8 @@ static int enable_crlf_conversion(int fd) #endif } -static int set_baudrate(int fd, int rate, enum parity_mode parity, int rtscts) +static int set_baudrate(int fd, int rate, enum parity_mode parity, + int rtscts) { #ifdef CONFIG_SERIAL_TERMIOS int rc = 0; @@ -344,8 +345,8 @@ int main(int argc, FAR char *argv[]) enable_crlf_conversion(g_cu.outfd); set_baudrate(g_cu.outfd, baudrate, parity, rtscts); - /* Open the serial device for reading. Since we are already connected, this - * should not fail. + /* Open the serial device for reading. Since we are already connected, + * this should not fail. */ g_cu.infd = open(devname, O_RDONLY);
parser json UPDATE invalid data errors
@@ -448,10 +448,18 @@ lydjson_value_type_hint(struct lyd_json_ctx *lydctx, enum LYJSON_PARSER_STATUS * if (*status_p == LYJSON_ARRAY) { /* only [null] */ LY_CHECK_RET(lyjson_ctx_next(lydctx->jsonctx, status_p)); - LY_CHECK_RET(*status_p != LYJSON_NULL, LY_EINVAL); + if (*status_p != LYJSON_NULL) { + LOGVAL(lydctx->jsonctx->ctx, LYVE_SYNTAX_JSON, "Expected JSON name/[null], but input data contains name/%s.", + lyjson_token2str(*status_p)); + return LY_EINVAL; + } LY_CHECK_RET(lyjson_ctx_next(lydctx->jsonctx, NULL)); - LY_CHECK_RET(lyjson_ctx_status(lydctx->jsonctx, 0) != LYJSON_ARRAY_CLOSED, LY_EINVAL); + if (lyjson_ctx_status(lydctx->jsonctx, 0) != LYJSON_ARRAY_CLOSED) { + LOGVAL(lydctx->jsonctx->ctx, LYVE_SYNTAX_JSON, "Expected array end, but input data contains %s.", + lyjson_token2str(*status_p)); + return LY_EINVAL; + } *type_hint_p = LYD_VALHINT_EMPTY; } else if (*status_p == LYJSON_STRING) { @@ -463,6 +471,7 @@ lydjson_value_type_hint(struct lyd_json_ctx *lydctx, enum LYJSON_PARSER_STATUS * } else if (*status_p == LYJSON_NULL) { *type_hint_p = 0; } else { + LOGVAL(lydctx->jsonctx->ctx, LYVE_SYNTAX_JSON, "Unexpected input data %s.", lyjson_token2str(*status_p)); return LY_EINVAL; }
bootloader: Allows app partition length not 64KB aligned for NO SECURE BOOT
@@ -825,7 +825,7 @@ menu "Security features" endchoice menu "Potentially insecure options" - visible if SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT || SECURE_BOOT_INSECURE + visible if SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT || SECURE_BOOT_INSECURE || SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT # NOERROR # NOTE: Options in this menu NEED to have SECURE_BOOT_INSECURE # and/or SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT in "depends on", as the menu @@ -862,7 +862,7 @@ menu "Security features" config SECURE_BOOT_ALLOW_SHORT_APP_PARTITION bool "Allow app partition length not 64KB aligned" - depends on SECURE_BOOT_INSECURE + depends on SECURE_BOOT_INSECURE || SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT help If not set (default), app partition size must be a multiple of 64KB. App images are padded to 64KB length, and the bootloader checks any trailing bytes after the signature (before the next 64KB
workflow/docker/Dockerfile-compilation-testing-alinux2: clean up Note that protobuf is depent by protobuf-devel.
-FROM registry.cn-hangzhou.aliyuncs.com/alinux/aliyunlinux +FROM registry.cn-hangzhou.aliyuncs.com/alinux/aliyunlinux:latest LABEL maintainer="Shirong Hao <[email protected]>" -RUN yum install -y which wget git make autoconf libtool \ - libseccomp-devel binutils-devel alinux-release-experimentals protobuf \ - protobuf-devel protobuf-c-devel openssl openssl-devel yum-utils \ +# Install alinux-release-experimentals prior to others to work around +# the issue "Error: Package: glibc-2.17-323.1.al7.i686 (updates)" +RUN yum install -y alinux-release-experimentals + +RUN yum install -y \ + which wget git make autoconf libtool openssl yum-utils \ + libseccomp-devel binutils-devel protobuf-devel protobuf-c-devel openssl-devel \ devtoolset-10-toolchain RUN echo "source /opt/rh/devtoolset-10/enable" > /root/.bashrc @@ -14,7 +18,7 @@ WORKDIR /root # install go RUN wget https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz && \ tar -zxvf go1.14.2.linux-amd64.tar.gz -C /usr/lib && \ - rm -rf go1.14.2.linux-amd64.tar.gz + rm -f go1.14.2.linux-amd64.tar.gz # configure GOPATH and GOROOT ENV GOROOT /usr/lib/go @@ -24,13 +28,11 @@ ENV GOPROXY "https://mirrors.aliyun.com/goproxy,direct" ENV GO111MODULE on # install SGX -RUN [ ! -f sgx_linux_x64_sdk_2.13.100.4.bin ] && \ - wget https://mirrors.openanolis.org/inclavare-containers/alinux2/sgx_linux_x64_sdk_2.13.100.4.bin && \ +RUN wget https://mirrors.openanolis.org/inclavare-containers/alinux2/sgx_linux_x64_sdk_2.13.100.4.bin && \ chmod +x sgx_linux_x64_sdk_2.13.100.4.bin && echo -e 'no\n/opt/intel\n' | ./sgx_linux_x64_sdk_2.13.100.4.bin && \ rm -rf sgx_linux_x64_sdk_2.13.100.4.bin -RUN [ ! -f sgx_rpm_local_repo.tar.gz ] && \ - wget -c https://mirrors.openanolis.org/inclavare-containers/alinux2/sgx_rpm_local_repo.tar.gz && \ +RUN wget https://mirrors.openanolis.org/inclavare-containers/alinux2/sgx_rpm_local_repo.tar.gz && \ tar xzf sgx_rpm_local_repo.tar.gz && \ yum-config-manager --add-repo file:/root/sgx_rpm_local_repo && \ yum makecache && rm -rf sgx_rpm_local_repo.tar.gz
cjoin: Update OSCORE security context initialization to the latest spec and test description values
const uint8_t cjoin_path0[] = "j"; -static const uint8_t masterSecret[] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, \ - 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f}; +static const uint8_t masterSecret[] = {0xde, 0xad, 0xbe, 0xef, 0xca, 0xfe, 0xde, 0xad, \ + 0xbe, 0xef, 0xca, 0xfe, 0xde, 0xad, 0xbe, 0xef}; static const uint8_t jrcHostName[] = "6tisch.arpa"; @@ -82,16 +82,18 @@ void cjoin_init(void) { } void cjoin_init_security_context(void) { - uint8_t senderID[9]; // needs to hold EUI-64 + 1 byte - uint8_t recipientID[9]; // needs to hold EUI-64 + 1 byte + uint8_t senderID[1]; // 1 dummy byte + uint8_t recipientID[3]; // 3 byte fixed value + uint8_t id_context[8]; uint8_t* joinKey; - eui64_get(senderID); - senderID[8] = 0x00; // construct sender ID according to the minimal-security-03 draft + eui64_get(id_context); + senderID[0] = 0x00; // construct sender ID according to the minimal-security-06 draft eui64_get(recipientID); - recipientID[8] = 0x01; // construct recipient ID according to the minimal-security-03 draft + recipientID[] = {0x4a, 0x52, 0x43}; // construct recipient ID according to the minimal-security-06 draft idmanager_getJoinKey(&joinKey); + // TODO Pass id_context to the routine openoscoap_init_security_context(&cjoin_vars.context, senderID, sizeof(senderID),
Add "memory mode capacity unusable" warning popup to HII create goal form.
@@ -5590,6 +5590,7 @@ GetActualRegionsGoalCapacities( if (NumDimmsOnSocket <= 0) { continue; } + /** Calculate volatile percent **/ ReturnCode = CalculateDimmCapacityFromPercent(pDimmsOnSocket, NumDimmsOnSocket, *pVolatilePercent, &ActualVolatileSize); if (EFI_ERROR(ReturnCode)) {
Restore MacOs build-conan Test.
@@ -40,13 +40,13 @@ jobs: conan build . -bf build --configure conan build . -bf build --build + - name: Test + run: | + cd build + source activate_run.sh + ctest --verbose + source deactivate_run.sh # test_package failed to find CelixConfig.cmake -# - name: Test -# run: | -# cd build -# source activate_run.sh -# ctest --verbose -# source deactivate_run.sh # - name: Test Installed Celix # run: | # conan create -pr:b default -pr:h default -tf examples/conan_test_package -tbf test-build -o celix:celix_cxx17=True -o celix:celix_install_deprecated_api=True --require-override=libcurl/7.64.1 --require-override=openssl/1.1.1s .
interface: reset state on clog
@@ -3,7 +3,7 @@ import { compose } from 'lodash/fp'; import _ from 'lodash'; import create, { GetState, SetState, UseStore } from 'zustand'; import { persist } from 'zustand/middleware'; -import Urbit, { SubscriptionRequestInterface } from '@urbit/http-api'; +import Urbit, { SubscriptionRequestInterface, FatalError } from '@urbit/http-api'; import { Poke } from '@urbit/api'; import airlock from '~/logic/api'; @@ -102,7 +102,9 @@ export function createSubscription(app: string, path: string, e: (data: any) => path, event: e, err: () => {}, - quit: () => {} + quit: () => { + throw new FatalError('subscription clogged'); + } }; // TODO: err, quit handling (resubscribe?) return request;
Use MCU_SERIES
@@ -36,7 +36,7 @@ void SystemClock_Config(void); void HAL_MspInit(void) { - #if defined(STM32F765xx) || defined(STM32F769xx) + #if defined(MCU_SERIES_F7) || defined(MCU_SERIES_H7) // Invalidate each cache before enabling it SCB_InvalidateICache(); SCB_InvalidateDCache();
Keeping some original variable names
@@ -117,15 +117,15 @@ lv_color_hsv_t lv_color_rgb_to_hsv(uint8_t r8, uint8_t g8, uint8_t b8) float g = g8 / 255.0; float b = b8 / 255.0; - float min = r < g ? (r < b ? r : b) : (g < b ? g : b); - float max = r > g ? (r > b ? r : b) : (g > b ? g : b); + float rgbMin = r < g ? (r < b ? r : b) : (g < b ? g : b); + float rgbMax = r > g ? (r > b ? r : b) : (g > b ? g : b); lv_color_hsv_t hsv; // https://en.wikipedia.org/wiki/HSL_and_HSV#Lightness - hsv.v = max * 100 + 0.5; + hsv.v = rgbMax * 100 + 0.5; - float delta = max - min; + float delta = rgbMax - rgbMin; if (fabs(delta) < 0.009) { hsv.h = 0; hsv.s = 0; @@ -133,7 +133,7 @@ lv_color_hsv_t lv_color_rgb_to_hsv(uint8_t r8, uint8_t g8, uint8_t b8) } // https://en.wikipedia.org/wiki/HSL_and_HSV#Saturation - hsv.s = delta / max * 100 + 0.5; + hsv.s = delta / rgbMax * 100 + 0.5; if(hsv.s == 0) { hsv.h = 0; return hsv; @@ -141,11 +141,11 @@ lv_color_hsv_t lv_color_rgb_to_hsv(uint8_t r8, uint8_t g8, uint8_t b8) // https://en.wikipedia.org/wiki/HSL_and_HSV#Hue_and_chroma float h; - if(max == r) + if(rgbMax == r) h = (g - b) / delta + (g < b ? 6 : 0); // between yellow & magenta - else if(max == g) + else if(rgbMax == g) h = (b - r) / delta + 2; // between cyan & yellow - else if(max == b) + else if(rgbMax == b) h = (r - g) / delta + 4; // between magenta & cyan else h = 0;
Minor doc fix crt0 is now compiled into libos, so it doesn't need to be linked separately. [ci skip]
@@ -7,8 +7,7 @@ standalone executable with no operating system support and the MMU disabled. The 'kernel' runs as a user mode program loaded by os/kernel and makes system calls where necessary. -Both the crt0 and libos libraries must be linked against to use a specific -variant. The kernel version must be linked at an address greater than 0x1000. +The kernel version must be linked at an address greater than 0x1000. The bare metal version must be linked at address 0. The kernel version is a work in progress. A number of system calls are not yet
Work around glGenerateMipmap on macOS;
@@ -1075,7 +1075,15 @@ void lovrTextureReplacePixels(Texture* texture, TextureData* textureData, int x, } if (texture->mipmaps) { +#if defined(__APPLE__) || defined(EMSCRIPTEN) // glGenerateMipmap doesn't work on big cubemap textures on macOS + if (texture->type != TEXTURE_CUBE || width < 2048) { glGenerateMipmap(texture->target); + } else { + glTexParameteri(texture->target, GL_TEXTURE_MAX_LEVEL, 0); + } +#else + glGenerateMipmap(texture->target); +#endif } } }
ias: mark core idle in ias_idle_placeholder_on_core()
@@ -189,6 +189,7 @@ int ias_idle_placeholder_on_core(struct ias_data *sd, unsigned int core) ias_cleanup_core(core); cores[core] = sd; ias_gen[core]++; + bitmap_set(ias_idle_cores, core); sd->threads_active++; return 0; }
include/graphics/nxwidgets/cnxserver.hxx: Add Cursor methods to the CNxServer class.
#include <semaphore.h> #include <nuttx/nx/nx.h> +#include <nuttx/nx/nxcursor.h> #include "graphics/nxwidgets/cnxwindow.hxx" #include "graphics/nxwidgets/cnxtkwindow.hxx" @@ -181,6 +182,57 @@ namespace NXWidgets { return new CBgWindow(m_hNxServer, widgetControl); } + +#if defined(CONFIG_NX_SWCURSOR) || defined(CONFIG_NX_HWCURSOR) + /** + * Enable/disable the cursor. + * + * @param enable. True: show the cursor, false: hide the cursor. + */ + + inline void enableCursor(bool enable) + { + nxcursor_enable(m_hNxServer, enable); + } +#endif + +#if defined(CONFIG_NX_SWCURSOR) || defined(CONFIG_NX_HWCURSORIMAGE) + /** + * Enable/disable the cursor. + * + * The image is provided a a 2-bits-per-pixel image. The two bit encoding + * is as follows: + * + * 0b00 - The transparent background. + * 0b01 - Color1: The main color of the cursor. + * 0b10 - Color2: The color of any border. + * 0b11 - Color3: A blend color for better imaging (fake anti-aliasing). + * + * NOTE: The NX logic will reference the user image buffer repeatedly. + * That image buffer must persist for as long as the NX server connection + * persists. + * + * @param image. Describes the cursor image in the expected format.. + */ + + inline void setCursorImage(FAR const struct nx_cursorimage_s *image) + { + nxcursor_setimage(m_hNxServer, image); + } +#endif + +#if defined(CONFIG_NX_SWCURSOR) || defined(CONFIG_NX_HWCURSOR) + /** + * Set the cursor position. + * + * @param pos. The new cursor position. + */ + + inline void setCursorPosition(FAR struct nxgl_point_s *pos) + { + nxcursor_setposition(m_hNxServer, pos); + } +#endif }; }
nimble/ll: Fix misleading comment ...some leftovers from development phase
@@ -1158,11 +1158,8 @@ ble_ll_adv_aux_schedule_next(struct ble_ll_adv_sm *advsm) } /* - * In general we do not schedule next aux if current aux does not have - * AuxPtr in extended header as this means we do not need subsequent - * ADV_CHAIN_IND to be sent. - * However, if current aux is scannable we allow to schedule next aux as - * this will be 1st ADV_CHAIN_IND of scan response. + * Do not schedule next aux if current aux does not have AuxPtr in extended + * header as this means we do not need subsequent ADV_CHAIN_IND to be sent. */ if (!(aux->ext_hdr & (1 << BLE_LL_EXT_ADV_AUX_PTR_BIT))) { return;
Fix definition of TTimeInfo to workaround an MSVC issue MSVC 2015 complaints thus: cuda\methods\boosting_progress_tracker.cpp(79): error C2664: 'void std::__y1::vector>::push_back(TTimeInfo &&)': cannot convert argument 1 from 'initializer list' to 'const TTimeInfo &'
#include <catboost/libs/metrics/metric.h> struct TTimeInfo { + TTimeInfo(double passedTime, double remainingTime) + : PassedTime(passedTime) + , RemainingTime(remainingTime) + { + } + TTimeInfo() = default; double PassedTime = 0; double RemainingTime = 0; };
chip/stm32/pwm_chip.h: Format with clang-format BRANCH=none TEST=none
@@ -29,7 +29,10 @@ struct pwm_t { extern const struct pwm_t pwm_channels[]; /* Macro to fill in both timer ID and register base */ -#define STM32_TIM(x) {x, STM32_TIM_BASE(x)} +#define STM32_TIM(x) \ + { \ + x, STM32_TIM_BASE(x) \ + } /* Plain ID mapping for readability */ #define STM32_TIM_CH(x) (x)
common: don't disable -Wpedantic when using __int128 This doesn't seem to be necessary.
HEDLEY_DIAGNOSTIC_POP #endif -#if HEDLEY_HAS_WARNING("-Wpedantic") -# define SIMDE_DIAGNOSTIC_DISABLE_INT128 _Pragma("clang diagnostic ignored \"-Wpedantic\"") -#elif defined(HEDLEY_GCC_VERSION) -# define SIMDE_DIAGNOSTIC_DISABLE_INT128 _Pragma("GCC diagnostic ignored \"-Wpedantic\"") -#else -# define SIMDE_DIAGNOSTIC_DISABLE_INT128 -#endif - #if defined(__SIZEOF_INT128__) # define SIMDE_HAVE_INT128_ -HEDLEY_DIAGNOSTIC_PUSH -SIMDE_DIAGNOSTIC_DISABLE_INT128 typedef __int128 simde_int128; typedef unsigned __int128 simde_uint128; -HEDLEY_DIAGNOSTIC_POP #endif #if !defined(SIMDE_ENDIAN_LITTLE)
lwip-2.0.2: enable static ARP entries
/// Disable locks (we lock the whole stack) #define SYS_LIGHTWEIGHT_PROT 0 + +/** ETHARP_SUPPORT_STATIC_ENTRIES==1: enable code to support static ARP table + * entries (using etharp_add_static_entry/etharp_remove_static_entry). + */ +#define ETHARP_SUPPORT_STATIC_ENTRIES 1 + /* ----------------------------------------------- ---------- Platform specific locking ----------
Output CB/UB tags into BAM for the 1MM_CR option. Sort matrix.mtx output.
@@ -52,7 +52,9 @@ void SoloFeature::collapseUMI_CR(uint32 iCB, uint32 *umiArray) unordered_map <uint32, unordered_map<uint32,uint32>> umiGeneHash, umiGeneHash0; //UMI //Gene //Count - unordered_map <uint32,uint32> geneCounts; + map <uint32,uint32> geneCounts; //unordered_map to make it faster? + + unordered_map <uint32,uint32> umiCorrected; if (countCellGeneUMI.size() < countCellGeneUMIindex[iCB] + nGenes*countMatStride) //allocated vector too small countCellGeneUMI.resize(countCellGeneUMI.size()*2); @@ -102,8 +104,11 @@ void SoloFeature::collapseUMI_CR(uint32 iCB, uint32 *umiArray) uint32 uuXor=umiArray[iu+0] ^ umiArray[iuu+0]; if ( (uuXor >> (__builtin_ctz(uuXor)/2)*2) <= 3 ) {//1MM - umiArray[iu+0]=umiArray[iuu+0];//replace this one with the previous one - break; //1MM + if (readInfo.size()>0) {//record corrections + umiCorrected[umiArray[iu+0]]=umiArray[iuu+0];//replace iu with iuu + }; + umiArray[iu+0]=umiArray[iuu+0];//replace iu with iuu + break; }; }; }; @@ -126,6 +131,18 @@ void SoloFeature::collapseUMI_CR(uint32 iCB, uint32 *umiArray) countCellGeneUMI[countCellGeneUMIindex[iCB+1]+1]=nU1; countCellGeneUMIindex[iCB+1] = countCellGeneUMIindex[iCB+1] + countMatStride;//iCB+1 accumulates the index }; + + if (readInfo.size()>0) {//record cb/umi for each read + for (uint32 iR=0; iR<gReadS[iG+1]-gReadS[iG]; iR+=rguStride) {//cycle over reads + uint64 iread1 = rGU1[iR+rguR]; + readInfo[iread1].cb = indCB[iCB] ; + uint32 umi=rGU1[iR+rguU]; + + if (umiCorrected.count(umi)>0) + umi=umiCorrected[umi]; //correct UMI + readInfo[iread1].umi=umi; + }; + }; }; if (pSolo.umiFiltering.MultiGeneUMI) {
Fix logging in uip-ds6.c
@@ -99,9 +99,14 @@ uip_ds6_init(void) uip_ds6_neighbors_init(); uip_ds6_route_init(); - LOG_INFO("Init: %u neighbors\n%u default routers\n%u prefixes\n%u routes\n%u unicast addresses\n%u multicast addresses\n%u anycast addresses\n", - NBR_TABLE_MAX_NEIGHBORS, UIP_DS6_DEFRT_NB, UIP_DS6_PREFIX_NB, UIP_DS6_ROUTE_NB, - UIP_DS6_ADDR_NB, UIP_DS6_MADDR_NB, UIP_DS6_AADDR_NB); + LOG_INFO("Init: %u neighbors\n", NBR_TABLE_MAX_NEIGHBORS); + LOG_INFO("%u default routers\n", UIP_DS6_DEFRT_NB); + LOG_INFO("%u prefixes\n", UIP_DS6_PREFIX_NB); + LOG_INFO("%u routes\n", UIP_DS6_ROUTE_NB); + LOG_INFO("%u unicast addresses\n", UIP_DS6_ADDR_NB); + LOG_INFO("%u multicast addresses\n", UIP_DS6_MADDR_NB); + LOG_INFO("%u anycast addresses\n", UIP_DS6_AADDR_NB); + memset(uip_ds6_prefix_list, 0, sizeof(uip_ds6_prefix_list)); memset(&uip_ds6_if, 0, sizeof(uip_ds6_if)); uip_ds6_addr_size = sizeof(struct uip_ds6_addr);
Improve lxss cleanup
@@ -100,8 +100,7 @@ PPH_STRING PhGetWslDistributionFromPath( break; } - for (i = 0; i < distributionGuidList->Count; i++) - PhDereferenceObject(distributionGuidList->Items[i]); + PhDereferenceObjects(distributionGuidList->Items, distributionGuidList->Count); PhDereferenceObject(distributionGuidList); NtClose(keyHandle);
fix warning in g++
@@ -141,7 +141,7 @@ typedef struct mi_cache_slot_s { static mi_cache_slot_t cache[MI_CACHE_MAX]; // = 0 -#define BITS_SET() (UINTPTR_MAX) +#define BITS_SET() ATOMIC_VAR_INIT(UINTPTR_MAX) static mi_bitmap_field_t cache_available[MI_CACHE_FIELDS] = { MI_CACHE_BITS_SET }; // zero bit = available! static mi_bitmap_field_t cache_available_large[MI_CACHE_FIELDS] = { MI_CACHE_BITS_SET }; static mi_bitmap_field_t cache_inuse[MI_CACHE_FIELDS]; // zero bit = free
gl4es.h: Fix if condition typo
@@ -108,7 +108,7 @@ static inline void errorGL() { // next glGetError will be from GL static inline void errorShim(GLenum error) { // next glGetError will be "error" from gl4es if(glstate->type_error && glstate->shim_error==GL_NO_ERROR) glstate->type_error = 1; - if(glstate->shim_error = GL_NO_ERROR) + if(glstate->shim_error == GL_NO_ERROR) glstate->shim_error = error; } static inline void noerrorShim() {
Add the C++ guard
#define DILL_EXPORT #endif +#ifdef __cplusplus +extern "C" { +#endif + /******************************************************************************/ /* Helpers */ /******************************************************************************/ @@ -996,5 +1000,9 @@ DILL_EXPORT int dill_term_detach( #endif +#ifdef __cplusplus +} +#endif + #endif
Don't read unsupported 'occupied to unoccupied delay' for Xiami motion sensor
@@ -4670,7 +4670,14 @@ bool DeRestPluginPrivate::processZclAttributes(Sensor *sensorNode) } } + if (sensorNode->mustRead(READ_OCCUPANCY_CONFIG) && tNow > sensorNode->nextReadTime(READ_OCCUPANCY_CONFIG)) + { + if (sensorNode->modelId().startsWith(QLatin1String("lumi.sensor_motion"))) + { + sensorNode->clearRead(READ_OCCUPANCY_CONFIG); + } + else { std::vector<uint16_t> attributes; attributes.push_back(0x0010); // occupied to unoccupied delay @@ -4681,6 +4688,7 @@ bool DeRestPluginPrivate::processZclAttributes(Sensor *sensorNode) processed++; } } + } if (sensorNode->mustRead(WRITE_OCCUPANCY_CONFIG) && tNow > sensorNode->nextReadTime(READ_OCCUPANCY_CONFIG)) {
Update cppcheck commit and pass predefined params to avoid impossible combinations of configs
git clone https://github.com/danmar/cppcheck.git || true cd cppcheck git fetch -git checkout 44d6066c6fad32e2b0332b3f2b24bd340febaef8 +git checkout 862c4ef87b109ae86c2d5f12769b7c8d199f35c5 make -j4 cd ../../../ # panda code -tests/misra/cppcheck/cppcheck -DCAN3 -DUID_BASE --suppressions-list=tests/misra/suppressions.txt --dump --enable=all --inline-suppr --force board/main.c 2>/tmp/misra/cppcheck_output.txt || true +tests/misra/cppcheck/cppcheck -DPANDA -UPEDAL -DCAN3 -DUID_BASE --suppressions-list=tests/misra/suppressions.txt --dump --enable=all --inline-suppr --force board/main.c 2>/tmp/misra/cppcheck_output.txt || true python tests/misra/cppcheck/addons/misra.py board/main.c.dump 2>/tmp/misra/misra_output.txt || true # violations in safety files @@ -24,5 +24,5 @@ then fi # pedal code -tests/misra/cppcheck/cppcheck -UCAN3 --suppressions-list=tests/misra/suppressions.txt -I board/ --dump --enable=all --inline-suppr --force board/pedal/main.c 2>/tmp/misra/cppcheck_pedal_output.txt || true +tests/misra/cppcheck/cppcheck -UPANDA -DPEDAL -UCAN3 --suppressions-list=tests/misra/suppressions.txt -I board/ --dump --enable=all --inline-suppr --force board/pedal/main.c 2>/tmp/misra/cppcheck_pedal_output.txt || true python tests/misra/cppcheck/addons/misra.py board/pedal/main.c.dump 2>/tmp/misra/misra_pedal_output.txt || true
Domain to asset verification
@@ -43,6 +43,8 @@ Additional fields may be added, but will be ignored by Ravencoin. "forsale_price": "5000 RVN", + "domain": "bitactivate.com", + "restricted": "rule144" } @@ -88,4 +90,6 @@ All fields are optional. Clients, explorers, and wallets are not obligated to di **forsale_price** - To give buyers an idea of the cost to own and admin the asset token. Price followed by a space, followed by the currency. Examples: "10000 RVN" or "0.3 BTC" or "50000 USD" This might be parsed by token broker websites. +**domain** - A root domain for the project (if applicable). Setting the TXT record for rvn.<domain> to a signed message of the token name -- signed by the issuer address. This could be verified by clients to ensure the token and domain go together. Example: Set TXT record for rvn.bitactivate.com to the signature of the message "BITACTIVATE". Any client or individual can verify the issuer address, message "BITACTIVATE" which is the token/asset name, and valid signature in the TXT record for rvn.bitactivate.com and return true/false. + **restricted** - Designate the token as being restricted. One example is "rule144" which means sale may be restricted because of the type of token and the exemption used for issuance. Other restrictions types can be used here as a signal to explorers, exchanges, or token brokers. No enforcement of restrictions is built into the Ravencoin protocol.
[libc] fix a typo
@@ -8,7 +8,7 @@ cwd = GetCurrentDir() CPPPATH = [cwd] group = [] -# sys/select.h does not exist in newlib 2.1.0 or lower version +# sys/select.h does not exist in newlib 2.2.0 or lower version if rtconfig.PLATFORM == 'gcc' and (CheckHeader(rtconfig, 'sys/select.h') == False): try: copy("../../../../common/nogcc/sys/select.h", "./sys/select.h") # copy from 'nogcc/sys/select.h'
Remove actor preview from scene cursor
@@ -3,11 +3,7 @@ import PropTypes from "prop-types"; import cx from "classnames"; import { connect } from "react-redux"; import { PlusIcon, ResizeIcon, CloseIcon, BrickIcon } from "../library/Icons"; -import SpriteSheetCanvas from "./SpriteSheetCanvas"; -import { - getSpriteSheetIds, - getScenesLookup -} from "../../reducers/entitiesReducer"; +import { getScenesLookup } from "../../reducers/entitiesReducer"; import * as actions from "../../actions"; import { SceneShape } from "../../reducers/stateShape"; @@ -162,7 +158,7 @@ class SceneCursor extends Component { }; render() { - const { x, y, tool, spriteSheetId, enabled } = this.props; + const { x, y, tool, enabled } = this.props; const { resize } = this.state; if (!enabled) { return <div />; @@ -192,11 +188,6 @@ class SceneCursor extends Component { {tool === "collisions" && <BrickIcon />} </div> )} - {tool === "actors" && ( - <div className="SceneCursor__Sprite"> - <SpriteSheetCanvas spriteSheetId={spriteSheetId} /> - </div> - )} </div> ); } @@ -212,7 +203,6 @@ SceneCursor.propTypes = { showCollisions: PropTypes.bool.isRequired, enabled: PropTypes.bool.isRequired, tool: PropTypes.string.isRequired, - spriteSheetId: PropTypes.string.isRequired, setTool: PropTypes.func.isRequired, selectScene: PropTypes.func.isRequired, addActor: PropTypes.func.isRequired, @@ -235,8 +225,6 @@ function mapStateToProps(state, props) { const { x, y } = state.editor.hover; const { type: editorType, entityId } = state.editor; const showCollisions = state.entities.present.result.settings.showCollisions; - const spriteSheetIds = getSpriteSheetIds(state); - const spriteSheetId = spriteSheetIds[0]; const scenesLookup = getScenesLookup(state); const scene = scenesLookup[props.sceneId]; return { @@ -247,7 +235,6 @@ function mapStateToProps(state, props) { editorType, entityId, showCollisions, - spriteSheetId, scene }; }
sysdeps/linux: implement sys_socketpair, sys_getsockopt
@@ -795,6 +795,20 @@ int sys_delete_module(const char *name, unsigned flags) { return 0; } +int sys_socketpair(int domain, int type_and_flags, int proto, int *fds) { + auto ret = do_syscall(SYS_socketpair, domain, type_and_flags, proto, fds, 0, 0); + if (int e = sc_error(ret); e) + return e; + return 0; +} + +int sys_getsockopt(int fd, int layer, int number, void *__restrict buffer, socklen_t *__restrict size) { + auto ret = do_syscall(SYS_getsockopt, fd, layer, number, buffer, size, 0); + if (int e = sc_error(ret); e) + return e; + return 0; +} + #endif // __MLIBC_POSIX_OPTION int sys_times(struct tms *tms, clock_t *out) {
remove useless lockmode upgrade in inherit.c Since and have already processed the LOCKMODE correctly in addRangeTableEntryForRelation(), and no matter we use ORCA or Optimizer, we will get correct LOCKMODE in execution stage, so we don't need another LOCKMODE upgrade in expand_inherited_rtentry, just remove it.
@@ -114,28 +114,6 @@ expand_inherited_rtentry(PlannerInfo *root, RelOptInfo *rel, oldrelation = table_open(parentOID, NoLock); lockmode = rte->rellockmode; -#if 0 - // GPDB_12_MERGE_FIXME: We used to have this code in GPDB. Where does it belong now? - else if (oldrc) - { - /* - * Greenplum specific behavior: - * The implementation of select statement with locking clause - * (for update | no key update | share | key share) in postgres - * is to hold RowShareLock on tables during parsing stage, and - * generate a LockRows plan node for executor to lock the tuples. - * It is not easy to lock tuples in Greenplum database, since - * tuples may be fetched through motion nodes. - * - * But when Global Deadlock Detector is enabled, and the select - * statement with locking clause contains only one table, we are - * sure that there are no motions. For such simple cases, we could - * make the behavior just the same as Postgres. - */ - lockmode = oldrc->canOptSelectLockingClause ? RowShareLock : ExclusiveLock; - } -#endif - /* * If parent relation is selected FOR UPDATE/SHARE, we need to mark its * PlanRowMark as isParent = true, and generate a new PlanRowMark for each
Added openSUSE dependency resolution
@@ -75,6 +75,11 @@ dependencies() { rm bin/glslangValidator glslang-master-linux-Release.zip fi ;; + "opensSUSE Leap"|"openSUSE Tumbleweed") + MANAGER_QUERY="zypper search" + MANAGER_INSTALL="zypper install" + DEPS="{gcc-c++,gcc-c++-31bit,meson,libpkgconf-devel,python3-Mako,libX11-devel,libX11-devel-32bit,glslang-devel,libglvnd-devel,libglvnd-devel-32bit,glibc-devel,glibc-devel-32bit,libstdc++-devel,libstdc++-devel-32bit,Mesa-libGL-devel}" + install "Solus") unset MANAGER_QUERY unset DEPS
StatusBar: converting more things to links Fixes urbit/landscape#509 and also adds same functionality to the rest of the StatusBar items
@@ -8,7 +8,7 @@ import { Text } from '@tlon/indigo-react'; import React, { useRef } from 'react'; -import { useHistory } from 'react-router-dom'; +import { Link, useHistory } from 'react-router-dom'; import { Sigil } from '~/logic/lib/sigil'; import { uxToHex } from '~/logic/lib/util'; import useContactState from '~/logic/state/contact'; @@ -75,11 +75,12 @@ const StatusBar = (props) => { > <Row> <Button + as={Link} + to="/" width='32px' borderColor='lightGray' mr={2} px={2} - onClick={() => history.push('/')} {...props} > <Icon icon='Dashboard' color='black' /> @@ -126,9 +127,10 @@ const StatusBar = (props) => { <Icon icon="Bug" color="#000000" /> </StatusBarItem> <StatusBarItem + as={Link} + to="/~landscape/messages" width='32px' mr={2} - onClick={() => props.history.push('/~landscape/messages')} > <Icon icon='Messages' /> </StatusBarItem> @@ -150,24 +152,26 @@ const StatusBar = (props) => { boxShadow='0px 0px 0px 3px' > <Row + as={Link} + to={`/~profile/~${ship}`} color='black' cursor='pointer' fontSize={1} fontWeight='500' px={3} py={2} - onClick={() => history.push(`/~profile/~${ship}`)} > View Profile </Row> <Row + as={Link} + to="/~settings" color='black' cursor='pointer' fontSize={1} fontWeight='500' px={3} py={2} - onClick={() => history.push('/~settings')} > System Preferences </Row>
Added execve sysdep
@@ -253,7 +253,15 @@ int sys_fork(pid_t *child) { *child = ret; return 0; } -int sys_execve(const char *path, char *const argv[], char *const envp[]) STUB_ONLY +int sys_execve(const char *path, char *const argv[], char *const envp[]) { + int ret; + asm volatile ("syscall" + : "=a"(ret) + : "a"(11), "D"(path), "S"(argv), "d"(envp) + : "rcx", "r11"); + return ret; + +} int sys_kill(int, int) STUB_ONLY int sys_waitpid(pid_t pid, int *status, int flags) { mlibc::infoLogger() << "\e[31mmlibc: " << __func__ << " is a stub!" << frg::endlog;
Refactor Hue motion sensor binding maintenance * Use more important occupied state value to decide if binding is active * Track reporting of sensitivity in ZclValue, prior versions repeatedly issued bind requests albeit the binding was active. Hue motion sensor lost issue:
@@ -788,7 +788,7 @@ bool DeRestPluginPrivate::sendConfigureReportingRequest(BindingTask &bt) return false; } - QDateTime now = QDateTime::currentDateTime(); + const QDateTime now = QDateTime::currentDateTime(); ConfigureReportingRequest rq; rq.zclSeqNum = zclSeq++; // to match in configure reporting response handler @@ -813,23 +813,37 @@ bool DeRestPluginPrivate::sendConfigureReportingRequest(BindingTask &bt) rq.minInterval = val.minInterval; rq.maxInterval = val.maxInterval; + int processed = 0; if (sendConfigureReportingRequest(bt, {rq})) { - Sensor *sensor = static_cast<Sensor *>(bt.restNode); + processed++; + } + + const Sensor *sensor = static_cast<Sensor *>(bt.restNode); if (sensor && sensor->modelId() == QLatin1String("SML001")) // Hue motion sensor { - rq = ConfigureReportingRequest(); - rq.dataType = deCONZ::Zcl8BitUint; - rq.attributeId = 0x0030; // sensitivity - rq.minInterval = 5; // value used by Hue bridge - rq.maxInterval = 7200; // value used by Hue bridge - rq.reportableChange8bit = 1; // value used by Hue bridge - rq.manufacturerCode = VENDOR_PHILIPS; - return sendConfigureReportingRequest(bt, {rq}); + if (bt.restNode->getZclValue(bt.binding.clusterId, 0x0030).clusterId != bt.binding.clusterId) + { + bt.restNode->setZclValue(NodeValue::UpdateInvalid, bt.binding.clusterId, 0x0030, dummy); } - return true; + ConfigureReportingRequest rq2; + NodeValue &val2 = bt.restNode->getZclValue(bt.binding.clusterId, 0x0030); + rq2.dataType = deCONZ::Zcl8BitUint; + rq2.attributeId = 0x0030; // sensitivity + val2.minInterval = 5; // value used by Hue bridge + val2.maxInterval = 7200; // value used by Hue bridge + rq2.minInterval = val2.minInterval; + rq2.maxInterval = val2.maxInterval; + rq2.reportableChange8bit = 1; // value used by Hue bridge + rq2.manufacturerCode = VENDOR_PHILIPS; + + if (sendConfigureReportingRequest(bt, {rq2})) + { + processed++; } - return false; + } + + return processed > 0; } else if (bt.binding.clusterId == ILLUMINANCE_MEASUREMENT_CLUSTER_ID) { @@ -1504,16 +1518,9 @@ bool DeRestPluginPrivate::checkSensorBindingsForAttributeReporting(Sensor *senso val = sensor->getZclValue(*i, 0x0000); // measured value } else if (*i == OCCUPANCY_SENSING_CLUSTER_ID) - { - if (sensor->modelId() == QLatin1String("SML001")) // Hue motion sensor - { - val = sensor->getZclValue(*i, 0x0030); // sensitivity - } - else { val = sensor->getZclValue(*i, 0x0000); // occupied state } - } else if (*i == POWER_CONFIGURATION_CLUSTER_ID) { if (sensor->modelId() == QLatin1String("SML001") && sensor->type() != QLatin1String("ZHAPresence"))
Fix issue where temp vectors sometimes don't work as colors;
@@ -462,7 +462,8 @@ void luax_optcolor(lua_State* L, int index, float color[4]) { color[3] = luax_optfloat(L, -1, 1.); lua_pop(L, 4); break; - case LUA_TUSERDATA: { + case LUA_TUSERDATA: + case LUA_TLIGHTUSERDATA: { VectorType type; float* v = luax_tovector(L, index, &type); if (type == V_VEC3) {
Don't enable TLS 1.3 with OpenSSL yet.
@@ -917,13 +917,13 @@ _httpTLSStart(http_t *http) // I - Connection to server TLS1_VERSION, // TLS/1.0 TLS1_1_VERSION, // TLS/1.1 TLS1_2_VERSION, // TLS/1.2 -#ifdef TLS1_3_VERSION - TLS1_3_VERSION, // TLS/1.3 - TLS1_3_VERSION // TLS/1.3 (max) -#else +//#ifdef TLS1_3_VERSION +// TLS1_3_VERSION, // TLS/1.3 +// TLS1_3_VERSION // TLS/1.3 (max) +//#else TLS1_2_VERSION, // TLS/1.2 TLS1_2_VERSION // TLS/1.2 (max) -#endif // TLS1_3_VERSION +//#endif // TLS1_3_VERSION };
chore(docs): update the link of demos to the new location
@@ -65,8 +65,7 @@ You can choose from [many different ways of contributing](/CONTRIBUTING) such as All repositories of the LVGL project are hosted on GitHub: https://github.com/lvgl You will find these repositories there: -- [lvgl](https://github.com/lvgl/lvgl) The library itself with many [examples](https://github.com/lvgl/lvgl/blob/master/examples/). -- [lv_demos](https://github.com/lvgl/lv_demos) Demos created with LVGL. +- [lvgl](https://github.com/lvgl/lvgl) The library itself with many [examples](https://github.com/lvgl/lvgl/blob/master/examples/) and [demos](https://github.com/lvgl/lvgl/blob/master/demos/). - [lv_drivers](https://github.com/lvgl/lv_drivers) Display and input device drivers - [blog](https://github.com/lvgl/blog) Source of the blog's site (https://blog.lvgl.io) - [sim](https://github.com/lvgl/sim) Source of the online simulator's site (https://sim.lvgl.io)
wsman-faults: fix a possible NULL dereferencing issue in wsman_get_fault_status_from_doc
@@ -611,7 +611,7 @@ wsman_get_fault_status_from_doc (WsXmlDocH doc, WsmanStatus *status) char *subcode_value_msg; char *start_pos; - if (strlen(subcode_value) == 0) + if (!subcode_value || strlen(subcode_value) == 0) return; subcode_value_msg = calloc(1, strlen(subcode_value));
Misra 17.7: The value returned by a function having non-void return type shall be used. We should hang on initial failed safety_set_mode
@@ -695,7 +695,13 @@ int main(void) { // default to silent mode to prevent issues with Ford // hardcode a specific safety mode if you want to force the panda to be in a specific mode - safety_set_mode(SAFETY_NOOUTPUT, 0); + int err = safety_set_mode(SAFETY_NOOUTPUT, 0); + if (err == -1) { + puts("Failed to set safety mode\n"); + while (true) { + // if SAFETY_NOOUTPUT isn't succesfully set, we can't continue + } + } #ifdef EON // if we're on an EON, it's fine for CAN to be live for fingerprinting can_silent = ALL_CAN_LIVE;
nrf/bluetooth/ble_uart: Add mp_hal_stdio_poll function. This adds support for enabling MICROPY_PY_SYS_STDFILES when running UART over Bluetooth (NUS).
#include "lib/utils/interrupt_char.h" #include "py/runtime.h" +#if MICROPY_PY_SYS_STDFILES +#include "py/stream.h" +#endif + #if MICROPY_PY_BLE_NUS static ubluepy_uuid_obj_t uuid_obj_service = { @@ -136,6 +140,17 @@ void mp_hal_stdout_tx_strn_cooked(const char *str, mp_uint_t len) { mp_hal_stdout_tx_strn(str, len); } +#if MICROPY_PY_SYS_STDFILES +uintptr_t mp_hal_stdio_poll(uintptr_t poll_flags) { + uintptr_t ret = 0; + if ((poll_flags & MP_STREAM_POLL_RD) && ble_uart_enabled() + && !isBufferEmpty(mp_rx_ring_buffer)) { + ret |= MP_STREAM_POLL_RD; + } + return ret; +} +#endif + STATIC void gap_event_handler(mp_obj_t self_in, uint16_t event_id, uint16_t conn_handle, uint16_t length, uint8_t * data) { ubluepy_peripheral_obj_t * self = MP_OBJ_TO_PTR(self_in);
Fix missing entry point error on Windows 7 The Duktape library invokes a function, GetSystemTimePreciseAsFileTime, that was added in Win8. This simply changes the build configuration to use a less precise function. Hopefully this doesn't impact timing in any games.
@@ -307,6 +307,8 @@ set(TIC80CORE_SRC add_library(tic80core STATIC ${TIC80CORE_SRC}) +target_compile_definitions(tic80core PRIVATE DUK_USE_DATE_NOW_WINDOWS) # Avoid API introduced after Win7 + target_include_directories(tic80core PRIVATE ${CMAKE_SOURCE_DIR}/include
Add routine to get convex parallel successors
@@ -1585,15 +1585,15 @@ int* get_convex_successors(int scc_id, PlutoProg *prog, { int i, num_successors, num_sccs; Graph *ddg; - Scc *sccs; int* convex_successors = NULL; + ddg = prog->ddg; - sccs = ddg->sccs; num_sccs = ddg->num_sccs; + num_successors=0; - for (i=scc_id+1; i<ddg->num_sccs; i++) { - if (sccs[i].is_parallel && is_convex_scc(scc_id, i, ddg, prog)) { + for (i=scc_id+1; i<num_sccs; i++) { + if (is_convex_scc(scc_id, i, ddg, prog)) { if (convex_successors == NULL) { convex_successors = (int*) malloc (num_sccs*sizeof(int)); } @@ -1604,6 +1604,31 @@ int* get_convex_successors(int scc_id, PlutoProg *prog, return convex_successors; } +int *get_convex_parallel_successors(int scc_id, PlutoProg *prog, + int *num_convex_par_successors) { + int i, num, par_successors, num_sccs; + int *convex_successors, *convex_par_successors; + Scc *sccs; + + sccs = prog->ddg->sccs; + num_sccs = prog->ddg->num_sccs; + convex_par_successors = NULL; + par_successors = 0; + convex_successors = get_convex_successors(scc_id, prog, &num); + + for (i=0; i<num; i++) { + if (!sccs[i].is_parallel) + continue; + + if (convex_par_successors==NULL) { + convex_par_successors = (int*) malloc (num_sccs*sizeof(int)); + } + convex_par_successors[par_successors++] = convex_successors[i]; + } + *num_convex_par_successors = par_successors; + return convex_par_successors; +} + /* Returns true if there is a parallelism preventing edge between vertex v * and any vertex i which has been coloured with the current_colour */ bool is_colour_par_preventing (int v, int *colour, int current_colour) @@ -1775,7 +1800,7 @@ bool colour_scc_cluster_greedy(int scc_id, int *colour, int current_colour, return false; } - convex_successors = get_convex_successors(scc_id, prog, + convex_successors = get_convex_parallel_successors(scc_id, prog, &num_convex_successors); /* If there are no convex successors, colour this scc */
updates :dns to notify %eyre on new bindings
== += card $% [%tend wire ~] [%poke wire dock poke] + [%rule wire %turf %put turf] [%hiss wire [~ ~] %httr %hiss hiss:eyre] == :: +state: complete app state ?: =(for him) ~|(%bond-yoself !!) ?: =(our.bow him) - :: XX notify eyre/hood/acme etc ~& [%bound-us dom] - :- ~ + :- [[ost.bow %rule /bound %turf %put dom] ~] this(dom (~(put in ^dom) dom)) ?: =(our.bow for) ~& [%bound-him him dom]
file-server: scry for %base desk hash
== :: ++ on-leave on-leave:def -++ on-peek on-peek:def +++ on-peek + |= =path + ^- (unit (unit cage)) + |^ + ?+ path (on-peek:def path) + [%x %clay %base %hash ~] ``hash+!>(base-hash) + == + :: stolen from +trouble + :: TODO: move to a lib? + ++ base-hash + ^- @uv + =+ .^ ota=(unit [=ship =desk =aeon:clay]) + %gx /(scot %p our.bowl)/hood/(scot %da now.bowl)/kiln/ota/noun + == + ?~ ota + *@uv + =/ parent (scot %p ship.u.ota) + =+ .^(=cass:clay %cs /[parent]/[desk.u.ota]/1/late/foo) + %^ end 3 3 + .^(@uv %cz /[parent]/[desk.u.ota]/(scot %ud ud.cass)) + -- + ++ on-agent on-agent:def ++ on-fail on-fail:def --
Run install using sudo.
@@ -29,4 +29,4 @@ jobs: - name: "Run mod_wsgi-express test" run: scripts/run-single-test.sh - name: "Verify CMMI configure/make/make install" - run: ./configure && make && make install + run: ./configure && make && sudo make install
ble_mesh: Free beacon timer when deinit mesh
@@ -424,9 +424,7 @@ int bt_mesh_deinit(struct bt_mesh_deinit_param *param) bt_mesh_trans_deinit(param->erase); bt_mesh_net_deinit(param->erase); - if (IS_ENABLED(CONFIG_BLE_MESH_NODE)) { bt_mesh_beacon_deinit(); - } if (IS_ENABLED(CONFIG_BLE_MESH_PROXY)) { if (IS_ENABLED(CONFIG_BLE_MESH_NODE)) {
Add test for mongoc_ssl_opt_get_default ()
@@ -2644,6 +2644,22 @@ test_null_error_pointer_pooled (void *ctx) _test_null_error_pointer (true); } +#ifdef MONGOC_ENABLE_SSL +static void +test_set_ssl_opts (void) +{ + const mongoc_ssl_opt_t *opts = mongoc_ssl_opt_get_default (); + + ASSERT (opts->pem_file == NULL); + ASSERT (opts->pem_pwd == NULL); + ASSERT (opts->ca_file == NULL); + ASSERT (opts->ca_dir == NULL); + ASSERT (opts->crl_file == NULL); + ASSERT (!opts->weak_cert_validation); + ASSERT (!opts->allow_invalid_hostname); +} +#endif + void test_client_install (TestSuite *suite) { @@ -2717,8 +2733,7 @@ test_client_install (TestSuite *suite) suite, "/Client/command_with_opts/legacy", test_command_with_opts_legacy); TestSuite_AddLive ( suite, "/Client/command_with_opts/modern", test_command_with_opts_modern); - TestSuite_AddLive ( - suite, "/Client/command/empty", test_command_empty); + TestSuite_AddLive (suite, "/Client/command/empty", test_command_empty); TestSuite_AddLive ( suite, "/Client/command/no_errmsg", test_command_no_errmsg); TestSuite_Add (suite, "/Client/unavailable_seeds", test_unavailable_seeds); @@ -2803,6 +2818,7 @@ test_client_install (TestSuite *suite) #ifdef MONGOC_ENABLE_SSL TestSuite_AddLive (suite, "/Client/ssl_opts/single", test_ssl_single); TestSuite_AddLive (suite, "/Client/ssl_opts/pooled", test_ssl_pooled); + TestSuite_Add (suite, "/Client/set_ssl_opts", test_set_ssl_opts); #if defined(MONGOC_ENABLE_SSL_OPENSSL) || \ defined(MONGOC_ENABLE_SSL_SECURE_TRANSPORT)
vxlan: fix interface naming Previous commit broke naming of vxlan interfaces. Type:fix Fixes:a4b0541f6
@@ -440,20 +440,22 @@ int vnet_vxlan_add_del_tunnel hw_addr[0] = 2; hw_addr[1] = 0xfe; + hash_set (vxm->instance_used, user_instance, 1); + + t->dev_instance = dev_instance; /* actual */ + t->user_instance = user_instance; /* name */ + t->flow_index = ~0; + if (ethernet_register_interface (vnm, vxlan_device_class.index, dev_instance, hw_addr, &t->hw_if_index, vxlan_eth_flag_change)) { + hash_unset (vxm->instance_used, t->user_instance); + pool_put (vxm->tunnels, t); return VNET_API_ERROR_SYSCALL_ERROR_2; } - hash_set (vxm->instance_used, user_instance, 1); - - t->dev_instance = dev_instance; /* actual */ - t->user_instance = user_instance; /* name */ - t->flow_index = ~0; - vnet_hw_interface_t *hi = vnet_get_hw_interface (vnm, t->hw_if_index); /* Set vxlan tunnel output node */
fix: update the patch for localhost deployment
diff --git a/deploy/webhook-operator.yaml b/deploy/webhook-operator.yaml -index 6c4c0b67..b29950ed 100644 +index 2de0b5bb..b29950ed 100644 --- a/deploy/webhook-operator.yaml +++ b/deploy/webhook-operator.yaml @@ -1967,7 +1967,7 @@ metadata: @@ -35,10 +35,59 @@ index 6c4c0b67..b29950ed 100644 valueFrom: fieldRef: fieldPath: metadata.namespace -- image: security-profiles-operator +- image: gcr.io/k8s-staging-sp-operator/security-profiles-operator:latest - imagePullPolicy: Always + image: localhost/security-profiles-operator:latest + imagePullPolicy: IfNotPresent name: security-profiles-operator ports: - containerPort: 9443 +diff --git a/hack/deploy-webhook-localhost.patch b/hack/deploy-webhook-localhost.patch +index d8419a30..e69de29b 100644 +--- a/hack/deploy-webhook-localhost.patch ++++ b/hack/deploy-webhook-localhost.patch +@@ -1,44 +0,0 @@ +-diff --git a/deploy/webhook-operator.yaml b/deploy/webhook-operator.yaml +-index 6c4c0b67..b29950ed 100644 +---- a/deploy/webhook-operator.yaml +-+++ b/deploy/webhook-operator.yaml +-@@ -1967,7 +1967,7 @@ metadata: +- name: security-profiles-operator +- namespace: security-profiles-operator +- spec: +-- replicas: 3 +-+ replicas: 1 +- selector: +- matchLabels: +- app: security-profiles-operator +-@@ -1990,8 +1990,8 @@ spec: +- valueFrom: +- fieldRef: +- fieldPath: metadata.namespace +-- image: gcr.io/k8s-staging-sp-operator/security-profiles-operator:latest +-- imagePullPolicy: Always +-+ image: localhost/security-profiles-operator:latest +-+ imagePullPolicy: IfNotPresent +- name: security-profiles-operator +- resources: +- limits: +-@@ -2023,7 +2023,7 @@ metadata: +- name: security-profiles-operator-webhook +- namespace: security-profiles-operator +- spec: +-- replicas: 3 +-+ replicas: 1 +- selector: +- matchLabels: +- app: security-profiles-operator +-@@ -2044,8 +2044,8 @@ spec: +- valueFrom: +- fieldRef: +- fieldPath: metadata.namespace +-- image: security-profiles-operator +-- imagePullPolicy: Always +-+ image: localhost/security-profiles-operator:latest +-+ imagePullPolicy: IfNotPresent +- name: security-profiles-operator +- ports: +- - containerPort: 9443