message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
release utils: revert name | @@ -23,7 +23,7 @@ if(defined $ENV{'OverWritePrevoius'} ) {
}
my @arches = ('aarch64', 'x86_64');
-my @distros = ('Leap_15','EL_8');
+my @distros = ('Leap_15','CentOS_8');
my $base_repo_path = "/repos/.staging/OpenHPC";
my $dest_dir = "/repos/dist/$release";
@@ -200,6 +200,8 @@ if( !$skipCopy) {
dircopy("$base_repo_path... |
common/main.c: Format with clang-format
BRANCH=none
TEST=none | @@ -185,8 +185,8 @@ test_mockable __keep int main(void)
/*
* Keyboard scan init/Button init can set recovery events to
* indicate to host entry into recovery mode. Before this is
- * done, LPC_HOST_EVENT_ALWAYS_REPORT mask needs to be initialized
- * correctly.
+ * done, LPC_HOST_EVENT_ALWAYS_REPORT mask needs to be
+ ... |
provisioning/warewulf-provision: fix patch path | ---- a/provision/etc/provision.conf 2020-03-31 22:09:25.980000000 +0000
-+++ a/provision/etc/provision.conf 2020-03-31 22:09:36.370000000 +0000
+--- a/etc/provision.conf 2020-03-31 22:09:25.980000000 +0000
++++ b/etc/provision.conf 2020-03-31 22:09:36.370000000 +0000
use localdomain = yes
|
Fix on ldns-compare-zones | @@ -293,6 +293,7 @@ main(int argc, char **argv)
ldns_rr_owner(ldns_rr_list_rr(rrl1, k))) == 0
; k++);
+
for ( l = j + 1
; l < rrc2 &&
ldns_dname_compare(ldns_rr_owner(rr2),
@@ -306,11 +307,12 @@ main(int argc, char **argv)
nc1 = k - i;
nc2 = l - j;
for ( k = i + 1, l = j + 1
- ; k < nc1 && l < nc2 &&
+ ; (k - i) < nc1 ... |
Fixed a dumb overlook when writing payloads. | @@ -2624,7 +2624,7 @@ doPayload()
int rc;
while (to_write > 0) {
- rc = g_fn.write(fd, pinfo->data, to_write);
+ rc = g_fn.write(fd, &pinfo->data[written], to_write);
if (rc <= 0) {
DBG(NULL);
break;
|
Remove float from mimic test | @@ -15,7 +15,7 @@ class JSONCommonInterfaceTest < Test::Unit::TestCase
def setup
@hash = {
'a' => 2,
- 'b' => 5.23683071,
+ #'b' => 5.23683071,
'c' => 'c',
'd' => [ 1, "b", 3.14 ],
'e' => { 'foo' => 'bar' },
@@ -23,7 +23,13 @@ class JSONCommonInterfaceTest < Test::Unit::TestCase
'h' => 1000.0,
'i' => 0.001
}
- @json = ... |
Fix query in new test to check tables are synced
Rather than looking for tablesync workers, it is more reliable to see
the sync state of the tables.
Per note from Amit Kapila.
Discussion: | @@ -141,13 +141,13 @@ $node_twoways->safe_psql(
# We cannot rely solely on wait_for_catchup() here; it isn't sufficient
# when tablesync workers might still be running. So in addition to that,
-# we verify that no tablesync workers appear for the subscription.
+# verify that tables are synced.
# XXX maybe this should b... |
fix var for chmod | @@ -171,7 +171,7 @@ foreach my $distro (@distros) {
# Copy mk_repo utility
print "Adding mk_repo utility\n";
File::Copy::copy("mk_repo","$tmp_dir") || die "Unable to copy mk_repo\n";
- chmod 0700, "/tmp_dir/mk_repo" || die "Unable to set perms for mk_repo\n";
+ chmod 0700, "$tmp_dir/mk_repo" || die "Unable to set perms... |
pbio/uartdev: correct scale for boost motor speed
This makes the speed value correctly match the numerical position derivative. | @@ -814,7 +814,7 @@ static PT_THREAD(pbio_uartdev_update(uartdev_port_data_t * data)) {
data->status = PBIO_UARTDEV_STATUS_SYNCING;
// default max tacho rate for BOOST external motor since it is the only
// motor that does not send this info
- data->max_tacho_rate = 1500;
+ data->max_tacho_rate = 1400;
// FIXME: need t... |
conn: don't u3z(u3_none)
Empirically this seemed to work before (maybe hind events were never
getting sent?), but `u3a_lose` takes a `u3_noun` so it seems best to
follow the specified API. | @@ -828,11 +828,13 @@ _conn_io_kick(u3_auto* car_u, u3_noun wir, u3_noun cad)
u3_conn* con_u = (u3_conn*)car_u;
u3_noun tag, dat;
c3_l sev_l, coq_l;
- u3_weak rid = u3_none;
+ u3_atom rid;
- if ( (c3n == _conn_read_wire(wir, c3__khan, &sev_l, &coq_l, &rid)) ||
- (c3n == u3r_cell(cad, &tag, &dat)) ||
- (con_u->sev_l != ... |
Added --anonymize-level option to the man page. | @@ -551,6 +551,22 @@ octet of IPv4 user IP addresses and the last 80 bits of IPv6 addresses to
zeros.
e.g., 192.168.20.100 => 192.168.20.0
e.g., 2a03:2880:2110:df07:face:b00c::1 => 2a03:2880:2110:df07::
+.TP
+\fB\-\-anonymize-level
+Specifies the anonymization levels: 1 => default, 2 => strong, 3 => pedantic.
+.TS
+all... |
fix pos increment on write uint to bytearray | @@ -219,16 +219,16 @@ namespace SLua
public void Write (int v)
{
- ReAlloc (ref data_, pos_, 4);
+ ReAlloc (ref data_, pos_, sizeof(int));
BitConverter.GetBytes (v).CopyTo (data_, pos_);
- pos_ += 4;
+ pos_ += sizeof(int);
}
public void Write (uint v)
{
- ReAlloc (ref data_, pos_, 4);
+ ReAlloc (ref data_, pos_, sizeof... |
Fix versioninfo cache threading issues | @@ -1880,6 +1880,7 @@ typedef struct _PH_FILE_VERSIONINFO_CACHE_ENTRY
} PH_FILE_VERSIONINFO_CACHE_ENTRY, *PPH_FILE_VERSIONINFO_CACHE_ENTRY;
static PPH_HASHTABLE PhpImageVersionInfoCacheHashtable = NULL;
+static PH_QUEUED_LOCK PhpImageVersionInfoCacheLock = PH_QUEUED_LOCK_INIT;
static BOOLEAN PhpImageVersionInfoCacheHas... |
linux/ptrace: better signame logic | @@ -296,7 +296,11 @@ static const char *arch_sigName(int signo)
#ifdef __ANDROID__
return arch_sigs[signo].descr;
#else
+ if (sys_sigabbrev[signo] == NULL) {
+ snprintf(arch_signame, sizeof(arch_signame), "SIG%d", signo);
+ } else {
snprintf(arch_signame, sizeof(arch_signame), "SIG%s", sys_sigabbrev[signo]);
+ }
return... |
Match MCU SX PLL tune to be the same as in sofware | @@ -223,14 +223,14 @@ float_type GetFrequencySX(const bool Tx)
uint8_t SetFrequencySX(const bool tx, const float_type freq_Hz)
{
+ int16_t tuneScore[3] = {255, 255, 255}; // best is closest to 0
const uint16_t macBck = SPI_read(0x0020);
- bool canDeliverFrequency;
- uint8_t valICT = 255;
+ bool canDeliverFrequency = fa... |
anahera: Update fan table version 5
BRANCH=none
TEST=Thermal team verified thermal policy is expected. | @@ -37,37 +37,37 @@ struct fan_step {
static const struct fan_step fan_table[] = {
{
/* level 0 */
- .on = {53, 55, 0, -1},
+ .on = {53, 54, 0, -1},
.off = {99, 99, 99, -1},
.rpm = {0},
},
{
/* level 1 */
- .on = {54, 56, 0, -1},
+ .on = {54, 55, 0, -1},
.off = {52, 53, 99, -1},
- .rpm = {3100},
+ .rpm = {3000},
},
{
/... |
Changelog note for
Merge PR from Ralph Dolmans: Replace edns-client-tag with
edns-client-string option. | +23 November 2020: George
+ - Merge PR #313 from Ralph Dolmans: Replace edns-client-tag with
+ edns-client-string option.
+
23 November 2020: Wouter
- Merge #351 from dvzrv: Add AF_NETLINK to set of allowed socket
address families.
|
LexerState's 'size' and 'offset' for mmapped files are unsigned
These were using signed 'off_t' because that is the type of
'st_size' from 'stat()', but neither one can be negative. | @@ -309,7 +309,7 @@ struct Expansion {
char const *unowned;
char *owned;
} contents;
- size_t len;
+ size_t len; /* Length of the contents */
size_t totalLen;
size_t distance; /* Distance between the beginning of this expansion and of its parent */
bool owned; /* Whether or not to free contents when this expansion is f... |
Fixup date in Changelog. | -24 March 2020: Wouter
+25 March 2020: Wouter
- Merge PR #86 from noloader: Use precious variables for GREP, EGREP,
SED, AWK, LEX and YACC.
- For PR #86: Fix that programs loaded after CFLAGS and stuff is
|
notification center | @@ -84,6 +84,8 @@ static const char *dswitchcmd[] = {"dswitch", NULL};
static const char *sucklessshutdowncmd[] = {"sucklessshutdown", NULL};
static const char *rangercmd[] = { "st", "-e", "sh", "-c", "ranger", NULL };
static const char *slingscold[] = { "slingscold-launcher", NULL};
+static const char *notifycmd[] = {... |
docker: use mount instead of volume | @@ -4,14 +4,11 @@ DOCKER="$(command -v podman || command -v docker)"
DOCKER_DIR="$(dirname "${0}")"
-if [ "$(basename "${DOCKER}")" = "podman" ]; then
- PODMAN_RELABEL=":z"
-fi
+VOLUME_OPTIONS=""
+CAPABILITIES=""
if [ "${OSTYPE}" = "linux-gnu" ]; then
CAPABILITIES="--cap-add=CAP_SYS_PTRACE";
-else
- CAPABILITIES="";
fi... |
Use fcntl(fd,F_FULLFSYNC) instead of fsync on OSX, improve power failure safety
On MacOS calling fsync does not guarantee the cache on the disk itself is flushed. | #define __CONFIG_H
#ifdef __APPLE__
+#include <fcntl.h> // for fcntl(fd, F_FULLFSYNC)
#include <AvailabilityMacros.h>
#endif
#endif
/* Define redis_fsync to fdatasync() in Linux and fsync() for all the rest */
-#ifdef __linux__
-#define redis_fsync fdatasync
+#if defined(__linux__)
+#define redis_fsync(fd) fdatasync(fd... |
Kodama: Modify celxpert battery parameter
Base on celxpert battery SPEC, pre-charge current is 404mA and over
discharge voltage is 2.8V.
TEST=Base on celxpert battery SPEC.
BRANCH=kukui | @@ -61,8 +61,8 @@ const struct board_batt_params board_battery_info[] = {
.batt_info = {
.voltage_max = 4400,
.voltage_normal = 3840,
- .voltage_min = 3000,
- .precharge_current = 256,
+ .voltage_min = 2800,
+ .precharge_current = 404,
.start_charging_min_c = 0,
.start_charging_max_c = 45,
.charging_min_c = 0,
|
Calibrate ADC when sampling after a configuration. | @@ -53,6 +53,7 @@ struct nrf52_saadc_dev_global {
nrf_saadc_oversample_t oversample;
struct nrf52_adc_chan channels[SAADC_CH_NUM];
bool calibrate;
+ bool calibrated;
};
static struct nrf52_saadc_dev_global g_drv_instance;
@@ -305,6 +306,7 @@ nrf52_adc_configure_channel(struct adc_dev *dev, uint8_t cnum, void *cfgdata)
... |
apps/nshlib/nsh_command.c: In all multi-column help output, calculate an optimal column width rather than using a hard-coded width that may or may not be appropriate. | @@ -587,10 +587,25 @@ static const struct cmdmap_s g_cmdmap[] =
#ifndef CONFIG_NSH_DISABLE_HELP
static inline void help_cmdlist(FAR struct nsh_vtbl_s *vtbl)
{
+ unsigned int colwidth;
+ unsigned int cmdwidth;
unsigned int i;
unsigned int j;
unsigned int k;
+ /* Pick an optimal column width */
+
+ for (k = 0, colwidth =... |
wireguard: increment interface RX counters
Type: improvement
When packets were received and processed successfully, increment the
byte/packet counters for the tunnel interface. | @@ -562,6 +562,8 @@ always_inline uword
wg_input_inline (vlib_main_t *vm, vlib_node_runtime_t *node,
vlib_frame_t *frame, u8 is_ip4, u16 async_next_node)
{
+ vnet_main_t *vnm = vnet_get_main ();
+ vnet_interface_main_t *im = &vnm->interface_main;
wg_main_t *wmp = &wg_main;
wg_per_thread_data_t *ptd =
vec_elt_at_index (... |
da146x: hal_flash: Fix rdid issue on Gigadevice
This patch moves the set manual mode and adds a busy status check before
executing the read rdid qspi command. On gigadevice flash devices, the read
rdid would fail intermittently due to the device not being ready for the
command. | @@ -430,6 +430,9 @@ qspi_read_rdid(const struct hal_flash *dev)
int i;
uint32_t result;
+ da1469x_qspi_mode_manual(dev);
+ da1469x_qspi_wait_busy(dev);
+
/* Issue a read rdid command (0x9F) and get 24 bit response */
QSPIC->QSPIC_CTRLBUS_REG = QSPIC_QSPIC_CTRLBUS_REG_QSPIC_EN_CS_Msk;
da1469x_qspi_write8(dev, 0x9f);
@@ ... |
test/common: add tests for endianness and single bit signs in floats
If these fail anywhere we can probably deal with that, but I don't
think SIMDe is likely to run on such targets. If any of these fail
on your target please get in touch and we can try to figure something
out. | @@ -33,9 +33,72 @@ test_simde_ieee754_storage_f64 (SIMDE_MUNIT_TEST_ARGS) {
#endif
+/* These next two make sure that all we need to do is flip a single
+ * bit in order to flip the sign of a value without altering the
+ * absolute value. i.e., we want to make sure the parts of the float
+ * aren't stored as two's compl... |
component/bt: Fix bug: string_to_bdaddr() error when opening nano | @@ -102,10 +102,13 @@ bool string_to_bdaddr(const char *string, bt_bdaddr_t *addr)
bt_bdaddr_t new_addr;
uint8_t *ptr = new_addr.address;
- bool ret = sscanf(string, "%02hhx:%02hhx:%02hhx:%02hhx:%02hhx:%02hhx",
- &ptr[0], &ptr[1], &ptr[2], &ptr[3], &ptr[4], &ptr[5]) == 6;
-
+ uint32_t ptr_32[6];
+ bool ret = sscanf(str... |
doc: fix link and formatting | @@ -103,7 +103,7 @@ In the GitHub repository the full documentation is available, including:
You can read the documentation for the kdb tool, either
-- [on the Website](https://www.libelektra.org)
+- [on the Website](https://www.libelektra.org/manpages/kdb)
- [in the API docu](https://doc.libelektra.org/api/master/html... |
Fix next function arity | @@ -990,7 +990,7 @@ JanetTable *janet_core_env(JanetTable *replacements) {
JDOC("(% dividend divisor)\n\n"
"Returns the remainder of dividend / divisor."));
janet_quick_asm(env, JANET_FUN_NEXT,
- "next", 2, 2, 2, 2, next_asm, sizeof(next_asm),
+ "next", 2, 1, 2, 2, next_asm, sizeof(next_asm),
JDOC("(next ds &opt key)\n... |
check-format.pl: fix detection of function body start | @@ -165,8 +165,8 @@ my $count_before; # number of leading whitespace characters (except lin
my $has_label; # current line contains label
my $local_offset; # current extra indent due to label, switch case/default, or leading closing brace(s)
my $line_body_start; # number of line where last function body started, or 0
-m... |
Consider passing bone 0 in cards invalid. | ?^ -.q.vax :_(+>.$ [%| (ap-suck "move: invalid move (bone)")])
?@ +.q.vax :_(+>.$ [%| (ap-suck "move: invalid move (card)")])
=+ hun=(~(get by r.zam) -.q.vax)
- ?. (~(has by r.zam) -.q.vax)
+ ?. &((~(has by r.zam) -.q.vax) !=(0 -.q.vax))
:_(+>.$ [%| (ap-suck "move: invalid card (bone {<-.q.vax>})")])
=^ pec vel (~(spot... |
Fix ControllerButton ordering, which broke isDown
The first item in ControllerButtons was NULL, which meant luaL_checkoption could not work. | @@ -37,7 +37,6 @@ typedef enum {
} ControllerAxis;
typedef enum {
- CONTROLLER_BUTTON_UNKNOWN,
CONTROLLER_BUTTON_SYSTEM,
CONTROLLER_BUTTON_MENU,
CONTROLLER_BUTTON_TRIGGER,
@@ -47,7 +46,8 @@ typedef enum {
CONTROLLER_BUTTON_A,
CONTROLLER_BUTTON_B,
CONTROLLER_BUTTON_X,
- CONTROLLER_BUTTON_Y
+ CONTROLLER_BUTTON_Y,
+ CONTR... |
correct byte count in comment | @@ -1096,7 +1096,7 @@ static int dtio_read_accept_frame(struct dt_io_thread* dtio)
read_frame_done = 4; /* control frame type */
/* Iterate over control fields, ignore unknown types.
- * Need to be able to read at least 2 bytes (control field type +
+ * Need to be able to read at least 8 bytes (control field type +
* l... |
build: add Valgrind detection and include libco | @@ -42,6 +42,7 @@ option(MK_LINUX_TRACE "Enable Lttng support" No)
option(MK_PTHREAD_TLS "Use old Pthread TLS mode" No)
option(MK_SYSTEM_MALLOC "Use system memory allocator" No)
option(MK_MBEDTLS_SHARED "Use mbedtls shared lib" No)
+option(MK_VALGRIND "Enable Valgrind support" No)
# Plugins: what should be build ?, the... |
gpmovemirrors: fix typo lineno instead of line
gpmovemirrors: If we cannot parse the input file,
we should throw a clear exception.
This change fixes that.
Need to print lineno instead of line | @@ -256,9 +256,9 @@ class Configuration:
self.oldMirrorList.append(oldMirror)
self.newMirrorList.append(newMirror)
except ValueError:
- raise ValueError('Missing or invalid value on line %d of file: %s.' % (line, inputFile))
+ raise ValueError('Missing or invalid value on line %d of file: %s.' % (lineno, inputFile))
ex... |
Update yfm for ya make to 2.9.3 | @@ -8,9 +8,9 @@ ENDIF()
DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
YFM_TOOL
- sbr:1368267682 FOR WIN32
- sbr:1368267253 FOR DARWIN
- sbr:1368266839 FOR LINUX
+ sbr:1371097968 FOR WIN32
+ sbr:1371097636 FOR DARWIN
+ sbr:1371097340 FOR LINUX
)
END()
|
Fix TEB on x86 | @@ -317,7 +317,9 @@ typedef struct _TEB
#endif
BOOLEAN InstrumentationCallbackDisabled;
+#ifdef _WIN64
BOOLEAN UnalignedLoadStoreExceptions;
+#endif
#ifndef _WIN64
UCHAR SpareBytes[23];
ULONG TxFsContext;
|
Makefile: fix build issue on old gcc
The previous fcf-protection fix broke the old gcc (older than
gcc 8 which is common on Ubuntu 18.04 and older distributions).
We only add fcf-protection=none for gcc8 and newer. | @@ -102,7 +102,9 @@ endif
# https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/1830961
#
# We disable the -fcf-protection in ACRN build.
+ifeq (true, $(shell [ $(GCC_MAJOR) -gt 8 ] && echo true))
CFLAGS += -fcf-protection=none
+endif
ASFLAGS += -m64 -nostdinc -nostdlib
|
test automation: Fix bash issue for Linux | @@ -677,7 +677,7 @@ def exe_run(call_list, guard_time_seconds=None, printer=None, prompt=None,
'stderr': subprocess.STDOUT,
'shell': shell_cmd,
'env': set_env,
- 'executable': "bin/bash" if bash_cmd else None
+ 'executable': "/bin/bash" if bash_cmd else None
}
# Call the thang
# Note: used to have bufsize=1 here but it... |
Bring attribute use up to date | #!/usr/bin/env python
from hlir16.p4node import P4Node, deep_copy, get_fresh_node_id
-from hlir16.hlir16_attrs import get_main
def apply_annotations(postfix, extra_args, x):
if x.methodCall.method.node_type == "PathExpression":
@@ -53,8 +52,7 @@ def search_for_annotations(x):
def transform_hlir16(hlir16):
- main = get_... |
path: strcat fix | @@ -114,6 +114,7 @@ static int validatePermission(const char *path, Key * key, Key * parentKey)
int isExecute = (strchr(modes, 'x') == NULL) ? 0 : 1;
char errorMessage[30];
+ errorMessage[0] = '\0'; //strcat() searches for this, otherwise it will print garbage chars at start
int isError = 0;
if (euidaccess(validPath, R... |
shm ext UPDATE free print item names later
So they can be examined. | @@ -357,8 +357,6 @@ sr_shmext_print(sr_main_shm_t *main_shm, sr_shm_t *shm_ext)
for (i = 0; i < item_count; ++i) {
printed += sr_sprintf(&msg, &msg_len, printed, "%06jd-%06jd [%6zu]: %s\n",
(intmax_t)items[i].start, (intmax_t)(items[i].start + items[i].size), items[i].size, items[i].name);
-
- free(items[i].name);
}
/*... |
Use bruteforced name
Real name of 0x3BC165EF is ksceDisplayGetProcFrameBufInternal. Found by using nidattack. | @@ -1213,11 +1213,11 @@ modules:
ksceDisplayGetActualViewportConf: 0x40ACFE51
ksceDisplayGetDeviceType: 0x8D9A1CCE
ksceDisplayGetFrameBuf: 0xEEDA2E54
- ksceDisplayGetFrameBufInfoForPid: 0x3BC165EF
ksceDisplayGetFrameBufInternal: 0x19F94C63
ksceDisplayGetMaximumFrameBufResolution: 0x5AFE6CD3
ksceDisplayGetOutputMode: 0x... |
Nicer recorder output | @@ -301,13 +301,13 @@ class RecordedData:
ax.legend()
return 1
- def plot_light_angles(self, fig=None, plot_num=1, plot_rows=1, plot_cols=1, figsize=None, plot_all_light=False,
+ def plot_light_angles(self, fig=None, plot_num=1, plot_rows=1, plot_cols=1, figsize=None, linestyle='.', plot_all_light=False,
**kwargs):
if ... |
npl/riot: allow for timeout in ble_npl_eventq_get() | @@ -91,16 +91,16 @@ ble_npl_eventq_put(struct ble_npl_eventq *evq, struct ble_npl_event *ev)
static inline struct ble_npl_event *
ble_npl_eventq_get(struct ble_npl_eventq *evq, ble_npl_time_t tmo)
{
- assert((tmo == 0) || (tmo == BLE_NPL_TIME_FOREVER));
-
if (evq->q.waiter == NULL) {
event_queue_claim(&evq->q);
}
if (t... |
Copy Template: Update usage message | @@ -14,8 +14,8 @@ cd "$SOURCE/src/plugins"
if [ $# -ne 1 ]; then
echo "Usage: $0 <new-pluginname>"
echo
- echo "allows you to copy templates and rename them properly"
- echo "This was meant for creating new plugins"
+ echo "This script allows you to copy templates and rename them properly."
+ echo "We recommend you use... |
Add function to get number from char* like 0xff, 12, 1k, 1M, 0b1001 | @@ -11,6 +11,45 @@ static bool starts_with(const char * str, const char * prefix) {
return (0 == strncmp(str, prefix, n));
}
+// support positive integer from 0 to 0x7fffffff
+// support decimal, hexadecimal, octal, binary format like 0xff 12 1k 1M, 0b1001
+// negative numbers are not supported
+static int32_t get_inte... |
[awm2] Bugfix event loop blocking logic | @@ -70,11 +70,7 @@ unsafe fn body_as_type_unchecked<T: ExpectsEventField + ContainsEventField>(body
&*(body.as_ptr() as *const T)
}
-fn process_amc_messages(desktop: &mut Desktop, can_block_for_next_message: bool) {
- if !amc_has_message(None) && !can_block_for_next_message {
- return;
- }
-
+fn process_next_amc_messag... |
Fix condition to use clang in MSVS | #include <stdio.h>
#include <stdlib.h>
-#if 1
+#include <__config>
+
+#ifdef _LIBCPP_COMPILER_MSVC
// We don't want to depend on MSVC headers but
// we have conflicting definitions otherwise due to
// some other dependency on eh.h.
-#include <__config>
#include _LIBCPP_MSVC_INCLUDE(eh.h)
#else
|
Annote UIColor:CGColor to be NS_RETURNS_INNER_POINTER | /*
* Copyright (c) 2011, The Iconfactory. All rights reserved.
- * Copyright (c) 2016 Microsoft Corporation. All rights reserved.
+ * Copyright (c) Microsoft. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions ... |
add mi_decl_externc, nice layout | @@ -36,6 +36,12 @@ terms of the MIT license. A copy of the license can be found in the file
#define __wasi__
#endif
+#if defined(__cplusplus)
+#define mi_decl_externc extern "C"
+#else
+#define mi_decl_externc
+#endif
+
// "options.c"
void _mi_fputs(mi_output_fun* out, void* arg, const char* prefix, const char* message... |
cirrus: enable fcrypt on fedora again | @@ -228,7 +228,7 @@ linux_task:
-DENABLE_LOGGER=ON
-DENABLE_DEBUG=ON
-DBINDINGS='ALL'
- -DPLUGINS='ALL;-fcrypt'
+ -DPLUGINS='ALL'
-DTOOLS='ALL'
-DKDB_DB_SYSTEM="$CIRRUS_WORKING_DIR/system"
-DCMAKE_INSTALL_PREFIX="$CIRRUS_WORKING_DIR/install"
|
Refactoring of previous fix: merge if statements to be more efficient. | @@ -652,33 +652,29 @@ int DeRestPluginPrivate::setScheduleAttributes(const ApiRequest &req, ApiRespons
}
}
+ QVariantMap rspItem;
if (map.contains(QLatin1String("localtime")))
{
i->localtime = map["localtime"].toString();
i->jsonMap["localtime"] = i->localtime;
- }
- if (map.contains(QLatin1String("time")))
- {
- i->ti... |
fix copypaste issue | @@ -254,7 +254,7 @@ int DoMain(int argc, char** argv) {
if (module->SupportsLayout(IPerftestModule::EPerftestModuleDataLayout::FeaturesFirst)) {
for (size_t blockId = 0; blockId < blockCount; ++blockId) {
results.UpdateResult(
- module->GetName(IPerftestModule::EPerftestModuleDataLayout::ObjectsFirst),
+ module->GetNam... |
More strictStrings fixes. | @@ -110,7 +110,7 @@ public:
std::uint32_t CustomProperty2;
char CustomProperty3[STORAGE_KEY_ID_AND_PROPERTY_SIZE];
- StorageItemKey(char *Id, std::uint32_t Priority, std::int64_t Time) {
+ StorageItemKey(const char *Id, std::uint32_t Priority, std::int64_t Time) {
clear();
memcpy(&(this->Id[0]), (void *)Id, STORAGE_KEY... |
artik053: reorder #include
Standard headers should appear before the other application-specific
things. | ****************************************************************************/
#include <tinyara/config.h>
+#include <stdio.h>
+
#include <net/if.h>
#include <net/lwip/opt.h>
#include <net/lwip/netif.h>
#include <net/lwip/tcpip.h>
-#include <stdio.h>
struct netif *wlan_netif;
|
lv_draw_label don't add letter_spaces for 0 width characters | @@ -185,8 +185,10 @@ void lv_draw_label(const lv_area_t * coords, const lv_area_t * mask, const lv_st
letter_fp(&pos, mask, font, letter, color, opa);
letter_w = lv_font_get_width(font, letter);
+ if(letter_w > 0){
pos.x += letter_w + style->text.letter_space;
}
+ }
/*Go to next line*/
line_start = line_end;
line_end +... |
dockerfiles: Fix to work correctly for Windows container | @@ -90,7 +90,7 @@ COPY --from=builder /fluent-bit /fluent-bit
RUN setx /M PATH "%PATH%;C:\fluent-bit\bin"
-ENTRYPOINT [ "C:\fluent-bit\bin\fluent-bit.exe" ]
+ENTRYPOINT [ "fluent-bit.exe" ]
# Hadolint gets confused by Windows it seems
# hadolint ignore=DL3025
-CMD [ "C:\fluent-bit\bin\fluent-bit.exe", "-c", "C:\fluent-... |
Update CONTRIBUTORS.md
update contributor list | @@ -10,8 +10,30 @@ Current maintainers:
Contributors:
* [trueserve](https://github.com/trueserve)
* [sgaragagghu](https://github.com/sgaragagghu)
+* [Sofarlemineur](https://github.com/Sofarlemineur)
+* [Chen Zhen](https://github.com/czsilence)
+* [kbs1](https://github.com/kbs1)
+* [amwsffgu](https://github.com/amwsffgu... |
Disable shared-page validation on task switch
Causes a deadlock when PID 0 tries to lock its allocation bitmap | @@ -203,7 +203,7 @@ void tasking_goto_task(task_small_t* new_task) {
// This check should no longer be needed, since allocations within the shared kernel pages are always
// marked within the shared kernel bitmap.
// However, keep the check in to ensure this never regresses.
- vmm_validate_shared_tables_in_sync(vmm_act... |
[mod_webdav] check HAVE_UUID for -luuid
check HAVE_UUID for -luuid in order to detect more pedantic cases,
e.g. when -luuid is not installed under Cygwin, even if devel headers
are present (<uuid/uuid.h>) | #include <sqlite3.h>
#endif
-#if defined(HAVE_LIBXML_H) && defined(HAVE_SQLITE3_H) && defined(HAVE_UUID_UUID_H)
+#if defined(HAVE_LIBXML_H) && defined(HAVE_SQLITE3_H) \
+ && defined(HAVE_UUID) && defined(HAVE_UUID_UUID_H)
#define USE_LOCKS
#include <uuid/uuid.h>
#endif
|
Fix typo in README
This is the correct name since 2016. | @@ -26,7 +26,7 @@ If you require the latest version in development, it should be possible to
compile RGBDS with MinGW or Cygwin by following the instructions to build it
on UNIX systems.
-### 1.2 Mac OS
+### 1.2 macOS
You can build RGBDS by following the instructions below. However, if you would
prefer not to build RGB... |
Recreate codec and display on rotation changed
On some devices, we can reuse the same codec and display, but on some
others (e.g. Nexus 5X with Android 7.1.2), it crashes on codec.stop()
with an IllegalStateException.
Therefore, always recreate the codec and display, so that it works on
all devices. | @@ -53,12 +53,12 @@ public class ScreenEncoder implements Device.RotationListener {
public void streamScreen(Device device, OutputStream outputStream) throws IOException {
MediaFormat format = createFormat(bitRate, frameRate, iFrameInterval);
- MediaCodec codec = createCodec();
- IBinder display = createDisplay();
devi... |
FEC: disable by default the sending of ACKs for recovered packets | @@ -389,9 +389,9 @@ static __attribute__((always_inline)) int recover_block(picoquic_cnx_t *cnx, bpf
&already_received);
if (!ret) {
picoquic_path_t *path = (picoquic_path_t *) get_cnx(cnx, CNX_AK_PATH, 0);
- picoquic_record_pn_received(cnx, path,
- ph.pc, ph.pn64,
- picoquic_current_time());
+// picoquic_record_pn_rec... |
hw/mcu/nordic: Allow longer transfers on nRF52840
MAXCNT field size was increased to 16 bit on nRF52840 so let's make use
of it. | #define min(a, b) ((a)<(b)?(a):(b))
#endif
+#ifdef NRF52840_XXAA
+#define SPIM_TXD_MAXCNT_MAX 65535
+#else
+#define SPIM_TXD_MAXCNT_MAX 255
+#endif
+
/* IRQ handler type */
typedef void (*nrf52_spi_irq_handler_t)(void);
@@ -128,9 +134,9 @@ static const struct nrf52_hal_spi *nrf52_hal_spis[NRF52_HAL_SPI_MAX] = {
static ... |
Implement initial version of udp_socket and udp_close | -#include <udp.h>
-#include <tock.h>
+#include "udp.h"
+#include "tock.h"
const int UDP_DRIVER = 0x30002;
@@ -18,12 +18,17 @@ static unsigned char BUF_TX_CFG[2 * sizeof(sock_addr_t)];
static unsigned char BUF_RX_CFG[2 * sizeof(sock_addr_t)];
int udp_socket(sock_handle_t *handle, sock_addr_t *addr) {
- // TODO
+ /*
+ me... |
Add RtlDetermineDosPathNameType_Ustr | @@ -3388,6 +3388,13 @@ RtlDetermineDosPathNameType_U(
_In_ PWSTR DosFileName
);
+NTSYSAPI
+RTL_PATH_TYPE
+NTAPI
+RtlDetermineDosPathNameType_Ustr(
+ _In_ PCUNICODE_STRING DosFileName
+ );
+
NTSYSAPI
ULONG
NTAPI
|
invoke-error-key: add release note | @@ -107,6 +107,7 @@ We added even more functionality, which could not make it to the highlights:
additional libraries.
- The building and linking of the haskell bindings and haskell plugins has been
[greatly improved](https://github.com/ElektraInitiative/libelektra/pull/1698).
+- The invoke library can now [report erro... |
esp32/machine_pin: Reset pin if init sets mode.
This will forcibly grab the pin back from the ADC if it has previously been
associated with it.
Fixes | @@ -150,6 +150,11 @@ STATIC mp_obj_t machine_pin_obj_init_helper(const machine_pin_obj_t *self, size_
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];
mp_arg_parse_all(n_args, pos_args, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);
+ // reset the pin first if this is a mode-setting init (grab it back from A... |
Scan library for enums in list-enum-consts.sh
Add library/*.h to the list of files scanned for enums in
list-enum-consts.sh, consistent with the changes made to
list-macros.sh.
This is needed to ensure that check-names.sh passes for the MPS
trace enums. | @@ -26,7 +26,7 @@ use open qw(:std utf8);
@ARGV = grep { ! /compat-1\.3\.h/ } <include/mbedtls/*.h>;
push @ARGV, "3rdparty/everest/include/everest/everest.h";
push @ARGV, "3rdparty/everest/include/everest/x25519.h";
-
+push @ARGV, glob("library/*.h");
my @consts;
my $state = 'out';
|
Add more SceCtrl NIDs | @@ -802,26 +802,41 @@ modules:
functions:
sceCtrlClearRapidFire: 0xD8294C9C
sceCtrlGetSamplingMode: 0xEC752AAF
+ sceCtrlGetSamplingModeExt: 0xBD27F830
sceCtrlGetControllerPortInfo: 0x324F1B66
sceCtrlPeekBufferNegative: 0x104ED1A7
+ sceCtrlPeekBufferNegative2: 0x81A89660
sceCtrlPeekBufferPositive: 0xA9C3CED6
sceCtrlPeek... |
python3 tests: raw_input
'raw_input' does not exist in python3. | @@ -40,6 +40,12 @@ if os.name == 'posix' and sys.version_info[0] < 3:
else:
import subprocess
+# Python2/3 compatible
+try:
+ input = raw_input
+except NameError:
+ pass
+
PASS = 0
FAIL = 1
ERROR = 2
@@ -347,7 +353,7 @@ class VppTestCase(unittest.TestCase):
print("Now is the time to attach a gdb by running the above "
... |
omnibox: hide tutorial from initial | @@ -85,7 +85,7 @@ export function Omnibox(props: OmniboxProps) {
const initialResults = useMemo(() => {
return new Map(SEARCHED_CATEGORIES.map((category) => {
if (category === 'other') {
- return ['other', index.get('other')];
+ return ['other', index.get('other').filter(({ app }) => app !== 'tutorial')];
}
return [cat... |
Update arm_convolve_HWC_q7_fast.c | *
* ch_im_in is multiple of 4 ( because of the SIMD32 read and swap )
*
- * ch_im_out is multipe of 2 ( bacause 2x2 mat_mult kernel )
+ * ch_im_out is multiple of 2 ( bacause 2x2 mat_mult kernel )
*
* The im2col converts the Q7 tensor input into Q15 column, which is stored in
* bufferA. There is reordering happenning d... |
Memory leak in ldns_edns_option_list_clone | @@ -202,13 +202,13 @@ ldns_edns_option_list_clone(ldns_edns_option_list *old_list)
/* adding options also updates the total options size */
for (i = 0; i < old_list->_option_count; i++) {
- if (!(ldns_edns_option_list_push(new_list,
- ldns_edns_clone(ldns_edns_option_list_get_option(old_list, i))))){
+ ldns_edns_option... |
Sockeye TN: Update usage info | @@ -115,14 +115,17 @@ $ sockeye [options] file
The available options are:
\begin{description}
\item[-P] Generate a Prolog file that can be loaded into the SKB.
-\item[-C] Just perform checks, do not compile.
-\item[-o] \varname{filename} The path to the output file (including the file extension)
+\item[-i] Add a Add a ... |
some updates to INSTALL | -# SYSTEM REQUIREMENTS
+## Installing/Building ZMap
-ZMap is designed to run on GNU/Linux systems and can be built with most recent versions of gcc. Currently, running it requires at least 600MB of free memory.
+### Installing from Package Manager
-#### INSTALLING PREBUILT PACKAGE FROM PACKAGE MANAGER
+ZMap operates on... |
Use six.string_types instead of str and unicode | @@ -124,7 +124,7 @@ def _check_param_type(value, name, types, or_none=True):
def _process_verbose(metric_period=None, verbose=None, logging_level=None, verbose_eval=None, silent=None):
_check_param_type(metric_period, 'metric_period', (int,))
_check_param_type(verbose, 'verbose', (bool, int))
- _check_param_type(loggin... |
[chainmaker]modify free pointer sequence | @@ -220,14 +220,16 @@ void BoatHlchainmakerWalletDeInit(BoatHlchainmakerWallet *wallet_ptr)
wallet_ptr->tls_client_info.cert.field_ptr == NULL;
wallet_ptr->tls_client_info.cert.field_len = 0;
- if (tx_ptr->wallet_ptr->http2Context_ptr->tlsCAchain != NULL) {
+ if (wallet_ptr->http2Context_ptr->tlsCAchain != NULL) {
- Bo... |
doc: binprot spelling fix
from elvio on github | @@ -900,7 +900,7 @@ CAS (16-23): 0x0000000000000000
Extras :
delta (24-31): 0x0000000000000001
initial (32-39): 0x0000000000000000
- exipration (40-43): 0x00000e10
+ expiration (40-43): 0x00000e10
Key : Textual string "counter"
Value : None
</artwork>
|
gadget-default: Bump bcc to use --json for profile. | @@ -6,7 +6,7 @@ ARG BUILDER_IMAGE=ubuntu:20.04
# BCC built from the gadget branch in the kinvolk/bcc fork.
# See BCC section in docs/CONTRIBUTING.md for further details.
-ARG BCC="quay.io/kinvolk/bcc:64a64b4ba0a719fb6b79a4705f29ad5e1fa1e47d-focal-release"
+ARG BCC="quay.io/kinvolk/bcc:a432665d57f5fe10e30e6420208462711f... |
bin: fix handling of buffer for text helper | @@ -241,9 +241,10 @@ static void help_plugin_description(int left_padding, flb_sds_t str)
}
}
-static msgpack_object *help_get_obj(msgpack_object map, char *key)
+static flb_sds_t help_get_value(msgpack_object map, char *key)
{
flb_sds_t k;
+ flb_sds_t val;
msgpack_object *o;
struct flb_ra_value *rval = NULL;
struct fl... |
out_counter: support nanosecond | #include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
-
+#include <fluent-bit/flb_time.h>
#include <fluent-bit/flb_output.h>
int cb_counter_init(struct flb_output_instance *ins,
@@ -50,6 +50,7 @@ void cb_counter_flush(void *data, size_t bytes,
msgpack_unpacked result;
size_t off = 0, cnt = 0;
+ struct flb_tim... |
Fix favorites table css | @@ -147,7 +147,7 @@ function loadFavorites(){
var splitArray = favorite.split("/");
var line = $('<tr class="tr">'+
- '<th class="title col-xs-3"><a href="'+linkPrefix+favorite+'">'+shortText(splitArray[splitArray.length-1],30)+'</a></th>'+
+ '<th class="col-xs-3"><a href="'+linkPrefix+favorite+'">'+shortText(splitArra... |
board/nami/battery.c: Format with clang-format
BRANCH=none
TEST=none | @@ -243,7 +243,8 @@ static int battery_init(void)
if (batt_status & STATUS_INITIALIZED)
return 1;
- return battery_status(&batt_status) ? 0 :
+ return battery_status(&batt_status) ?
+ 0 :
!!(batt_status & STATUS_INITIALIZED);
}
@@ -278,13 +279,13 @@ static int battery_check_disconnect_ti_bq40z50(void)
uint8_t data[6];
... |
use inttypes.h instead of explicit endianness for hex conversion | #include <string.h>
#include <unistd.h>
#include <assert.h>
+#include <inttypes.h>
int
main(
@@ -85,35 +86,11 @@ main(
eval = OWPExpContextNext(exp);
sum = OWPNum64Add(sum,eval);
if((n < I2Number(nice)) && (j == nice[n])){
- /* local copies of eval and sum */
- OWPNum64 te,ts;
- /* big-endian versions of eval and sum *... |
Enable markdown as a twig syntax
commenting/removing various printfs | == ::
{$atom p/odor} :: atom
++ bean ? :: 0=&=yes, 1=|=no
-++ beer $@(@ {$~ p/twig}) :: simple embed
+++ beer $@(char {$~ p/twig}) :: simple embed
++ bloq @ :: blockclass
++ char @tD :: UTF-8 byte
++ chub :: registered battery
?: (gth nex (sub col luc))
::
:: indenting pattern violation
- ~& indent-pattern-violation+[p... |
BugID:17784971:move kernel/hal to osal 7 | @@ -10,7 +10,6 @@ $(NAME)_COMPONENTS := platform/arch/arm/armv5
$(NAME)_COMPONENTS += libc rhino yloop kernel.fs.kv alicrypto digest_algorithm
$(NAME)_COMPONENTS += network.lwip network.umesh network.netmgr
$(NAME)_COMPONENTS += prov
-$(NAME)_COMPONENTS += hal
GLOBAL_DEFINES += CONFIG_AOS_KV_MULTIPTN_MODE
GLOBAL_DEFINE... |
Double the MMCSD_IDLE_DELAY from 50ms to 100ms because I found one card that needs this to work after initial CMD0. | /* Timing (all in units of microseconds) */
#define MMCSD_POWERUP_DELAY ((useconds_t)250) /* 74 clock cycles @ 400KHz = 185uS */
-#define MMCSD_IDLE_DELAY ((useconds_t)50000) /* Short delay to allow change to IDLE state */
+#define MMCSD_IDLE_DELAY ((useconds_t)100000) /* Short delay to allow change to IDLE state */
#d... |
Don't sh-note updates to a circle's read counter
Fixes | $(dif [%filter fit.cof.dif])
?: ?=($remove -.dif)
(sh-note (weld "rip " (~(cr-show cr cir) ~)))
- ?: ?=($usage -.dif) +>
+ ?: ?=(?($usage $read) -.dif) +>
%- sh-note
%+ weld
(weld ~(cr-phat cr cir) ": ")
::
$caption
"cap: {(trip cap.dif)}"
- ::
- $read
- ""
::
$filter
;: weld
|
Improve the handling of fragmented, unordered, and unreliable
user data using DATA chunks in the receive path.
This fixes
Thanks to Yutaka Takeda for reporting the issue. | #if defined(__FreeBSD__) && !defined(__Userspace__)
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: head/sys/netinet/sctp_indata.c 366114 2020-09-24 12:26:06Z tuexen $");
+__FBSDID("$FreeBSD: head/sys/netinet/sctp_indata.c 366199 2020-09-27 13:32:02Z tuexen $");
#endif
#include <netinet/sctp_os.h>
@@ -5462,7 +5462,6 @@ sct... |
tests FEATURE run tests in a separate repositories
Fixes This patch also allows running all tests at once.
Also, this fixes setting the other two enviromental variables. The
previous code did NOT set two variables, but only one (with a value that
included the name of the second one). | @@ -32,7 +32,12 @@ endforeach(test_name)
foreach(test_name IN LISTS tests)
target_link_libraries(${test_name} ${CMOCKA_LIBRARIES} sysrepo)
add_test(NAME ${test_name} COMMAND $<TARGET_FILE:${test_name}>)
- set_property(TEST ${test_name} APPEND PROPERTY ENVIRONMENT "MALLOC_CHECK_=3 CMOCKA_TEST_ABORT=1")
+ set_property(TE... |
Set __all__ for the metrics module | @@ -3,6 +3,8 @@ from functools import partial
from . import _catboost
+__all__ = []
+
_dummy_metrics = _catboost.DummyMetrics
class BuiltinMetric(object):
@@ -114,3 +116,4 @@ for metric_name, metric_params in _dummy_metrics().items():
globals()[metric_name] = _MetricGenerator(str(metric_name), (BuiltinMetric,), {
"_val... |
Add InternalName for StringFileInfo | @@ -41,6 +41,7 @@ BEGIN
VALUE "CompanyName", VER_COMPANYNAME_STR
VALUE "FileDescription", VER_FILEDESCRIPTION_STR
VALUE "FileVersion", VER_FILEVERSION_STR
+ VALUE "InternalName", VER_ORIGINALFILENAME_STR
VALUE "LegalCopyright", VER_LEGALCOPYRIGHT_STR
VALUE "OriginalFilename", VER_ORIGINALFILENAME_STR
VALUE "ProductName... |
DB: Skip legacy sensor loading when DDF is available | #include "de_web_plugin.h"
#include "de_web_plugin_private.h"
#include "deconz/dbg_trace.h"
+#include "device_descriptions.h"
#include "gateway.h"
#include "json.h"
#include "product_match.h"
@@ -3128,6 +3129,15 @@ static int sqliteLoadAllSensorsCallback(void *user, int ncols, char **colval , c
quint8 endpoint = sensor... |
options/posix: Check for sys_select before using it | @@ -104,6 +104,12 @@ int select(int num_fds, fd_set *__restrict read_set, fd_set *__restrict write_se
return m;
#else
+ if(!mlibc::sys_select) {
+ MLIBC_MISSING_SYSDEP();
+ errno = ENOSYS;
+ return -1;
+ }
+
if(int e = mlibc::sys_select(num_fds, read_set, write_set, except_set,
timeout); e) {
errno = e;
|
fix warning on gcc on attribute ignore in templates | @@ -54,7 +54,7 @@ bool _mi_os_commit(void* p, size_t size, bool* is_zero, mi_stats_t* stats);
#define MI_MAX_ARENAS (64) // not more than 256 (since we use 8 bits in the memid)
// A memory arena descriptor
-typedef mi_decl_cache_align struct mi_arena_s {
+typedef struct mi_arena_s {
_Atomic(uint8_t*) start; // the star... |
Force i386 Linux builds to use GNU TLS for build tests while x86_64 Linux builds use OpenSSL. | @@ -16,7 +16,7 @@ jobs:
- name: update build environment
run: sudo apt-get update --fix-missing -y
- name: install prerequisites
- run: sudo apt-get install -y avahi-daemon libavahi-client-dev libgnutls28-dev libpam-dev libusb-1.0-0-dev zlib1g-dev
+ run: sudo apt-get install -y avahi-daemon libavahi-client-dev libssl-d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.