message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Document results of sin/cos a bit more. | @@ -7,11 +7,15 @@ use "sum-impl"
use "util"
/*
- This implmentation of sin and cos uses the "Highly Accurate
- Tables" method of [GB91]. The idea is to tabulate [0, pi/4] at
- 256 slightly irregular intervals xi, with the lucky property
- that the infinite binary expansions of significands of sin(xi)
- and cos(xi) look... |
semaphore_init: use sem_init on FreeBSD
sem_open+sem_unlink is buggy on FreeBSD when /tmp is using tmpfs
( see )
use sem_init instead | @@ -33,6 +33,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <errno.h>
#endif
+#if defined(__FreeBSD__)
+#include <stdlib.h>
+#endif
+
#include "threading.h"
@@ -88,6 +92,11 @@ int semaphore_init(
*semaphore = CreateSemaphore(NULL, value, 65535, NULL);
if (*semaphore == NULL)
return GetLastE... |
ts: Resolve should not make space to unscoop when it doesn't.
It used to, but now there's a separate function for that since only
return type solving cares about unscooping. | @@ -119,9 +119,9 @@ lily_type *lily_ts_resolve(lily_type_system *ts, lily_type *type)
;
else if (type->cls->generic_count != 0) {
/* Resolve handles solving generics and is thus hit pretty often. So
- it reserves the maximum that could possibly be used at once
- (including for scoops) to prevent repeated growing checks... |
Track bug.nr 4100 | 4 June 2018: Wouter
- Fix deadlock caused by incoming notify for auth-zone.
- tag for 1.7.2rc1
- - Fix stub reprime when it becomes useless.
+ - #4100: Fix stub reprime when it becomes useless.
1 June 2018: Wouter
- Rename additional-tls-port to tls-additional-ports.
|
new property android_net_curl, by deafault 1 | @@ -46,7 +46,13 @@ namespace common
net::INetRequestImpl* CRhoClassFactory::createNetRequestImpl()
{
- //return new net::CURLNetRequest();
+ bool prop_exists = rho_conf_is_property_exists("android_net_curl");
+ if(!prop_exists)
+ rho_conf_setInt("android_net_curl", 1);
+
+ if (rho_conf_getInt("android_net_curl"))
+ ret... |
Remove all references to the Yahoo group. | @@ -89,9 +89,7 @@ micropython
4. Micro Python needs the math library libm.a. The math library built into
NuttX is sufficient and that can be included with CONFIG_LIBM=y. If you
prefer a more highly tuned math library then refer to the discussion of
- math.h in the top-level nuttx/README.txt file. Also refer to the
- di... |
Fixed: missing empty line | @@ -55,7 +55,7 @@ namespace credits {
"",
"*The contributing crew",
"(in alphabetical order)",
- "%C" // code will render contributors section here, %C is placeholder
+ "%C", // code will render contributors section here, %C is placeholder
"",
"*Kickstarted in 2019",
"",
|
delete dir_path in wch bsp ignore_format file. | # If you need to exclude an entire folder, add the folder path in dir_path;
# If you need to exclude a file, add the path to the file in file_path.
-file_path:
-
dir_path:
- Libraries/CH32F10x_StdPeriph_Driver
|
Syscall Dockerfile cleanup
remove unused ENV values
fix alignment in RUN | @@ -29,8 +29,6 @@ ENV SCOPE_EVENT_LOGFILE=true
ENV SCOPE_EVENT_CONSOLE=true
ENV SCOPE_EVENT_METRIC=true
ENV SCOPE_EVENT_HTTP=true
-#ENV SCOPE_EVENT_DEST=tcp://172.16.198.132:9109
-ENV SCOPE_THREAD_DELAY="dup205"
COPY ./syscalls/altp /opt/test/altp
RUN cd /opt/test/altp && make -j
|
Completions: Add suggestion for option `--verbose` | @@ -15,6 +15,9 @@ end
function __fish_kdb_needs_namespace -d 'Check if the current command needs a namespace completion'
__input_includes ls get set
+function __fish_kdb_option_verbose -d 'Check if the current command allows the option verbose'
+ __input_includes (__fish_kdb_print_subcommands)
+ and not __input_include... |
Added recoverseg to main master pipeline | @@ -485,6 +485,23 @@ jobs:
<<: *pulse_properties
PULSE_PROJECT_NAME: "GPDB-BehaveGPCheckcat"
+- name: MU_gprecoverseg
+ plan:
+ - aggregate: *pulse_trigger_resource
+ - task: trigger_pulse
+ tags: ["gpdb5-pulse-worker"]
+ file: gpdb_src/ci/pulse/api/trigger_pulse.yml
+ input_mapping: *input_mappings
+ params:
+ <<: *pu... |
vpic: use calloc to init vpic instead of malloc
vpic struct should be init as 0 | @@ -930,7 +930,7 @@ void *vpic_init(struct vm *vm)
vpic_register_io_handler(vm);
- vpic = malloc(sizeof(struct vpic));
+ vpic = calloc(1, sizeof(struct vpic));
ASSERT(vpic != NULL, "");
vpic->vm = vm;
vpic->pic[0].mask = 0xff;
|
acrn-config: Set/Unset RDT support in the <$BOARD$>.config file
This patch checks if RDT feature is supported by platform and
updates the CONFIG_RDT_ENABLED flag in the <$BOARD$>.config
file accordingly.
Acked-by: Victor Sun | #
import sys
+import subprocess
import board_cfg_lib
@@ -104,6 +105,17 @@ def get_serial_type():
return (ttys_type, ttys_value)
+def is_rdt_supported():
+ """
+ Returns True if platform supports RDT else False
+ """
+ (rdt_resources, rdt_res_clos_max, _) = board_cfg_lib.clos_info_parser(board_cfg_lib.BOARD_INFO_FILE)
+... |
Add AppleSIlicon cpu | @@ -66,6 +66,11 @@ FCOMMON_OPT += -march=armv8.1-a -mtune=thunderx2t99
endif
endif
+ifeq ($(CORE), SILICON)
+CCOMMON_OPT += -march=armv8.3-a
+FCOMMON_OPT += -march=armv8.3-a
+endif
+
ifeq ($(GCCVERSIONGTEQ9), 1)
ifeq ($(CORE), TSV110)
CCOMMON_OPT += -march=armv8.2-a -mtune=tsv110
|
posixcompat: vfs_fd: fix debug printf formats | @@ -97,7 +97,7 @@ int vfsfd_read(int fd, void *buf, size_t len)
case FDTAB_TYPE_FILE:
{
errval_t err = vfs_read((vfs_handle_t)e->handle, buf, len, &retlen);
- VFSFD_DEBUG("%d : read(%d, %d) = %lu\n", disp_get_domain_id(), fd, len, retlen);
+ VFSFD_DEBUG("%d : read(%d, %zd) = %lu\n", disp_get_domain_id(), fd, len, retle... |
Update Azimuth event handling to account for updated indexing | `[who %activated who]
::
?: =(event.log spawned)
- =/ pre=@ (decode-topics topics.log ~[%uint])
- =/ who=@ (decode-results data.log ~[%uint])
+ =+ ^- [pre=@ who=@]
+ (decode-topics topics.log ~[%uint %uint])
`[pre %spawned who]
::
?: =(event.log escape-requested)
`[who %sponsor `wer]
::
?: =(event.log lost-sponsor)
- =... |
Amended the state relation | @@ -122,9 +122,9 @@ s2nState2RFCState hsa rfcstate =
//same senders
(sender2writer (message rfcstate).sender == hsa.writer) /\
//same record type/protocol
- (protocol2recordType (message rfcstate).protocol == hsa.record_type)
+ (protocol2recordType (message rfcstate).protocol == hsa.record_type) /\
//same message type
... |
add missing types in bps
Add missing program and map types in bps | @@ -32,6 +32,11 @@ static const char * const prog_type_strings[] = {
[BPF_PROG_TYPE_LWT_XMIT] = "lwt xmit",
[BPF_PROG_TYPE_SOCK_OPS] = "sock ops",
[BPF_PROG_TYPE_SK_SKB] = "sk skb",
+ [BPF_PROG_TYPE_CGROUP_DEVICE] = "cgroup_device",
+ [BPF_PROG_TYPE_SK_MSG] = "sk_msg",
+ [BPF_PROG_TYPE_RAW_TRACEPOINT] = "raw_tracepoint... |
[Rust] Update modelling of SupervisedProcessEvent | @@ -254,8 +254,9 @@ impl ExpectsEventField for AmcExecBuffer {
#[repr(C)]
#[derive(Debug)]
pub enum SupervisedProcessEvent {
+ ProcessStart(u64),
ProcessExit(u64),
- ProcessWrite(u64, [char; 128]),
+ ProcessWrite(u64, [u8; 128]),
}
#[repr(C)]
|
test: i2c_controller: Verify i2c_field_update16() errors
Verify the error path for i2c_field_update16().
BRANCH=none
TEST=twister
Code-Coverage: Zoss | @@ -121,6 +121,14 @@ ZTEST_F(i2c_controller, field_update16)
zassert_equal(set_value, actual, "got %04x, expected %04x", actual,
set_value);
+
+ /* Force a failure */
+ set_value = 0x0001;
+ mask = 0x0001;
+ i2c_common_emul_set_read_fail_reg(&fixture->emul_data->common, 0);
+ zassert_equal(i2c_field_update16(fixture->p... |
filter_kubernetes: add kubernetes host name in record
* Extract nodeName from spec and stick it in as
host in the result. | @@ -235,9 +235,11 @@ static int merge_meta(char *reg_buf, size_t reg_size,
int ret;
int map_size;
int meta_found = FLB_FALSE;
+ int spec_found = FLB_FALSE;
int have_uid = -1;
int have_labels = -1;
int have_annotations = -1;
+ int have_nodename = -1;
size_t off = 0;
msgpack_sbuffer mp_sbuf;
msgpack_packer mp_pck;
@@ -24... |
Fix test fts_recovery_in_progress
fts_recovery_in_progress execute 'select gp_request_fts_probe_scan()' to
promote the mirror and then run 'gprecoverseg', it fails sometimes because the
mirror promotion hasn't finished yet. | @@ -41,6 +41,8 @@ select gp_request_fts_probe_scan();
select role, preferred_role, mode, status from gp_segment_configuration where content = 0;
-- The remaining steps are to bring back the cluster to original state.
-- start_ignore
+-- run a DDL query to make sure the mirror has finished the promotion
+1: create temp ... |
correcting the demo module name for tcp | # TCP echo demo
-afr_demo_module(tcp_client)
+afr_demo_module(tcp)
afr_set_demo_metadata(ID "TCP_ECHO_CLIENT_DEMO")
afr_set_demo_metadata(DESCRIPTION "An example on how to use the secure sockets layer to connect to \
|
TestsUser: Fix UB in ReadUnaligned32. | @@ -1148,7 +1148,7 @@ ReadUnaligned32 (
LowerBytes = ReadUnaligned16 ((UINT16*) Buffer);
HigherBytes = ReadUnaligned16 ((UINT16*) Buffer + 1);
- return (UINT32) (LowerBytes | (HigherBytes << 16));
+ return (UINT32) (LowerBytes | ((UINT32)HigherBytes << 16));
}
STATIC
|
Bugfixed the SocketCAN send via setting the dev->d_len to dev->d_sndlen. The dev->d_len wouldn't be assigned otherwise. | @@ -107,6 +107,7 @@ static uint16_t psock_send_eventhandler(FAR struct net_driver_s *dev,
/* Copy the packet data into the device packet buffer and send it */
devif_send(dev, pstate->snd_buffer, pstate->snd_buflen, 0);
+ dev->d_len = dev->d_sndlen;
if (dev->d_sndlen == 0)
{
return flags;
|
apps/Application.mk: fix compile assmbely error | @@ -73,8 +73,8 @@ PROGNAME := $(shell echo $(PROGNAME))
RASRCS = $(filter %.s,$(ASRCS))
CASRCS = $(filter %.S,$(ASRCS))
-AOBJS = $(RASRCS:.s=$(SUFFIX)$(OBJEXT))
-AOBJS += $(CASRCS:.S=$(SUFFIX)$(OBJEXT))
+RAOBJS = $(RASRCS:.s=$(SUFFIX)$(OBJEXT))
+CAOBJS = $(CASRCS:.S=$(SUFFIX)$(OBJEXT))
COBJS = $(CSRCS:.c=$(SUFFIX)$(OBJ... |
cleanup: Correcting VBUS discharge comment
BRANCH=none
TEST=none | @@ -507,7 +507,8 @@ static int sn5s330_discharge_vbus(int port, int enable)
status = write_reg(port, SN5S330_FUNC_SET3, regval);
if (status) {
- CPRINTS("Failed to %s vbus", enable ? "enable" : "disable");
+ CPRINTS("Failed to %s vbus discharge",
+ enable ? "enable" : "disable");
return status;
}
|
serial-libs/openblas: change fuzz factor to 1 | @@ -30,6 +30,8 @@ Patch2: openblas-noexecstack.patch
Patch3: fix-arm64-cpuid-return.patch
ExclusiveArch: %ix86 ia64 ppc ppc64 ppc64le x86_64 aarch64
+%global _default_patch_fuzz 1
+
%description
OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.
|
framework/messaging : Merge duplicated send param validation check
checking port name and send data is duplicated in messaging_send and messaging_send_async. | /****************************************************************************
* private functions
****************************************************************************/
+static int messaging_send_param_validation(const char *port_name, msg_send_data_t *send_data)
+{
+ if (port_name == NULL) {
+ msgdbg("[Messagin... |
feat: add discord_get_guild_member() test to bot-guild.c | @@ -259,6 +259,32 @@ void on_role_list(
discord_create_message(client, msg->channel_id, ¶ms, NULL);
}
+void on_member_get(
+ struct discord *client,
+ const struct discord_user *bot,
+ const struct discord_message *msg)
+{
+ if (msg->author->bot) return;
+
+ u64_snowflake_t user_id=0;
+ sscanf(msg->content, "%"SCNu... |
Remove bias on max_quant_steps | @@ -229,7 +229,7 @@ static void compute_angular_endpoints_for_quant_levels(
float low_value[12],
float high_value[12]
) {
- int max_quantization_steps = quantization_steps_for_level[max_quant_level + 1];
+ int max_quantization_steps = quantization_steps_for_level[max_quant_level];
alignas(ASTCENC_VECALIGN) float angula... |
fix cortex-a cahce | @@ -30,6 +30,7 @@ void rt_hw_cpu_icache_invalidate(void *addr, int size)
rt_uint32_t start_addr = (rt_uint32_t)addr;
rt_uint32_t end_addr = (rt_uint32_t) addr + size + line_size - 1;
+ asm volatile ("dmb":::"memory");
start_addr &= ~(line_size-1);
end_addr &= ~(line_size-1);
while (start_addr < end_addr)
@@ -37,6 +38,7... |
Fix a DTLS memory leak
Fixes | @@ -1519,10 +1519,12 @@ MSG_PROCESS_RETURN tls_process_client_hello(SSL *s, PACKET *pkt)
* So check cookie length...
*/
if (SSL_get_options(s) & SSL_OP_COOKIE_EXCHANGE) {
- if (clienthello->dtls_cookie_len == 0)
+ if (clienthello->dtls_cookie_len == 0) {
+ OPENSSL_free(clienthello);
return MSG_PROCESS_FINISHED_READING;... |
luci-app-smartdns: refresh acl file | "description": "Grant access to LuCI app smartdns",
"read": {
"file": {
- "uci": [ "smartdns" ],
"/etc/smartdns/*": [ "read" ],
"/usr/sbin/iptables -t nat -nL PREROUTING": [ "exec" ],
"/usr/sbin/ip6tables -t nat -nL PREROUTING": [ "exec" ],
},
"write": {
"file": {
- "uci": [ "smartdns" ],
"/etc/smartdns/*": [ "write" ]... |
nimble/ll: Fix handling RX data while encryption as a Slave
Set enc_stat in the LL_ENC_REQ handler and not when sending LL_ENC_RSP.
This is in order to make sure that next incoming PDU will be
alread verified
This fix small rate of failures of LL/SEC/SLA/BI-05 | @@ -1295,6 +1295,8 @@ ble_ll_ctrl_rx_enc_req(struct ble_ll_conn_sm *connsm, uint8_t *dptr,
return BLE_LL_CTRL_UNKNOWN_RSP;
}
+ connsm->enc_data.enc_state = CONN_ENC_S_LTK_REQ_WAIT;
+
/* In case we were already encrypted we need to reset packet counters */
connsm->enc_data.rx_pkt_cntr = 0;
connsm->enc_data.tx_pkt_cntr =... |
clay: check kelvin on non-%base desks | =: hut.ran (~(uni by hut.rang) hut.ran)
lat.ran (~(uni by lat.rang) lat.ran)
==
- :: assert desk kelvin matches kernel kelvin, except on %base
- ::
- ?> ?: =(%base syd) &
- .= zuse/zuse
- ?- -.yoki
- %& =/ fil (~(got by q.p.yoki) /sys/kelvin)
- ?- -.fil
- %& q.p.fil
- %|
- ==
- %|
- ==
=/ new-data=(map path (each page ... |
Minor formatting fixes
[ci skip] | @@ -101,20 +101,25 @@ The validation strategy for the hardware implementation is to use a variety
of tests types to exercise it at different levels. Tests fall into the following
categories:
-1. Module level hardware unit/integration tests (tests/unit)
+1. **Module level hardware unit/integration tests** (tests/unit)
+... |
change some logs for consensus to Info level | @@ -450,7 +450,7 @@ func (bf *BlockFactory) connect(block *types.Block) error {
}
}
- logger.Debug().Uint64("no", block.BlockNo()).
+ logger.Info().Uint64("no", block.BlockNo()).
Str("hash", block.ID()).
Str("prev", block.PrevID()).
Bool("proposed", blockState != nil).
|
ish: set firmware status to running during pre-init
This adds a firmware status update to FWSTS_FW_IS_RUNNING during boot.
BRANCH=none
TEST=Observed firmware status is 7 (IS_RUNNING) during boot before
HECI ready. | #include "cpu.h"
#include "gpio.h"
#include "host_command.h"
+#include "ish_fwst.h"
#include "registers.h"
#include "shared_mem.h"
#include "system.h"
@@ -34,6 +35,8 @@ int system_is_reboot_warm(void)
void system_pre_init(void)
{
+ ish_fwst_set_fw_status(FWSTS_FW_IS_RUNNING);
+
task_enable_irq(ISH_FABRIC_IRQ);
#ifdef C... |
Improved JSON RPC send logging | @@ -338,8 +338,6 @@ public class StratumConnection
private async Task SendMessage(object msg, CancellationToken ct)
{
- logger.Debug(() => $"[{ConnectionId}] Sending: {JsonConvert.SerializeObject(msg)}");
-
var buffer = ArrayPool<byte>.Shared.Rent(MaxOutboundRequestLength);
try
@@ -350,6 +348,8 @@ public class StratumC... |
decision: add points by and comment from | @@ -99,6 +99,31 @@ From this keyset, we use `ksBelow` to return the correct keyset.
We make the mmap cache non-optional and only use a single cache, caching everything.
We remove the parent key of `kdbGet` and `kdbSet` and always return the keyset of the whole KDB.
+- Disadvantage: mmap implementation for Windows would... |
Refactor Bresenham to not use doubled delta values.
Makes it easier to handle the error value if it's manually set later.
Rounding errors were considered. This should be correct, otherwise tests would have failed. | @@ -135,15 +135,15 @@ class BresenhamLine {
struct State {
Point2 cursor_; // Normalized cursor position. First axis acts as the current index.
Point2 delta_; // Normalized delta vector. First axis is always longer. All values are non-negative.
- int err_; // Fractional difference between Y indexes. Is always `delta[0]... |
Fix KFUNC_PROBE calls in vfs_stat.py by adding a return value
Fix KFUNC_PROBE calls in vfs_stat.py by adding a return value of 0 | @@ -66,11 +66,11 @@ void do_create(struct pt_regs *ctx) { stats_increment(S_CREATE); }
"""
bpf_text_kfunc = """
-KFUNC_PROBE(vfs_read, int unused) { stats_increment(S_READ); }
-KFUNC_PROBE(vfs_write, int unused) { stats_increment(S_WRITE); }
-KFUNC_PROBE(vfs_fsync, int unused) { stats_increment(S_FSYNC); }
-KFUNC_PROBE... |
pg_dump: Resolve FIXME in dumpTableSchema.
Authored-by: Brent Doil | @@ -17397,11 +17397,6 @@ dumpTableSchema(Archive *fout, const TableInfo *tbinfo)
tbinfo->relkind == RELKIND_MATVIEW)
tableam = tbinfo->amname;
- /*
- * GPDB_94_MERGE_FIXME: Why gpdb doesn't pass conditionally
- * SECTION_PRE_DATA or SECTION_POST_DATA based on tbinfo->postponed_def
- * similar to upstream.
- */
ArchiveE... |
quick fix: using 20ms for openmotestm. | @@ -54,10 +54,10 @@ to return the board's description.
//===== IEEE802154E timing
-#define SLOTDURATION 15 // in miliseconds
+#define SLOTDURATION 20 // in miliseconds
// time-slot related
-#define PORT_TsSlotDuration 491 // counter counts one extra count, see datasheet
+#define PORT_TsSlotDuration 655 // counter count... |
conn: futureproof comment | ** on receipt. no further updates are provided.
**
** messages use newt framing. because the framing begins with
-** a null byte, any messages that do not contain that byte are
+** a tag byte, any messages that do not contain that byte are
** reserved for future use.
**
*/
|
Restyled: Add comment for `clang-format` | -restylers_version: '20190904'
+restylers_version: '20191031'
auto: true
restylers:
+ # TODO: Uncomment the lines below, when we switch to `clang-format` 9.
+ # - clang-format:
+ # image: restyled/restyler-clang-format:v9.0.0
+
# TODO: Enable `prettier` again, after Restyled offers Prettier 1.19
# See also: https://git... |
in_dummy_thread: change second message config to samples (typo). | @@ -139,7 +139,7 @@ static struct flb_config_map config_map[] = {
"Define dummy message"
},
{
- FLB_CONFIG_MAP_INT, "message", "1000000",
+ FLB_CONFIG_MAP_INT, "samples", "1000000",
0, FLB_TRUE, offsetof(struct flb_in_dummy_thread_config, samples),
"Define the number of samples to send"
},
|
dpdk: always display burst function name
Also change the way how we dig function pointer so it works with dpdk
21.11+
Type: improvement | @@ -602,12 +602,13 @@ format_dpdk_device (u8 * s, va_list * args)
mode.flags & RTE_ETH_BURST_FLAG_PER_QUEUE ? " (per queue)" :
"");
}
- else
- {
- s =
- format (s, "%Utx burst function: %s\n", format_white_space, indent + 2,
- ptr2sname (rte_eth_devices[xd->port_id].tx_pkt_burst));
- }
+
+#if RTE_VERSION < RTE_VERSION_... |
Fix nordic BLE files in CMake | @@ -200,9 +200,14 @@ afr_mcu_port(ble_hal)
target_sources(
AFR::ble_hal::mcu_port
INTERFACE
+ "${afr_ports_dir}/ble/aws_ble_event_manager_config.h"
+ "${afr_ports_dir}/ble/aws_ble_gap_config.h"
"${afr_ports_dir}/ble/aws_ble_hal_common_gap.c"
+ "${afr_ports_dir}/ble/aws_ble_hal_dis.c"
+ "${afr_ports_dir}/ble/aws_ble_hal... |
nimble/l2cap: Add missing proc free in ecoc reconfig response | @@ -864,6 +864,7 @@ ble_l2cap_sig_credit_base_reconfig_rsp_rx(uint16_t conn_handle,
rsp = (struct ble_l2cap_sig_credit_base_reconfig_rsp *)(*om)->om_data;
ble_l2cap_sig_coc_reconfig_cb(proc, (rsp->result > 0) ? BLE_HS_EREJECT : 0);
+ ble_l2cap_sig_proc_free(proc);
return 0;
}
|
[contract] adjust V3 hardfork height to pass tests checking tx fee | @@ -86,6 +86,7 @@ func LoadDummyChain(opts ...func(d *DummyChain)) (*DummyChain, error) {
InitContext(3)
HardforkConfig = config.AllEnabledHardforkConfig
+ HardforkConfig.V3 = types.BlockNo(100)
// To pass the governance tests.
types.InitGovernance("dpos", true)
|
Stop RDB child before flushing and parsing the RDB in Diskless replication too
We should stop RDB child in advance before flushing to reduce COW in diskless replication too. | @@ -1975,6 +1975,20 @@ void readSyncBulkPayload(connection *conn) {
/* We need to stop any AOF rewriting child before flushing and parsing
* the RDB, otherwise we'll create a copy-on-write disaster. */
if (server.aof_state != AOF_OFF) stopAppendOnly();
+ /* Also try to stop save RDB child before flushing and parsing th... |
fpgamux: Change `muxfile` to `config`
The command line option for specifying the mux configuration had
been previously changed to `config` from `muxfile`. This updates mux.cpp
to use the `config` key instead of `muxfile`. | @@ -176,7 +176,7 @@ int main(int argc, char* argv[])
return EXIT_SUCCESS;
}
- auto muxopt = opts.find("muxfile");
+ auto muxopt = opts.find("config");
if (!muxopt || !muxopt->is_set() || !path_exists(muxopt->value<std::string>()))
{
log.error("main") << "Invalid or no muxfile specified" << std::endl;
|
[hardware] Add explicit AXI cut at the boundary of the groups | @@ -342,6 +342,9 @@ module mempool_group
* AXI Interconnect *
**********************/
+ axi_tile_req_t [NumAXIMastersPerGroup-1:0] axi_mst_req;
+ axi_tile_resp_t [NumAXIMastersPerGroup-1:0] axi_mst_resp;
+
axi_hier_interco #(
.NumSlvPorts (NumTilesPerGroup ),
.NumMstPorts (NumAXIMastersPerGroup),
@@ -366,8 +369,27 @@ m... |
Comment out unimplemented PhGetProcessQuotaLimits method | @@ -5133,16 +5133,17 @@ NTSTATUS PhGetProcessQuotaLimits(
NULL
);
- if ((status == STATUS_ACCESS_DENIED) && (KphLevel() == KphLevelMax))
- {
- status = KphQueryInformationProcess(
- ProcessHandle,
- KphProcessQuotaLimits,
- &QuotaLimits,
- sizeof(QUOTA_LIMITS),
- NULL
- );
- }
+ // Not implemented (dmex)
+ //if ((statu... |
schema compilation BUGFIX check return code when precompiling extension instances
Fixes | @@ -6906,6 +6906,7 @@ lys_compile(struct lys_module *mod, int options)
} else {
/* extension definitions are compiled directly into the compiled module structure */
ret = lys_extension_precompile(&ctx, NULL, NULL, sp->extensions, &mod_c->extensions);
+ LY_CHECK_GOTO(ret, error);
}
/* ... b) connect the extension defini... |
UDP sockets have address in data->socket and it is filled
correctly, we can see this by server_init calling open_udp_socket
after initializing it, also for reuseport case, and open_udp_socket
gets the udp[i] passed, from which it uses addr.ai_addr to bind()
to and thus that is a valid address. | @@ -3340,30 +3340,9 @@ handle_udp(int fd, short event, void* arg)
/*
* sending UDP-query with server address (local) and client address to dnstap process
*/
- size_t j;
- struct sockaddr_storage ss;
- memset(&ss, 0, sizeof(ss));
- if(!data->nsd->reuseport) {
- memcpy(&ss, &data->socket->addr.ai_addr, sizeof(ss));
- } e... |
travis: Install explicit version of urllib3 for coveralls.
Coveralls requires a "recent" version of urllib3, whereas requests requires
a "not so recent" version, less than 1.23. So force urllib3 v1.22 to get
it all working. | @@ -21,8 +21,9 @@ before_script:
- sudo apt-get install -y --force-yes gcc-arm-none-eabi
# For teensy build
- sudo apt-get install realpath
- # For coverage testing (upgrade is used to get latest urllib3 version)
- - sudo pip install --upgrade cpp-coveralls
+ # For coverage testing (a specific urllib3 version is needed... |
integer BUGFIX signed int to int64 conversion
Fixes sysrepo/sysrepo#2591 | @@ -98,19 +98,23 @@ lyplg_type_store_int(const struct ly_ctx *ctx, const struct lysc_type *type, con
LY_CHECK_GOTO(ret, cleanup);
}
- /* set the value, matters for big-endian */
+ /* set the value (matters for big-endian) and get the correct int64 number */
switch (type->basetype) {
case LY_TYPE_INT8:
storage->int8 = n... |
Verify incoming STREAMS_BLOCKED frame | @@ -6810,6 +6810,44 @@ static int conn_recv_new_token(ngtcp2_conn *conn, const ngtcp2_new_token *fr) {
return 0;
}
+/*
+ * conn_recv_streams_blocked_bidi processes the incoming
+ * STREAMS_BLOCKED (0x16).
+ *
+ * This function returns 0 if it succeeds, or one of the following
+ * negative error codes:
+ *
+ * NGTCP2_ER... |
terrador: modify gpio for mb/db typec FRS_EN
Add FRS_EN default low for mb/db typec port.
BRANCH=master
TEST=Check system can power on with AC only. | @@ -91,6 +91,8 @@ GPIO(USB_C1_OC_ODL, PIN(5, 0), GPIO_ODR_HIGH)
/* There is currently no need to service this interrupt. */
GPIO(USB_C0_RT_INT_ODL, PIN(B, 7), GPIO_INPUT)
GPIO(USB_C1_RT_INT_ODL, PIN(4, 0), GPIO_INPUT)
+GPIO(USB_C0_FRS_EN, PIN(6, 0), GPIO_OUT_LOW)
+GPIO(USB_C1_FRS_EN, PIN(9, 4), GPIO_OUT_LOW)
/* Don't h... |
Add Makefile rule to generate ELF + initrd | @@ -12,9 +12,11 @@ TOOLCHAIN ?= ./i686-toolchain
# Compilers and flags
AS = nasm
AFLAGS = -f elf
+LD = $(TOOLCHAIN)/bin/i686-elf-ld
CC = $(TOOLCHAIN)/bin/i686-elf-gcc
CFLAGS = -g -ffreestanding -std=gnu99 -Wall -Wextra -I ./src
+CFLAGS = -g -ffreestanding -std=gnu99 -Wall -Wextra -fstack-protector-all -I ./src
LDFLAGS ... |
fix(docs): Fix "All" typo | @@ -98,7 +98,7 @@ The second include brings in the defines for all the keycodes (e.g. `A`, `N1`, `
### Root devicetree Node
-ALl the remaining keymap nodes will be nested inside of the root devicetree node, like so:
+All the remaining keymap nodes will be nested inside of the root devicetree node, like so:
```devicetre... |
chat-view: don't forget to sync permissions | ++ create-group
|= [=path app-path=path sec=rw-security ships=(set ship) title=@t desc=@t]
^- (list card)
- ?^ (group-scry path) ~
+ ?^ (group-scry path)
+ :~ (create-security path %village)
+ (permission-hook-poke [%add-owned path path])
+ ==
:: do not create a managed group if this is a sig path or a blacklist
::
?: ... |
lpc55xx_hic: Partial revert of "LPC55xx: Improve UART TX performance."
This reverts commit for source/hic_hal/nxp/lpc55xx/uart.c | @@ -50,6 +50,7 @@ struct {
volatile uint32_t tx_size;
uint8_t rx;
+ uint8_t tx;
} cb_buf;
void uart_handler(uint32_t event);
@@ -192,41 +193,23 @@ int32_t uart_write_free(void)
return circ_buf_count_free(&write_buffer);
}
-// Start a new TX transfer if there are bytes pending to be transferred on the
-// write_buffer b... |
odissey: parse SHOW STATS console statement | @@ -157,11 +157,25 @@ static inline int
od_console_query_show(od_console_t *console, od_parser_t *parser,
od_msgconsole_t *msg_console)
{
- (void)parser;
-
+ od_token_t token;
int rc;
- rc = od_console_show_stats(console, msg_console);
- return rc;
+ rc = od_parser_next(parser, &token);
+ switch (rc) {
+ case OD_PARSER... |
Added wsid_tracker_init test. | @@ -112,6 +112,16 @@ class wsid_list_f : public ::testing::Test {
std::uniform_int_distribution<int> distribution_;
};
+/*
+ * @test wsid_init_neg
+ *
+ * @details When wsid_tracker_init()'s n_hash_buckets parameter
+ * is greater then the max, the function returns NULL.
+ */
+TEST_F(wsid_list_f, wsid_init_neg) {
+ EXP... |
COPYING, NOTICE: Simplification for autotools-generated files
autotools-generated files can be included under the license of the
upstream code, and FSF copyright added to upstream copyright
list. Simplified debian/copyright appropriately. | @@ -6,6 +6,7 @@ Source: http://www.openprinting.org/download/cups-filters/
Files: *
Copyright: 2011-2022 OpenPrinting
1993-2007 Easy Software Products
+ 1996-2023 Free Software Foundation, Inc.
2003-2015 Tim Waugh
2003-2006 Red Hat, Inc.
2006-2012 BBR Inc.
@@ -33,10 +34,6 @@ Copyright: 2011-2022 OpenPrinting
2022 Sachi... |
neon/mls: add _mm_fnmadd_* implementations of vmls*_f*
One small step for x86, one giant "meh" for everyone else. | @@ -151,6 +151,8 @@ simde_float32x4_t
simde_vmlsq_f32(simde_float32x4_t a, simde_float32x4_t b, simde_float32x4_t c) {
#if defined(SIMDE_ARM_NEON_A32V7_NATIVE)
return vmlsq_f32(a, b, c);
+ #elif defined(SIMDE_X86_FMA_NATIVE)
+ return _mm_fnmadd_ps(b, c, a);
#else
return simde_vsubq_f32(a, simde_vmulq_f32(b, c));
#endif... |
Removed print statement in fdCPLTidePower. | @@ -3262,10 +3262,11 @@ double fdCPLTidePower(BODY *body,int iBody) {
(-2*body[iBody].iTidalEpsilon[iIndex][0] +
body[iBody].iTidalEpsilon[iIndex][8] +
body[iBody].iTidalEpsilon[iIndex][9]));
-
+ /*
printf("%lf\n",dOrbPow);
printf("%lf\n",dRotPow);
fflush(stdout);
+ */
}
return dOrbPow + dRotPow;
|
Add lgtm shield to readme | @@ -6,7 +6,7 @@ protocol. It is cross platform, written in C and designed to be a general purpos
> **Important** The MsQuic library, as well as the protocol itself, is still a work in progress. Version 1 is not yet finalized and may continue to experience breaking changes until it is finalized.
-[ {
- buffer_reset(con->request.request);
+ buffer_clear(con->request.request);
for (c = cq->first; c; c = c->next) {
size_t len = buffer_string_length(c->mem) - c->offset;
|
editable comments | @@ -5,3 +5,10 @@ input.red {
form.inline {
display: inline;
}
+
+.edit-toggle:checked ~ .edit-off {
+ display: none;
+}
+.edit-toggle:not(:checked) ~ .edit-on {
+ display: none;
+}
|
Apply linter to dotnet.c | @@ -318,9 +318,8 @@ STREAMS dotnet_parse_stream_headers(
headers.us = stream_header;
// Stream name is padded to a multiple of 4.
- stream_header = (PSTREAM_HEADER)(
- (uint8_t*) stream_header + sizeof(STREAM_HEADER) + strlen(stream_name) +
- 4 - (strlen(stream_name) % 4));
+ stream_header =
+ (PSTREAM_HEADER) ((uint8_... |
feat(fabric test):
add fabric nodes discover test case "Discover_Fail_ChainID_ERR" | @@ -487,6 +487,32 @@ START_TEST(test_003NodesDiscover_0010Discover_Fail_ChaincodeID_name_ERR)
}
END_TEST
+START_TEST(test_003NodesDiscover_0011Discover_Fail_ChainID_ERR)
+{
+ BSINT32 rtnVal;
+ BoatHlfabricTx tx_ptr;
+ BoatHlfabricWallet *g_fabric_wallet_ptr = NULL;
+ BoatHlfabricWalletConfig wallet_config = get_fabric_... |
cmd/kubectl-gadget: Don't pring warning messages to stdout
Print those messages to stderr instead to avoid an application parsing
the output to fail.
This commit is a temporal solution until we investigate why those
are printed making the integration tests to fail.
Details in | @@ -1017,9 +1017,9 @@ func genericStreams(
err := ExecPod(client, nodeName, cmd,
postProcess.OutStreams[index], postProcess.ErrStreams[index])
if err == nil {
- completion <- fmt.Sprintf("Trace completed on node %q\n", nodeName)
+ completion <- fmt.Sprintf("Trace completed on node %q", nodeName)
} else {
- completion <... |
db.yml: Move ksceSysrootUseExternalStorage as sorting order | @@ -2058,10 +2058,10 @@ modules:
ksceSysrootIsAuCodecIcConexant: 0x46E72428
ksceSysrootIsBsodReboot: 0x4373AC96
ksceSysrootIsExternalBootMode: 0x89D19090
- ksceSysrootUseExternalStorage: 0x55392965
ksceSysrootIsSafeMode: 0x834439A7
ksceSysrootIsUpdateMode: 0xB0E1FC67
ksceSysrootIsUsbEnumWakeup: 0x79C9AE10
+ ksceSysroot... |
examples: fix xmpl-msg rx_string declaration | @@ -136,7 +136,7 @@ static void rx_msg_ints(struct xmplmsg_binding *b, int ia, int ib)
}
-static void rx_msg_string(struct xmplmsg_binding *b, char *str)
+static void rx_msg_string(struct xmplmsg_binding *b, const char *str)
{
printf("server: received msg_string:\n\t%s\n", str);
// no need to free the string
|
vere: adds comments discussing protocol-version constraints | @@ -1007,6 +1007,19 @@ _ames_hear(u3_ames* sam_u,
u3_head hed_u;
u3_body bod_u;
+ // XX packet filtering needs to revised for two protocol-change scenarios
+ //
+ // - packets using old protocol versions from our sponsees
+ // these must be let through, and this is a transitive condition;
+ // they must also be forward... |
Completions: Add suggestions for option `editor` | @@ -235,6 +235,14 @@ function __fish_kdb_print_option_depth_arguments -d 'Print possible arguments fo
seq $start 10 | string replace -r '\d+' "\$0\tComplete at $description \$0 Level" | string replace -r '([02-9]|\d{2}) Level$' '$0s'
end
+function __fish_kdb_print_option_editor_arguments -d 'Print possible arguments fo... |
VERSION bump to version 1.1.26 | @@ -40,7 +40,7 @@ set(CMAKE_C_FLAGS_PACKAGE "-g -O2 -DNDEBUG")
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(LIBNETCONF2_MAJOR_VERSION 1)
set(LIBNETCONF2_MINOR_VERSION 1)
-set(LIBNETCONF2_MICRO_VERSION 25)
+set(LIBNETCONF2_MICRO_VERSION 26)
set(LIBNETCONF2_VERSION ${LIB... |
Don't leak EVP_KDF_CTX on error
Found by Coverity | @@ -41,6 +41,11 @@ int EVP_PBE_scrypt(const char *pass, size_t passlen,
int rv = 1;
EVP_KDF_CTX *kctx;
+ if (r > UINT32_MAX || p > UINT32_MAX) {
+ EVPerr(EVP_F_EVP_PBE_SCRYPT, EVP_R_PARAMETER_TOO_LARGE);
+ return 0;
+ }
+
/* Maintain existing behaviour. */
if (pass == NULL) {
pass = empty;
@@ -53,10 +58,6 @@ int EVP_PB... |
conf: parsers: new filter-kube-test for runtime tests | Name kube-custom
Format regex
Regex var\.log\.containers\.(?<pod_name>[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)_(?<namespace_name>[^_]+)_(?<container_name>.+)-(?<docker_id>[a-z0-9]{64})\.log$
+
+[PARSER]
+ Name filter-kube-test
+ Format regex
+ Regex .*kubernetes.(?<pod_name>[a-z0-9]([-a-z0-9]*[a... |
Restart Stratux on exit
The script will now restart your stratux service if you exit the script before completing.
And some aesthetics things | @@ -54,6 +54,19 @@ function STOPSTRATUX {
sleep 3
}
+function STARTSTRATUX {
+ HEAD
+ echo "Give me a few seconds to get STRATUX running again..."
+ SDRs=`systemctl start stratux.service`
+ sleep 3
+ if [ "`systemctl is-active $SERVICE`" = "active" ]
+ then
+ echo "$SERVICE is now running"
+ else
+ echo "$SERVICE did n... |
update esp tools to local dir | @@ -41,8 +41,8 @@ case $1 in
run_bmark ${mapping[$1]}
;;
hwacha)
- export RISCV=$REMOTE_ESP_DIR
- export LD_LIBRARY_PATH=$REMOTE_ESP_DIR/lib
+ export RISCV=$LOCAL_ESP_DIR
+ export LD_LIBRARY_PATH=$LOCAL_ESP_DIR/lib
make run-rv64uv-p-asm-tests-fst -C $LOCAL_SIM_DIR VERILATOR_INSTALL_DIR=$LOCAL_VERILATOR_DIR ${mapping[$1... |
bugfix (freertos): removed unused variable in tasks.c | @@ -3299,18 +3299,28 @@ BaseType_t xTaskIncrementTick( void )
{
TCB_t * pxTCB;
TaskHookFunction_t xReturn;
+#ifndef ESP_PLATFORM
UBaseType_t uxSavedInterruptStatus;
+#endif
/* If xTask is NULL then set the calling task's hook. */
pxTCB = prvGetTCBFromHandle( xTask );
/* Save the hook function in the TCB. A critical sec... |
Add ptlsclient and ptlsserver to the integration test | @@ -141,6 +141,7 @@ jobs:
EXTRA_AUTOTOOLS_OPTS="$EXTRA_AUTOTOOLS_OPTS --with-picotls"
CMAKE_OPTS="$CMAKE_OPTS -DENABLE_PICOTLS=ON"
+ echo 'HAVE_PICOTLS=1' >> $GITHUB_ENV
echo 'EXTRA_AUTOTOOLS_OPTS='"$EXTRA_AUTOTOOLS_OPTS" >> $GITHUB_ENV
echo 'CMAKE_OPTS='"$CMAKE_OPTS" >> $GITHUB_ENV
- name: Configure autotools
@@ -191,... |
docs: gprestore - remove mention of index and metadata for parallel connections. | @@ -205,10 +205,9 @@ $ <b>gprestore -backupdir /home/gpadmin/backups/ -timestamp 20171103153156 -crea
20171103:15:51:17 gprestore:gpadmin:0ee2f5fb02c9:017819-[INFO]:-Post-data metadata restore complete</codeblock></p>
<p><codeph>gprestore</codeph> does not attempt to restore global metadata for the Greenplum
System by ... |
harness: interactive tests: give console a couple seconds after starting so we avoid test-relevant output being garbled | # ETH Zurich D-INFK, Universitaetstr 6, CH-8092 Zurich. Attn: Systems Group.
##########################################################################
-import os, shutil, select, datetime, pexpect, tempfile, signal
+import os, shutil, select, datetime, pexpect, tempfile, signal, time
from pexpect import fdpexpect
impo... |
Add ECDSA+KW testing to the CI | @@ -29,6 +29,8 @@ matrix:
env: MULTI_FEATURES="sig-rsa enc-rsa validate-slot0"
- os: linux
env: MULTI_FEATURES="sig-rsa enc-kw validate-slot0 bootstrap"
+ - os: linux
+ env: MULTI_FEATURES="sig-ecdsa enc-kw validate-slot0"
# FIXME: this test actually fails and must be fixed
#- os: linux
|
BugID:19130581: fix a bug in profile-blemesh_README.md | This profile defines BLE Mesh basics and sample to join AliGenie (https://open.bot.tmall.com/) BLE Mesh network.
### Application
-- bleadv
+- blemesh_tmall
### Boards Supported
- pca10040
|
ci: add linux-headers as a h2olog runtime dependencies | @@ -65,7 +65,8 @@ RUN curl -Ls https://github.com/i110/h2spec/releases/download/v2.2.0-4e8cc7e/h2s
# bcc and bpftrace
RUN apt-get install --yes \
- libbpfcc-dev
+ libbpfcc-dev \
+ linux-headers-$(uname -r)
RUN git clone --branch kazuho/usdt-attach-all-locations https://github.com/kazuho/bpftrace.git && \
cd bpftrace &&... |
[kernel] Actual fix for NewtonEulerDS test | @@ -111,7 +111,7 @@ void NewtonEulerDSTest::testNewtonEulerDSQuaternion()
double angle= 1e24;
double angleref = 1e24;
- // angle = ::getAxisAngle(q0, axis );
+ angle = ::axisAngleFromQuaternion(q0, axis );
std::cout << "q0 angle : " <<angle<<std::endl;
std::cout << "q0 axis : " << std::endl;
axis->display();
@@ -150,9 ... |
Set default MTU for an endpoint to 9000 bytes. | @@ -263,6 +263,7 @@ main(int argc, char *argv[])
{
struct sockaddr_in sin_s, sin_c;
struct sockaddr_conn sconn;
+ struct sctp_paddrparams paddrparams;
#ifdef _WIN32
SOCKET fd_c, fd_s;
#else
@@ -413,6 +414,17 @@ main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
debug_printf("to %d.\n", cur_buf_size);
+ memset(&paddrpar... |
Fix segfault on missing provider_query_operation()
A provider without `provider_query_operation()` is admittedly quite
useless, yet technically the base provider functions are not mandatory
according to our documentation. | @@ -866,7 +866,8 @@ const OSSL_ALGORITHM *ossl_provider_query_operation(const OSSL_PROVIDER *prov,
int operation_id,
int *no_cache)
{
- return prov->query_operation(prov->provctx, operation_id, no_cache);
+ return prov->query_operation == NULL
+ ? NULL : prov->query_operation(prov->provctx, operation_id, no_cache);
}
i... |
parser: logfmt: bare keys get `true` as value, not `nil`
In notes that bare keys in logfmt lines get the wrong
value after parsing: they should get a `true` value, not `nil`. | @@ -182,7 +182,7 @@ static int logfmt_parser(struct flb_parser *parser,
msgpack_pack_str(tmp_pck, 0);
}
else {
- msgpack_pack_nil(tmp_pck);
+ msgpack_pack_true(tmp_pck);
}
}
else {
|
Use RAJA's rocPRIM. | @@ -43,9 +43,6 @@ RAJA_BUILD_PREFIX ?= $(HOME)
RAJA_BUILD_OMP_DIR ?= $(RAJA_BUILD_PREFIX)/raja_build_omp.$(AOMP_GPU)
RAJA_BUILD_HIP_DIR ?= $(RAJA_BUILD_PREFIX)/raja_build_hip.$(AOMP_GPU)
-ROCPRIM_BUILD_PREFIX ?= $(HOME)
-ROCPRIM_BUILD_DIR=${ROCPRIM_BUILD_DIR:-$ROCPRIM_BUILD_PREFIX/rocprim_build}
-
ifeq ($(RAJA_USE_HIP)... |
Add missing `poll` on OpenBSD | @@ -17,6 +17,7 @@ pkg sys =
type fcntlcmd = int64
type signo = int32
type sigflags = int32
+ type sigset = uint32
type clock = union
`Clockrealtime
@@ -43,7 +44,12 @@ pkg sys =
usec : uint64
;;
- type sigset = uint32
+
+ type pollfd = struct
+ fd : fd
+ events : uint16
+ revents : uint16
+ ;;
type sigaction = struct
ha... |
ftp.c: MLSD: fall back to LIST if error code = 500 | @@ -1362,13 +1362,18 @@ static int ftp_list_files (gftp_request * request)
if (ftpdat->feat[FTP_FEAT_MLSD]) {
ret = ftp_send_command (request, "MLSD\r\n", -1, 1, 0);
+ if (ftpdat->last_response_code == 500) {
+ request->logging_function (gftp_logging_error, request, _("* The server is broken!\n"));
+ ftpdat->feat[FTP_F... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.