message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Detect incorrect permutation block size in some cases + speedups for block size == 1 and block size == number of examples | @@ -110,12 +110,13 @@ static void SetSingleIndex(const TCalcScoreFold& fold,
const TIndexType* indices = GetDataPtr(fold.Indices);
singleIdx->yresize(docCount);
- if (docPermutation == nullptr) {
+ if (docPermutation == nullptr || permBlockSize == docCount) {
for (int doc = 0; doc < docCount; ++doc) {
(*singleIdx)[doc]... |
build: log NODE_NAME on image build | @@ -153,6 +153,7 @@ def maybe_build_image(image) {
return [(taskname): {
stage(taskname) {
node(docker_node_label) {
+ echo "Starting ${env.STAGE_NAME} on ${env.NODE_NAME}"
checkout scm
def id = imageFullName(image)
docker.withRegistry('https://hub.libelektra.org',
|
doc: fix doxygen comments in virtio.h
Fixes a recent PR that added a new API but the doxygen comments for
one of the parameters didn't match the parameter name. | @@ -904,7 +904,7 @@ int virtio_pci_modern_cfgread(struct vmctx *ctx, int vcpu, struct pci_vdev *dev,
* @param dev Pointer to struct pci_vdev which emulates a PCI device.
* @param coff Register offset in bytes within PCI configuration space.
* @param bytes Access range in bytes.
- * @param value The value to write.
+ * ... |
http.request to http.req and http.response to http.resp | @@ -98,8 +98,8 @@ In AppScope 1.0.0, a few event and metric schema elements, namely `title` and `d
**HTTP**
- [http.req](#metrichttpreq)
-- [http.request.content_length](#metrichttpreqcontentlength)
-- [http.response.content_length](#metrichttprespcontentlength)
+- [http.req.content_length](#metrichttpreqcontentlength)... |
Keep clock_ticks in YR_RULE and YR_STRING structures even if PROFILING_ENABLED is not defined.
This prevents issues caused by mismatching structure sizes when the library is compiled with PROFILING_ENABLED and the program using it does not. | @@ -235,9 +235,8 @@ typedef struct _YR_STRING
YR_MATCHES matches[MAX_THREADS];
YR_MATCHES unconfirmed_matches[MAX_THREADS];
- #ifdef PROFILING_ENABLED
+ // Used only when PROFILING_ENABLED is defined
clock_t clock_ticks;
- #endif
} YR_STRING;
@@ -253,9 +252,8 @@ typedef struct _YR_RULE
DECLARE_REFERENCE(YR_STRING*, str... |
client/server: Handle NGTCP2_ERR_STREAM_SHUT_WR | @@ -641,7 +641,9 @@ int Client::on_write_stream(uint32_t stream_id, uint8_t fin, Buffer &data) {
stream_id, fin, data.rpos(), data.left(),
util::timestamp());
if (n < 0) {
- if (n == NGTCP2_ERR_STREAM_DATA_BLOCKED) {
+ switch (n) {
+ case NGTCP2_ERR_STREAM_DATA_BLOCKED:
+ case NGTCP2_ERR_STREAM_SHUT_WR:
return 0;
}
std... |
Update MQTT library. | @@ -167,11 +167,9 @@ class MQTTClient:
# messages processed internally.
def wait_msg(self):
res = self.sock.recv(1)
- self.sock.setblocking(True)
- if res is None:
- return None
if res == b"":
- raise OSError(-1)
+ return None
+ self.sock.setblocking(True)
if res == b"\xd0": # PINGRESP
sz = self.sock.recv(1)[0]
assert ... |
inclavared: add stormgbs back to authors list | [package]
name = "inclavared"
version = "0.0.1"
-authors = ["Tianjia Zhang <tianjia.zhang@linux.alibaba.com>"]
+authors = ["Tianjia Zhang <tianjia.zhang@linux.alibaba.com>",
+ "stormgbs <stormgbs@gmail.com>"]
build = "build.rs"
edition = "2018"
|
sysdeps/linux: temporary band-aid for lack of mode argument in sys_open | @@ -51,7 +51,8 @@ int sys_anon_free(void *pointer, size_t size) {
}
int sys_open(const char *path, int flags, int *fd) {
- auto ret = do_syscall(NR_open, path, flags, 0);
+ // TODO: pass mode in sys_open() sysdep
+ auto ret = do_syscall(NR_open, path, flags, 0666);
if(int e = sc_error(ret); e)
return e;
*fd = sc_int_re... |
fixed topology check for json tests incorrectly failing when multiple toplogy options are provided | @@ -722,12 +722,12 @@ check_scenario_version (const bson_t *scenario)
while (bson_iter_next (&iter)) {
bson_iter_bson (&iter, &version_info);
- if (!check_version_info (&version_info)) {
- return false;
+ if (check_version_info (&version_info)) {
+ return true;
}
}
- return true;
+ return false;
}
return check_version_... |
Add request to cite CLASS to the note | @@ -67,7 +67,7 @@ In preparation for constraining cosmology with the Large Synoptic Survey Telesco
The Core Cosmology Library is written in C and incorporates the {\tt CLASS} code \citep{class} to provide predictions for the matter power spectrum.\footnote{Future versions of the library will incorporate other power-spe... |
Update docs to reflect JSON benchmarks | module Iodine
# Iodine includes a lenient JSON parser that attempts to ignore JSON errors when possible and adds some extensions such as Hex numerical representations and comments.
#
- # On my system, the Iodine JSON parser is more than 30% faster than the native Ruby parser. When using symbols the speed increase is ev... |
add new keyword 4 RUN_JAVA_PROGRAM pt 1 | @@ -31,17 +31,21 @@ def extract_macro_calls2(unit, macro_value_name):
def onrun_java_program(unit, *args):
+ args = list(args)
"""
Custom code generation
@link: https://wiki.yandex-team.ru/yatool/java/#kodogeneracijarunjavaprogram
"""
- flat, kv = common.sort_by_keywords({'IN': -1, 'IN_DIR': -1, 'OUT': -1, 'OUT_DIR': -... |
tracing: trace_reset_buffer: fail when trace_buffer_va == NULL. | @@ -34,6 +34,12 @@ void trace_reset_buffer(void)
{
uintptr_t i, new;
+ assert(trace_buffer_va);
+ if (!trace_buffer_va) {
+ debug_printf("%s: trace_buffer_va == NULL! expect badness when tracing!\n", __FUNCTION__);
+ return;
+ }
+
struct trace_buffer *buf = (struct trace_buffer *)trace_buffer_va;
//buf->master = (struc... |
Add some comments to yr_bitmask_find_non_colliding_offset. | @@ -39,7 +39,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Finds the smaller offset within bitmask A where bitmask B can be accommodated
// without bit collisions. A collision occurs when bots bitmasks have a bit set
// to 1 at the same offset. This function assumes that the first bit in B is 1
-... |
py/objtype: Remove TODO about storing attributes to classes.
This behaviour is tested in basics/class_store.py and follows CPython. | @@ -1018,8 +1018,6 @@ STATIC void type_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
} else {
// delete/store attribute
- // TODO CPython allows STORE_ATTR to a class, but is this the correct implementation?
-
if (self->locals_dict != NULL) {
assert(self->locals_dict->base.type == &mp_type_dict); // MicroPython r... |
Use generic kernels for ishama,shasum,shdot,shrot | @@ -117,16 +117,16 @@ macro(SetDefaultL1)
set(SHAMAXKERNEL ../arm/amax.c)
set(SHMAXKERNEL ../arm/max.c)
set(SHMINKERNEL ../arm/min.c)
- set(ISHAMAXKERNEL iamax.S)
+ set(ISHAMAXKERNEL ../arm/iamax.c)
set(ISHAMINKERNEL ../arm/iamin.c)
set(ISHMAXKERNEL ../arm/imax.c)
set(ISHMINKERNEL ../arm/imin.c)
- set(SHASUMKERNEL asum... |
tools: Fix gdb version check
Closes | "esp32c3"
],
"version_cmd": [
- "riscv32-esp-elf-gdb",
+ "riscv32-esp-elf-gdb-no-python",
"--version"
],
"version_regex": "GNU gdb \\(esp-gdb\\) ([a-z0-9.-_]+)",
|
Check Bashisms: Ignore `.gitignore` | @@ -14,7 +14,8 @@ find -version > /dev/null 2>&1 > /dev/null && FIND=find || FIND='find -E'
# The script `check-env-dep` uses process substitution which is **not** a standard `sh` feature!
# See also: https://unix.stackexchange.com/questions/151925
scripts=$($FIND scripts/ -type f -not -regex \
- '.+(/docker/.+|check-e... |
Remove -Wpedantic | ######################################################
##### Set global variables for all gst Makefiles #####
######################################################
-CFLAGS=-std=c99 -Wall -Wextra -Wpedantic -I./include -g
+CFLAGS=-std=c99 -Wall -Wextra -I./include -g
PREFIX=/usr/local
GST_TARGET=client/gst
GST_CORELIB=... |
Restarting coding GeneFull options: ExonOverIntron | @@ -6,8 +6,8 @@ void Transcriptome::geneFullAlignOverlap_CR(uint nA, Transcript **aAll, int32 st
{
readAnnot.geneFull_CR={};
- for (uint32 iA=0; iA<nA; iA++) {
- Transcript &a = *aAll[iA];//one unique alignment only
+ for (uint32 iA=0; iA<nA; iA++) {//only includes aligns that are entirely inside genes (?)
+ Transcript... |
keymgmt: fix coverity unchecked return value | @@ -255,9 +255,10 @@ int otherparams_to_params(const EC_KEY *ec, OSSL_PARAM_BLD *tmpl,
name))
return 0;
- if ((EC_KEY_get_enc_flags(ec) & EC_PKEY_NO_PUBKEY) != 0)
- ossl_param_build_set_int(tmpl, params,
- OSSL_PKEY_PARAM_EC_INCLUDE_PUBLIC, 0);
+ if ((EC_KEY_get_enc_flags(ec) & EC_PKEY_NO_PUBKEY) != 0
+ && !ossl_param_... |
chat-view: limit initial scrollback to 25 msgs
Provided "load backlog on-scroll" actually works, you don't really need
all that much on initial load. | [[%give %fact ~ %json !>(*json)]~ this]
(on-watch:def path)
::
+ ++ message-limit 25
+ ::
++ truncated-inbox-scry
^- inbox
=/ =inbox .^(inbox %gx /=chat-store/(scot %da now.bol)/all/noun)
|= envelopes=(list envelope)
^- (list envelope)
=/ length (lent envelopes)
- ?: (lth length 100)
+ ?: (lth length message-limit)
env... |
Windows ssize_t define fix | @@ -72,7 +72,16 @@ extern "C" {
#define int32_t __int32
#endif
+#ifndef ssize_t
+#ifdef _WIN64
#define ssize_t __int64
+#elif defined _WIN32
+#define ssize_t int
+#else
+#error "Unknown platform!"
+#endif
+#endif
+
#define MSG_EOR 0x8
#ifndef EWOULDBLOCK
#define EWOULDBLOCK WSAEWOULDBLOCK
|
klocwork nlog fix | @@ -690,8 +690,10 @@ load_nlog_dict_v2(
}
Finish:
+ if (parts != NULL) {
FREE_POOL_SAFE(parts[0]);
FREE_POOL_SAFE(parts[1]);
FREE_POOL_SAFE(parts);
+ }
return head;
}
\ No newline at end of file
|
workflows: prevent re-trigger of generation workflow on its own changes | @@ -5,6 +5,9 @@ on:
push:
branches:
- master
+ # Do not re-trigger when our own PRs are merged
+ paths-ignore:
+ - codebase-structure.svg
jobs:
update_diagram:
name: Update the codebase structure diagram
@@ -17,7 +20,7 @@ jobs:
uses: actions/checkout@v3
- name: Update diagram
- # TODO: still not "official" enough for a... |
sysdeps/linux: add sys_open_dir, sys_read_entries | @@ -487,6 +487,18 @@ int sys_ptrace(long req, pid_t pid, void *addr, void *data, long *out) {
return 0;
}
+int sys_open_dir(const char *path, int *fd) {
+ return sys_open(path, O_DIRECTORY, 0, fd);
+}
+
+int sys_read_entries(int handle, void *buffer, size_t max_size, size_t *bytes_read) {
+ auto ret = do_syscall(NR_get... |
ASan: Fix setup on FreeBSD | @@ -141,10 +141,10 @@ if (ENABLE_ASAN)
set (EXTRA_FLAGS "${EXTRA_FLAGS} -fsanitize=integer")
set (EXTRA_FLAGS "${EXTRA_FLAGS} -fsanitize-blacklist=\"${CMAKE_SOURCE_DIR}/tests/sanitizer.blacklist\"")
- # in case the ubsan library exists, link it otherwise some tests will fail due to missing symbols on unix
- if (UNIX AN... |
Documentation change to Wifi only: remove net bit from README.md. | @@ -5,7 +5,6 @@ The Wi-Fi APIs are split into the following groups:
- `<no group>`: init/deinit of the Wi-Fi API and adding a Wi-Fi instance.
- `cfg`: configuration of the Wi-Fi module.
-- `net`: connection to a Wi-Fi network.
- `sock`: sockets, for exchanging data (but see the [common/sock](/common/sock) component for... |
signal: correct sigset() return value & errno
ref:
The dispositions for SIGKILL and SIGSTOP cannot be changed. | #include <signal.h>
#include <assert.h>
+#include <errno.h>
/****************************************************************************
* Public Functions
@@ -98,9 +99,14 @@ _sa_handler_t sigset(int signo, _sa_handler_t func)
{
_sa_handler_t disposition;
sigset_t set;
- int ret;
+ int ret = -EINVAL;
- DEBUGASSERT(GOO... |
Rename bcheckAssignment2 | @@ -351,7 +351,7 @@ func (q *checker) bcheckAssignment(lhs *a.Expr, op t.ID, rhs *a.Expr) error {
if _, err := q.bcheckExpr(lhs, 0); err != nil {
return err
}
- if err := q.bcheckAssignment2(lhs, lhs.MType(), op, rhs); err != nil {
+ if err := q.bcheckAssignment1(lhs, lhs.MType(), op, rhs); err != nil {
return err
}
//... |
Fixed issue where it would send data via socket each second when managed by systemd.
Fixes | @@ -1237,11 +1237,11 @@ open_term (char **buf) {
/* Determine if reading from a pipe, and duplicate file descriptors so
* it doesn't get in the way of curses' normal reading stdin for
* wgetch() */
-static void
+static FILE *
set_pipe_stdin (void) {
char *term = NULL;
FILE *pipe = stdin;
- int fd1, fd2, i;
+ int fd1, f... |
Debug message: print min and max | */
#include "grib_api_internal.h"
+#include <float.h>
#ifdef ECCODES_ON_WINDOWS
/* Replace C99/Unix rint() for Windows Visual C++ (only before VC++ 2013 versions) */
@@ -341,7 +342,7 @@ static void print_values(grib_context* c, const grib_util_grid_spec2* spec,
{
size_t i=0;
int isConstant = 1;
- double v = 0;
+ double... |
I made a fix to FindVisItQt5 to include libQt5Concurrent in a Linux
distribution. | # was separate logic for adding it to Windows and Mac, but Linux also
# needs it.
#
+# Eric Brugger, Tue Oct 10 12:33:50 PDT 2017
+# Added Concurrent to the visit_qt_modules for Linux. Previously,
+# it was only adding it for Mac, but Linux also needs it.
+#
#************************************************************... |
fix accidental removal of mkl lapack | @@ -100,6 +100,7 @@ plasma-installer_%{version}/setup.py \
--fflags="${RPM_OPT_FLAGS} ${PIC_OPT}" \
--blaslib="-L/intel/mkl/lib/em64t -lmkl_intel_lp64 -lmkl_sequential -lmkl_core" \
--cblaslib="-L/intel/mkl/lib/em64t -lmkl_intel_lp64 -lmkl_sequential -lmkl_core" \
+ --lapacklib="-L/intel/mkl/lib/em64t -lmkl_intel_lp64 ... |
replace FIFO36E1 with xpm_fifo_sync in axis_ram_writer | @@ -60,21 +60,22 @@ module axis_ram_writer #
assign int_wlast_wire = &int_addr_reg[3:0];
assign int_rden_wire = m_axi_wready & int_wvalid_reg;
- FIFO36E1 #(
- .FIRST_WORD_FALL_THROUGH("TRUE"),
- .ALMOST_EMPTY_OFFSET(13'd15),
- .DATA_WIDTH(72),
- .FIFO_MODE("FIFO36_72")
+ xpm_fifo_sync #(
+ .WRITE_DATA_WIDTH(AXIS_TDATA_... |
* Add missing flag from last commit | @@ -195,7 +195,7 @@ NTSTATUS PhMapViewOfEntireFile(
status = PhCreateFileWin32(
&FileHandle,
FileName,
- ((FILE_EXECUTE | FILE_READ_ATTRIBUTES | FILE_READ_DATA) |
+ ((FILE_READ_ATTRIBUTES | FILE_READ_DATA) |
(!ReadOnly ? (FILE_APPEND_DATA | FILE_WRITE_ATTRIBUTES | FILE_WRITE_DATA) : 0)) | SYNCHRONIZE,
0,
FILE_SHARE_REA... |
Update README.md for IBM Watson IoT Platform
Update README.md to show how to enable TLS optional to use IBM Watson IoT Platform for cc26xx-web-demo | @@ -166,3 +166,9 @@ the state of the LED.
Bear in mind that, even though the topic suggests that messages are of json
format, they are in fact not. This was done in order to avoid linking a json
parser into the firmware.
+
+IBM Watson IoT Platform
+----------------------------
+To use IBM Watson IoT Platform, you have ... |
nvbios: Add INIT_ZM_ALTERNATING16_I2CREG devinit opcode (0xB3)
Write a set of new word values to a set of I2C registers (zero mask).
This opcode causes a given number of registers in a device to be
written with specified values through a given I2C port.
Seen on [core86,) e.g. Turing.
Source: | @@ -816,6 +816,17 @@ void printscript (uint16_t soff) {
printf ("UNKB2\n");
soff += 22;
break;
+ case 0xb3:
+ printcmd (soff, 4);
+ printf ("ZM_ALTERNATING16_I2CREG\tI2C[0x%02x][0x%02x]\n", bios->data[soff+1], bios->data[soff+2]);
+ cnt = bios->data[soff+3];
+ soff += 4;
+ while (cnt--) {
+ printcmd (soff, 3);
+ printf... |
derivatives in for distrot+nbody, but have a seg fault | @@ -240,7 +240,7 @@ void VerifyOrbitData(BODY *body,CONTROL *control,OPTIONS *options,int iBody) {
iLine = 0;
while (feof(fileorb) == 0) {
- fscanf(fileorb, "%lf %lf %lf %lf %lf %lf %lf", &dttmp, &datmp, &detmp, &ditmp, &daptmp, &dlatmp, &dmatmp);
+ fscanf(fileorb, "%lf %lf %lf %lf %lf %lf %lf", &dttmp, &datmp, &detmp,... |
Fix issue that tc_pthread_once fail when run tc repeatly
g_once was not intialized when tc start.
Now g_once is initialized to PTHREAD_ONCE_INIT | @@ -59,7 +59,7 @@ pthread_t thread[PTHREAD_CNT];
pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER;
pthread_cond_t g_cond;
pthread_key_t g_tlskey;
-static pthread_once_t g_once = PTHREAD_ONCE_INIT;
+static pthread_once_t g_once;
static bool g_bpthreadcallback = false;
static int g_cnt;
@@ -1182,6 +1182,10 @@ static v... |
Fix test_psa_crypto_config_accel_hash_use_psa build when including libtestdriver1 PSA headers from programs | @@ -1913,7 +1913,7 @@ component_test_psa_crypto_config_accel_hash_use_psa () {
# but is already disabled in the default config
loc_accel_flags="$loc_accel_flags $( echo "$loc_accel_list" | sed 's/[^ ]* */-DMBEDTLS_PSA_ACCEL_&/g' )"
- make CFLAGS="$ASAN_CFLAGS -Werror -I../tests/include -I../tests -DPSA_CRYPTO_DRIVER_TE... |
Add Proper usage of pattern to UIColor and remove unnecessary functions and code | @@ -224,7 +224,7 @@ rgb hsv2rgb(hsv in) {
@public
enum BrushType _type;
UIImage* _image;
- id _pattern;
+ woc::StrongCF<CGPatternRef> _pattern;
__CGColorQuad _components;
// Note: This should be part of the CGColor struct
woc::StrongCF<CGColorSpaceRef> _colorSpace;
@@ -509,22 +509,7 @@ rgb hsv2rgb(hsv in) {
return nil;... |
[net][sal] Remove SAL_USING_POSIX dependence for lwIP stack. | #error "POSIX poll/select, stdin need file system(RT_USING_DFS) and device file system(RT_USING_DFS_DEVFS)"
#endif
-#if defined(RT_USING_LWIP) && !defined(SAL_USING_POSIX)
-#error "POSIX poll/select, stdin need file BSD socket API(SAL_USING_POSIX)"
-#endif
-
#if !defined(RT_USING_LIBC)
#error "POSIX layer need standard... |
Modify argument name to avoid ambiguity | @@ -554,12 +554,12 @@ extern esp_t esp;
esp_mem_free_s((void **)&(name)); \
} while (0)
#if ESP_CFG_USE_API_FUNC_EVT
-#define ESP_MSG_VAR_SET_EVT(name, evt_fn, evt_arg) do {\
- (name)->evt_fn = (evt_fn); \
- (name)->evt_arg = (evt_arg); \
+#define ESP_MSG_VAR_SET_EVT(name, e_fn, e_arg) do {\
+ (name)->evt_fn = (e_fn); ... |
kukui: Disable MFALLOW and TYPEC console commands
Disable CONFIG_CMD_MFALLOW and CONFIG_CMD_TYPEC commands to free up
RO flash space on kukui boards.
TEST=Build all
BRANCH=None | #undef CONFIG_CMD_CRASH
#undef CONFIG_CMD_HCDEBUG
#undef CONFIG_CMD_IDLE_STATS
+#undef CONFIG_CMD_MFALLOW
#undef CONFIG_CMD_MMAPINFO
#undef CONFIG_CMD_PWR_AVG
#undef CONFIG_CMD_REGULATOR
#undef CONFIG_CMD_SLEEPMASK
#undef CONFIG_CMD_SLEEPMASK_SET
#undef CONFIG_CMD_SYSLOCK
+#undef CONFIG_CMD_TYPEC
#undef CONFIG_HOSTCMD_... |
Removed sudo for compilation | @@ -33,10 +33,12 @@ install:
- cmake --version
- python --version
script:
-- python setup.py build
-- nosetests tests/run_tests.py --all --debug --detailed-errors --verbose --process-restartworker --with-coverage --cover-package=pyccl
+- make -Cbuild
- sudo make -Cbuild install
- check_ccl
+- python setup.py build
+- n... |
workflow/backup: password protect | #include <ui/screen_stack.h>
#include <workflow/backup.h>
#include <workflow/confirm.h>
+#include <workflow/password_enter.h>
#include <workflow/sdcard.h>
#include <workflow/status.h>
+#include <workflow/unlock.h>
#define MAX_EAST_UTC_OFFSET (50400) // 14 hours in seconds
#define MAX_WEST_UTC_OFFSET (-43200) // 12 hour... |
Ensure the _check functions take parse text as char not XML_Char
_run_character_check() et al pass their parse text to XML_Parse()
via _XML_Parse_SINGLE_BYTES(). Both of these expect the parse text
as "const char *", not "const XML_Char *". | @@ -579,7 +579,7 @@ accumulate_attribute(void *userData, const XML_Char *UNUSED_P(name),
static void
-_run_character_check(const XML_Char *text, const XML_Char *expected,
+_run_character_check(const char *text, const XML_Char *expected,
const char *file, int line)
{
CharData storage;
@@ -596,7 +596,7 @@ _run_character_... |
parallel-libs/opencoarrays: fix patch formatting | --- a/src/tests/unit/teams/CMakeLists.txt 2018-08-10 09:01:51.000000000 -0500
-+++ b/src/tests/unit/teams/CMakeLists.txt2018-10-26 17:02:12.963100898 -0500
++++ b/src/tests/unit/teams/CMakeLists.txt 2018-10-26 17:21:11.478962894 -0500
caf_compile_executable(team_number team-number.f90)
-caf_compile_executable(get_commu... |
toggle scratchpad with super+shift+s | @@ -5174,6 +5174,11 @@ void createscratchpad(const Arg *arg) {
return;
c = selmon->sel;
+ if (c->tags == 1 << 20) {
+ tag(&((Arg){.ui = 1 << ( selmon->pertag->curtag -1 )}));
+ return;
+ }
+
c->tags = 1 << 20;
c->issticky = selmon->scratchvisible;
if (!c->isfloating)
|
edit diff BUGFIX edit same leaf with different value
It is properly forbidden now. | @@ -2543,11 +2543,11 @@ sr_edit_add_check_same_node_op(sr_session_ctx_t *session, const char *xpath, con
/* find the node */
set = lyd_find_path(session->dt[session->ds].edit, uniq_xpath);
free(uniq_xpath);
- if (!set || (set->number != 1)) {
+ if (!set || (set->number > 1)) {
ly_set_free(set);
SR_ERRINFO_INT(&err_info... |
sockeye: update xeon phi description | @@ -87,11 +87,14 @@ module XEONPHI {
memory (0 bits 40) SMPT_IN
SMPT_IN blockoverlays OUT bits(34) // SMPT remaps in 16GB blocks
+ memory (0 bits 16) MMIO
+ MMIO accepts [(*)]
+
memory (0 bits 40) KNC_SOCKET
KNC_SOCKET maps [
- (0x0000000000 to 0x00fedfffff) to GDDR at (0x000000000 to 0x0fedfffff);
- (0x00fee01000 to 0... |
stress using a new line. | @@ -18,7 +18,9 @@ You can read more about [facil.io](http://facil.io) on the [facil.io](http://fac
However, when starting a new project, it's often easiest to simply fork this project and place your own source code in the `dev` folder, perhaps updating the `makefile` to make it more compatible with your project's folde... |
test: fix coverity & resource leak | @@ -208,12 +208,14 @@ static int test_lib(void)
fprintf(stderr, "Failed to close libcrypto\n");
goto end;
}
+ cryptolib = SD_INIT;
if (test_type == CRYPTO_FIRST || test_type == SSL_FIRST) {
if (!sd_close(ssllib)) {
fprintf(stderr, "Failed to close libssl\n");
goto end;
}
+ ssllib = SD_INIT;
}
# if defined(OPENSSL_NO_PI... |
chacha/asm/chacha-ppc.pl: fix big-endian build.
It's kind of a "brown-bag" bug, as I did recognize the problem and
verified an ad-hoc solution, but failed to follow up with cross-checks
prior filing previous merge request. | @@ -438,9 +438,9 @@ my ($a,$b,$c,$d)=@_;
"&vxor ('$b','$b','$c')",
"&vrlw ('$b','$b','$seven')",
- "&vsldoi ('$c','$c','$c',8)",
- "&vsldoi ('$b','$b','$b',$odd?4:12)",
- "&vsldoi ('$d','$d','$d',$odd?12:4)"
+ "&vrldoi ('$c','$c',8)",
+ "&vrldoi ('$b','$b',$odd?4:12)",
+ "&vrldoi ('$d','$d',$odd?12:4)"
);
}
@@ -1334,11... |
usb_mux: Simplify logging to reduce code size
BRANCH=none
TEST=make buildall
Commit-Ready: Philip Chen
Tested-by: Philip Chen | @@ -24,7 +24,7 @@ void usb_mux_init(int port)
ASSERT(port >= 0 && port < CONFIG_USB_PD_PORT_COUNT);
res = mux->driver->init(mux->port_addr);
if (res)
- CPRINTS("Error initializing mux port(%d): %d", port, res);
+ CPRINTS("Err: init mux port(%d): %d", port, res);
/* Apply board specific initialization */
if (mux->board_... |
Get rid of warning on BSDs. | @@ -59,6 +59,12 @@ extern char **environ;
#include <mach/mach.h>
#endif
+/* Setting C99 standard makes this not available, but it should
+ * work/link properly if we detect a BSD */
+#if defined(JANET_BSD) || defined(JANET_APPLE)
+void arc4random_buf(void *buf, size_t nbytes);
+#endif
+
#endif /* JANET_REDCUED_OS */
/*... |
Improve cmake_build, supports the specified config and target | @@ -593,7 +593,16 @@ end
-- do build for cmake/build
function _build_for_cmakebuild(package, configs, opt)
local cmake = assert(find_tool("cmake"), "cmake not found!")
- os.vrunv(cmake.program, {"--build", os.curdir()}, {envs = opt.envs or buildenvs(package)})
+ local argv = {"--build", os.curdir()}
+ if opt.config the... |
fix: closes send empty reqbody instead of NULL pointer | @@ -134,10 +134,12 @@ del(client *client, const uint64_t channel_id, dati *p_channel)
.ok_obj = p_channel,
};
+ struct sized_buffer req_body = {"", 0};
+
user_agent::run(
&client->ua,
&resp_handle,
- NULL,
+ &req_body, //empty POSTFIELDS
HTTP_DELETE,
"/channels/%llu", channel_id);
}
|
Prepare debian changelog for v0.8.0 tag
debian changelog for v0.8.0 tag | +bcc (0.8.0-1) unstable; urgency=low
+
+ * Support for kernel up to 5.0
+
+ -- Brenden Blanco <bblanco@gmail.com> Fri, 11 Jan 2019 17:00:00 +0000
+
bcc (0.7.0-1) unstable; urgency=low
* Support for kernel up to 4.18
|
Update: Optimizations the profiler revealed | @@ -63,11 +63,12 @@ static Decision Cycle_ProcessSensorimotorEvent(Event *e, long currentTime)
Event_SetTerm(e, e->term); // TODO make sure that hash needs to be calculated once instead already
IN_DEBUG( puts("Event was selected:"); Event_Print(e); )
//determine the concept it is related to
+ bool e_hasVariable = Varia... |
Don't print to stderr in Makefile to detect version. Fix | @@ -27,7 +27,7 @@ PREFIX?=/usr/local
INCLUDEDIR?=$(PREFIX)/include
BINDIR?=$(PREFIX)/bin
LIBDIR?=$(PREFIX)/lib
-JANET_BUILD?="\"$(shell git log --pretty=format:'%h' -n 1 || echo local)\""
+JANET_BUILD?="\"$(shell git log --pretty=format:'%h' -n &>2 /dev/null || echo local)\""
CLIBS=-lm -lpthread
JANET_TARGET=build/jane... |
max payne 1 - second camera overlay fix | @@ -547,8 +547,9 @@ DWORD WINAPI Init(LPVOID bDelay)
Screen.bDrawBordersForCameraOverlay = false;
*(uint8_t*)(regs.edi + 0x14E) = 1;
- //what happens here is check for some camera coordinates, in this particular cutscene 1.81 is used https://i.imgur.com/A7wRrgk.gifv
- if ((*(uint32_t*)(regs.esp + 0x10) == 0x3FE842CF &&... |
Clean up formatting of error reporting. | @@ -404,8 +404,8 @@ void putucon(Stab *st, Ucon *uc)
old = getucon(st, uc->name);
if (old)
- lfatal(old->loc, "`%s already defined on %s:%d", namestr(uc->name), fname(uc->loc),
- lnum(uc->loc));
+ lfatal(old->loc, "`%s already defined on %s:%d",
+ namestr(uc->name), fname(uc->loc), lnum(uc->loc));
setns(uc->name, st->n... |
Fix resetting of sequence number length. | @@ -247,7 +247,7 @@ owerror_t openoscoap_protect_message(
xor_arrays(nonce, partialIV, nonce, AES_CCM_16_64_128_IV_LEN);
// do not encode sequence number and ID in the response
requestSeq = NULL;
- requestSeq = 0;
+ requestSeqLen = 0;
requestKid = NULL;
requestKidLen = 0;
}
|
fix leftover overlay pointer | @@ -5289,8 +5289,13 @@ unmanage(Client *c, int destroyed)
{
Monitor *m = c->mon;
XWindowChanges wc;
- if (c == selmon->overlay)
- selmon->overlay = NULL;
+ if (c == selmon->overlay) {
+ Monitor *tm;
+ for (tm = mons; tm; tm = tm->next) {
+ tm->overlay = NULL;
+ }
+ }
+
detach(c);
detachstack(c);
|
Readd back 'uip_stat' if UIP_STATISTICS is enabled | #define LOG_MODULE "IPv6"
#define LOG_LEVEL LOG_LEVEL_IPV6
+#if UIP_STATISTICS == 1
+struct uip_stats uip_stat;
+#endif /* UIP_STATISTICS == 1 */
+
/*---------------------------------------------------------------------------*/
/**
* \name Layer 2 variables
|
Pass VP matrix to shader. | @@ -33,8 +33,8 @@ float ChipmunkDebugDrawOutlineWidth = 1.0f;
#define GLSL33(x) "#version 330\n" #x
-static sg_pipeline pip;
-static sg_bindings bind;
+static sg_pipeline pipeline;
+static sg_bindings bindings;
static sg_pass_action pass_action;
typedef struct {float x, y;} float2;
@@ -42,6 +42,11 @@ typedef struct {ui... |
samples: hssi: print rx_count
Add the rx_count register to the list of registers printed out
at the end of the program. Wait until the packets have been sent
before printing the register contents. | #define CSR_DST_ADDR_HI 0x1012
#define CSR_SRC_ADDR_LO 0x1013
#define CSR_SRC_ADDR_HI 0x1014
+#define CSR_RX_COUNT 0x1015
#define CSR_MLB_RST 0x1016
#define CSR_TX_COUNT 0x1017
@@ -199,8 +200,6 @@ public:
hafu->mbox_write(CSR_CTRL1, reg);
- print_registers(std::cout, hafu);
-
uint32_t count;
const uint64_t interval = 1... |
Update EBNF grammar (typealias and more)
Adds the typealias syntax to the EBNF syntax in the manual and also updates other things that were
out of date in the EBNF grammar.
Fixes | @@ -363,29 +363,38 @@ local x2 : integer = ns[4] -- run-time error
Here is the complete syntax of Pallene in extended BNF.
As usual, {A} means 0 or more As, and \[A\] means an optional A.
- program ::= {toplevelrecord} {toplevelvar} {toplevelfunc}
+ program ::= {toplevelrecord | topleveltypealias | toplevelvar | toplev... |
virtio: fix the interrupt handling for packed queues
Type: fix | @@ -996,7 +996,9 @@ VNET_DEVICE_CLASS_TX_FN (virtio_device_class) (vlib_main_t * vm,
clib_spinlock_lock_if_init (&vring->lockp);
- if ((vring->used->flags & VRING_USED_F_NO_NOTIFY) == 0 &&
+ if (packed && (vring->device_event->flags != VRING_EVENT_F_DISABLE))
+ virtio_kick (vm, vring, vif);
+ else if ((vring->used->fla... |
mangoapp: layer: remove unused stuff | @@ -304,7 +304,6 @@ static VkResult overlay_CreateInstance(
instance_data->engineVersion = engineVersion;
struct stat info;
- // string path = "/var/run/user/" + to_string(getuid()) + "/mangoapp/";
string path = "/tmp/mangoapp/";
string command = "mkdir -p " + path;
string json_path = path + to_string(getpid()) + ".jso... |
Drop '-Wno-maybe-uninitialized' from list of warnings. | @@ -360,7 +360,7 @@ if test -n "$GCC"; then
WARNINGS="-Wall -Wunused"
dnl Drop some not-useful/unreliable warnings...
- for warning in char-subscripts format-truncation format-y2k maybe-uninitialized switch unused-result; do
+ for warning in char-subscripts format-truncation format-y2k switch unused-result; do
AC_MSG_C... |
Set entry->core_id in ocf_engine_lookup_map_entry
core_id should be set in this function. The fact that
it is missing might lead to incorrect behaviour e.g. in
case of promotion policy. | @@ -51,6 +51,7 @@ void ocf_engine_lookup_map_entry(struct ocf_cache *cache,
entry->status = LOOKUP_MISS;
entry->coll_idx = cache->device->collision_table_entries;
entry->core_line = core_line;
+ entry->core_id = core_id;
line = ocf_metadata_get_hash(cache, hash);
|
Fix compilation error in lv_roller | @@ -74,7 +74,7 @@ lv_obj_t * lv_roller_create(lv_obj_t * par, const lv_obj_t * copy)
lv_roller_ext_t * ext = lv_obj_allocate_ext_attr(new_roller, sizeof(lv_roller_ext_t));
lv_mem_assert(ext);
if(ext == NULL) return NULL;
- ext->ddlist.roller_ddlist = 0; /*Do not draw arrow by default*/
+ ext->ddlist.draw_arrow = 0; /*D... |
rp2/mpthreadport.h: Cast core_state to _mp_state_thread_t.
Required for user C++ code to build successfully against ports/rp2. | @@ -41,7 +41,7 @@ static inline void mp_thread_set_state(struct _mp_state_thread_t *state) {
}
static inline struct _mp_state_thread_t *mp_thread_get_state(void) {
- return core_state[get_core_num()];
+ return (struct _mp_state_thread_t *)core_state[get_core_num()];
}
static inline void mp_thread_mutex_init(mp_thread_m... |
Enable stack protector for Android builds | @@ -37,6 +37,11 @@ if(IOS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -ftemplate-depth=1024")
endif(IOS)
+if(ANDROID)
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector")
+endif(ANDROID)
+
if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_... |
Clang warning: Possible null pointer | @@ -26,7 +26,7 @@ static int encode_file(char *template_file, char *output_file)
double *values;
in = fopen(template_file,"rb"); assert(in);
- if (opt_write) {
+ if (opt_write && output_file) {
out = fopen(output_file,"wb"); assert(out);
}
|
add constrain | @@ -177,25 +177,8 @@ bool Turtlebot3MotorDriver::controlMotor(const float wheel_separation, float* va
wheel_velocity_cmd[LEFT] = lin_vel - (ang_vel * wheel_separation / 2);
wheel_velocity_cmd[RIGHT] = lin_vel + (ang_vel * wheel_separation / 2);
- goal_velocity[LEFT] = wheel_velocity_cmd[LEFT] * VELOCITY_CONSTANT_VALUE;... |
chip/stm32/usart_rx_dma.c: Format with clang-format
BRANCH=none
TEST=none | @@ -27,8 +27,7 @@ void usart_rx_dma_init(struct usart_config const *config)
.channel = dma_config->channel,
.periph = (void *)&STM32_USART_RDR(base),
.flags = (STM32_DMA_CCR_MSIZE_8_BIT |
- STM32_DMA_CCR_PSIZE_8_BIT |
- STM32_DMA_CCR_CIRC),
+ STM32_DMA_CCR_PSIZE_8_BIT | STM32_DMA_CCR_CIRC),
};
if (IS_ENABLED(CHIP_FAMIL... |
README: Document missing dependencies
We depend on other layers from meta-oe. | @@ -66,7 +66,7 @@ branch: master
revision: HEAD
URI: git://git.openembedded.org/meta-openembedded
-layers: meta-oe, meta-multimedia
+layers: meta-oe, meta-multimedia, meta-networking, meta-python
branch: master
revision: HEAD
|
Prevent double close on `write_req.cb` errors | @@ -491,6 +491,7 @@ static void write_streaming_body(h2o_http2_conn_t *conn, h2o_http2_stream_t *str
if (stream->req.write_req.cb(stream->req.write_req.ctx, is_end_stream) != 0) {
stream_send_error(conn, stream->stream_id, H2O_HTTP2_ERROR_STREAM_CLOSED);
h2o_http2_stream_reset(conn, stream);
+ return;
}
/* close the H2... |
Install our custom CA to the system trust store
This will only work on certain ubuntu versions | @@ -22,8 +22,13 @@ fi
if [ "$SSL" != "nossl" ]; then
export MONGOC_TEST_SSL_WEAK_CERT_VALIDATION="on"
export MONGOC_TEST_SSL_PEM_FILE="tests/x509gen/client.pem"
+ sudo cp tests/x509gen/ca.pem /usr/local/share/ca-certificates/cdriver.crt || true
+ if [ -f /usr/local/share/ca-certificates/cdriver.crt ]; then
+ sudo updat... |
yin parser BUGFIX distinguish between enum and bit correctly | @@ -529,14 +529,22 @@ yin_parse_enum_bit(struct yin_parser_ctx *ctx, struct yin_arg_record *attrs, con
{
assert(enum_kw == YANG_BIT || enum_kw == YANG_ENUM);
struct lysp_type_enum *en;
- LY_ARRAY_NEW_RET(ctx->xml_ctx.ctx, type->enums, en, LY_EMEM);
- LY_CHECK_RET(yin_parse_attribute(ctx, attrs, YIN_ARG_NAME, &en->name,... |
fpsensor: Add help descriptions for console commands
All the other console commands have help descriptions except for the
fingerprint sensor commands.
BRANCH=none
TEST="help list" in hatch_fp console | @@ -646,7 +646,8 @@ int command_fpcapture(int argc, char **argv)
return rc;
}
-DECLARE_CONSOLE_COMMAND(fpcapture, command_fpcapture, "", "");
+DECLARE_CONSOLE_COMMAND(fpcapture, command_fpcapture, NULL,
+ "Capture fingerprint in PGM format");
int command_fpenroll(int argc, char **argv)
{
@@ -681,7 +682,8 @@ int command... |
Fix adc-channel typo
Merges | @@ -49,8 +49,8 @@ typedef enum {
ADC1_CHANNEL_5, /*!< ADC1 channel 5 is GPIO6 */
ADC1_CHANNEL_6, /*!< ADC1 channel 6 is GPIO7 */
ADC1_CHANNEL_7, /*!< ADC1 channel 7 is GPIO8 */
- ADC1_CHANNEL_8, /*!< ADC1 channel 6 is GPIO9 */
- ADC1_CHANNEL_9, /*!< ADC1 channel 7 is GPIO10 */
+ ADC1_CHANNEL_8, /*!< ADC1 channel 8 is G... |
in_exec_wasi: do not set event_type | @@ -108,7 +108,6 @@ static int in_exec_wasi_collect(struct flb_input_instance *ins,
flb_time_append_to_msgpack(&out_time, &mp_pck, 0);
msgpack_sbuffer_write(&mp_sbuf, out_buf, out_size);
- ctx->ins->event_type = FLB_INPUT_LOGS;
flb_input_log_append(ins, NULL, 0,
mp_sbuf.data, mp_sbuf.size);
msgpack_sbuffer_destroy(&mp_... |
power_button_x86: Initialize to on if button is pressed
This change sets the initial power button state to init-on
if the power button is pressed.
BRANCH=none
TEST=Enter recovery mode by power+recovery button press. | @@ -227,6 +227,9 @@ static void set_initial_pwrbtn_state(void)
*/
CPRINTS("PB init-off");
power_button_pch_release();
+ } else if (power_button_is_pressed()) {
+ CPRINTS("PB init-on");
+ pwrbtn_state = PWRBTN_STATE_INIT_ON;
} else {
/*
* All other EC reset conditions power on the main processor so
|
iperf: test->ctrl_sck exists per test not a stream.
iperf_client_end tries to close test->ctrl_sck per stream.
This is not correct because test->ctrl_sck exists per test. | @@ -347,10 +347,11 @@ int iperf_client_end(struct iperf_test *test)
iperf_set_send_state(test, IPERF_DONE);
+ close(test->ctrl_sck);
+
/* Close all stream sockets */
SLIST_FOREACH(sp, &test->streams, streams) {
close(sp->socket);
- close(test->ctrl_sck);
}
return 0;
|
yolint: fix infra/ migrations | @@ -58,34 +58,8 @@ migrations:
- a.yandex-team.ru/games/backend/pkg/leader_boards_service # ST1003: should not use underscores in package names
- a.yandex-team.ru/games/backend/pkg/users_service # ST1003: should not use underscores in package names
- a.yandex-team.ru/games/backend/internal/db_utils # ST1003: should not... |
Windows CI remove those pesky carriage returns. | @@ -102,6 +102,7 @@ exit /b 0
mkdir dist
janet.exe tools\gendoc.janet > dist\doc.html
janet.exe tools\removecr.janet dist\doc.html
+janet.exe tools\removecr.janet build\janet.c
copy build\janet.c dist\janet.c
copy src\mainclient\shell.c dist\shell.c
|
Eliminate gcc warning. | @@ -96,8 +96,8 @@ celix_log_level_e celix_logUtils_logLevelFromStringWithCheck(const char *str, ce
return level;
}
-static inline void celix_logUtils_inlinePrintBacktrace(FILE *stream) {
#ifndef __UCLIBC__
+static inline void celix_logUtils_inlinePrintBacktrace(FILE *stream) {
void *bbuf[64];
int nrOfTraces = backtrace... |
decision: split decision and rationale | @@ -202,17 +202,17 @@ Possible copy-on-write implementations are described in [another decision](../1_
## Decision
Implement the copy-on-write approach.
-As we need COW for change tracking anyway, it makes sense to also use this approach for the internal cache.
-This also does not require any changes or restrictions to... |
bootutil: fix unitialized variable warning
For some configurations, eg CONFIG_BOOT_DIRECT_XIP=y, fih_rc might
never be initialized; initialize and fix warning. | @@ -2207,7 +2207,7 @@ context_boot_go(struct boot_loader_state *state, struct boot_rsp *rsp)
uint32_t img_sz;
uint32_t img_loaded = 0;
#endif /* MCUBOOT_RAM_LOAD */
- fih_int fih_rc;
+ fih_int fih_rc = FIH_FAILURE;
memset(state, 0, sizeof(struct boot_loader_state));
|
typo in message
Tested-by: Build Bot | @@ -95,7 +95,7 @@ void Connstart::unwatch() {
static void try_enable_sockopt(lcbio_SOCKET *sock, int cntl) {
lcb_error_t rv = lcbio_enable_sockopt(sock, cntl);
if (rv == LCB_SUCCESS) {
- lcb_log(LOGARGS(sock, DEBUG), CSLOGFMT "Successfuly set %s", CSLOGID(sock), lcbio_strsockopt(cntl));
+ lcb_log(LOGARGS(sock, DEBUG), ... |
Replace `ioutil.ReadFile` -> `os.ReadFile` | @@ -3,7 +3,6 @@ package util
import (
"errors"
"fmt"
- "io/ioutil"
"os"
"os/user"
"strconv"
@@ -246,7 +245,7 @@ func PidUser(pid int) (string, error) {
func PidScoped(pid int) bool {
// Look for libscope in /proc maps
- pidMapFile, err := ioutil.ReadFile(fmt.Sprintf("/proc/%v/maps", pid))
+ pidMapFile, err := os.ReadFi... |
[core] replace strncasecmp w/ buffer_eq_icase_ssn
replace strncasecmp() w/ buffer_clen() and buffer_eq_icase_ssn()
(portability; remove use of alt sys-strings.h portability header) | #include <limits.h>
#include <stdlib.h> /* strtol(), strtoll() */
#include <string.h> /* memmove() */
-#include <strings.h> /* strcasecmp(), strncasecmp() */
#include "buffer.h"
#include "chunk.h"
@@ -290,7 +289,8 @@ http_range_process (request_st * const r, const buffer * const http_range)
/* An origin server MUST ign... |
update README to build michelfralloc | @@ -7,5 +7,9 @@ in order to provide a dynamic memory allocation system with variable block sizes
To build the library, first get **ptmalloc3**: http://www.malloc.de/malloc/ptmalloc3-current.tar.gz and put the `ptmalloc3` directory of the archive
at the root of this directory.
-Then you can build plugins_malloc by runni... |
remove timing template for 15ms (not used). | @@ -169,16 +169,6 @@ enum ieee154e_atomicdurations_enum {
wdAckDuration = (3000/PORT_US_PER_TICK), // 3000us (measured 1000us)
#endif
-#if SLOTDURATION==15
- TsTxOffset = (4000/PORT_US_PER_TICK), // 4000us
- TsLongGT = (1300/PORT_US_PER_TICK), // 1300us
- TsTxAckDelay = (4606/PORT_US_PER_TICK), // 4606us
- TsShortGT = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.