message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Install setuptools for python3. | @@ -16,7 +16,7 @@ pushd "$DEPS_DIR"
doxygen \
graphviz \
python-dev \
- python-setuptools \
+ python3-setuptools \
ruby-dev \
php-dev \
liblua5.3-dev \
|
docs: Change sentences of Implementation Framework
fix issue | @@ -36,13 +36,13 @@ Figure 3-1 The position of BoAT in the blockchain interactive network
## BoAT Implementation Framework
-Boat follows a hierarchical design consisting of Interface Layer, Protocol Layer, RPC Layer, Vendor Dependency Layer, Tool and Utility. The specific functions of each layer are as follows:
-+ Inte... |
usb_serial: Migrate console.py to python2/3 compatible
Trace pyusb source code to make sure the correct interface, and change
them properly.
BRANCH=master
TEST=None | -#!/usr/bin/env python2
+#!/usr/bin/env python
# Copyright 2016 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Allow creation of uart/console interface via usb google serial endpoint."""
+
+# Note: This is a py2/3 co... |
Alternate home/end escape codes for urxvt.
These are not mentioned in the xterm docs but are needed to get those keys in urxvt, and don't conflict with anything else. | @@ -485,6 +485,12 @@ static void xterm_handle_input_escape() {
case 6:
send_sdl_key_press(SDLK_PAGEDOWN, false);
break;
+ case 7: // For urxvt
+ send_sdl_key_press(SDLK_HOME, false);
+ break;
+ case 8: // For urxvt
+ send_sdl_key_press(SDLK_END, false);
+ break;
case 11:
send_sdl_key_press(SDLK_F1, false);
break;
|
Formatting & declaration cleanse. | @@ -142,7 +142,7 @@ const char *test_get_option_argument(const char *option);
* rather link to one of the helper main() methods.
*/
-void add_test(const char *test_case_name, int (*test_fn) ());
+void add_test(const char *test_case_name, int (*test_fn) (void));
void add_all_tests(const char *test_case_name, int (*test_... |
decision: make clear that API is an open point | @@ -19,6 +19,10 @@ functions handling out the pointer).
- store it twice
- store it once but in one memory block
+## Decision
+
+Remove the escaped name from `struct _Key` and use it only when necessary.
+
## Open Points
Clarify and reduce [terminology](/doc/help/elektra-glossary.md):
@@ -29,9 +33,8 @@ Clarify and redu... |
Add Cray implementation of SIMDE__VECTORIZE | -/* Copyright (c) 2017-2018 Evan Nemerson <evan@nemerson.com>
+/* Copyright (c) 2017-2019 Evan Nemerson <evan@nemerson.com>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
# define SIMDE__VECTORIZE_SAFELEN(l) SIMDE__VECTORIZE
# define SIMD... |
unity: unity_gets remove unnecessary UINT8_MAX clamp + extra comments | @@ -42,18 +42,20 @@ static void esp_unity_readline(char* dst, size_t len)
continue;
}
if (c == '\r' || c == '\n') {
+ /* Add null terminator and return on newline */
unity_putc('\n');
dst[write_index] = '\0';
return;
} else if (c == '\b') {
if (write_index > 0) {
+ /* Delete previously entered character */
write_index-... |
i think it has arrow sounds? kebab | @@ -88,7 +88,6 @@ for bp in range(len(beatmap_info)):
repeatedTime.append(beatmap_info[bp]["repeated"])
durationTime.append(beatmap_info[bp]["duration"])
endTime.append(beatmap_info[bp]["end time"])
-print(repeatedTime)
for x in range(len(my_info)):
start_index = int(my_info[x].time/1000 * rate)
@@ -109,15 +108,17 @@ f... |
Add missing include file to doc
Reported by Ingo Schwarze | @@ -28,6 +28,8 @@ PKCS7_ISSUER_AND_SERIAL_digest
int X509_NAME_digest(const X509_NAME *data, const EVP_MD *type,
unsigned char *md, unsigned int *len);
+ #include <openssl/pkcs7.h>
+
int PKCS7_ISSUER_AND_SERIAL_digest(PKCS7_ISSUER_AND_SERIAL *data,
const EVP_MD *type, unsigned char *md,
unsigned int *len);
|
oc_collection: add NULL check | @@ -816,7 +816,7 @@ oc_handle_collection_request(oc_method_t method, oc_request_t *request,
}
pay = pay->next;
}
- if (oc_string_len(*href) == 0) {
+ if (!href || (href && oc_string_len(*href) == 0)) {
ecode = oc_status_code(OC_STATUS_BAD_REQUEST);
goto processed_request;
}
|
missing fail catch | @@ -124,6 +124,12 @@ module MSpec
rescue Exception => exc
register_exit 1
actions :exception, ExceptionState.new(current && current.state, location, exc)
+
+ #RHO
+ puts "FAIL: #{current} - #{exc.message}\n" + (@backtrace ? exc.backtrace.join("\n") : "")
+ @exc_count+=1
+ #RHO
+
return false
end
end
|
hv:use spinlock_irqsave_obtain api for uart
replace spinlock_obtain/spinlock_release with spinlock_irqsave_obtain
and spinlock_irqrestore_release to avoid dead lock for uart module.
this uart lock may be accessed in ISR context like this path:
dispatch_interrupt->pr_err/pr_xxx or printf
->console_write->uart16550_puts | @@ -172,20 +172,20 @@ void uart16550_init(bool early_boot)
char uart16550_getc(void)
{
char ret = -1;
+ uint64_t rflags;
if (!uart.enabled) {
return ret;
}
- spinlock_obtain(&uart.rx_lock);
-
+ spinlock_irqsave_obtain(&uart.rx_lock, &rflags);
/* If a character has been received, read it */
if ((uart16550_read_reg(uart,... |
ipsec: ipsec cli nexthop error
Type: fix | @@ -885,7 +885,7 @@ create_ipsec_tunnel_command_fn (vlib_main_t * vm,
;
else if (unformat (line_input, "del"))
is_add = 0;
- else if (unformat (line_input, "nh &U", unformat_ip_address, &nh))
+ else if (unformat (line_input, "nh %U", unformat_ip_address, &nh))
;
else
{
|
fixed register reference in field item | @@ -1747,7 +1747,7 @@ A field may define an \em enumeratedValue in order to make the display more intu
<br><b>Usage:</b>
- Always use the full qualifying path, which must start with the peripheral \tagem{name}, when deriving from another scope.
(for example, in periperhal \token{A} and \token{registerX}, derive from \t... |
dbuild: Support build test option
Support build test in dbuild to allow users to check build errors before pushing commits | @@ -105,6 +105,7 @@ function SELECT_OPTION()
if [ "${STATUS}" == "BUILT" ]; then
echo " \"d. Download\""
fi
+ echo " \"t. Build Test\""
echo " \"x. Exit\""
echo ======================================================
read SELECTED_START
@@ -132,7 +133,6 @@ function SELECT_OPTION()
6|smartfs)
BUILD smartfs
;;
-
d|downloa... |
add subspace to kspace preconditioner | @@ -14,21 +14,26 @@ Note the square in the definition. The preconditioner can be used directly as wi
<ones> contains ones with image dimensions
+-B file subspace basis
-g use GPU
-h help
EOF
)
-usage="Usage: $0 [-h] [-g] <ones> <trajectory> <output>"
+usage="Usage: $0 [-h] [-g] [-B <basis>] <ones> <trajectory> <output>... |
Remove binding to luaL_loadstring
The code is now using `luaL_loadbuffer`, which allows safer handling of
NUL containing strings. | @@ -466,10 +466,6 @@ foreign import ccall "lauxlib.h luaL_unref"
foreign import capi "lauxlib.h luaL_loadfile"
luaL_loadfile :: LuaState -> Ptr CChar -> IO StatusCode
--- | See <https://www.lua.org/manual/5.3/manual.html#luaL_loadstring luaL_loadstring>
-foreign import ccall SAFTY "lauxlib.h luaL_loadstring"
- luaL_loa... |
prevent read beyond end of buffer when string ends with malformed utf | @@ -422,8 +422,6 @@ static unsigned char utf16_literal_to_utf8(const unsigned char * const input_poi
unsigned char utf8_length = 0;
unsigned char sequence_length = 0;
- /* get the first utf16 sequence */
- first_code = parse_hex4(first_sequence + 2);
if ((input_end - first_sequence) < 6)
{
/* input ends unexpectedly */... |
prefer monotonic clock for stats (issue | @@ -412,10 +412,14 @@ mi_msecs_t _mi_clock_now(void) {
}
#else
#include <time.h>
-#ifdef CLOCK_REALTIME
+#if defined(CLOCK_REALTIME) || defined(CLOCK_MONOTONIC)
mi_msecs_t _mi_clock_now(void) {
struct timespec t;
+ #ifdef CLOCK_MONOTONIC
+ clock_gettime(CLOCK_MONOTONIC, &t);
+ #else
clock_gettime(CLOCK_REALTIME, &t);
+... |
esptool_py: call idf.py monitor with python explicitly
Closes | # Many of these are read when generating flash_app_args & flash_project_args
idf_build_get_property(target IDF_TARGET)
idf_build_get_property(python PYTHON)
+idf_build_get_property(idf_path IDF_PATH)
set(chip_model ${target})
if(target STREQUAL "esp32s3")
@@ -14,6 +15,7 @@ endif()
set(ESPTOOLPY ${python} "${CMAKE_CURRE... |
Fix error code logging | @@ -132,7 +132,7 @@ static const char *strerrorcode(uint16_t error_code) {
return "INVALID_MIGRATION";
default:
if (0x100u <= error_code && error_code <= 0x1ffu) {
- return "FRAME_ERROR";
+ return "CRYPTO_ERROR";
}
return "(unknown)";
}
|
sys/sysinfo: align sysinfo define with linux
__reserved is a meaningful macro definition in msvc, cannot use this name
Fix visual studio Compiler Error: | struct sysinfo
{
- unsigned long uptime;
- unsigned long loads[3];
- unsigned long totalram;
- unsigned long freeram;
- unsigned long sharedram;
- unsigned long bufferram;
- unsigned long totalswap;
- unsigned long freeswap;
- unsigned short procs;
- unsigned short pad;
- unsigned long totalhigh;
- unsigned long freehi... |
Add default "Center Text" pp config | @@ -44,6 +44,7 @@ defaultppconfig = {
"Alpha": 1,
"Font": "arial.ttf",
"Background": os.path.join(os.path.dirname(__file__), "res/pptemplate.png"),
+ "Center Text": False,
"Hitresult x": 50,
"Hitresult y": 150,
"Hitresult Size": 16,
@@ -55,7 +56,7 @@ defaultppconfig = {
"Hitresult Alpha": 1,
"Hitresult Font": "arial.tt... |
[cmake] openblas also installs a cmake file | @@ -232,6 +232,19 @@ if(NOT BLAS_FOUND)
set(OPENBLAS_LIB_NAME "openblas")
endif()
message(STATUS "Try to find blas in openblas ...")
+
+ # OpenBLAS has a CMake module now .. yeah --xhub
+ if (OPENBLAS_LIB_NAME STREQUAL "openblas")
+ find_package(OpenBLAS)
+ if (OpenBLAS_FOUND)
+ set(BLAS_LIBRARIES ${OpenBLAS_LIBRARIES}... |
netinit: Unregister notification at the end in netinit_monitor | @@ -760,7 +760,8 @@ static int netinit_monitor(void)
/* TODO: Stop the PHY notifications and remove the signal handler. */
errout_with_notification:
-# warning Missing logic
+ ifr.ifr_mii_notify_event.sigev_notify = SIGEV_NONE;
+ ioctl(sd, SIOCMIINOTIFY, (unsigned long)&ifr);
errout_with_sigaction:
sigaction(CONFIG_NET... |
add version switch for new mbedtls api | @@ -210,8 +210,14 @@ int tls_client_get_id(uint8_t id[], size_t len, const char query[])
if (strchr(query, '.')) {
mbedtls_sha256_context ctx;
mbedtls_sha256_init(&ctx);
+
+#if (MBEDTLS_VERSION_MAJOR >= 0x02070000)
mbedtls_sha256_update_ret(&ctx, (uint8_t*) &query[0], strlen(query));
mbedtls_sha256_finish_ret(&ctx, has... |
Disable hashboard by default in king.
The vere implementation always disables hashboard, and this was why
king was so much slower. | @@ -204,10 +204,13 @@ opts = do
<> value Nothing
<> hidden
- oHashless <- switch $ short 'S'
- <> long "hashless"
- <> help "Disable battery hashing"
- <> hidden
+ -- Always disable hashboard. Right now, urbit is almost unusable with this
+ -- flag enabled and it is disabled in vere.
+ let oHashless = True
+ -- oHashle... |
add option to specify output filename | @@ -168,6 +168,12 @@ def main():
type=int,
default=1,
help="specify the channel to monitor.")
+ parser.add_argument(
+ "-o",
+ "--output",
+ type=str,
+ default="fftmonitor",
+ help="specify the output filename.")
args = parser.parse_args()
monitor = FFTMonitor()
@@ -187,7 +193,7 @@ def main():
ffts = monitor.get_ffts(... |
added additional information to status | @@ -653,8 +653,10 @@ if(eapolmsgtimestamperrorcount > 0)
if((deauthenticationcount +disassociationcount) > 100)
{
printf("\nWarning: too many deauthentication/disassociation frames detected!\n"
- "That can cause that an ACCESS POINT reset the EAPOL TIMER, renew the ANONCE and set the PMKID to zero.\n"
- "This could pre... |
Allow arp-input node to learn IPv4 neighbors from GARP packets | @@ -1163,6 +1163,11 @@ arp_input (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * frame)
clib_host_to_net_u16 (ETHERNET_ARP_OPCODE_request) &&
(dst_is_local0 == 0))
{
+ /* learn from GARP packet */
+ if (arp0->ip4_over_ethernet[0].ip4.as_u32 ==
+ arp0->ip4_over_ethernet[1].ip4.as_u32)
+ error0 = arp_learn ... |
Fix k, a order in jupyter notebook | },
"outputs": [],
"source": [
- "pk_lin = ccl.linear_matter_power(cosmo, a, k)"
+ "pk_lin = ccl.linear_matter_power(cosmo, k, a)"
]
},
{
},
"outputs": [],
"source": [
- "pk_nl = ccl.nonlin_matter_power(cosmo, a, k)"
+ "pk_nl = ccl.nonlin_matter_power(cosmo, k, a)"
]
},
{
|
fix: makefile creates .exe files | @@ -36,13 +36,13 @@ DB_OBJS := $(DB_SRC:%=$(OBJDIR)/%.o)
OBJS := $(COMMON_OBJS) $(DISCORD_OBJS) $(GITHUB_OBJS) $(ORKA_OBJS)
BOT_SRC := $(wildcard bots/bot-*.c)
-BOT_EXES := $(patsubst %.cpp, %.exe, $(BOT_SRC))
+BOT_EXES := $(patsubst %.c, %.exe, $(BOT_SRC))
BOT1_SRC := $(wildcard bots-1/bot-*.c)
-BOT1_EXES := $(patsubs... |
Use exptime to check the sticky item if possible. | @@ -268,12 +268,12 @@ static void increase_collection_space(struct default_engine *engine, ENGINE_ITEM
info->stotal += inc_space;
/* Currently, stats.lock is useless since global cache lock is held. */
//pthread_mutex_lock(&engine->stats.lock);
+ hash_item *it = (hash_item*)COLL_GET_HASH_ITEM(info);
#ifdef ENABLE_STICK... |
[hardware] Put axi_rab_wrap in Level 1 | @@ -22,6 +22,7 @@ sources:
- hardware/src/address_scrambler.sv
# Level 1
- hardware/src/mempool_tile.sv
+ - hardware/src/axi_rab_wrap.sv
# Level 2
- hardware/src/mempool_group.sv
# Level 3
@@ -29,7 +30,6 @@ sources:
# Level 4
- hardware/src/mempool_wrap.sv
- hardware/src/ctrl_registers.sv
- - hardware/src/axi_rab_wrap.... |
[numerics] correct issue after merge | @@ -870,18 +870,10 @@ extern "C"
int NM_gesv_expert_multiple_rhs(NumericsMatrix* A, double *b, unsigned int n_rhs, unsigned keep);
-<<<<<<< HEAD
- /** Computation of the inverse of a NumericsMatrix A using NM_LU_expert
- * \param[in,out] A a NumericsMatrix.
- * \return the matrix inverse.
-=======
-
-
/** Computation o... |
README: Run mdformat
BRANCH=none
TEST=view in gitiles | @@ -151,8 +151,8 @@ branch1...branch2 as needed):
git log --left-right --graph --cherry-pick --oneline branch1...branch2
```
-For example, to see the difference between cros/main and the HEAD of the
-current branch:
+For example, to see the difference between cros/main and the HEAD of the current
+branch:
```bash
git l... |
Fix `rand_r` detection in autotools. | @@ -71,6 +71,10 @@ AC_SEARCH_LIBS([floor], [m])
AC_SUBST(BSON_HAVE_GMTIME_R, 0)
AC_CHECK_FUNC(gmtime_r, [AC_SUBST(BSON_HAVE_GMTIME_R, 1)])
+# Check for rand_r()
+AC_SUBST(BSON_HAVE_RAND_R, 0)
+AC_CHECK_FUNC(rand_r, [AC_SUBST(BSON_HAVE_RAND_R, 1)], [], [#include <stdlib.h>])
+
# Check for pthreads. We might need to make... |
Do a sanity check for XNVCtrl and GLX headers | @@ -67,6 +67,7 @@ glimgui_egl_dep = null_dep
if get_option('with_x11').enabled() and \
get_option('with_xnvctrl').enabled()
+ xnvctrl_h_dep = cc.has_header('NVCtrl/NVCtrl.h')
pre_args += '-DHAVE_XNVCTRL'
vklayer_files += files(
'loaders/loader_nvctrl.cpp',
@@ -75,6 +76,7 @@ if get_option('with_x11').enabled() and \
end... |
BugID:18963455: Rework menuconfig and related makefile for ble mesh shell. | @@ -16,6 +16,13 @@ endif
$(NAME)_COMPONENTS += bluetooth.bt_mesh.ref-impl
+ifeq ($(en_mesh_shell),1)
+GLOBAL_DEFINES += CONFIG_BT_MESH_SHELL CONFIG_BT_MESH_CFG_CLI CONFIG_BT_MESH_HEALTH_CLI
+CONFIG_BT_MESH_SHELL := y
+CONFIG_BT_MESH_CFG_CLI := y
+CONFIG_BT_MESH_HEALTH_CLI := y
+endif
+
$(NAME)_SOURCES := ./src/access.c... |
OpenSSL::Util::Pod: allow slashes in names
The names in the NAME section may describe headers, which contain a slash
for OpenSSL headers. We deal with that by converting slashes to dashes
for the file names. | @@ -140,7 +140,7 @@ sub extract_pod_info {
$podinfo{lastsecttext} =~ s| - .*$||;
my @names =
- map { s|\s+||g; $_ }
+ map { s|\s+||g; s|/|-|g; $_ }
split(m|,|, $podinfo{lastsecttext});
return ( section => $podinfo{section}, names => [ @names ] );
|
CI: Update GitHub checkout action to v3 | @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- name: Set up Ruby 2.3
uses: ruby/setup-ruby@master
with:
@@ -36,7 +36,7 @@ jobs:
name: Linux, Ruby ${{ matrix.ruby-version }}, IM ${{ matrix.imagemagick-version.major-minor }}
steps:
-... |
blockresolver: Add call for memory test to testmod_blockresolver.c | @@ -88,6 +88,7 @@ int main (int argc, char ** argv)
init (argc, argv);
test_BlockresolverRead ("blockresolver/test.block");
+ test_BlockresolverRead ("blockresolver/memorytest.block");
test_BlockresolverWrite ("blockresolver/test.block", "blockresolver/compare.block");
print_result ("testmod_blockresolver");
|
Fix to call gc unregister for channel receiver on_gc_dispose_channel | @@ -55,6 +55,7 @@ static void on_gc_dispose_channel(mrb_state *mrb, void *_ctx)
{
struct st_h2o_mruby_channel_context_t *ctx = _ctx;
assert(ctx != NULL); /* ctx can only be disposed by gc, so data binding has been never removed */
+ mrb_gc_unregister(mrb, ctx->receiver);
free(ctx);
}
|
14.1 will use amd-stg-open | <!-- Lightning -->
<project remote="gerritgit" path="rocm-compilersupport" name="lightning/ec/support" revision="release/rocm-rel-4.5" groups="unlocked" />
<project remote="gerritgit" path="rocm-device-libs" name="lightning/ec/device-libs" revision="release/rocm-rel-4.5" groups="unlocked" />
-<project remote="gerritgit... |
Require the indexing process to be fast | categorization system. The reason for this is to reduce the work for a plug-in developer to add
Preset Discovery support for their existing preset file format and not have to be concerned with
all the different hosts and how they want to receive the metadata.
+
+ VERY IMPORTANT:
+ - the whole indexing process has to be... |
hv: vm_load: set zeropage just past boot args
Which should in Linux guest gpa, not in hypervisor HVA. | @@ -47,8 +47,9 @@ static uint64_t create_zero_page(struct vm *vm)
uint64_t gpa, addr;
/* Set zeropage in Linux Guest RAM region just past boot args */
- hva = gpa2hva(vm, (uint64_t)sw_linux->bootargs_load_addr);
- zeropage = (struct zero_page *)((char *)hva + MEM_4K);
+ gpa = (uint64_t)sw_linux->bootargs_load_addr + ME... |
[examples] fixed gcc warning: value computed is not used | @@ -80,7 +80,7 @@ void mem_test(uint32_t address, uint32_t size )
for(i=0; i<size/sizeof(uint32_t); i++)
{
*p_uint32_t = (uint32_t)p_uint32_t;
- *p_uint32_t++;
+ p_uint32_t++;
}
p_uint32_t = (uint32_t *)address;
|
Initialize callback and its context with NULL | @@ -87,6 +87,8 @@ struct s2n_config *s2n_config_new(void)
new_config->application_protocols.size = 0;
new_config->status_request_type = S2N_STATUS_REQUEST_NONE;
new_config->nanoseconds_since_epoch = get_nanoseconds_since_epoch;
+ new_config->client_hello_cb = NULL;
+ new_config->client_hello_cb_ctx = NULL;
new_config->... |
fix target run with single arguments | @@ -54,7 +54,8 @@ function _do_run_target(target)
end
-- get run arguments
- local args = option.get("arguments") or target:get("runargs")
+ local args = {}
+ table.join2(args, option.get("arguments") or target:get("runargs"))
-- debugging?
if option.get("debug") then
|
Change incoming_encrypted to incoming_1rtt | @@ -1723,7 +1723,7 @@ void picoquic_ecn_accounting(picoquic_cnx_t* cnx,
/*
* Processing of client encrypted packet.
*/
-int picoquic_incoming_encrypted(
+int picoquic_incoming_1rtt(
picoquic_cnx_t* cnx,
uint8_t* bytes,
picoquic_packet_header* ph,
@@ -2056,7 +2056,7 @@ int picoquic_incoming_segment(
}
break;
case picoqu... |
chat: include .^ paths in its eval failure case
Also updates the top-level message to avoid problematic terminology. | (mock [subject nock.p.minted] |=(^ ~))
?- -.toon
%0 [(sell type.p.minted p.toon) ~]
- %1 [leaf+"scries unsupported in chat eval" ~]
+ %1 :- leaf+".^ unsupported in chat eval"
+ (turn ;;((list path) p.toon) smyt)
%2 [leaf+"crash!" p.toon]
==
--
|
chore(specs/discord): replace 'struct discord_file' with 'struct discord_attachment' | [
{"name":"name", "type":{"base":"char", "dec":"*"}, "comment":"name of the sticker (2-30 characters)"},
{"name":"description", "type":{"base":"char", "dec":"*"}, "comment":"description of the sticker (empty or 2-100 characters)"},
- {"name":"file", "type":{ "base":"struct discord_file", "dec":"*" }, "loc":"multipart",... |
Improve wait mechanism in attach_test | @@ -42,6 +42,22 @@ endtest(){
rm -f $EVT_FILE
}
+wait_for_proc_start(){
+ local proc_name=$1
+ for i in `seq 1 8`;
+ do
+ if pidof $proc_name > /dev/null; then
+ echo "Process $proc_name started"
+ return
+ fi
+ echo "Sleep for the $i time because $proc_name did not started"
+ sleep 1
+ done
+
+ echo "Process $proc_nam... |
Fix - remove .lib extension | @@ -172,7 +172,7 @@ target_include_directories(usrsctp PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
if (WIN32)
message(STATUS "link library: ws2_32")
- target_link_libraries(usrsctp ws2_32 iphlpapi.lib)
+ target_link_libraries(usrsctp ws2_32 iphlpapi)
endif ()
set_target_properties(usrsctp PROPERTIES IMPORT_SUFFIX "_import.lib"... |
Upgrade JUnit to 4.13 | @@ -20,7 +20,7 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
- testImplementation 'junit:junit:4.12'
+ testImplementation 'junit:junit:4.13'
}
apply from: "$project.rootDir/config/android-checkstyle.gradle"
|
Allow find_rects and rot_corr to build with apriltags disabled. | // Enable new code optimizations
#define OPTIMIZED
-#ifdef IMLIB_ENABLE_APRILTAGS
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-variable"
@@ -12561,4 +12560,3 @@ void imlib_rotation_corr(image_t *img, float x_rotation, float y_rotation, float
}
#endif //IMLIB_ENABLE_ROTATION_CORR
#pragma GCC diag... |
bluetooth:Validate adv_data after memory allication | @@ -1401,6 +1401,8 @@ int bt_adapter_le_add_advertising_manufacturer_data(bt_advertiser_h advertiser,
}
adv_data = calloc(1, sizeof(char) *(manufacturer_data_len + 2));
+ if (adv_data == NULL)
+ return BT_ERROR_OUT_OF_MEMORY;
adv_data[0] = manufacturer_id & 0xffffffff;
adv_data[1] = (manufacturer_id & 0xff00) >> 8;
|
Added multiple registers for copying... | @@ -185,13 +185,17 @@ void libxsmm_generator_matcopy_avx_avx512_kernel( libxsmm_generated_code*
/* Initialize register 0 with zeros if we want to zero the destination */
if (i_matcopy_desc->zero_source) {
+
+ for (i=0; i<i_matcopy_desc->unroll_level; i++) {
libxsmm_x86_instruction_vec_compute_reg( io_generated_code,
l_... |
fix cursor hovering | @@ -1915,7 +1915,7 @@ motionnotify(XEvent *e)
altcursor = 2;
XDefineCursor(dpy, root, cursor[CurVert]->cursor);
}
- } else if (altcursor == 2) {
+ } else if (altcursor == 2 || altcursor == 1) {
altcursor = 0;
XUndefineCursor(dpy, root);
XDefineCursor(dpy, root, cursor[CurNormal]->cursor);
|
DM USB: add some BCD codes
BCD code is USB Specification Release Number in Binaray-Coded
Decimal. Add some BCD codes for some USB devices.
Acked-by: Yu Wang | @@ -823,10 +823,21 @@ usb_dev_init(void *pdata, char *opt)
goto errout;
switch (desc.bcdUSB) {
+ case 0x310:
case 0x300:
ver = 3; break;
case 0x200:
+ case 0x201:
+ case 0x210:
case 0x110:
+ /* 0x110 is a special case.
+ * xHCI spec v1.0 was released in 2010 and USB spec v1.1 was
+ * released in 1998, anything about US... |
BugID:24656372:modify board_wifi_init into board_init for boards ;board | @@ -383,8 +383,8 @@ void board_network_init(void)
{
#ifndef WITH_SAL
/*enable ethernet*/
- MX_ETH_Init();
- lwip_tcpip_init();
+ //MX_ETH_Init();
+ //lwip_tcpip_init();
#endif
hw_start_hal();
|
utest MAINTAINCE add test to string for simultanous restriction of pattern and length | @@ -300,6 +300,31 @@ test_schema_yang(void **state)
lysp_leaf = (void *) mod->parsed->data;
CHECK_LYSP_NODE_LEAF(lysp_leaf, NULL, 0, 0x0, 0, "port", 0, 0, NULL, 0, 0, NULL, NULL);
CHECK_LYSP_TYPE(&(lysp_leaf->type), 0, 0, 0, 0, 0, 0x0, 0, 0, "my_type", 0, 0, 1, 0, 0, 0);
+
+ /* PATTERN AND LENGTH */
+ schema = MODULE_C... |
Added kscePowerRequestSoftReset to header | @@ -170,6 +170,13 @@ int kscePowerGetGpuClockFrequency(void);
*/
int kscePowerGetGpuXbarClockFrequency(void);
+/**
+ * Requests PS Vita to do a soft reset
+ *
+ * @return always 0
+ */
+int kscePowerRequestSoftReset(void);
+
/**
* Requests PS Vita to do a cold reset
*
|
doc: Update partitioning limitation on BEFORE triggers
Reported-by: Erwin Brandstetter
Discussion: | @@ -4065,8 +4065,8 @@ ALTER INDEX measurement_city_id_logdate_key
<listitem>
<para>
- <literal>BEFORE ROW</literal> triggers, if necessary, must be defined
- on individual partitions, not the partitioned table.
+ <literal>BEFORE ROW</literal> triggers cannot change which partition
+ is the final destination for a new r... |
VERSION bump to version 2.2.22 | @@ -65,7 +65,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 2)
set(SYSREPO_MINOR_VERSION 2)
-set(SYSREPO_MICRO_VERSION 21)
+set(SYSREPO_MICRO_VERSION 22)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
session BUGFIX missing include | * \author Michal Vasko <mvasko@cesnet.cz>
* \brief libnetconf2 - general session functions
*
- * Copyright (c) 2015 - 2017 CESNET, z.s.p.o.
+ * Copyright (c) 2015 - 2018 CESNET, z.s.p.o.
*
* This source code is licensed under BSD 3-Clause License (the "License").
* You may not use this file except in compliance with th... |
peview: Add description to propstore tab | @@ -81,7 +81,23 @@ VOID PvpPeEnumerateFilePropStore(
if (SUCCEEDED(PSGetNameFromPropertyKey(&propkey, &propKeyName)))
{
+ IPropertyDescription* propertyDescriptionPtr = NULL;
+
PhSetListViewSubItem(ListViewHandle, lvItemIndex, 1, propKeyName);
+
+ if (SUCCEEDED(PSGetPropertyDescriptionByName(propKeyName, &IID_IProperty... |
Correct checking for valid writeLoc in XLogGetWriteAndFlushedLoc. | @@ -3937,7 +3937,7 @@ XLogGetWriteAndFlushedLoc(XLogRecPtr *writeLoc, XLogRecPtr *flushedLoc)
*flushedLoc = xlogctl->LogwrtResult.Flush;
SpinLockRelease(&xlogctl->info_lck);
- return (writeLoc != 0);
+ return (*writeLoc != 0);
}
void
|
fixed swapped parameter descriptions for x509
CLA: trivial | @@ -117,9 +117,9 @@ const OPTIONS x509_options[] = {
{"C", OPT_C, '-', "Print out C code forms"},
#ifndef OPENSSL_NO_MD5
{"subject_hash_old", OPT_SUBJECT_HASH_OLD, '-',
- "Print old-style (MD5) issuer hash value"},
- {"issuer_hash_old", OPT_ISSUER_HASH_OLD, '-',
"Print old-style (MD5) subject hash value"},
+ {"issuer_h... |
Do not crash if not using EIP 155 | @@ -873,7 +873,8 @@ uint32_t getV(txContent_t *txContent) {
v = (txContent->v[0] << 24) | (txContent->v[1] << 16) |
(txContent->v[2] << 8) | txContent->v[3];
}
- else {
+ else
+ if (txContent->vLength != 0) {
PRINTF("Unexpected v format\n");
THROW(EXCEPTION);
}
|
Testing: reduce time taken | @@ -67,7 +67,12 @@ tigge_cf_ecmwf.grib2
# Check if JPEG is enabled
if [ $HAVE_JPEG -eq 1 ]; then
# Include files which have messages with grid_jpeg packing
- files="jpeg.grib2 multi.grib2 reduced_gaussian_surface_jpeg.grib2 v.grib2 "$files
+ echo "Add extra files (HAVE_JPEG=1)"
+ files="jpeg.grib2 reduced_gaussian_surf... |
CI: fix pattern in test case test_examples_protocol_mqtt5 | @@ -26,24 +26,24 @@ def test_examples_protocol_mqtt5(dut: Dut) -> None:
# check if connected or not
dut.expect_exact('MQTT_EVENT_CONNECTED', timeout=30)
# check log
- res = dut.expect(r'sent publish successful, msg_id=(\d+)')
+ res = dut.expect(r'sent publish successful, msg_id=(\d+)[^\d]')
msgid_pub1 = res.group(1).de... |
Try fixing docs + Add non-rtl checks to final pass | @@ -11,6 +11,18 @@ env:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
jobs:
+ cancel-prior-workflows:
+ name: cancel-prior-workflows
+ runs-on: ubuntu-latest
+ container:
+ image: ucbbar/chipyard-ci-image:554b436
+ options: --entrypoint /bin/bash
+ steps:
+ - name: Cancel Previous Runs
+ uses: styfle/cance... |
speed: rework if condition to avoid empty statement | @@ -3551,9 +3551,7 @@ static int do_multi(int multi, int size_num)
d = atof(sstrsep(&p, sep));
ffdh_results[k][0] += d;
# endif /* OPENSSL_NO_DH */
- } else if (HAS_PREFIX(buf, "+H:")) {
- ;
- } else {
+ } else if (!HAS_PREFIX(buf, "+H:")) {
BIO_printf(bio_err, "Unknown type '%s' from child %d\n", buf,
n);
}
|
overtoggle sets up grid layout | @@ -3378,6 +3378,12 @@ moveright(const Arg *arg) {
void overtoggle(const Arg *arg){
if (!selmon->pertag->curtag == 0) {
view(arg);
+ selmon->lt[selmon->sellt] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt] = (Layout *)&layouts[1];
+ strncpy(selmon->ltsymbol, selmon->lt[selmon->sellt]->symbol, sizeof se... |
BugID:19015603:[hal tls]fix daily and pre env do not work issue | @@ -466,7 +466,11 @@ static int _TLSConnectNetwork(TLSDataParams_t *pTlsData, const char *addr,
platform_err("failed! mbedtls_ssl_setup returned %d", ret);
return ret;
}
+#if defined(ON_PRE) || defined(ON_DAILY)
+ platform_err("SKIPPING mbedtls_ssl_set_hostname() when ON_PRE or ON_DAILY defined!");
+#else
mbedtls_ssl_s... |
CoreValidation: Save builder Junit result as build_<now>.xml
Needed to distinguish between actual test results and builder results. | @@ -150,4 +150,4 @@ def create():
return builder
def complete(builder, success):
- builder.saveJunitResult("result_{now}.xml".format(now = datetime.now().strftime("%Y%m%d%H%M%S")))
+ builder.saveJunitResult("build_{now}.xml".format(now = datetime.now().strftime("%Y%m%d%H%M%S")))
|
drivers/serial: disable priority inheritance on some semaphores
Make sure that priority inheritance is not enabled for the signaling
semaphores used in the serial driver.
[Shin: backported from NuttX] | #include <stdint.h>
#include <stdbool.h>
#include <unistd.h>
-#include <semaphore.h>
-#include <tinyara/semaphore.h>
#include <string.h>
#include <fcntl.h>
#include <poll.h>
#include <tinyara/irq.h>
#include <tinyara/arch.h>
+#include <tinyara/semaphore.h>
#include <tinyara/fs/fs.h>
#include <tinyara/serial/serial.h>
#... |
Fix immediate ack condition | @@ -527,10 +527,11 @@ static int conn_create_ack_frame(ngtcp2_conn *conn, ngtcp2_frame **pfr,
size_t num_blks_max = 8;
size_t blk_idx;
int rv;
+ uint64_t ack_delay = (acktr->flags & NGTCP2_ACKTR_FLAG_IMMEDIATE_ACK)
+ ? 0
+ : conn_compute_ack_delay(conn);
- if (!(acktr->flags & NGTCP2_ACKTR_FLAG_IMMEDIATE_ACK) &&
- !ngt... |
Credit Vadim Penzin | to be returned too. Thanks Joerg Sonnenberger
* Bugfix #1447: More verbose reporting of chasing problems with
ldns-verify-zone. Thanks Stephane Guedon
+ * OpenSSL engine support with ldns-signzone.
+ See also https://penzin.net/ldns-signzone/
+ Many thanks Vadim Penzin.
1.7.0 2016-12-20
* Fix lookup of relative names i... |
[ScheduleTreeTransform] Silence compiler warning. NFC.
Use size_t for position which is the return type type ArrayRef::size()
it is compared to. | @@ -439,7 +439,7 @@ struct ApplyASTBuildOptions
BaseTy &getBase() { return *this; }
const BaseTy &getBase() const { return *this; }
- int Pos;
+ size_t Pos;
llvm::ArrayRef<isl::union_set> ASTBuildOptions;
ApplyASTBuildOptions(llvm::ArrayRef<isl::union_set> ASTBuildOptions)
|
Enable complete SSE4 implementation if available
This improves performance by 30% according to library/digest/benchmark
Originally SSE4 implementation was not built with SSE4 flags, so some fallback was used
Note: mandatory check (NEED_CHECK) was skipped | @@ -16,7 +16,10 @@ ENDIF ()
IF (ARCH_I386 OR ARCH_X86_64)
IF (OS_WINDOWS)
- SRCS(multiword_64_64_cl_i386_mmx.cc)
+ SRCS(
+ multiword_64_64_cl_i386_mmx.cc
+ crc32c_sse4.cc
+ )
ELSEIF(OS_ANDROID AND ARCH_I386)
# 32-bit Android has some problems with register allocation, so we fall back to default implementation
ELSE()
@@... |
handle reallocation of idmanifest attributes | @@ -33,11 +33,30 @@ template <>
void
IDManifestAttribute::readValueFrom (OPENEXR_IMF_INTERNAL_NAMESPACE::IStream &is, int size, int version)
{
- int read = 0;
- Xdr::read<StreamIO>(is,_value._uncompressedDataSize);
- _value._data = (unsigned char*) malloc(size-4);
+ if (size<4)
+ {
+ throw IEX_NAMESPACE::InputExc("Inva... |
in_prometheus_scrape: do not set event_type | @@ -219,5 +219,4 @@ struct flb_input_plugin in_prometheus_scrape_plugin = {
.cb_exit = cb_prom_scrape_exit,
.config_map = config_map,
.flags = FLB_INPUT_NET | FLB_INPUT_CORO,
- .event_type = FLB_INPUT_METRICS
};
|
tool: integrate cmake build & install for elektrad | @@ -23,7 +23,7 @@ else ()
configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/build.sh" "${CMAKE_CURRENT_BINARY_DIR}/build-${tool}")
# install files to destination
- install (DIRECTORY elektrad webd client
+ install (DIRECTORY webd client
DESTINATION ${install_directory}
PATTERN "node_modules" EXCLUDE
PATTERN "build" EXCLUDE)... |
VirtIOFS: fix pointer dereference in CloseDeviceInterface call
This patch fixes service fail at device removal. The problem was
introduced in | @@ -331,7 +331,7 @@ static VOID VirtFsDevQueryRemove(VIRTFS *VirtFs, HCMNOTIFICATION Notify)
VirtFsStop(VirtFs);
VirtFsNotificationAsyncUnreg(&VirtFs->DevHandleNotification);
- CloseDeviceInterface(VirtFs->Device);
+ CloseDeviceInterface(&VirtFs->Device);
}
DWORD WINAPI DeviceNotificationCallback(HCMNOTIFICATION Notify... |
Remove not used state | @@ -1594,10 +1594,6 @@ int mbedtls_ssl_tls13_handshake_server_step( mbedtls_ssl_context *ssl )
ret = ssl_tls13_process_client_finished( ssl );
break;
- case MBEDTLS_SSL_FLUSH_BUFFERS:
- ret = ssl_tls13_flush_buffers( ssl );
- break;
-
case MBEDTLS_SSL_HANDSHAKE_WRAPUP:
ret = ssl_tls13_handshake_wrapup( ssl );
break;
|
[GB] Implement ADD SP, i8 instruction | @@ -1008,6 +1008,27 @@ impl CpuState {
// TODO(PT): Should be 2 for (HL)
Some(InstrInfo::seq(2, 2))
}
+ 0xe8 => {
+ // ADD SP, i8
+ let sp = self.reg(RegisterName::SP).read_u16(&self);
+ let offset = self.mmu.read(self.get_pc() + 1);
+ let signed_offset = offset as i8;
+
+ let sp_low_byte = (sp & 0xff) as u8;
+ self.ad... |
Clarify coding in Catalog::AddDefaultValues.
Make it a bit shorter and better-commented; no functional change.
Alvaro Herrera and Tom Lane
Discussion: | @@ -331,26 +331,23 @@ sub AddDefaultValues
foreach my $column (@$schema)
{
my $attname = $column->{name};
- my $atttype = $column->{type};
- if (defined $row->{$attname})
- {
- ;
- }
- elsif ($attname eq 'oid')
- {
- ;
- }
- elsif (defined $column->{default})
+ # No work if field already has a value.
+ next if defined ... |
CI: use hashFiles for docker image name
Using the git commit hash on the Dockerfile
ignores the content of the files copied into
the docker image. Compute a hash of everything
and use that to identify the docker image
instead. | @@ -47,7 +47,7 @@ jobs:
# Construct the correct docker container image tag corresponding to this build
- name: Figure out correct docker image tag
run:
- echo DOCKER_IMG=$DOCKER_BASE_IMG:$(git log -1 --oneline -- tools/docker/ | cut -d" " -f1) >> $GITHUB_ENV
+ echo DOCKER_IMG=$DOCKER_BASE_IMG:${{ hashFiles('tools/docke... |
mangle: incorrect comparison | @@ -853,7 +853,7 @@ static void mangle_Resize(run_t* run) {
size_t oldsz = run->dynamicFileSz;
input_setSize(run, newsz);
- if (newsz > run->dynamicFileSz) {
+ if (newsz > oldsz) {
util_rndBuf(&run->dynamicFile[oldsz], newsz - oldsz);
}
}
|
docs: update slurm config; latest slurm has new name for defining
the controller host. ControlMachine -> SlurmctldHost | @@ -13,7 +13,7 @@ the corresponding compute image in a subsequent step.
[sms](*\#*) cp /etc/slurm/slurm.conf.ohpc /etc/slurm/slurm.conf
# Identify resource manager hostname on master host
-[sms](*\#*) perl -pi -e "s/ControlMachine=\S+/ControlMachine=${sms_name}/" /etc/slurm/slurm.conf
+[sms](*\#*) perl -pi -e "s/Slurmc... |
ci: disable async for the SH4 build and reenable the associated test
The platform doesn't seem to have support for this. | @@ -82,8 +82,8 @@ jobs:
}, {
arch: sh4-linux-gnu,
libs: libc6-dev-sh4-cross,
- target: linux-latomic,
- tests: -test_includes -test_store -test_x509_store -test_async
+ target: no-async linux-latomic,
+ tests: -test_includes -test_store -test_x509_store
},
# These build with shared libraries but they crash when run
|
android: adding bsd_signal function | @@ -54,6 +54,34 @@ FILE * stdin = (&__sF[0]);
FILE * stdout = (&__sF[1]);
FILE * stderr = (&__sF[2]);*/
+#if (__ANDROID_API__ > 19)
+#include <android/api-level.h>
+#include <android/log.h>
+#include <signal.h>
+#include <dlfcn.h>
+
+extern "C" {
+ typedef __sighandler_t (*bsd_signal_func_t)(int, __sighandler_t);
+ bsd... |
news: update version number | @@ -15,7 +15,7 @@ Elektra serves as a universal and secure framework to access
configuration settings in a global, hierarchical key database.
For more information, visit [https://libelektra.org](https://libelektra.org).
-You can also read the news [on our website](https://www.libelektra.org/news/0.9.<<VERSION>>-release... |
Standard shader: Multiply with graphics color;
I guess. | @@ -216,7 +216,7 @@ const char* lovrStandardFragmentShader = ""
" result = tonemap_ACES(result * lovrExposure); \n"
"#endif \n"
-" return vec4(result, 1.); \n"
+" return graphicsColor * vec4(result, 1.); \n"
"}"
// Helpers
|
Add line describing xdg build | @@ -348,6 +348,8 @@ def generateFullBuildStages() {
,
[TEST.ALL, TEST.MEM]
)
+
+ // Build Elektra with xdg resolver to see if we are compliant
def xdgResolver = 'resolver_mf_xp_x'
tasks << buildAndTest(
"debian-stable-full-xdg",
|
chip/ish/watchdog.c: Format with clang-format
BRANCH=none
TEST=none | @@ -45,9 +45,8 @@ int watchdog_init(void)
CCU_WDT_CD = WDT_CLOCK_HZ / 10; /* 10 Hz => 100 ms period */
/* Enable the watchdog timer and set initial T1/T2 values */
- WDT_CONTROL = WDT_CONTROL_ENABLE_BIT
- | (WDT_T2_PERIOD << 8)
- | WDT_T1_PERIOD;
+ WDT_CONTROL = WDT_CONTROL_ENABLE_BIT | (WDT_T2_PERIOD << 8) |
+ WDT_T1_... |
Add compiler barrier to mmap test
The riscv compiler was reordering the store to set the expected flag
with the store that causes a page fault which made the test fail. | @@ -1172,6 +1172,7 @@ static void filebacked_sigbus_test(void)
printf("** write to both pages (should not cause fault)\n");
expect_sigbus = 0;
+ compiler_barrier();
*(unsigned long *)p = 0;
*(unsigned long *)(p + PAGESIZE) = 0;
@@ -1188,6 +1189,7 @@ static void filebacked_sigbus_test(void)
close(out);
} else {
expect_s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.