message
stringlengths 6
474
| diff
stringlengths 8
5.22k
|
---|---|
filter out packets to self | |= [=lane =packet]
^+ event-core
::
+ ?: =(our sndr.packet)
+ ~& %alef-self
+ event-core
+ ::
%. [lane packet]
::
?. =(our rcvr.packet)
+ ~& %alef-on-hear-forward
on-hear-forward
::
?: encrypted.packet
+ ~& %alef-on-hear-shut
on-hear-shut
+ ~& %alef-on-hear-open
on-hear-open
:: +on-hear-forward: maybe forward a packet to someone else
::
=/ ship-state (~(get by peers.ames-state) ship)
::
?. ?=([~ %known *] ship-state)
- ~& %alef-send-blob-alien
%+ enqueue-alien-todo ship
|= todos=pending-requests
todos(snd-packets (~(put in snd-packets.todos) blob))
- ~& %alef-send-blob-known
::
=/ =peer-state +.u.ship-state
=/ =channel [[our ship] now +>.ames-state -.peer-state]
::
=* try-next-sponsor
?: =(ship her-sponsor.channel)
- ~& %alef-send-blob-ship-eq-her-sponsor
event-core
- ~& %alef-send-blob-try-next-recurse
$(ship her-sponsor.channel)
::
?~ route=route.peer-state
- ~& %alef-send-blob-no-route
try-next-sponsor
::
- ~& %alef-send-blob-emit-to^ship
=. event-core
(emit unix-duct.ames-state %give %send lane.u.route blob)
::
?: direct.u.route
- ~& %alef-send-blob-direct-done
event-core
- ~& %alef-send-blob-indirect-try-next
try-next-sponsor
:: +got-peer-state: lookup .her state or crash
::
|
Documentation update only: add link to XPLR-IOT-1 on front page. | @@ -47,6 +47,7 @@ Hosts run `ubxlib` and interact with an attached periperal. A host platform cont
- [STM32F4 Discovery board](https://www.st.com/en/evaluation-tools/stm32f4discovery.html)
- [ESP32-DevKitC](https://www.espressif.com/en/products/devkits/esp32-devkitc/overview)
- [u-blox NINA-W1 EVK](https://www.u-blox.com/en/product/evk-nina-w10)
+- [u-blox XPLR-IOT-1](https://www.u-blox.com/en/product/xplr-iot-1)
If your MCU is on the list but your board is not:
- Just set the HW pins in the source file of the example to match how your MCU is wired to the u-blox peripheral.
|
Always display text field on the console | @@ -90,7 +90,7 @@ class MovableTextField: NSObject, UITextFieldDelegate {
@objc private func keyboardWillShow(_ notification: NSNotification) {
if let keyboardFrame = (notification.userInfo?[UIResponder.keyboardFrameEndUserInfoKey] as? NSValue)?.cgRectValue {
let point = CGPoint(x: 0, y: (UIApplication.shared.keyWindow ?? console.view).frame.height-keyboardFrame.height-toolbar.frame.height)
- toolbar.frame.origin = (UIApplication.shared.keyWindow ?? console.view).convert(point, to: console.view)
+ toolbar.frame.origin = CGPoint(x: 0, y: (UIApplication.shared.keyWindow ?? console.view).convert(point, to: console.view).y)
}
}
|
Work with BIP39 mnemonics as outward-facing seeds
Then apply the password in turning them into internally usable seeds. | += nodes (map ship node)
+= uodes (map ship uode)
::
-+= node [meta=meta seed=@ux keys=wallet]
++= node [meta=meta seed=tape keys=wallet]
+= uode [meta=meta seed=@ux keys=edkeys]
::
-+= meta [typ=tape rev=@ud who=(unit ship)]
++= meta [typ=tape rev=@ud who=ship]
::
-+= wallet [public=@ux private=@ux chain=@ux]
++= wallet [keys=[public=@ux private=@ux] addr=@ux chain=@ux]
::
+= edkeys [auth=keypair crypt=keypair]
::
|
Update sim_common_files recipe to not use awk | @@ -173,7 +173,7 @@ harness_macro_temp: $(HARNESS_SMEMS_CONF) | top_macro_temp
# remove duplicate files and headers in list of simulation file inputs
########################################################################################
$(sim_common_files): $(sim_files) $(sim_top_blackboxes) $(sim_harness_blackboxes)
- awk '{print}' $^ | sort -u | grep -v '.*\.\(svh\|h\)$$' > $@
+ sort -u $^ | grep -v '.*\.\(svh\|h\)$$' > $@
#########################################################################################
# helper rule to just make verilog files
|
hdata/memory: Add newlines to debug messages
Missed a few. | @@ -528,13 +528,13 @@ static void parse_trace_reservations(struct HDIF_common_hdr *ms_vpd)
*/
if (!HDIF_get_idata(ms_vpd, MSVPD_IDATA_TRACE_AREAS, &size) || !size) {
- prlog(PR_DEBUG, "MS VPD: No trace areas found.");
+ prlog(PR_DEBUG, "MS VPD: No trace areas found\n");
return;
}
count = HDIF_get_iarray_size(ms_vpd, MSVPD_IDATA_TRACE_AREAS);
if (count <= 0) {
- prlog(PR_DEBUG, "MS VPD: No trace areas found.");
+ prlog(PR_DEBUG, "MS VPD: No trace areas found\n");
return;
}
|
Added reason messages for device disconnect | @@ -175,10 +175,14 @@ static void handle_transfer(struct libusb_transfer *transfer) {
SurviveContext *ctx = iface->ctx;
bool attemptReconnect = false;
if (!iface->shutdown && transfer->status == LIBUSB_TRANSFER_TIMED_OUT) {
+ SV_WARN("%f %s Device turned off: %d", survive_run_time(ctx), survive_colorize_codename(iface->assoc_obj),
+ transfer->status);
goto object_turned_off;
}
if (!iface->shutdown && transfer->status != LIBUSB_TRANSFER_COMPLETED) {
+ SV_WARN("%f %s Device disconnect: %d", survive_run_time(ctx), survive_colorize_codename(iface->assoc_obj),
+ transfer->status);
goto disconnect;
}
|
core/pci.c: cleanup pci_add_loc_code()
Minor cleanups to add clarity after commit
"PCI: create optional loc-code platform callback" | @@ -1385,42 +1385,37 @@ void pci_std_swizzle_irq_map(struct dt_node *np,
static void pci_add_loc_code(struct dt_node *np)
{
- struct dt_node *p = np->parent;
- const char *blcode = NULL;
+ struct dt_node *p;
+ const char *lcode = NULL;
- while (p) {
+ for (p = np->parent; p; p = p->parent) {
/* prefer slot-label by default */
- blcode = dt_prop_get_def(p, "ibm,slot-label", NULL);
- if (blcode)
+ lcode = dt_prop_get_def(p, "ibm,slot-label", NULL);
+ if (lcode)
break;
/* otherwise use the fully qualified location code */
- blcode = dt_prop_get_def(p, "ibm,slot-location-code", NULL);
- if (blcode)
+ lcode = dt_prop_get_def(p, "ibm,slot-location-code", NULL);
+ if (lcode)
break;
-
- p = p->parent;
}
- if (!blcode)
- blcode = dt_prop_get_def(np, "ibm,slot-location-code", NULL);
+ if (!lcode)
+ lcode = dt_prop_get_def(np, "ibm,slot-location-code", NULL);
- if (!blcode) {
+ if (!lcode) {
/* Fall back to finding a ibm,loc-code */
- p = np->parent;
-
- while (p) {
- blcode = dt_prop_get_def(p, "ibm,loc-code", NULL);
- if (blcode)
+ for (p = np->parent; p; p = p->parent) {
+ lcode = dt_prop_get_def(p, "ibm,loc-code", NULL);
+ if (lcode)
break;
- p = p->parent;
}
}
- if (!blcode)
+ if (!lcode)
return;
- dt_add_property_string(np, "ibm,loc-code", blcode);
+ dt_add_property_string(np, "ibm,loc-code", lcode);
}
static void pci_print_summary_line(struct phb *phb, struct pci_device *pd,
|
do not edit or merge pcapng files - this will remove optional comment fields | @@ -5615,6 +5615,8 @@ printf("%s %s (C) %s ZeroBeat\n"
"Run hcxdumptool -i interface --do_rcascan for at least 30 seconds, before you start an attack!\n"
"If hcxdumptool captured your password from WiFi traffic, you should check all your devices immediately!\n"
"It is not a good idea to merge a lot of small cap/pcap/pcapng files to a big one!\n"
+ "It is not a good idea to edit a hcxdumptool pcapng file!\n"
+ "Merging and editing will remove optional pcapng comment fields!\n"
"It is much better to run gzip to compress the files. Wireshark, tshark and hcxpcaptool will understand this.\n"
"\n",
eigenname, VERSION, VERSION_JAHR, eigenname, eigenname, TIME_INTERVAL, ERRORMAX, EAPOLTIMEOUT, DEAUTHENTICATIONINTERVALL,
|
For PR : support for with interface name. | @@ -154,25 +154,36 @@ resolve_ifa_name(struct ifaddrs *ifas, const char *search_ifa, char ***ip_addres
for(ifa = ifas; ifa != NULL; ifa = ifa->ifa_next) {
sa_family_t family;
-#ifdef INET6 /* | address ip | % | ifa name | */
- char addr_buf[INET6_ADDRSTRLEN + 1 + IF_NAMESIZE + 1];
+ const char* atsign;
+#ifdef INET6 /* | address ip | % | ifa name | @ | port | nul */
+ char addr_buf[INET6_ADDRSTRLEN + 1 + IF_NAMESIZE + 1 + 16 + 1];
#else
- char addr_buf[INET_ADDRSTRLEN + 1];
+ char addr_buf[INET_ADDRSTRLEN + 1 + 16 + 1];
#endif
+ if((atsign=strrchr(search_ifa, '@')) != NULL) {
+ if(strlen(ifa->ifa_name) != (size_t)(atsign-search_ifa)
+ || strncmp(ifa->ifa_name, search_ifa,
+ atsign-search_ifa) != 0)
+ continue;
+ } else {
if(strcmp(ifa->ifa_name, search_ifa) != 0)
continue;
+ atsign = "";
+ }
if(ifa->ifa_addr == NULL)
continue;
family = ifa->ifa_addr->sa_family;
if(family == AF_INET) {
+ char a4[INET_ADDRSTRLEN + 1];
struct sockaddr_in *in4 = (struct sockaddr_in *)
ifa->ifa_addr;
- if(!inet_ntop(family, &in4->sin_addr, addr_buf,
- sizeof(addr_buf)))
+ if(!inet_ntop(family, &in4->sin_addr, a4, sizeof(a4)))
error("inet_ntop");
+ snprintf(addr_buf, sizeof(addr_buf), "%s%s",
+ a4, atsign);
}
#ifdef INET6
else if(family == AF_INET6) {
@@ -186,10 +197,11 @@ resolve_ifa_name(struct ifaddrs *ifas, const char *search_ifa, char ***ip_addres
if_indextoname(in6->sin6_scope_id,
(char *)if_index_name);
if (strlen(if_index_name) != 0) {
- snprintf(addr_buf, sizeof(addr_buf), "%s%%%s",
- a6, if_index_name);
+ snprintf(addr_buf, sizeof(addr_buf),
+ "%s%%%s%s", a6, if_index_name, atsign);
} else {
- snprintf(addr_buf, sizeof(addr_buf), "%s", a6);
+ snprintf(addr_buf, sizeof(addr_buf), "%s%s",
+ a6, atsign);
}
}
#endif
|
[fuzzer] Run h3 fuzzer in CI | @@ -51,6 +51,7 @@ _fuzz:
_do-fuzz-extra:
./h2o-fuzzer-http1 -close_fd_mask=3 -runs=1 -max_len=16384 $(SRC_DIR)/fuzz/http1-corpus < /dev/null
./h2o-fuzzer-http2 -close_fd_mask=3 -runs=1 -max_len=16384 $(SRC_DIR)/fuzz/http2-corpus < /dev/null
+ ./h2o-fuzzer-http3 -close_fd_mask=3 -runs=1 -max_len=16384 $(SRC_DIR)/fuzz/http3-corpus < /dev/null
./h2o-fuzzer-url -close_fd_mask=3 -runs=1 -max_len=16384 $(SRC_DIR)/fuzz/url-corpus < /dev/null
enter:
|
bump travis to bionic.
let us skip out on the OpenSSL build. Can use buildbots to ensure older
distros work. | sudo: required
-dist: xenial
+dist: bionic
language: cpp
arch:
- amd64
@@ -10,10 +10,7 @@ compiler:
install:
- sudo apt-get update -y
- - sudo apt-get install -y build-essential automake1.11 autoconf libevent-dev libseccomp-dev git tar wget libio-socket-ssl-perl
- - wget https://www.openssl.org/source/openssl-1.1.0g.tar.gz && tar xzf openssl-1.1.0g.tar.gz
- - cd openssl-1.1.0g && ./config -Wl,--enable-new-dtags,-rpath,'$(LIBRPATH)' && make && sudo make install && openssl version && cd ../
- - rm -rf openssl-1.1.0g && rm openssl-1.1.0g.tar.gz*
+ - sudo apt-get install -y build-essential automake1.11 autoconf libevent-dev libseccomp-dev git tar libio-socket-ssl-perl libssl-dev openssl
script:
- ./autogen.sh
|
Add section on diagnosing pluginVsInstall testing errors. | @@ -413,6 +413,26 @@ how want to write their own Visit-based tests.
For more details about this, see: `Leveraging VisIt in Sim Code RegressionTesting <http://visitusers.org/index.php?title=Leveraging_VisIt_in_Sim_Code_Regression_Testing>`_
+Diagnosing pluginVsInstall failures
+-----------------------------------
+pluginsVsInstall test output is generated in the ``current/plugins`` subdirectory of the test results location.
+There will be a further subdirectory for each type of plugin: databasesVsInstall, operatorsVsInstall and plotsVsInstall.
+The output consists of text files containing the name of each plugin tested and either ``success`` or one of the following errors:
+
+* ``No installed package.`` Indicates a failure in install of VisIt.
+* ``cmake configure failed`` Failure with cmake to configure the plugin for build.
+* ``make failed`` Failure with the build of the plugin.
+* ``cmake executable could not be found`` (rare, just for completeness)
+* ``make executable could not be found`` (rare, just for completeness)
+
+When failure occurs, another output file is generated in ``logs/plugins`` subdirectory in the form ``<PluginName>_build_res.txt`` which should contain sufficient information for fixing the error.
+
+The most likely culprit for errors is missing information in one of the following files:
+
+* ``src/include/visit-cmake.h.in`` -- Holds all the #defines needed for a build (HAVE_LIBXXX, etc).
+* ``src/CMake/PluginVsInstall.cmake.in`` -- Ensures third-party include/library locations are correct for an install.
+* ``src/CMake/FilterDependnecies.cmake.in`` -- Filters library dependency paths to account for differences between locations of third-party libraries used in a build vs. where they are located within an installed version of VisIt.
+
.. CYRUS NOTE: This info seems to old to be relevant, but keeping here commented out just in case.
..
.. == Troubleshooting ==
|
filter_geoip2: fix data types | @@ -166,7 +166,8 @@ static struct flb_hash *prepare_lookup_keys(msgpack_object *map,
mk_list_foreach_safe(head, tmp, &ctx->lookup_keys) {
lookup_key = mk_list_entry(head, struct geoip2_lookup_key, _head);
if (strncasecmp(key->via.str.ptr, lookup_key->key, lookup_key->key_len) == 0) {
- flb_hash_add(ht, lookup_key->key, lookup_key->key_len, val->via.str.ptr, val->via.str.size);
+ flb_hash_add(ht, lookup_key->key, lookup_key->key_len,
+ (void *) val->via.str.ptr, val->via.str.size);
}
}
}
@@ -221,7 +222,8 @@ static void add_geoip_fields(msgpack_object *map,
msgpack_pack_str(packer, record->key_len);
msgpack_pack_str_body(packer, record->key, record->key_len);
- flb_hash_get(lookup_keys, record->lookup_key, record->lookup_key_len, &ip, &ip_size);
+ flb_hash_get(lookup_keys, record->lookup_key, record->lookup_key_len,
+ (void *) &ip, &ip_size);
result = mmdb_lookup(ctx, ip);
if (!result.found_entry) {
msgpack_pack_nil(packer);
|
Update libuv repo url in README | @@ -5,7 +5,7 @@ luv
[](https://ci.appveyor.com/project/racker-buildbot/luv/branch/master)
-[libuv](https://github.com/joyent/libuv) bindings for
+[libuv](https://github.com/libuv/libuv) bindings for
[luajit](http://luajit.org/) and [lua](http://www.lua.org/)
[5.1](http://www.lua.org/manual/5.1/manual.html)/
[5.2](http://www.lua.org/manual/5.2/manual.html)/
|
remove ApplyModelMulti from images robot | @@ -67,6 +67,14 @@ namespace NCB { // split due to CUDA-compiler inability to parse nested namespa
const TFeatureLayout* featureInfo = nullptr
) const = 0;
+ void CalcFlatTransposed(
+ TConstArrayRef<TConstArrayRef<float>> transposedFeatures,
+ TArrayRef<double> results,
+ const TFeatureLayout* featureInfo = nullptr
+ ) const {
+ CalcFlatTransposed(transposedFeatures, 0, GetTreeCount(), results, featureInfo);
+ }
+
virtual void CalcFlat(
TConstArrayRef<TConstArrayRef<float>> features,
size_t treeStart,
|
Fixed png file names in examples/EarthClimate | @@ -36,7 +36,7 @@ To run this example
Expected output
---------------
-.. figure:: MilankovitchSeasons.png
+.. figure:: EarthClimateSeasons.png
:width: 600px
:align: center
@@ -46,7 +46,7 @@ single year, as modeled by `poise`. Note that negative values in ice mass balanc
represent **potential** melting, i.e. this value is calculated even in the
absence of ice on the surface.
-.. figure:: MilankovitchComp.png
+.. figure:: EarthClimateMilankovitch.png
:width: 600px
:align: center
|
NSH set command: Eliminate useless argc check of SCRIPTS are enabled but ENVIRONMENT is disabled | @@ -324,9 +324,14 @@ int cmd_set(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
const char opts[] = NSH_NP_SET_OPTIONS;
int op;
+#ifndef CONFIG_DISABLE_ENVIRON
/* Support set [{+|-}{e|x|xe|ex}] [<name> <value>] */
if (argc == 2 || argc == 4)
+#else
+ /* Support set [{+|-}{e|x|xe|ex}] */
+
+#endif
{
if (strlen(argv[1]) < 2)
{
|
open(2): support O_APPEND | @@ -721,8 +721,8 @@ sysreturn open_internal(tuple root, char *name, int flags, int mode)
f->f.check = closure(h, file_check, f, fsf);
f->n = n;
f->length = length;
- f->offset = 0;
- thread_log(current, " fd %d, file length %d", fd, f->length);
+ f->offset = (flags & O_APPEND) ? length : 0;
+ thread_log(current, " fd %d, length %d, offset %d", fd, f->length, f->offset);
return fd;
}
|
removed calls to linear_hash_get_record and restored caching in split | @@ -328,16 +328,15 @@ split(
if (bucket.record_count > 0) {
record_loc = bucket_loc + sizeof(linear_hash_bucket_t);
fseek(linear_hash->database, bucket_loc + sizeof(linear_hash_bucket_t), SEEK_SET);
- /* fread(records, linear_hash->record_total_size, linear_hash->records_per_bucket, linear_hash->database); */
+ fread(records, linear_hash->record_total_size, linear_hash->records_per_bucket, linear_hash->database);
for (i = 0; i < bucket.record_count; i++) {
- linear_hash_get_record(record_loc, record_key, record_value, &record_status, linear_hash);
+ //linear_hash_get_record(record_loc, record_key, record_value, &record_status, linear_hash);
- /*
memcpy(&record_status, records + record_offset, sizeof(ion_byte_t));
memcpy(record_key, records + record_offset + sizeof(ion_byte_t), linear_hash->super.record.key_size);
memcpy(record_value, records + record_offset + sizeof(ion_byte_t) + linear_hash->super.record.key_size, linear_hash->super.record.value_size);
- */
+
insert_hash_key = insert_hash_to_bucket(record_key, linear_hash);
@@ -390,16 +389,17 @@ split(
if (bucket.record_count > 0) {
record_loc = bucket_loc + sizeof(linear_hash_bucket_t);
fseek(linear_hash->database, bucket_loc + sizeof(linear_hash_bucket_t), SEEK_SET);
- /* fread(records, linear_hash->record_total_size, linear_hash->records_per_bucket, linear_hash->database); */
+ fread(records, linear_hash->record_total_size, linear_hash->records_per_bucket, linear_hash->database);
for (i = 0; i < bucket.record_count; i++) {
- linear_hash_get_record(record_loc, record_key, record_value, &record_status, linear_hash);
+ // linear_hash_get_record(record_loc, record_key, record_value, &record_status, linear_hash);
+
- /*
memcpy(&record_status, records + record_offset, sizeof(ion_byte_t));
memcpy(record_key, records + record_offset + sizeof(ion_byte_t), linear_hash->super.record.key_size);
memcpy(record_value, records + record_offset + sizeof(ion_byte_t) + linear_hash->super.record.key_size, linear_hash->super.record.value_size);
- */
+
+
insert_hash_key = insert_hash_to_bucket(record_key, linear_hash);
split_hash_key = hash_to_bucket(record_key, linear_hash);
|
Use constant for supported Uncrustify version
Define and report the supported Uncrustify version (and remove extra
newlines from version output). | @@ -22,6 +22,7 @@ import subprocess
import sys
from typing import List
+UNCRUSTIFY_SUPPORTED_VERSION = "0.75.1"
CONFIG_FILE = "codestyle.cfg"
UNCRUSTIFY_EXE = "uncrustify"
UNCRUSTIFY_ARGS = ["-c", CONFIG_FILE]
@@ -125,10 +126,11 @@ def main() -> int:
"""
Main with command line arguments.
"""
- uncrustify_version = get_uncrustify_version()
- if "0.75.1" not in uncrustify_version:
+ uncrustify_version = get_uncrustify_version().strip()
+ if UNCRUSTIFY_SUPPORTED_VERSION not in uncrustify_version:
print("Warning: Using unsupported Uncrustify version '" \
- + uncrustify_version + "'", file=STDOUT_UTF8)
+ + uncrustify_version + "' (Note: The only supported version" \
+ "is " + UNCRUSTIFY_SUPPORTED_VERSION + ")", file=STDOUT_UTF8)
src_files = get_src_files()
|
YAML CPP: Ignore `binary` meta key | @@ -112,7 +112,7 @@ YAML::Node createLeafNode (Key & key)
key.rewindMeta ();
while (Key meta = key.nextMeta ())
{
- if (meta.getName () == "array") continue;
+ if (meta.getName () == "array" || meta.getName () == "binary") continue;
if (meta.getName () == "type" && meta.getString () == "binary")
{
dataNode.SetTag ("tag:yaml.org,2002:binary");
|
Added anonbalance to fetchbalance rpc | @@ -607,6 +607,7 @@ Value fetchbalance(const Array& params, bool fHelp)
"Returns an object containing various wallet balance info.");
Object obj, watchonly;
obj.push_back(Pair("totalbalance", ValueFromAmount(pwalletMain->GetBalance())));
+ obj.push_back(Pair("anonbalance", ValueFromAmount(pwalletMain->GetAnonBalance())));
obj.push_back(Pair("locked", ValueFromAmount(pwalletMain->GetLockedBalance())));
obj.push_back(Pair("unlocked", ValueFromAmount(pwalletMain->GetUnlockedBalance())));
obj.push_back(Pair("newmint", ValueFromAmount(pwalletMain->GetNewMint())));
|
Don't report success from ec_export if OSSL_PARAM_BLD_to_param failed
If the call to OSSL_PARAM_BLD_to_param() failed then ec_export was
reporting success, even though it has never called the param_cb.
Found due to: | @@ -498,6 +498,8 @@ int ec_export(void *keydata, int selection, OSSL_CALLBACK *param_cb,
if (ok && (params = OSSL_PARAM_BLD_to_param(tmpl)) != NULL)
ok = param_cb(params, cbarg);
+ else
+ ok = 0;
end:
OSSL_PARAM_free(params);
OSSL_PARAM_BLD_free(tmpl);
|
Change to filter all arguments that begin with a '-' | @@ -258,10 +258,11 @@ done_processing:
return 1;
}
- int htif_argc = 1 + argc - optind;
- char** htif_argv = (char **) malloc((htif_argc) * sizeof (char *));
+ int htif_argc = 1;
+ char** htif_argv = new char*[argc];
htif_argv[0] = argv[0];
- for (int i = 1; optind < argc;) htif_argv[i++] = argv[optind++];
+ for (int i = 1; i < argc; i++)
+ if (argv[i][0] != '-') htif_argv[htif_argc++] = argv[i];
if (verbose)
fprintf(stderr, "using random seed %u\n", random_seed);
@@ -379,6 +380,6 @@ done_processing:
if (tsi) delete tsi;
if (jtag) delete jtag;
if (tile) delete tile;
- if (htif_argv) free(htif_argv);
+ if (htif_argv) delete[] htif_argv;
return ret;
}
|
imgmgr; imgmgr_read_info() was not checking image header magic unless
the optional ver parameter was passed in. | @@ -152,10 +152,13 @@ imgr_read_info(int image_slot, struct image_version *ver, uint8_t *hash,
goto end;
}
- if (ver != NULL) {
+ if (ver) {
memset(ver, 0xff, sizeof(*ver));
+ }
if (hdr->ih_magic == IMAGE_MAGIC) {
+ if (ver) {
memcpy(ver, &hdr->ih_ver, sizeof(*ver));
+ }
} else if (hdr->ih_magic == 0xffffffff) {
rc = 2;
goto end;
@@ -163,7 +166,6 @@ imgr_read_info(int image_slot, struct image_version *ver, uint8_t *hash,
rc = 1;
goto end;
}
- }
if (flags) {
*flags = hdr->ih_flags;
|
Tiny consolidation of identical LV_SIGNAL_PRESS_LOST code | @@ -1280,6 +1280,9 @@ static lv_res_t lv_cpicker_signal(lv_obj_t * cpicker, lv_signal_t sign, void * p
res = lv_event_send(cpicker, LV_EVENT_VALUE_CHANGED, NULL);
if(res != LV_RES_OK) return res;
}
+ } else if(sign == LV_SIGNAL_PRESS_LOST) {
+ ext->prev_hsv = ext->hsv;
+ lv_cpicker_invalidate(cpicker, false);
} else {
lv_style_t * style = lv_cpicker_get_style(cpicker, LV_CPICKER_STYLE_MAIN);
@@ -1422,11 +1425,6 @@ static lv_res_t lv_cpicker_disc_signal(lv_obj_t * cpicker, lv_signal_t sign, voi
if(res != LV_RES_OK) return res;
}
}
- else if(sign == LV_SIGNAL_PRESS_LOST)
- {
- ext->prev_hsv = ext->hsv;
- lv_cpicker_invalidate(cpicker, false);
- }
else if(sign == LV_SIGNAL_RELEASED)
{
lv_indev_t * indev = param;
@@ -1490,11 +1488,6 @@ static lv_res_t lv_cpicker_rect_signal(lv_obj_t * cpicker, lv_signal_t sign, voi
if(res != LV_RES_OK) return res;
}
}
- else if(sign == LV_SIGNAL_PRESS_LOST)
- {
- ext->prev_hsv = ext->hsv;
- lv_cpicker_invalidate(cpicker, false);
- }
else if(sign == LV_SIGNAL_RELEASED)
{
lv_indev_t * indev = param;
|
Adds ASM Language check to the celix_container_embedded_bundles cmake function | @@ -95,6 +95,12 @@ All embedded bundle can be installed using the framework utils function
`celix_framework_utils_installEmbeddedBundles` (C) or `celix::installEmbeddedBundles` (C++).
]]
function(celix_target_embedded_bundle)
+ get_property(LANGUAGES GLOBAL PROPERTY ENABLED_LANGUAGES)
+ if (NOT "ASM" IN_LIST LANGUAGES)
+ message(FATAL_ERROR "celix_target_embedded_bundle is only supported it the language ASM is enabled."
+ " Please add ASM as cmake project language.")
+ endif ()
+
list(GET ARGN 0 TARGET_NAME)
list(REMOVE_AT ARGN 0)
|
mesh: typo in condition in comp_add_elem of cfg_srv
Vendor model IDs take up four (not two) bytes in the composition
this is port of | @@ -42,7 +42,7 @@ static int comp_add_elem(struct os_mbuf *buf, struct bt_mesh_elem *elem,
int i;
if (net_buf_simple_tailroom(buf) <
- 4 + (elem->model_count * 2) + (elem->vnd_model_count * 2)) {
+ 4 + (elem->model_count * 2) + (elem->vnd_model_count * 4)) {
BT_ERR("Too large device composition");
return -E2BIG;
}
|
Added newly reversed SceLsdb nids | @@ -5950,3 +5950,20 @@ modules:
nid: 0xF0812A7C
functions:
sceVideoExportFromFile: 0x4F60A3C8
+ SceLsdb:
+ nid: 0x19F82753
+ libraries:
+ SceLsdb:
+ kernel: false
+ nid: 0x6BC25E17
+ functions:
+ sceLsdbGetAppVer: 0x63AB6A8F
+ sceLsdbGetBootable: 0x46BF2766
+ sceLsdbGetCategory: 0x6469796F
+ sceLsdbGetDiscId: 0x1F569CFC
+ sceLsdbGetGameDataId: 0x2FFE0E3F
+ sceLsdbGetMode: 0xDEC358E4
+ sceLsdbGetName: 0xD02A8B85
+ sceLsdbGetOriginalPath: 0x92D14842
+ sceLsdbGetParentalLevel: 0x226B12F7
+ sceLsdbGetSelfPath: 0xD6B57313
|
Let CMake do 'make clean' | @@ -385,12 +385,7 @@ ${BTYPES}: ${BTYPESDEP}
endif
clean:
- for d in $(patsubst %,${BUILD_PKG_DIR}/%,src cli test samples) ; do \
- if test -f "$$d/Makefile"; then \
- $(MAKE) --no-print-directory -C "$$d" clean ;\
- fi ;\
- done
- find ${BUILD_PKG_DIR} -name \*.${BUILD_PKG_TYPE} -exec rm -f {} \;
+ $(MAKE) -C ${BUILD_PKG_DIR} clean
config-preview:
ifneq ($(wildcard ${CONFIG}),)
|
Add gesture GESTURE_ROTATE_CLOCKWISE* for Xiaomi Cube | @@ -6152,21 +6152,23 @@ void DeRestPluginPrivate::updateSensorNode(const deCONZ::NodeEvent &event)
if (i->modelId().startsWith(QLatin1String("lumi.sensor_cube")))
{
- qint32 buttonevent = ia->numericValue().real * 100;
+ const qint32 buttonevent = static_cast<qint32>(ia->numericValue().real * 100);
ResourceItem *item = i->item(RStateButtonEvent);
+ ResourceItem *item2 = i->item(RStateGesture);
- if (item)
+ DBG_Assert(item && item2);
+ if (item && item2)
{
item->setValue(buttonevent);
+ item2->setValue(buttonevent > 0 ? GESTURE_ROTATE_CLOCKWISE : GESTURE_ROTATE_COUNTER_CLOCKWISE);
i->updateStateTimestamp();
i->setNeedSaveDatabase(true);
- Event e(RSensors, RStateButtonEvent, i->id(), item);
- enqueueEvent(e);
+ enqueueEvent(Event(RSensors, RStateButtonEvent, i->id(), item));
+ enqueueEvent(Event(RSensors, RStateGesture, i->id(), item2));
enqueueEvent(Event(RSensors, RStateLastUpdated, i->id()));
- }
-
updateSensorEtag(&*i);
}
+ }
else if (i->modelId() == QLatin1String("lumi.plug") ||
i->modelId().startsWith(QLatin1String("lumi.ctrl_")))
{
|
Fixed data race when writing to a self-pipe and attempting to stop the WS server. | @@ -308,8 +308,8 @@ stop_ws_server (GWSWriter * gwswriter, GWSReader * gwsreader) {
LOG (("Unable to write to self pipe on pipeout.\n"));
pthread_mutex_unlock (&gwsreader->mutex);
- pthread_mutex_lock (&gwswriter->mutex);
/* if it fails to write, force stop */
+ pthread_mutex_lock (&gwswriter->mutex);
if ((write (server->self_pipe[1], "x", 1)) == -1 && errno != EAGAIN)
ws_stop (server);
pthread_mutex_unlock (&gwswriter->mutex);
@@ -329,7 +329,9 @@ start_server (void *ptr_data) {
GWSWriter *writer = (GWSWriter *) ptr_data;
writer->server->onopen = onopen;
+ pthread_mutex_lock (&writer->mutex);
set_self_pipe (writer->server->self_pipe);
+ pthread_mutex_unlock (&writer->mutex);
/* poll(2) will block in here */
ws_start (writer->server);
|
neon/shl_n: Add scalar function implementations | @@ -34,6 +34,34 @@ HEDLEY_DIAGNOSTIC_PUSH
SIMDE_DISABLE_UNWANTED_DIAGNOSTICS
SIMDE_BEGIN_DECLS_
+SIMDE_FUNCTION_ATTRIBUTES
+int64_t
+simde_vshld_n_s64 (const int64_t a, const int n)
+ SIMDE_REQUIRE_CONSTANT_RANGE(n, 0, 63) {
+ return HEDLEY_STATIC_CAST(int64_t, a << n);
+}
+#if defined(SIMDE_ARM_NEON_A64V8_NATIVE)
+ #define simde_vshld_n_s64(a, n) vshld_n_s64((a), (n))
+#endif
+#if defined(SIMDE_ARM_NEON_A64V8_ENABLE_NATIVE_ALIASES)
+ #undef vshld_n_s64
+ #define vshld_n_s64(a, n) simde_vshld_n_s64((a), (n))
+#endif
+
+SIMDE_FUNCTION_ATTRIBUTES
+uint64_t
+simde_vshld_n_u64 (const uint64_t a, const int n)
+ SIMDE_REQUIRE_CONSTANT_RANGE(n, 0, 63) {
+ return HEDLEY_STATIC_CAST(uint64_t, a << n);
+}
+#if defined(SIMDE_ARM_NEON_A64V8_NATIVE)
+ #define simde_vshld_n_u64(a, n) vshld_n_u64((a), (n))
+#endif
+#if defined(SIMDE_ARM_NEON_A64V8_ENABLE_NATIVE_ALIASES)
+ #undef vshld_n_u64
+ #define vshld_n_u64(a, n) simde_vshld_n_u64((a), (n))
+#endif
+
SIMDE_FUNCTION_ATTRIBUTES
simde_int8x8_t
simde_vshl_n_s8 (const simde_int8x8_t a, const int n)
|
BugID:18050250:add sem/mutex/queue timeout test | @@ -93,6 +93,7 @@ _ssize_t _write_r(struct _reent *ptr, int fd, const void *buf, size_t nbytes)
uart_stdio.port = 0;
hal_uart_send(&uart_stdio, buf, nbytes, AOS_WAIT_FOREVER);
+ hal_uart_send(&uart_stdio, (void *)"\r", 1, AOS_WAIT_FOREVER);
return nbytes;
}
|
bluedroid: suppress some -Waddress-of-packed-member warnings | @@ -673,6 +673,13 @@ if(CONFIG_BT_ENABLED)
target_link_libraries(${COMPONENT_LIB} PRIVATE nimblelib)
endif()
+
+ set_source_files_properties(
+ "host/bluedroid/bta/gatt/bta_gattc_act.c"
+ "host/bluedroid/bta/gatt/bta_gattc_cache.c"
+ "host/bluedroid/btc/profile/std/gatt/btc_gatt_util.c"
+ "host/bluedroid/btc/profile/std/gatt/btc_gatts.c"
+ PROPERTIES COMPILE_FLAGS -Wno-address-of-packed-member)
endif()
if(CONFIG_BT_NIMBLE_MESH)
|
Add missing file in build_without_gradle.sh
Fixes <https://github.com/Genymobile/scrcpy/issues/1481>
PR <https://github.com/Genymobile/scrcpy/pull/1482> | @@ -42,6 +42,8 @@ echo "Generating java from aidl..."
cd "$SERVER_DIR/src/main/aidl"
"$ANDROID_HOME/build-tools/$BUILD_TOOLS/aidl" -o"$CLASSES_DIR" \
android/view/IRotationWatcher.aidl
+"$ANDROID_HOME/build-tools/$BUILD_TOOLS/aidl" -o"$CLASSES_DIR" \
+ android/content/IOnPrimaryClipChangedListener.aidl
echo "Compiling java sources..."
cd ../java
@@ -55,6 +57,7 @@ cd "$CLASSES_DIR"
"$ANDROID_HOME/build-tools/$BUILD_TOOLS/dx" --dex \
--output "$BUILD_DIR/classes.dex" \
android/view/*.class \
+ android/content/*.class \
com/genymobile/scrcpy/*.class \
com/genymobile/scrcpy/wrappers/*.class
|
[sensor] fixed sensor cmd delay time | @@ -226,6 +226,7 @@ static void sensor_polling(int argc, char **argv)
rt_sensor_t sensor;
struct rt_sensor_data data;
rt_size_t res, i;
+ rt_int32_t delay;
dev = rt_device_find(argv[1]);
if (dev == RT_NULL)
@@ -237,6 +238,7 @@ static void sensor_polling(int argc, char **argv)
num = atoi(argv[2]);
sensor = (rt_sensor_t)dev;
+ delay = sensor->info.period_min > 100 ? sensor->info.period_min : 100;
if (rt_device_open(dev, RT_DEVICE_FLAG_RDWR) != RT_EOK)
{
@@ -256,7 +258,7 @@ static void sensor_polling(int argc, char **argv)
{
sensor_show_data(i, sensor, &data);
}
- rt_thread_mdelay(100);
+ rt_thread_mdelay(delay);
}
rt_device_close(dev);
}
@@ -268,7 +270,9 @@ static void sensor(int argc, char **argv)
{
static rt_device_t dev = RT_NULL;
struct rt_sensor_data data;
+ rt_sensor_t sensor;
rt_size_t res, i;
+ rt_int32_t delay;
/* If the number of arguments less than 2 */
if (argc < 2)
@@ -410,6 +414,9 @@ static void sensor(int argc, char **argv)
num = atoi(argv[2]);
}
+ sensor = (rt_sensor_t)dev;
+ delay = sensor->info.period_min > 100 ? sensor->info.period_min : 100;
+
for (i = 0; i < num; i++)
{
res = rt_device_read(dev, 0, &data, 1);
@@ -419,9 +426,9 @@ static void sensor(int argc, char **argv)
}
else
{
- sensor_show_data(i, (rt_sensor_t)dev, &data);
+ sensor_show_data(i, sensor, &data);
}
- rt_thread_mdelay(100);
+ rt_thread_mdelay(delay);
}
}
else if (argc == 3)
|
NAT64: Fix port byte order in nat64_free_out_addr_and_port | @@ -599,7 +599,7 @@ nat64_free_out_addr_and_port (struct nat64_db_s *db, ip4_address_t * addr,
case SNAT_PROTOCOL_##N: \
ASSERT (clib_bitmap_get_no_check (a->busy_##n##_port_bitmap, \
port_host_byte_order) == 1); \
- clib_bitmap_set_no_check (a->busy_##n##_port_bitmap, port, 0); \
+ clib_bitmap_set_no_check (a->busy_##n##_port_bitmap, port_host_byte_order, 0); \
a->busy_##n##_ports--; \
a->busy_##n##_ports_per_thread[thread_index]--; \
break;
|
Tezos add 5% padding to fee estimation | @@ -75,9 +75,11 @@ tezosFeeBasisGetFee (BRTezosFeeBasis *feeBasis) {
return TEZOS_DEFAULT_FEE_MUTEZ;
} else {
// storage is burned and not part of the fee
- return TEZOS_MINIMAL_FEE_MUTEZ
+ BRTezosUnitMutez minimalFee = TEZOS_MINIMAL_FEE_MUTEZ
+ (int64_t)(TEZOS_MUTEZ_PER_GAS_UNIT * feeBasis->u.estimate.gasLimit)
+ (feeBasis->u.estimate.mutezPerByte * (int64_t)feeBasis->u.estimate.sizeInBytes);
+ // add a 5% padding to the estimated minimum to improve chance of acceptance by network
+ return (BRTezosUnitMutez)(minimalFee * 1.05);
}
} else {
return feeBasis->u.actual.fee;
|
board/lick/board.c: Format with clang-format
BRANCH=none
TEST=none | @@ -60,15 +60,15 @@ static void ppc_interrupt(enum gpio_signal signal)
/* ADC channels */
const struct adc_t adc_channels[] = {
- [ADC_TEMP_SENSOR_AMB] = {
- "TEMP_AMB", NPCX_ADC_CH0, ADC_MAX_VOLT, ADC_READ_MAX+1, 0},
- [ADC_TEMP_SENSOR_CHARGER] = {
- "TEMP_CHARGER", NPCX_ADC_CH1, ADC_MAX_VOLT, ADC_READ_MAX+1, 0},
+ [ADC_TEMP_SENSOR_AMB] = { "TEMP_AMB", NPCX_ADC_CH0, ADC_MAX_VOLT,
+ ADC_READ_MAX + 1, 0 },
+ [ADC_TEMP_SENSOR_CHARGER] = { "TEMP_CHARGER", NPCX_ADC_CH1,
+ ADC_MAX_VOLT, ADC_READ_MAX + 1, 0 },
/* Vbus sensing (1/10 voltage divider). */
- [ADC_VBUS_C0] = {
- "VBUS_C0", NPCX_ADC_CH9, ADC_MAX_VOLT*10, ADC_READ_MAX+1, 0},
- [ADC_VBUS_C1] = {
- "VBUS_C1", NPCX_ADC_CH4, ADC_MAX_VOLT*10, ADC_READ_MAX+1, 0},
+ [ADC_VBUS_C0] = { "VBUS_C0", NPCX_ADC_CH9, ADC_MAX_VOLT * 10,
+ ADC_READ_MAX + 1, 0 },
+ [ADC_VBUS_C1] = { "VBUS_C1", NPCX_ADC_CH4, ADC_MAX_VOLT * 10,
+ ADC_READ_MAX + 1, 0 },
};
BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT);
@@ -94,11 +94,9 @@ static struct mutex g_lid_mutex;
static struct mutex g_base_mutex;
/* Matrix to rotate lid and base sensor into standard reference frame */
-const mat33_fp_t standard_rot_ref = {
- { FLOAT_TO_FP(-1), 0, 0},
+const mat33_fp_t standard_rot_ref = { { FLOAT_TO_FP(-1), 0, 0 },
{ 0, FLOAT_TO_FP(-1), 0 },
- { 0, 0, FLOAT_TO_FP(1)}
-};
+ { 0, 0, FLOAT_TO_FP(1) } };
/* sensor private data */
static struct stprivate_data g_lis2dh_data;
@@ -195,8 +193,7 @@ static void board_update_sensor_config_from_sku(void)
motion_sensor_count = 0;
gmr_tablet_switch_disable();
/* Base accel is not stuffed, don't allow line to float */
- gpio_set_flags(GPIO_BASE_SIXAXIS_INT_L,
- GPIO_INPUT | GPIO_PULL_DOWN);
+ gpio_set_flags(GPIO_BASE_SIXAXIS_INT_L, GPIO_INPUT | GPIO_PULL_DOWN);
}
static void cbi_init(void)
|
libhfuzz/main: make LIBHFUZZ_module_main as default visibility to avoid lto removal | * If this signature is visible inside a binary, it's probably a persistent-style fuzzing program.
* This mode of discover is employed by honggfuzz
*/
-__attribute__((used)) const char* LIBHFUZZ_module_main = _HF_PERSISTENT_SIG;
+__attribute__((visibility("default")))
+__attribute__((used))
+const char* LIBHFUZZ_module_main = _HF_PERSISTENT_SIG;
/*
* Declare it 'weak', so it can be safely linked with regular binaries which
@@ -19,13 +21,5 @@ __attribute__((used)) const char* LIBHFUZZ_module_main = _HF_PERSISTENT_SIG;
__attribute__((weak))
#endif /* !defined(__CYGWIN__) */
int main(int argc, char** argv) {
- /*
- * getpid() never returns -2, so it's only to reference the persistent
- * signature, to prevent optimizing it out by clever compiler/link
- * optimizers
- */
- if (time(NULL) == -10) {
- return (int)strlen(LIBHFUZZ_module_main);
- }
return HonggfuzzMain(argc, argv);
}
|
Deactive TagCloud waiting for Solr 9 see | %>
<li id="EntityExtractionConf"><a id="entityExtractionConf-AdminUI" class="ajax-link" href="?page=entityExtractionConf"></a></li>
<li id="STTEntitiesConfiguration"><a id="sttEntitiesConfiguration-AdminUI" class="ajax-link" href="?page=sttEntitiesConfiguration">Advanced Entitiy Extraction</a></li>
- <li id="tagCloudConfiguration"><a id="tagCloudConfiguration-AdminUI" class="ajax-link" href="?page=tagCloudConfiguration">Tag Cloud</a></li>
+ <!-- Tag cloud deactivated for now - not supported anymore in this version of Solr -->
+ <!-- <li id="tagCloudConfiguration"><a id="tagCloudConfiguration-AdminUI" class="ajax-link" href="?page=tagCloudConfiguration">Tag Cloud</a></li> -->
<%
}
%>
|
OpenCoreUefi: Clarify in err msgs that OC is bootstrapping secure boot NVRAM values
Makes it easier for end users to realise that e.g. invalid NVRAM contents can cause failures here | @@ -506,13 +506,13 @@ OcLoadAppleSecureBoot (
Status = OcAppleImg4BootstrapValues (RealSecureBootModel, Config->Misc.Security.ApECID);
if (EFI_ERROR (Status)) {
- DEBUG ((DEBUG_ERROR, "OC: Failed to bootstrap IMG4 values - %r\n", Status));
+ DEBUG ((DEBUG_ERROR, "OC: Failed to bootstrap IMG4 NVRAM values - %r\n", Status));
return;
}
Status = OcAppleSecureBootBootstrapValues (RealSecureBootModel, Config->Misc.Security.ApECID);
if (EFI_ERROR (Status)) {
- DEBUG ((DEBUG_ERROR, "OC: Failed to bootstrap SB values - %r\n", Status));
+ DEBUG ((DEBUG_ERROR, "OC: Failed to bootstrap SB NVRAM values - %r\n", Status));
return;
}
}
|
dbuild.sh : Modify dbuild.sh to use docker when downloading the image
Download command does not use docker make cmd, using private make cmd.
So changed to use docker make cmd. In this case, we don't need to install make in host linux. | @@ -381,7 +381,7 @@ function DOWNLOAD()
{
# Currently supports ALL only, later this will have a menu
pushd ${OSDIR} > /dev/null
- ${BUILD_CMD} download $1 $2 $3 $4 $5
+ docker run --rm ${DOCKER_OPT} -v ${TOPDIR}:/root/tizenrt -w /root/tizenrt/os --privileged tizenrt/tizenrt:${DOCKER_VERSION} ${BUILD_CMD} download $1 $2 $3 $4 $5 $6
popd > /dev/null
exit 0
|
board/goroh/board.h: Format with clang-format
BRANCH=none
TEST=none | @@ -108,11 +108,7 @@ enum adc_channel {
ADC_CH_COUNT,
};
-enum usbc_port {
- USBC_PORT_C0 = 0,
- USBC_PORT_C1,
- USBC_PORT_COUNT
-};
+enum usbc_port { USBC_PORT_C0 = 0, USBC_PORT_C1, USBC_PORT_COUNT };
enum pwm_channel {
PWM_CH_LED_GREEN,
@@ -122,10 +118,7 @@ enum pwm_channel {
PWM_CH_COUNT,
};
-enum fan_channel {
- FAN_CH_0,
- FAN_CH_COUNT
-};
+enum fan_channel { FAN_CH_0, FAN_CH_COUNT };
enum temp_sensor_id {
TEMP_SENSOR_CPU,
|
khan: update docs | :: both modes take a thread start request consisting of a
:: namespace, thread name, and input data; they respond over the
:: same duct with either success or failure. %fard takes its
-:: input arguments as a vase and produces %arow, which contains
-:: a vase on success (or tang on failure). %fyrd takes an output
+:: input arguments as a cage and produces %arow, which contains
+:: a cage on success (or tang on failure). %fyrd takes an output
:: mark and input crag; it produces %avow, which contains a crag
:: on success.
::
-:: %fard passes its arguments and produces its result
-:: unmodified. %fyrd does mark conversion on both ends, and
-:: additionally lifts its input into a $unit. this second step
-:: is done because threads conventionally take their input as a
-:: unit, with ~ for the case of "no arguments".
+:: threads currently expect input and produce output as vase,
+:: not cage. %fard/%arow use cage instead since this is the
+:: eventual desired thread API; however, the input mark is
+:: currently ignored, and the output mark is always %noun. (for
+:: forward compatibility, it is safe to specify %noun as the
+:: input mark.)
+::
+:: %fyrd does mark conversion on both ends, and additionally
+:: lifts its input into a $unit. this second step is done
+:: because threads conventionally take their input as a unit,
+:: with ~ for the case of "no arguments".
::
:: n.b. the current convention for threads is to use !< to
-:: unpack their input into a well-defined type. !< imposes the
-:: requirement that the input type nests within the specified
-:: type. this limits %fyrd to threads with inputs for which a
-:: named mark exists; it is impossible to use %noun in general
-:: since it does not nest. to support using the %noun mark for
-:: inputs, it would be sufficient to convert threads to use ;;
-:: rather than !< on their inputs, at the cost of losing type
-:: validation.
+:: unpack their input vase. !< imposes the requirement that the
+:: input type nests within the specified type. this limits %fyrd
+:: to threads with inputs for which a named mark exists; it is
+:: impossible to use %noun in general since it does not nest.
+:: threads written against the current vase-based API could use
+:: ;; instead of !< to unpack their input, thus allowing the
+:: use of %fyrd with %noun. however the eventual solution is
+:: probably to make threads consume and produce cages, and do
+:: mark conversion where appropriate.
!:
!? 164
::
|
Add some code for option -m to print capabilities. | @@ -80,7 +80,9 @@ struct mdev_ctx {
static struct mdev_ctx master_ctx;
#define MODE_SHOW_ACTION 0x0001
-#define MODE_2 0x0002
+#define MODE_SHOW_NVME 0x0002
+#define MODE_SHOW_CARD 0x0004
+#define MODE_SHOW_SDRAM 0x0008
/*
* Open AFU Master Device
@@ -357,6 +359,29 @@ _snap_m_init_exit:
return rc;
}
+static void snap_show_cap(void *handle, int mode)
+{
+ unsigned long val;
+
+ if (MODE_SHOW_NVME == (MODE_SHOW_NVME & mode)) {
+ snap_card_ioctl(handle, GET_NVME_ENABLED, (unsigned long)&val);
+ if (1 == val)
+ VERBOSE0("NVME ");
+ }
+ if (MODE_SHOW_SDRAM == (MODE_SHOW_SDRAM & mode)) {
+ snap_card_ioctl(handle, GET_SDRAM_SIZE, (unsigned long)&val);
+ if (0 != val)
+ VERBOSE0("%d ", (int)val);
+ }
+ if (MODE_SHOW_CARD == (MODE_SHOW_CARD & mode)) {
+ snap_card_ioctl(handle, GET_CARD_TYPE, (unsigned long)&val);
+ switch (val) {
+ case 0: VERBOSE0("KU3 "); break;
+ case 1: VERBOSE0("FGT "); break;
+ }
+ }
+}
+
static int snap_do_master(struct mdev_ctx *mctx)
{
int dt = mctx->dt;
@@ -393,7 +418,9 @@ static void help(char *prog)
"\t-d, --daemon Start in Daemon process (background)\n"
"\t-m, --mode Mode:\n"
"\t 1 = Show Action number only\n"
- "\t 2 = Not Used for now\n"
+ "\t 2 = Show NVME if enabled\n"
+ "\t 3 = Show SDRAM Size in MB\n"
+ "\t 4 = Show Card\n"
"\t-f, --log-file <file> Log File name when running in -d "
"(daemon)\n"
"\n"
@@ -488,10 +515,12 @@ int main(int argc, char *argv[])
mode = strtoul(optarg, NULL, 0);
switch (mode) {
case 1: mctx->mode |= MODE_SHOW_ACTION; break;
- case 2: mctx->mode |= MODE_2; break;
+ case 2: mctx->mode |= MODE_SHOW_NVME; break;
+ case 3: mctx->mode |= MODE_SHOW_SDRAM; break;
+ case 4: mctx->mode |= MODE_SHOW_CARD; break;
default:
fprintf(stderr, "Please provide correct "
- "Mode Option (1..2)\n");
+ "Mode Option (1..4)\n");
exit(EXIT_FAILURE);
}
break;
@@ -577,6 +606,10 @@ int main(int argc, char *argv[])
snap_version(mctx->handle);
/* Init Master */
rc = snap_m_init(mctx->handle, mctx->mode);
+
+ /* Show Capabilities for diffrent modes */
+ snap_show_cap(mctx->handle, mctx->mode);
+
//if (0 != rc)
goto __main_exit; /* Exit here.... for now */
|
Fix an issue in provider_activate_fallbacks()
The above function was running while holding the store lock with a read
lock. Unfortunately it actually modifies the store, so a write lock is
required instead. | @@ -729,11 +729,26 @@ static int provider_forall_loaded(struct provider_store_st *store,
*/
static void provider_activate_fallbacks(struct provider_store_st *store)
{
- if (store->use_fallbacks) {
- int num_provs = sk_OSSL_PROVIDER_num(store->providers);
+ int use_fallbacks;
+ int num_provs;
int activated_fallback_count = 0;
int i;
+ CRYPTO_THREAD_read_lock(store->lock);
+ use_fallbacks = store->use_fallbacks;
+ CRYPTO_THREAD_unlock(store->lock);
+ if (!use_fallbacks)
+ return;
+
+ CRYPTO_THREAD_write_lock(store->lock);
+ /* Check again, just in case another thread changed it */
+ use_fallbacks = store->use_fallbacks;
+ if (!use_fallbacks) {
+ CRYPTO_THREAD_unlock(store->lock);
+ return;
+ }
+
+ num_provs = sk_OSSL_PROVIDER_num(store->providers);
for (i = 0; i < num_provs; i++) {
OSSL_PROVIDER *prov = sk_OSSL_PROVIDER_value(store->providers, i);
@@ -756,7 +771,8 @@ static void provider_activate_fallbacks(struct provider_store_st *store)
*/
if (activated_fallback_count > 0)
store->use_fallbacks = 0;
- }
+
+ CRYPTO_THREAD_unlock(store->lock);
}
int ossl_provider_forall_loaded(OSSL_LIB_CTX *ctx,
@@ -776,10 +792,9 @@ int ossl_provider_forall_loaded(OSSL_LIB_CTX *ctx,
#endif
if (store != NULL) {
- CRYPTO_THREAD_read_lock(store->lock);
-
provider_activate_fallbacks(store);
+ CRYPTO_THREAD_read_lock(store->lock);
/*
* Now, we sweep through all providers
*/
@@ -794,9 +809,7 @@ int ossl_provider_forall_loaded(OSSL_LIB_CTX *ctx,
int ossl_provider_available(OSSL_PROVIDER *prov)
{
if (prov != NULL) {
- CRYPTO_THREAD_read_lock(prov->store->lock);
provider_activate_fallbacks(prov->store);
- CRYPTO_THREAD_unlock(prov->store->lock);
return prov->flag_activated;
}
|
Fix: Prevent building game while build is in progress | @@ -23,15 +23,20 @@ const buildGameMiddleware: Middleware<{}, RootState> = (store) => (
next
) => async (action) => {
if (actions.buildGame.match(action)) {
- const { buildType, exportBuild, ejectBuild } = action.payload;
-
+ const state = store.getState();
const dispatch = store.dispatch.bind(store);
+
+ const { buildType, exportBuild, ejectBuild } = action.payload;
const buildStartTime = Date.now();
+ if (state.console.status === "running") {
+ // Stop build if already building
+ return;
+ }
+
dispatch(consoleActions.startConsole());
try {
- const state = store.getState();
const projectRoot = state.document && state.document.root;
const project = denormalizeProject(state.project.present);
const outputRoot = Path.normalize(`${getTmp()}/${buildUUID}`);
|
do not modify default TweakDB values | @@ -515,7 +515,7 @@ bool TweakDB::InternalCloneRecord(const std::string& acRecordName, const RED4ext
const auto* pDefaultFlatValue = pTDB->GetDefaultFlatValue(flatTypeName);
RED4ext::CStackType defaultStackType = pDefaultFlatValue->GetValue();
- flatID.SetTDBOffset(pPool->GetOrCreate(defaultStackType, pDefaultFlatValue->ToTDBOffset()));
+ flatID.SetTDBOffset(pPool->GetOrCreate(defaultStackType));
}
// add our flat pointing to that value
@@ -738,7 +738,6 @@ int32_t FlatPool::GetOrCreate(const RED4ext::CStackType& acStackType, HashType a
int32_t existingTDBOffset = Get(acStackType, aHash);
if (existingTDBOffset != -1)
{
- assert((aTDBOffset == -1) || (existingTDBOffset == aTDBOffset));
return existingTDBOffset;
}
|
vere: improve streamslog event construction
Assemble as list of atoms, then rap once, instead of catting multiple
times.
Also fixes refcounts, probably. | @@ -1951,13 +1951,18 @@ _http_stream_slog(void* vop_p, c3_w pri_w, u3_noun tan)
if ( u3_none != wol ) {
u3_noun low = wol;
- u3_atom txt = u3_nul;
+ u3_noun paz = u3_nul;
while ( u3_nul != low ) {
- u3_atom lin = u3qc_cat(3, u3qc_rap(3, u3k(u3h(low))), c3_s2('\n', '\n'));
- txt = u3qc_cat(3, txt, u3qc_cat(3, u3i_string("data:"), lin));
+ u3_noun lin = u3i_list(u3i_string("data:"),
+ u3qc_rap(3, u3h(low)),
+ c3_s2('\n', '\n'),
+ u3_none);
+ paz = u3kb_weld(paz, lin);
low = u3t(low);
}
+ u3_atom txt = u3qc_rap(3, paz);
data = u3nt(u3_nul, u3r_met(3, txt), txt);
+ u3z(paz);
}
u3z(wol);
|
SH2 - fixed placement of screen position overlay
A black overlay used for the "Screen Position" option was out of place. It was fixed by restoring the original width value. | @@ -105,6 +105,8 @@ void Init()
injector::WriteMemory(pattern.count(1).get(0).get<uint32_t>(2), &Screen.Width43, true);
pattern = hook::pattern("8B 0D ? ? ? ? D1 E9 85 C9 89 4C 24 10 DB 44 24 10"); //004DC103 toluca lake light (i == 330)
injector::WriteMemory(pattern.count(1).get(0).get<uint32_t>(2), &Screen.Width, true);
+ pattern = hook::pattern("8B 0D ? ? ? ? 51 6A 00 03 D1 52 33 C0"); //00478B74 "screen position" overlay
+ injector::WriteMemory(pattern.count(1).get(0).get<uint32_t>(2), &Screen.Width, true);
pattern = hook::pattern("A3 ? ? ? ? 89 44 24 14 A1 ? ? ? ? 8D 4C 24 0C 51");
struct SetScaleHook
|
CONTRIBUTING: describe the C code style
Fixes: | @@ -42,6 +42,7 @@ Before submitting a PR, we suggest you could take a look at the PR rules here.
- [Workspace Preparation](#workspace-preparation)
- [Branch Definition](#branch-definition)
+- [Format C Codes](#format-c-codes)
- [Commit Rules](#commit-rules)
- [PR Description](#pr-description)
@@ -74,6 +75,41 @@ With above, we can easily synchronize local branches with upstream branches.
Right now we assume every contribution via pull request is for the `master` branch in Inclavare Containers. There are several other branches such as rc branches, release branches and backport branches. Before officially releasing a version, we may checkout a rc (release candidate) branch for more testings. When officially releasing a version, there may be a release branch before tagging which will be deleted after tagging. When backporting some fixes to existing released version, we will checkout backport branches.
+### Format C Codes
+
+Inclavare Containers project uses `indent` to format C codes.
+
+1. Install `indent`. Please make sure the version of `indent` must be 2.2.12 or higher to get advanced features.
+
+```shell
+wget -c https://https://ftp.gnu.org/gnu/indent/indent-2.2.12.tar.gz
+tar xzf indent-2.2.12.tar.gz
+cd indent-2.2.12
+./configure
+make
+sudo make install
+```
+
+2. Format C code style using the following command:
+
+```shell
+indent -npro -linux -il-8 -ppi2 -nbbo -ci0 -cs -cp1 -gts foo.c
+```
+
+However, `indent` might generate unexpected results sometimes due to its limitation. For example, `indent` will completely destroy the indentation of the inline assembly because it does not recognize the syntax of inline assembly codes.
+
+To avoid this problem, you need to temporarily disable formatting with [the pair of control comment](https://www.gnu.org/software/indent/manual/indent.html#SEC13), e.g, forbidding formatting the following inline assembly codes.
+
+```shell
+/* *INDENT-OFF* */
+asm volatile(".byte 0x0f,0x01,0xd0" /* xgetbv */
+ : "=a" (eax), "=d" (edx)
+ : "c" (index));
+/* *INDENT-ON* */
+```
+
+Please refer to [this manual](https://www.gnu.org/software/indent/manual/indent.html) for the details about the options of `indent`.
+
### Commit Rules
#### Commit Message
|
in_tail: include NULL bytes and don't stop processing | @@ -170,6 +170,7 @@ static int process_content(struct flb_tail_file *file, off_t *bytes)
int ret;
off_t processed_bytes = 0;
char *data;
+ char *end;
char *p;
void *out_buf;
size_t out_size;
@@ -189,7 +190,8 @@ static int process_content(struct flb_tail_file *file, off_t *bytes)
/* Parse the data content */
data = file->buf_data;
- while ((p = strchr(data, '\n'))) {
+ end = data + file->buf_len;
+ while ((p = memchr(data, '\n', end - data))) {
len = (p - data);
if (file->skip_next == FLB_TRUE) {
|
freertos: Fix missing affinity info in vTaskList
Show affinity info if CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID is set.
Closes
Closes | @@ -4975,7 +4975,11 @@ TCB_t *pxTCB;
pcWriteBuffer = prvWriteNameToBuffer( pcWriteBuffer, pxTaskStatusArray[ x ].pcTaskName );
/* Write the rest of the string. */
+#if configTASKLIST_INCLUDE_COREID
+ sprintf( pcWriteBuffer, "\t%c\t%u\t%u\t%u\t%hd\r\n", cStatus, ( unsigned int ) pxTaskStatusArray[ x ].uxCurrentPriority, ( unsigned int ) pxTaskStatusArray[ x ].usStackHighWaterMark, ( unsigned int ) pxTaskStatusArray[ x ].xTaskNumber, ( int ) pxTaskStatusArray[ x ].xCoreID );
+#else
sprintf( pcWriteBuffer, "\t%c\t%u\t%u\t%u\r\n", cStatus, ( unsigned int ) pxTaskStatusArray[ x ].uxCurrentPriority, ( unsigned int ) pxTaskStatusArray[ x ].usStackHighWaterMark, ( unsigned int ) pxTaskStatusArray[ x ].xTaskNumber ); /*lint !e586 sprintf() allowed as this is compiled with many compilers and this is a utility function only - not part of the core kernel implementation. */
+#endif
pcWriteBuffer += strlen( pcWriteBuffer ); /*lint !e9016 Pointer arithmetic ok on char pointers especially as in this case where it best denotes the intent of the code. */
}
|
Copy Elixir files using CMake | @@ -18,4 +18,10 @@ else ()
target_link_libraries (nif_kdb elektra-core elektra-kdb)
target_link_libraries (nif_kdb erlang)
+
+ add_custom_command (
+ TARGET nif_kdb
+ PRE_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/elixir ${CMAKE_CURRENT_BINARY_DIR}/elixir)
+
endif ()
|
Rework HeapTupleHeader macros to reuse itemptr.h
The original definitions pointlessly disregarded existing ItemPointer
macros that do the same thing.
Reported-by: Michael Paquier
Discussion: | @@ -443,11 +443,10 @@ do { \
)
#define HeapTupleHeaderIndicatesMovedPartitions(tup) \
- (ItemPointerGetOffsetNumber(&(tup)->t_ctid) == MovedPartitionsOffsetNumber && \
- ItemPointerGetBlockNumberNoCheck(&(tup)->t_ctid) == MovedPartitionsBlockNumber)
+ ItemPointerIndicatesMovedPartitions(&(tup)->t_ctid)
#define HeapTupleHeaderSetMovedPartitions(tup) \
- ItemPointerSet(&(tup)->t_ctid, MovedPartitionsBlockNumber, MovedPartitionsOffsetNumber)
+ ItemPointerSetMovedPartitions(&(tup)->t_ctid)
#define HeapTupleHeaderGetDatumLength(tup) \
VARSIZE(tup)
|
stm32/qspi: Handle bus acquisition.
When going out of memory-mapped mode to do a control transfer to the QSPI
flash, the MPU settings must be changed to forbid access to the memory
mapped region. And any ongoing transfer (eg memory mapped continuous read)
must be aborted. | @@ -139,6 +139,16 @@ STATIC int qspi_ioctl(void *self_in, uint32_t cmd) {
case MP_QSPI_IOCTL_INIT:
qspi_init();
break;
+ case MP_QSPI_IOCTL_BUS_ACQUIRE:
+ // Disable memory-mapped region during bus access
+ qspi_mpu_disable_all();
+ // Abort any ongoing transfer if peripheral is busy
+ if (QUADSPI->SR & QUADSPI_SR_BUSY) {
+ QUADSPI->CR |= QUADSPI_CR_ABORT;
+ while (QUADSPI->CR & QUADSPI_CR_ABORT) {
+ }
+ }
+ break;
case MP_QSPI_IOCTL_BUS_RELEASE:
// Switch to memory-map mode when bus is idle
qspi_memory_map();
|
ss KDF: implement ctx dup operation | @@ -72,6 +72,7 @@ typedef struct {
static const unsigned char kmac_custom_str[] = { 0x4B, 0x44, 0x46 };
static OSSL_FUNC_kdf_newctx_fn sskdf_new;
+static OSSL_FUNC_kdf_dupctx_fn sskdf_dup;
static OSSL_FUNC_kdf_freectx_fn sskdf_free;
static OSSL_FUNC_kdf_reset_fn sskdf_reset;
static OSSL_FUNC_kdf_derive_fn sskdf_derive;
@@ -319,6 +320,35 @@ static void sskdf_free(void *vctx)
}
}
+static void *sskdf_dup(void *vctx)
+{
+ const KDF_SSKDF *src = (const KDF_SSKDF *)vctx;
+ KDF_SSKDF *dest;
+
+ dest = sskdf_new(src->provctx);
+ if (dest != NULL) {
+ if (src->macctx != NULL) {
+ dest->macctx = EVP_MAC_CTX_dup(src->macctx);
+ if (dest->macctx == NULL)
+ goto err;
+ }
+ if (!ossl_prov_memdup(src->info, src->info_len,
+ &dest->info, &dest->info_len)
+ || !ossl_prov_memdup(src->salt, src->salt_len,
+ &dest->salt , &dest->salt_len)
+ || !ossl_prov_memdup(src->secret, src->secret_len,
+ &dest->secret, &dest->secret_len)
+ || !ossl_prov_digest_copy(&dest->digest, &src->digest))
+ goto err;
+ dest->out_len = src->out_len;
+ }
+ return dest;
+
+ err:
+ sskdf_free(dest);
+ return NULL;
+}
+
static int sskdf_set_buffer(unsigned char **out, size_t *out_len,
const OSSL_PARAM *p)
{
@@ -520,6 +550,7 @@ static const OSSL_PARAM *sskdf_gettable_ctx_params(ossl_unused void *ctx,
const OSSL_DISPATCH ossl_kdf_sskdf_functions[] = {
{ OSSL_FUNC_KDF_NEWCTX, (void(*)(void))sskdf_new },
+ { OSSL_FUNC_KDF_DUPCTX, (void(*)(void))sskdf_dup },
{ OSSL_FUNC_KDF_FREECTX, (void(*)(void))sskdf_free },
{ OSSL_FUNC_KDF_RESET, (void(*)(void))sskdf_reset },
{ OSSL_FUNC_KDF_DERIVE, (void(*)(void))sskdf_derive },
@@ -534,6 +565,7 @@ const OSSL_DISPATCH ossl_kdf_sskdf_functions[] = {
const OSSL_DISPATCH ossl_kdf_x963_kdf_functions[] = {
{ OSSL_FUNC_KDF_NEWCTX, (void(*)(void))sskdf_new },
+ { OSSL_FUNC_KDF_DUPCTX, (void(*)(void))sskdf_dup },
{ OSSL_FUNC_KDF_FREECTX, (void(*)(void))sskdf_free },
{ OSSL_FUNC_KDF_RESET, (void(*)(void))sskdf_reset },
{ OSSL_FUNC_KDF_DERIVE, (void(*)(void))x963kdf_derive },
|
Add missing MT9M114 ID. | @@ -1001,6 +1001,7 @@ STATIC const mp_map_elem_t globals_dict_table[] = {
{ MP_OBJ_NEW_QSTR(MP_QSTR_OV7725), MP_OBJ_NEW_SMALL_INT(OV7725_ID)},
{ MP_OBJ_NEW_QSTR(MP_QSTR_OV9650), MP_OBJ_NEW_SMALL_INT(OV9650_ID)},
{ MP_OBJ_NEW_QSTR(MP_QSTR_MT9V034), MP_OBJ_NEW_SMALL_INT(MT9V034_ID)},
+ { MP_OBJ_NEW_QSTR(MP_QSTR_MT9M114), MP_OBJ_NEW_SMALL_INT(MT9M114_ID)},
{ MP_OBJ_NEW_QSTR(MP_QSTR_LEPTON), MP_OBJ_NEW_SMALL_INT(LEPTON_ID)},
{ MP_OBJ_NEW_QSTR(MP_QSTR_HM01B0), MP_OBJ_NEW_SMALL_INT(HM01B0_ID)},
|
apps: SMP should be MCUmgr since SMP in BLE means something else | @@ -26,7 +26,7 @@ syscfg.vals:
# Default task settings
OS_MAIN_STACK_SIZE: 768
- # SMP is not supported in this app, so disable smp-over-shell.
+ # MCUmgr SMP is not supported in this app, so disable smp-over-shell.
SHELL_MGMT: 0
BLE_MESH: 1
|
libppd: Set Ricoh's "RIPrintMode" option as preset controlled by print-quality | @@ -2232,6 +2232,19 @@ ppdCacheAssignPresets(ppd_file_t *ppd,
else if (strcasecmp(c, "SpeedPrior") == 0)
properties->sets_draft = 10;
}
+ else if (strcasecmp(o, "RIPrintMode") == 0) /* Ricoh & OEM */
+ {
+ if (strcasecmp(c, "1rhit") == 0)
+ properties->sets_high = 7;
+ else if (strcasecmp(c, "6rhit") == 0)
+ properties->sets_high = 10;
+ else if (strcasecmp(c, "3rhit") == 0 ||
+ strcasecmp(c, "4rhit") == 0 ||
+ strcasecmp(c, "5rhit") == 0)
+ properties->sets_draft = 10;
+ else if (strcasecmp(c, "0rhit") == 0)
+ properties->sets_normal = 10;
+ }
/* Generic boolean options which enhance quality if true */
else if (((p = strcasestr(o, "slow")) && strcasestr(p, "dry")) ||
((p = strcasestr(o, "color")) && strcasestr(p, "enhance")) ||
|
fs/procfs: check task status before get group info
When ps cmd is invoked during the task exit process, the group information of the task may be deleted.
So need check the task flag before get the task group information. | @@ -493,7 +493,6 @@ static ssize_t proc_status(FAR struct proc_file_s *procfile,
FAR struct tcb_s *tcb, FAR char *buffer,
size_t buflen, off_t offset)
{
- FAR struct task_group_s *group;
FAR const char *policy;
FAR const char *name;
size_t remaining;
@@ -543,12 +542,9 @@ static ssize_t proc_status(FAR struct proc_file_s *procfile,
return totalsize;
}
- group = tcb->group;
- DEBUGASSERT(group != NULL);
-
linesize = procfs_snprintf(procfile->line, STATUS_LINELEN,
- "%-12s%d\n",
- "Group:", group->tg_pid);
+ "%-12s%d\n", "Group:",
+ tcb->group ? tcb->group->tg_pid : -1);
copysize = procfs_memcpy(procfile->line, linesize, buffer, remaining,
&offset);
|
write only FTS associationresponses to cap file | @@ -1385,13 +1385,14 @@ while(1)
else if(macf->subtype == MAC_ST_ASSOC_RESP)
{
if((macl +ASSOCIATIONRESF_SIZE) > pkh->len)
- continue;
- pcap_dump((u_char *) pcapout, pkh, h80211);
- if(wantstatusflag == true)
{
if(dotagwalk(payload +ASSOCIATIONRESF_SIZE, pkh->len -macl -ASSOCIATIONRESF_SIZE) == true)
+ {
+ pcap_dump((u_char *) pcapout, pkh, h80211);
+ if(wantstatusflag == true)
printmac(macf->addr1.addr, macf->addr2.addr, 0, 1, "fast BSS transition response (fast roaming)");
}
+ }
continue;
}
else if(macf->subtype == MAC_ST_REASSOC_REQ)
@@ -1424,13 +1425,14 @@ while(1)
else if(macf->subtype == MAC_ST_REASSOC_RESP)
{
if((macl +ASSOCIATIONRESF_SIZE) > pkh->len)
- continue;
- pcap_dump((u_char *) pcapout, pkh, h80211);
- if(wantstatusflag == true)
{
if(dotagwalk(payload +ASSOCIATIONRESF_SIZE, pkh->len -macl -ASSOCIATIONRESF_SIZE) == true)
+ {
+ pcap_dump((u_char *) pcapout, pkh, h80211);
+ if(wantstatusflag == true)
printmac(macf->addr1.addr, macf->addr2.addr, 0, 1, "fast BSS transition response (fast roaming)");
}
+ }
continue;
}
else if(macf->subtype == MAC_ST_AUTH)
|
sleep_mode/esp32: Fix a condition to keep power domain enabled during sleep mode | @@ -599,9 +599,9 @@ static uint32_t get_power_down_flags()
// These labels are defined in the linker script:
extern int _rtc_data_start, _rtc_data_end, _rtc_bss_start, _rtc_bss_end;
- if (s_config.pd_options[ESP_PD_DOMAIN_RTC_SLOW_MEM] == ESP_PD_OPTION_AUTO ||
- &_rtc_data_end > &_rtc_data_start ||
- &_rtc_bss_end > &_rtc_bss_start) {
+ if ((s_config.pd_options[ESP_PD_DOMAIN_RTC_SLOW_MEM] == ESP_PD_OPTION_AUTO) &&
+ (&_rtc_data_end > &_rtc_data_start || &_rtc_bss_end > &_rtc_bss_start ||
+ (s_config.wakeup_triggers & RTC_ULP_TRIG_EN))) {
s_config.pd_options[ESP_PD_DOMAIN_RTC_SLOW_MEM] = ESP_PD_OPTION_ON;
}
|
conn: more docs cleanup, describe %ovum updates | **
** responses to %fyrd are either %fail if something went wrong
** in the driver, or %avow to indicate success or failure from
-** %khan. +avow is: (each (cask) goof).
+** %khan. $avow is: (each (cask) goof).
**
** %peek is a namespace read request (aka scry), and will be
** forwarded directly to arvo. its arguments are the nom of the
**
** %peel is a runtime "peek". it exposes an unprincipled
** scry-like namespace allowing querying of various metrics
-** about the state of vere. /help produces a list of available
-** commands. /args produces the command-line arguments used to
-** start vere. /vars produces runtime metrics at the moment in
-** time that the request was received.
+** about the state of vere. it accepts $path-like arguments,
+** i.e. nul-terminated lists of $knot. it responds as scry
+** does, with a (unit (unit)), where ~ means "request was not
+** understood" and [~ ~] means "request understood; empty
+** response."
+**
+** the %peek path /help produces a list of available commands.
+** /args produces the command-line arguments used to start vere.
+** /vars produces runtime metrics at the moment in time that the
+** request was received.
**
** %ovum is a raw kernel move, to be injected directly into
** arvo. needless to say this will void your warranty. usually
-** you want to use %fyrd instead.
+** you want to use %fyrd instead. updates will be sent tracking
+** the ovum lifecycle: %work when work begins, %done when it
+** is finished, %drop if it is dropped, and %bail with a stack
+** trace if it fails.
**
-** %urth is a command for the runtime.
+** %urth is a command for the runtime. these are acked with %.y
+** on receipt. no further updates are provided.
**
** messages use newt framing. because the framing begins with
** a magic byte (^I, horizontal tab), any messages that do not
@@ -420,13 +430,7 @@ _conn_ovum_news(u3_ovum* egg_u, u3_ovum_news new_e)
}
}
-/* _conn_read_peel(): produces response to a %peel request.
-**
-** %peel is a runtime scry-like interface. it accepts $path-like
-** arguments, i.e. nul-terminated lists of $knot. it responds
-** as scry does, with a (unit (unit)), where ~ means "request
-** was not understood" and `~ means "request understood; empty
-** response".
+/* _conn_read_peel(): response to a %peel request, sans rid.
*/
static u3_noun
_conn_read_peel(u3_conn* con_u, u3_noun dat)
@@ -498,6 +502,9 @@ _conn_read_peel(u3_conn* con_u, u3_noun dat)
//
case c3__vars: {
if ( c3n == u3K.pir_u->liv_o ) {
+ // empty response if pier is not yet live, since ames
+ // state may not yet be wired up.
+ //
res = u3nc(u3_nul, u3_nul);
break;
}
|
renamed prop to prevent confusion | /= gas /$ fuel:html
/= content /% /collections-topic-full/
^- manx
-;div#edit(urb-component "TopicCreatePage", urb-coll "{(trip +<:s.bem.gas)}", urb-top "{(trip -:s.bem.gas)}", urb-top-text "{(trip (of-wain:format wat.info.content))}");
+;div#edit(urb-component "TopicCreatePage", urb-coll "{(trip +<:s.bem.gas)}", urb-top "{(trip -:s.bem.gas)}", urb-text "{(trip (of-wain:format wat.info.content))}");
|
Performance use strstr | @@ -436,12 +436,10 @@ static grib_accessor* _grib_find_accessor(grib_handle* h, const char* name)
char* grib_split_name_attribute(grib_context* c,const char* name,char* attribute_name)
{
/*returns accessor name and attribute*/
- char* p=0;
size_t size=0;
char* accessor_name=NULL;
- p=(char*)name;
- while ( *(p+1) != '\0' && ( *p != '-' || *(p+1)!= '>' ) ) p++;
- if (*(p+1) == '\0') {
+ char* p = strstr(name, "->");
+ if (!p) {
*attribute_name=0;
return (char*)name;
}
|
Format the code with gofumpt | @@ -273,7 +273,8 @@ func (r *ReconcileSPOd) handleUpdatingStatus(
}
func (r *ReconcileSPOd) defaultProfiles(
- cfg *spodv1alpha1.SecurityProfilesOperatorDaemon) []*seccompprofileapi.SeccompProfile {
+ cfg *spodv1alpha1.SecurityProfilesOperatorDaemon,
+) []*seccompprofileapi.SeccompProfile {
defaultProfiles := bindata.DefaultProfiles()
if cfg.Spec.EnableLogEnricher {
defaultProfiles = append(defaultProfiles, bindata.DefaultLogEnricherProfile())
|
Add github.com/coreos/go-systemd/journal to whitelist | @@ -18,6 +18,9 @@ ALLOW .* -> vendor/github.com/c2h5oh/datasize
# etcd client
ALLOW .* -> vendor/github.com/coreos/etcd
+# logging to systemd
+ALLOW .* -> vendor/github.com/coreos/go-systemd/journal
+
# mocking for database/sql
ALLOW .* -> vendor/github.com/DATA-DOG/go-sqlmock
|
Error if option prefix and index total are not both defined.
They are both required for indexed options. | @@ -2612,6 +2612,13 @@ foreach my $strCommand (sort(keys(%{$rhCommandDefine})))
####################################################################################################################################
foreach my $strKey (sort(keys(%hConfigDefine)))
{
+ # Error if prefix and index total are not both defined
+ if ((defined($hConfigDefine{$strKey}{&CFGDEF_PREFIX}) && !defined($hConfigDefine{$strKey}{&CFGDEF_INDEX_TOTAL})) ||
+ (!defined($hConfigDefine{$strKey}{&CFGDEF_PREFIX}) && defined($hConfigDefine{$strKey}{&CFGDEF_INDEX_TOTAL})))
+ {
+ confess &log(ASSERT, "CFGDEF_PREFIX and CFGDEF_INDEX_TOTAL must both be defined (or neither) for option '${strKey}'");
+ }
+
# If the define is a scalar then copy the entire define from the referenced option
if (defined($hConfigDefine{$strKey}{&CFGDEF_INHERIT}))
{
|
esp32: esp_intr_alloc: Fixed issue with level 5 not being called
Closes
Merges | @@ -118,7 +118,7 @@ const static int_desc_t int_desc[32]={
{ 3, INTTP_LEVEL, {INTDESC_NORMAL, INTDESC_NORMAL} }, //23
{ 4, INTTP_LEVEL, {INTDESC_RESVD, INTDESC_NORMAL} }, //24
{ 4, INTTP_LEVEL, {INTDESC_RESVD, INTDESC_RESVD } }, //25
- { 5, INTTP_LEVEL, {INTDESC_RESVD, INTDESC_RESVD } }, //26
+ { 5, INTTP_LEVEL, {INTDESC_NORMAL, INTDESC_RESVD } }, //26
{ 3, INTTP_LEVEL, {INTDESC_RESVD, INTDESC_RESVD } }, //27
{ 4, INTTP_EDGE, {INTDESC_NORMAL, INTDESC_NORMAL} }, //28
{ 3, INTTP_NA, {INTDESC_SPECIAL,INTDESC_SPECIAL}}, //29
|
Explicitly note %install-from-clay as temporary | this
::
:: install privkey and cert .pem from /=home=/acme, ignores app state
+ ::TODO refactor this out of %acme, see also arvo#1151
::
%install-from-clay
=/ bas=path /(scot %p our.bow)/home/(scot %da now.bow)/acme
|
Pass the full handler context to creq instead of just the timeout config | @@ -39,14 +39,14 @@ struct connect_request {
h2o_multithread_receiver_t *getaddr_receiver;
h2o_iovec_t host;
char named_serv[sizeof(H2O_UINT16_LONGEST_STR)];
- uint64_t timeout;
+ struct st_handler_ctx_t *handler_ctx;
};
static void on_connect(h2o_socket_t *sock, const char *err)
{
struct connect_request *creq = sock->data;
h2o_req_t *req = creq->src_req;
- uint64_t timeout = creq->timeout;
+ uint64_t timeout = creq->handler_ctx->config.tunnel.timeout;
free(creq);
sock->data = NULL;
@@ -129,7 +129,7 @@ static int on_req(h2o_handler_t *_handler, h2o_req_t *req)
*creq = (struct connect_request){req->conn->ctx->loop, req, 1};
creq->getaddr_receiver = &req->conn->ctx->receivers.hostinfo_getaddr;
creq->host = host;
- creq->timeout = handler->config.tunnel.timeout;
+ creq->handler_ctx = handler;
sprintf(creq->named_serv, "%" PRIu16, port);
try_connect(creq);
|
ofdmflexframesync: not invoking callback if set to NULL | @@ -517,6 +517,12 @@ int ofdmflexframesync_rxheader(ofdmflexframesync _q,
_q->framesyncstats.fec0 = LIQUID_FEC_UNKNOWN;
_q->framesyncstats.fec1 = LIQUID_FEC_UNKNOWN;
+ // ignore callback if set to NULL
+ if (_q->callback == NULL) {
+ ofdmflexframesync_reset(_q);
+ break;
+ }
+
// invoke callback method
_q->callback(_q->header,
_q->header_valid,
|
Update welcome.js
Add oxford comma | @@ -27,7 +27,7 @@ export class Welcome extends Component {
return ((!wasWelcomed && this.state.show) && (contacts.length !== 0)) ? (
<div className="ma4 pa2 bg-welcome-green bg-gray1-d white-d">
- <p className="f8 lh-copy">Each Group is a list of other Urbit IDs that share some set of modules: chats, links and notebooks.</p>
+ <p className="f8 lh-copy">Each Group is a list of other Urbit IDs that share some set of modules: chats, links, and notebooks.</p>
<p className="f8 pt2 dib pointer bb"
onClick={(() => this.disableWelcome())}
>
|
fixup: keep coding style consistent. | @@ -1036,16 +1036,10 @@ static float* openxr_getDisplayFrequencies(uint32_t* count) {
}
static bool openxr_setDisplayFrequency(float frequency) {
- if (!state.features.refreshRate) {
- return false;
- }
-
+ if (!state.features.refreshRate) return false;
XrResult res = xrRequestDisplayRefreshRateFB(state.session, frequency);
- if (res == XR_ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB) {
- return false;
- }
+ if (res == XR_ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB) return false;
XR(res);
-
return true;
}
|
Trim hashrate unit | @@ -244,7 +244,7 @@ namespace MiningCore.Api
foreach (var stat in response.Stats)
stat.PoolHashRate *= multiplier;
- response.HashrateUnit = FormatUtil.HashRateUnits[i];
+ response.HashrateUnit = FormatUtil.HashRateUnits[i].Trim();
}
await SendJson(context, response);
|
Fix multi line textbox button placement | }
.ScriptEventForm__InputRow {
+ display: block;
position: relative;
}
.ScriptEventForm__BtnRow {
position: absolute;
- right: 9px;
+ right: 4px;
bottom: 7px;
display: flex;
}
|
Rename xmlCharDup to xcsdup and tighten up the code | @@ -286,19 +286,21 @@ processingInstruction(void *userData, const XML_Char *target,
}
-static XML_Char *xmlCharDup(const XML_Char *s)
+static XML_Char *xcsdup(const XML_Char *s)
{
XML_Char *result;
- int len = 0;
+ int count = 0;
+ int numBytes;
/* Get the length of the string, including terminator */
- while (s[len++] != 0) {
+ while (s[count++] != 0) {
/* Do nothing */
}
- result = malloc(len * sizeof(XML_Char));
+ numBytes = count * sizeof(XML_Char);
+ result = malloc(numBytes);
if (result == NULL)
return NULL;
- memcpy(result, s, len * sizeof(XML_Char));
+ memcpy(result, s, numBytes);
return result;
}
@@ -310,7 +312,7 @@ startDoctypeDecl(void *userData,
int has_internal_subset)
{
XmlwfUserData *data = (XmlwfUserData *)userData;
- data->currentDoctypeName = xmlCharDup(doctypeName);
+ data->currentDoctypeName = xcsdup(doctypeName);
}
static void
@@ -436,14 +438,14 @@ notationDecl(void *userData,
fprintf(stderr, "Unable to store NOTATION for output\n");
return; /* Nothing we can really do about this */
}
- entry->notationName = xmlCharDup(notationName);
+ entry->notationName = xcsdup(notationName);
if (entry->notationName == NULL) {
fprintf(stderr, "Unable to store NOTATION for output\n");
free(entry);
return;
}
if (systemId != NULL) {
- entry->systemId = xmlCharDup(systemId);
+ entry->systemId = xcsdup(systemId);
if (entry->systemId == NULL) {
fprintf(stderr, "Unable to store NOTATION for output\n");
free((void *)entry->notationName);
@@ -455,7 +457,7 @@ notationDecl(void *userData,
entry->systemId = NULL;
}
if (publicId != NULL) {
- entry->publicId = xmlCharDup(publicId);
+ entry->publicId = xcsdup(publicId);
if (entry->publicId == NULL) {
fprintf(stderr, "Unable to store NOTATION for output\n");
free((void *)entry->systemId); /* Safe if it's NULL */
|
Completions: Add suggestions for option `version` | @@ -72,9 +72,16 @@ function __fish_kdb_add_option -d 'Add suggestions for a certain option to multi
complete -c kdb -n "$completion_function" -l $opt_long -s $opt_short -d "$description"
end
+# ===========
+# = Options =
+# ===========
+
function __fish_kdb_subcommand_option_verbose -d 'Check if the current subcommand supports the option verbose'
not __fish_kdb_subcommand_includes export file getmeta global-mount gmount info mount qt-gui remount rm sget shell test vset help qt-gui
end
+
+function __fish_kdb_subcommand_option_version -d 'Check if the current subcommand supports the option version'
+ not __fish_kdb_subcommand_includes help qt-gui
end
# -- Completions ---------------------------------------------------------------------------------------------------------------------------
@@ -91,3 +98,4 @@ complete -c kdb -n '__fish_kdb_needs_namespace' -x -a '(__fish_kdb_print_namespa
# ===========
__fish_kdb_add_option '__fish_kdb_subcommand_option_verbose' 'verbose' 'v' 'Explain what is happening'
+__fish_kdb_add_option '__fish_kdb_subcommand_option_version' 'version' 'V' 'Print version info'
|
[test] [bug-fix] run_openssl_client() should ignore child's SIGPIPE on STDIN instead of EOF test | @@ -847,16 +847,19 @@ sub run_openssl_client {
sleep $timeout;
$chld_in->autoflush(1);
+ my $sig_pipe = $SIG{PIPE};
+ $SIG{PIPE} = 'IGNORE';
if ($request_default) {
- $chld_in->eof() || print $chld_in <<"EOT";
+ print $chld_in <<"EOT";
GET $path HTTP/1.1\r
Host: $san:$port\r
Connection: close\r
\r
EOT
} elsif (defined $request && $request ne '') {
- $chld_in->eof() || print $chld_in "$request";
+ print $chld_in "$request";
}
+ $SIG{PIPE} = $sig_pipe;
while ($timeout > 0.0) {
my $cpid_wait = waitpid($cpid, POSIX::WNOHANG);
|
tools/pyboard.py: Track raw REPL state via in_raw_repl variable. | @@ -255,6 +255,7 @@ class Pyboard:
def __init__(
self, device, baudrate=115200, user="micro", password="python", wait=0, exclusive=True
):
+ self.in_raw_repl = False
self.use_raw_paste = True
if device.startswith("exec:"):
self.serial = ProcessToSerial(device[len("exec:") :])
@@ -348,8 +349,11 @@ class Pyboard:
print(data)
raise PyboardError("could not enter raw repl")
+ self.in_raw_repl = True
+
def exit_raw_repl(self):
self.serial.write(b"\r\x02") # ctrl-B: enter friendly REPL
+ self.in_raw_repl = False
def follow(self, timeout, data_consumer=None):
# wait for normal output
|
Plug memory leak in __DWriteTextLayoutApplyFont
Fixes | @@ -146,7 +146,8 @@ static inline HRESULT __DWriteTextFormatApplyParagraphStyle(const ComPtr<IDWrite
* Private helper that applies a CTFontRef to an IDWriteTextLayout within the specified range.
*/
static inline HRESULT __DWriteTextLayoutApplyFont(const ComPtr<IDWriteTextLayout>& textLayout, CTFontRef font, DWRITE_TEXT_RANGE range) {
- std::shared_ptr<const _DWriteFontProperties> properties = _DWriteGetFontPropertiesFromName(CTFontCopyName(font, kCTFontFullNameKey));
+ auto fontName = woc::MakeAutoCF<CFStringRef>(CTFontCopyName(font, kCTFontFullNameKey));
+ std::shared_ptr<const _DWriteFontProperties> properties = _DWriteGetFontPropertiesFromName(fontName);
RETURN_IF_FAILED(textLayout->SetFontWeight(properties->weight, range));
RETURN_IF_FAILED(textLayout->SetFontStretch(properties->stretch, range));
RETURN_IF_FAILED(textLayout->SetFontStyle(properties->style, range));
|
On start background script immediately run first commands | @@ -101,6 +101,8 @@ UBYTE ScriptStartBg(BankPtr *events_ptr, UBYTE owner) {
script_ctxs[new_ctx].script_start_ptr = script_ctxs[new_ctx].script_ptr;
script_ctxs[new_ctx].owner = owner;
+ ScriptRestoreCtx(new_ctx);
+
return new_ctx;
}
|
Solve the problem that LOG_W() may not be recognized when the INPUT CAPTURE module is enabled,which may cause the compilation failure. | #include <rtdevice.h>
+#define DBG_TAG "incap"
+#define DBG_LVL DBG_WARNING
+#include <rtdbg.h>
+
static rt_err_t rt_inputcapture_init(struct rt_device *dev)
{
rt_err_t ret;
|
Error handling in fetcher and remote graph generation. | @@ -4545,7 +4545,7 @@ macro _RUN_JAVA(IN{input}[], OUT{output}[], OUT_NOAUTO{output}[], OUTPUT_INCLUDE
### @usage: FROM_SANDBOX([FILE] resource_id [AUTOUPDATED script] [RENAME <resource files>] OUT_[NOAUTO] <output files> [EXECUTABLE])
###
### Download the resource from the Sandbox, unpack (if not explicitly specified word FILE) and add OUT files to the build. EXECUTABLE makes them executable.
-### You may specify extra dependencies that output files bring using OUTPUT_INCLUDES. The change of these may e.g. lead to recompation of .cpp files exctracted from resource.
+### You may specify extra dependencies that output files bring using OUTPUT_INCLUDES. The change of these may e.g. lead to recompilation of .cpp files extracted from resource.
### If there is no default processing for OUT files or you need process them specially use OUT_NOAUTO instead of OUT.
###
### It is disallowed to specify directory as OUT/OUT_NOAUTO since all outputs of commands shall be known to build system.
|
Libunit: waking another context with the RPC_READY message. | @@ -107,6 +107,8 @@ static int nxt_unit_get_outgoing_buf(nxt_unit_ctx_t *ctx,
uint32_t min_size, nxt_unit_mmap_buf_t *mmap_buf, char *local_buf);
static int nxt_unit_incoming_mmap(nxt_unit_ctx_t *ctx, pid_t pid, int fd);
+static void nxt_unit_awake_ctx(nxt_unit_ctx_t *ctx,
+ nxt_unit_ctx_impl_t *ctx_impl);
static void nxt_unit_mmaps_init(nxt_unit_mmaps_t *mmaps);
nxt_inline void nxt_unit_process_use(nxt_unit_process_t *process);
nxt_inline void nxt_unit_process_release(nxt_unit_process_t *process);
@@ -988,6 +990,10 @@ nxt_unit_process_msg(nxt_unit_ctx_t *ctx, nxt_unit_read_buf_t *rbuf)
switch (port_msg->type) {
+ case _NXT_PORT_MSG_RPC_READY:
+ rc = NXT_UNIT_OK;
+ break;
+
case _NXT_PORT_MSG_QUIT:
nxt_unit_debug(ctx, "#%"PRIu32": quit", port_msg->stream);
@@ -1068,7 +1074,7 @@ nxt_unit_process_msg(nxt_unit_ctx_t *ctx, nxt_unit_read_buf_t *rbuf)
break;
default:
- nxt_unit_debug(ctx, "#%"PRIu32": ignore message type: %d",
+ nxt_unit_alert(ctx, "#%"PRIu32": ignore message type: %d",
port_msg->stream, (int) port_msg->type);
rc = NXT_UNIT_ERROR;
@@ -4012,12 +4018,40 @@ nxt_unit_incoming_mmap(nxt_unit_ctx_t *ctx, pid_t pid, int fd)
nxt_atomic_fetch_add(&ctx_impl->wait_items, -1);
+ nxt_unit_awake_ctx(ctx, ctx_impl);
+
} nxt_queue_loop;
return rc;
}
+static void
+nxt_unit_awake_ctx(nxt_unit_ctx_t *ctx, nxt_unit_ctx_impl_t *ctx_impl)
+{
+ nxt_port_msg_t msg;
+
+ if (nxt_fast_path(ctx == &ctx_impl->ctx)) {
+ return;
+ }
+
+ if (nxt_slow_path(ctx_impl->read_port == NULL
+ || ctx_impl->read_port->out_fd == -1))
+ {
+ nxt_unit_alert(ctx, "target context read_port is NULL or not writable");
+
+ return;
+ }
+
+ memset(&msg, 0, sizeof(nxt_port_msg_t));
+
+ msg.type = _NXT_PORT_MSG_RPC_READY;
+
+ (void) nxt_unit_port_send(ctx, ctx_impl->read_port,
+ &msg, sizeof(msg), NULL, 0);
+}
+
+
static void
nxt_unit_mmaps_init(nxt_unit_mmaps_t *mmaps)
{
@@ -5390,6 +5424,8 @@ nxt_unit_add_port(nxt_unit_ctx_t *ctx, nxt_unit_port_t *port, void *queue)
nxt_atomic_fetch_add(&ctx_impl->wait_items, -1);
+ nxt_unit_awake_ctx(ctx, ctx_impl);
+
} nxt_queue_loop;
return old_port;
|
Xiaomi water leak sensor rely on IAS report for water level (2)
Update state.lastupdated timestamp. | @@ -8710,6 +8710,14 @@ void DeRestPluginPrivate::handleZclAttributeReportIndicationXiaomiSpecial(const
{
// don't update Mija devices
// e.g. lumi.sensor_motion always reports 1
+ sensor.updateStateTimestamp();
+ updated = true;
+ }
+ else if (sensor.modelId().startsWith(QLatin1String("lumi.sensor_wleak")))
+ {
+ // only update state timestamp assuming last known value is valid
+ sensor.updateStateTimestamp();
+ updated = true;
}
else if (item)
{
|
increase FD TX timeout to 5 seconds according to hcxlabtool experience | #define BEACONEXTLIST_MAX 256
#define FDNSECTIMERB 50000000L /* 5msec */
#define FDNSECTIMER 200000000L
-#define FDSECTXTIMER 2L
+#define FDSECTXTIMER 5L
#define RCA_SORT_BY_HIT 0
#define RCA_SORT_BY_COUNT 1
|
test/ctype_internal_test.c: portability fixup. | /*
* Even though the VMS C RTL claims to be C99 compatible, it's not entirely
- * so far (C RTL version 8.4). For the sake of these tests, we therefore
- * define our own.
+ * so far (C RTL version 8.4). Same applies to OSF. For the sake of these
+ * tests, we therefore define our own.
*/
-#if defined(__VMS) && __CRTL_VER <= 80400000
+#if (defined(__VMS) && __CRTL_VER <= 80400000) || defined(__osf__)
static int isblank(int c)
{
return c == ' ' || c == '\t';
@@ -35,7 +35,9 @@ static int test_ctype_chars(int n)
return TEST_int_eq(isalpha(n) != 0, ossl_isalpha(n) != 0)
&& TEST_int_eq(isalnum(n) != 0, ossl_isalnum(n) != 0)
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
&& TEST_int_eq(isblank(n) != 0, ossl_isblank(n) != 0)
+#endif
&& TEST_int_eq(iscntrl(n) != 0, ossl_iscntrl(n) != 0)
&& TEST_int_eq(isdigit(n) != 0, ossl_isdigit(n) != 0)
&& TEST_int_eq(isgraph(n) != 0, ossl_isgraph(n) != 0)
|
Fix broken JIRA link
Tested-by: Mark Nunberg | @@ -78,7 +78,7 @@ If you wish to link against OpenSSL, you should set the value of
## Bugs, Support, Issues
You may report issues in the library in our issue tracked at
-<http://couchbase.com/issues>. Sign up for an account and file an issue
+<https://issues.couchbase.com>. Sign up for an account and file an issue
against the _Couchbase C Client Library_ project.
The developers of the library hang out in IRC on `#libcouchbase` on
|
[libcxx] basic_string_view in . | @@ -54,5 +54,10 @@ _LIBCPP_BEGIN_NAMESPACE_STD
template <class T>
class _LIBCPP_TEMPLATE_VIS shared_ptr;
+ /* basic_string is already forward-declared in <iosfwd> */
+
+ template<class T, class Traits>
+ class basic_string_view;
+
_LIBCPP_END_NAMESPACE_STD
|
README.md: replace incorrect access token for the AppVeyor badge
The AppVeyor badge was still showing the build state for
the mspncp/openssl fork.
This commit fixes a forgotten todo from | @@ -207,13 +207,6 @@ All rights reserved.
<https://tools.ietf.org/html/rfc8446>
<!-- Logos and Badges -->
-<!--
- Note: The security token for the appveyor badge (the random number in
- the URL below) was obtained for the mspncp/openssl project.
- It needs to be replaced by the correct token by some core member
- (@levitte, @mattcaswell?). It can be obtained for project members at
- https://ci.appveyor.com/project/openssl/openssl/settings/badges.
--->
[openssl logo]:
doc/images/openssl.svg
@@ -228,7 +221,7 @@ All rights reserved.
"Travis Jobs"
[appveyor badge]:
- <https://ci.appveyor.com/api/projects/status/ikn2l4u1xsume63u/branch/master?svg=true>
+ <https://ci.appveyor.com/api/projects/status/8e10o7xfrg73v98f/branch/master?svg=true>
"AppVeyor Build Status"
[appveyor jobs]:
|
Better imitate the choice of which register to identify as ip
for tilegx. | @@ -53,8 +53,14 @@ tdep_access_reg (struct cursor *c, unw_regnum_t reg, unw_word_t *valp,
if (write)
{
+ if (ci->dwarf.use_prev_instr == 0) {
if (reg == UNW_TILEGX_PC)
c->dwarf.ip = *valp; /* update the IP cache */
+ }
+ else {
+ if (reg == UNW_TILEGX_R55)
+ c->dwarf.ip = *valp; /* update the IP cache */
+ }
return dwarf_put (&c->dwarf, loc, *valp);
}
else
|
tools/gcc.lua: fix /usr/lib64 being used as search dir before project's libdir
Move the /usr/lib64 added by the compiler script after every other -L
declaration.
fixes | }
function gcc.getLibraryDirectories(cfg)
- local flags = config.mapFlags(cfg, gcc.libraryDirectories)
+ local flags = {}
-- Scan the list of linked libraries. If any are referenced with
-- paths, add those to the list of library search paths. The call
table.insert(flags, '-L' .. p.quoted(dir))
end
+ local gccFlags = config.mapFlags(cfg, gcc.libraryDirectories)
+ flags = table.join(flags, gccFlags)
+
return flags
end
|
past tense now for 1.3.1 release | @@ -73,8 +73,9 @@ used to distinguish RPM package names and module hierarchy.
In the case of a fresh install, \OHPC{} recipes default to installation of the
latest toolchains available in a given release branch. However, if upgrading a
previously installed system, administrators can {\em opt-in} to enable new
-variants as they become available. To illustrate this point, we use the \OHPC{}
-1.3.1 release as an example which includes a new {``gnu7''} compiler variant
+variants as they become available. To illustrate this point, consider the
+previous \OHPC{}
+1.3.1 release as an example which introduced a new {``gnu7''} compiler variant
providing GCC 7.x along with runtimes and libraries compiled
with the newer toolchain. Note that prior to the 1.3.1 release, the {``gnu''} variant was
available which provided GCC 5.x versions.
|
use CPPFLAGS before CFLAGS
this way, -Isrc/ is used *before* system-wide -I locations
like /opt/local/include/ for instance. | @@ -361,7 +361,7 @@ src/utils/bit_reader_utils.o: src/utils/endian_inl_utils.h
src/utils/bit_writer_utils.o: src/utils/endian_inl_utils.h
%.o: %.c $(HDRS)
- $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
examples/libanim_util.a: $(ANIM_UTIL_OBJS)
examples/libexample_util.a: $(EX_UTIL_OBJS)
|
Testing: Additional scaleFactor/scaledValue tests | @@ -21,6 +21,19 @@ tempFilt=temp.${label}.filt
in=$ECCODES_SAMPLES_PATH/GRIB2.tmpl
+set_lowerLimit_and_check()
+{
+ _llim=$1
+ _sfac=$2
+ _sval=$3
+
+ ${tools_dir}/grib_set -s lowerLimit=$_llim $tempGrib $temp2
+ grib_check_key_equals $temp2 \
+ scaleFactorOfLowerLimit,scaledValueOfLowerLimit,lowerLimit \
+ "$_sfac $_sval $_llim"
+}
+
+
# Decoding: Lower limit
# ----------------------
${tools_dir}/grib_set -s \
@@ -75,5 +88,25 @@ ${tools_dir}/grib_set -s lowerLimit=-6.6,upperLimit=-1.02 $tempGrib $temp2
grib_check_key_equals $temp2 scaleFactorOfLowerLimit,scaledValueOfLowerLimit,lowerLimit "1 -66 -6.6"
grib_check_key_equals $temp2 scaleFactorOfUpperLimit,scaledValueOfUpperLimit,upperLimit "2 -102 -1.02"
+# input factor value
+set_lowerLimit_and_check 550 0 550
+set_lowerLimit_and_check -99 0 -99
+set_lowerLimit_and_check 6.77 2 677
+set_lowerLimit_and_check 0.001 3 1
+set_lowerLimit_and_check -6.6 1 -66
+set_lowerLimit_and_check -1.02 2 -102
+set_lowerLimit_and_check 3e-05 5 3
+set_lowerLimit_and_check -3.9e-05 6 -39
+
+#set_lowerLimit_and_check 3.14e-06 6 314
+#set_lowerLimit_and_check 3.14e-07 7 314
+#set_lowerLimit_and_check 3e-08 8 3
+#set_lowerLimit_and_check 1.0e-10 10 1
+#set_lowerLimit_and_check 0.03e-06 8 3
+#set_lowerLimit_and_check 3.14e-09 11 314
+#set_lowerLimit_and_check -3.1456e-09 13 -31456
+#set_lowerLimit_and_check 0.0000123 7 123
+
+
# Clean up
rm -f $tempGrib $tempFilt $temp2
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.