message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Update: Reset functionality, usage consistent with numpy etc., via import NAR as nar | @@ -21,7 +21,7 @@ def parseTask(s):
def parseExecution(e):
return {"operator" : e.split(" ")[0], "arguments" : e.split("args ")[1][1:-1].split(" * ")[1]}
-def NAR_GetOutput():
+def GetOutput():
NAR.sendline("0")
NAR.expect("done with 0 additional inference steps.")
lines = [a.strip().decode("utf-8") for a in NAR.before... |
Clarify instructions for Red Hat/SLES15-SP1, removed rocm from export paths. | @@ -15,6 +15,7 @@ On Ubuntu 16.04:
wget https://github.com/ROCm-Developer-Tools/aomp/releases/download/rel_11.0-1/aomp_Ubuntu1604_11.0-1_amd64.deb
dpkg -x aomp_Ubuntu1604_11.0-1_amd64.deb /tmp/temproot
```
+Move to $HOME and set variables:
```
mv /tmp/temproot/usr $HOME
export PATH=$PATH:$HOME/usr/lib/aomp/bin
@@ -26,1... |
Rework audio port sample size negotiation | ///
/// This extension provides a way for the plugin to describe its current audio ports.
///
-/// If the plugin does not implement this extension, it will have a default stereo input and output.
+/// If the plugin does not implement this extension, it will have a default 32 bits stereo input and output.
+/// This make... |
Add argument to janet_panicf call (2) | @@ -137,7 +137,7 @@ static const char *janet_dyncstring(const char *name, const char *dflt) {
const uint8_t *jstr = janet_unwrap_string(x);
const char *cstr = (const char *)jstr;
if (strlen(cstr) != (size_t) janet_string_length(jstr)) {
- janet_panicf("string %v contains embedded 0s");
+ janet_panicf("string %v contain... |
Add simple scripting.
This allows you to read a file line-by-line and run each line as their own command. Something like bash or batch scripting should be implemented in the future, but for now this helps with automating commands. | @@ -269,6 +269,28 @@ void empty_command() {
//do nothing if nothing was entered
}
+void script_command(int argc, char** argv) {
+ if (argc < 2) {
+ printf_err("Please specify a script");
+ return;
+ }
+
+ char* file = argv[1];
+ fs_node_t* node = finddir_fs(current_dir, file);
+ if (!node) {
+ printf_err("File %s not f... |
sysdeps/linux: implement sys_dup | @@ -633,4 +633,35 @@ int sys_setrlimit(int resource, const struct rlimit *limit) {
return 0;
}
+pid_t sys_getppid() {
+ auto ret = do_syscall(NR_getppid);
+ // getppid() always succeeds.
+ return sc_int_result<pid_t>(ret);
+}
+
+int sys_setpgid(pid_t pid, pid_t pgid) {
+ auto ret = do_syscall(NR_setpgid, pid, pgid);
+ ... |
'Reference' & 'Community' sections: small-kine copy edits & link fixes. | @@ -10,4 +10,4 @@ To connect with other AppScope users and developers, [join](https://cribl.io/com
## How to Contribute
-Fork our [repo on GitHub](https://github.com/criblio/appscope.git)(https://github.com/criblio/appscope.git).
+Fork our [repo on GitHub](https://github.com/criblio/appscope.git).
|
Fix sh syntax in configure.ac
The old '==' sh-is-not-C issue
It doesn't matter in bash, but some other sh don't like it, so it's a portability issue | @@ -220,8 +220,8 @@ AS_HELP_STRING([--disable-xml-context],
[Do not retain context around the current parse point]),
[enable_xml_context=${enableval}])
AS_IF([test "x${enable_xml_context}" != "xno"], [
- AS_IF([test "x${enable_xml_context}" == "xyes" \
- -o "x${enable_xml_context}" == "x"], [
+ AS_IF([test "x${enable_x... |
[bus][pci] at least register that MSIX is available
Doesn't yet have support for it, but set the bool and remember it was
present when scanning devices. | @@ -120,7 +120,11 @@ void device::dump(size_t indent) {
printf(" ");
}
char str[14];
- printf("dev %s %04hx:%04hx\n", pci_loc_string(loc_, str), config_.vendor_id, config_.device_id);
+ printf("dev %s vid:pid %04hx:%04hx base:sub:intr %hhu:%hhu:%hhu %s%s\n",
+ pci_loc_string(loc_, str), config_.vendor_id, config_.devic... |
Add the changes.xml corresponding to the fix. | </properties>
<body>
<release version="1.2.5" date="2021-MM-DD" description="Bug fix release">
+ <!-- FIX -->
+ <action issue="DAEMON-430" type="fix" dev="jfclere">
+ Procrun --StopTimeout can be used to define the time that procrun waits for service to exit,
+ but INFINITE timeout was using instead.
+ </action>
<!-- F... |
Renamed fields to reflect that they're not used | @@ -492,8 +492,8 @@ typedef struct _NAMESPACE_INFO {
UINT8 NamespaceGuid[NSGUID_LEN]; //!< UUID per RFC 4122
UINT16 NamespaceId; //!< Namespace ID
UINT8 Name[NLABEL_NAME_LEN_WITH_TERMINATOR]; //!< Optional name 63 characters + (NULL-terminator)
- CHAR16 Capacity[UINT128_DIGITS]; //!< Capacity string
- CHAR16 FreeCapaci... |
make Version.cmake more error-resistant. fix | # Determine project version
# * Using Git
# * Local .version file
-find_package (Git QUIET)
+
+set(__detect_version 0)
+
+find_package (Git)
+
if (GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git")
# Working off a git repo, using git versioning
# Check if HEAD is pointing to a tag
@@ -9,8 +13,11 @@ if (GIT_FOUND AND EX... |
Fix no-filenames
If built with no-filenames then we shouldn't test this functionality in
the test suite. | @@ -47,19 +47,24 @@ static int vdata_appends(void)
/* Test that setting a platform error sets the right values. */
static int platform_error(void)
{
- const char *file, *f, *data;
- int line;
+ const char *f, *data;
int l;
unsigned long e;
+#ifndef OPENSSL_NO_FILENAMES
+ const char *file;
+ int line;
file = __FILE__;
-... |
merge two functions always used together | @@ -400,13 +400,16 @@ static complex float* compute_psf2(int N, const long psf_dims[N + 1], unsigned l
}
-static struct nufft_data* nufft_create_data(unsigned int N)
+static struct nufft_data* nufft_create_data(unsigned int N,
+ const long cim_dims[N], bool basis,
+ struct nufft_conf_s conf)
{
PTR_ALLOC(struct nufft_da... |
azimuth: use ship as prefix for loading snapshot log | ^- (quip card _this)
=/ points=@ud ~(wyt by points.nas.snap)
%- %- slog
- [leaf+"id: loading azimuth snapshot {<points>} points"]~
+ [leaf+"ship: loading azimuth snapshot ({<points>} points)"]~
::
=: net.state %default
nas.state nas.snap
?. ?=(%1 -.old-state)
`old-state
%- %- slog :_ ~
- leaf+"id: loading snapshot with... |
Added forking to Scala port tests | @@ -54,6 +54,7 @@ lazy val root = (project in file("."))
.settings(
name := "metacall",
parallelExecution in Test := false,
+ fork in (Test / run) := true,
dockerfile in docker := new Dockerfile {
from("metacall/core:dev")
|
Makefile.toolchain: Add vars for libprotobuf-mutator.
libprotobuf-mutator is a helper library for fuzzing using protocol
buffers.
BRANCH=None
TEST=make -j buildfuzztests && make -j buildall | @@ -96,15 +96,23 @@ endif
CFLAGS+= -DCHROMIUM_EC
CXXFLAGS+=-DPROTOBUF_INLINE_NOT_IN_HEADERS=0
-FTDIVERSION=$(shell $(PKG_CONFIG) --modversion libftdi1 2>/dev/null)
+FTDIVERSION:=$(shell $(PKG_CONFIG) --modversion libftdi1 2>/dev/null)
ifneq ($(FTDIVERSION),)
LIBFTDI_NAME=ftdi1
else
LIBFTDI_NAME=ftdi
endif
-LIBFTDI_CFLA... |
bugfix: Delete local variables to avoid null global variables | @@ -129,9 +129,9 @@ void initialise_wifi(void)
ESP_ERROR_CHECK(esp_netif_init());
wifi_event_group = xEventGroupCreate();
ESP_ERROR_CHECK(esp_event_loop_create_default());
- esp_netif_t *sta_netif = esp_netif_create_default_wifi_sta();
+ sta_netif = esp_netif_create_default_wifi_sta();
assert(sta_netif);
- esp_netif_t ... |
unix: reorder checks | @@ -1037,8 +1037,8 @@ _unix_update_dir(u3_unix* unx_u, u3_udir* dir_u)
c3_w len_w = strlen(out_u->d_name);
if ( !strchr(out_u->d_name,'.')
- || !_unix_sane_ta(unx_u, out_u->d_name, len_w)
- || '~' == out_u->d_name[len_w - 1] )
+ || '~' == out_u->d_name[len_w - 1]
+ || !_unix_sane_ta(unx_u, out_u->d_name, len_w) )
{
c3_... |
OcAppleBootPolicyLib: Add debug logging to blessed paths | @@ -230,6 +230,8 @@ InternalGetBooterFromBlessedSystemFilePath (
return EFI_NOT_FOUND;
}
+ DebugPrintHexDump (DEBUG_BULK_INFO, "BlessedFileHEX", (UINT8 *) *FilePath, FilePathSize);
+
if (!IsDevicePathValid (*FilePath, FilePathSize)) {
DEBUG ((DEBUG_BULK_INFO, "OCBP: Blessed file is invalid\n"));
FreePool (*FilePath);
@... |
API wrapping fixes | %ignore carto::MapRenderer::getRedrawRequestListener;
%ignore carto::MapRenderer::setRedrawRequestListener;
%ignore carto::MapRenderer::calculateCameraEvent;
-%ignore carto::MapRenderer::moveToFitPoints;
+%ignore carto::MapRenderer::moveToFitBounds;
%ignore carto::MapRenderer::screenToWorld;
%ignore carto::MapRenderer:... |
driver/usb_mux/virtual.c: Format with clang-format
BRANCH=none
TEST=none | * may differ when the PD role changes when in dock mode.
*/
#define USB_PD_MUX_HPD_STATE (USB_PD_MUX_HPD_LVL | USB_PD_MUX_HPD_IRQ)
-#define USB_PD_MUX_USB_DP_STATE (USB_PD_MUX_USB_ENABLED | \
- USB_PD_MUX_DP_ENABLED | USB_PD_MUX_POLARITY_INVERTED | \
- USB_PD_MUX_SAFE_MODE | USB_PD_MUX_TBT_COMPAT_ENABLED | \
- USB_PD_M... |
ra-tls: Update README to reflect current implementation | @@ -5,45 +5,24 @@ export EPID_SUBSCRIPTION_KEY=<hex string>
export QUOTE_TYPE=<SGX_LINKABLE_SIGNATURE | SGX_UNLINKABLE_SIGNATURE>
```
-# Build Stub Enclave
+# Build
``` shell
-cd "${path_to_inclavare_containers}/stub-enclave"
+cd $src/ra-tls
make
-sudo make install
```
-# Build Docker images
-## Prepare the materials
+... |
install guide: add instrs for modern cmake
Add instructions for building the latest version of cmake from source.
This is required for older distros, eg RHEL8, where the version of
cmake in the package manager is < 3.14. | @@ -112,7 +112,7 @@ Register and enable Red Hat subscription to install any packages on the system.
# subscription-manager register --proxy=PROXY --username=USER --password=PASSWORD --auto-attach
```
-Set the RHEL version and install packages. Set proxy name and port number
+Set the RHEL version and install packages. S... |
improved NUMA node detection on Windows (for AMD Ryzen), issue | @@ -124,8 +124,10 @@ typedef struct _PROCESSOR_NUMBER { WORD Group; BYTE Number; BYTE Reserved; } PRO
#endif
typedef VOID (__stdcall *PGetCurrentProcessorNumberEx)(PPROCESSOR_NUMBER ProcNumber);
typedef BOOL (__stdcall *PGetNumaProcessorNodeEx)(PPROCESSOR_NUMBER Processor, PUSHORT NodeNumber);
+typedef BOOL (__stdcall*... |
Do not link python into python native modules.
In general plugins should not link to a library that can load them, because when
they are loaded the symbols that may be provided by the library are already
defined, and they may be defined by a different library or by the program itself. | @@ -20,7 +20,6 @@ IF (USE_SYSTEM_PYTHON)
GLOBAL "-I$EXTERNAL_PYTHON_RESOURCE_GLOBAL/python/include"
GLOBAL "-I$EXTERNAL_PYTHON_RESOURCE_GLOBAL/python/include/python${PY_VERSION}"
)
- LDFLAGS("-L$EXTERNAL_PYTHON_RESOURCE_GLOBAL/python/lib/x86_64-linux-gnu -lpython${PY_VERSION}")
ELSEIF (OS_DARWIN)
IF (PYTHON_DISTR STREQ... |
revert "switch DGEMM parameters for SkylakeX if DYNAMIC_ARCH" | @@ -1669,22 +1669,14 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#else
#define SGEMM_DEFAULT_UNROLL_M 16
-#ifdef DYNAMIC_ARCH
-#define DGEMM_DEFAULT_UNROLL_M 4
-#else
#define DGEMM_DEFAULT_UNROLL_M 16
-#endif
#define QGEMM_DEFAULT_UNROLL_M 2
#define CGEMM_DEFAULT_UNROLL_M 8
#define ZGEMM... |
odissey: add client-server ids to frontend error messages | @@ -545,7 +545,8 @@ void od_frontend(void *arg)
assert(server == NULL);
assert(client->route != NULL);
od_frontend_error(client, SO_ERROR_CONNECTION_FAILURE,
- "failed to get remote server connection");
+ "C%d: failed to get remote server connection",
+ client->id);
/* detach client from route */
od_unroute(client);
br... |
Initialize uninitialized variable in ECHDE-PSK part of ssl_parse_client_key_exchange() | @@ -4077,7 +4077,7 @@ static int ssl_parse_client_key_exchange( mbedtls_ssl_context *ssl )
/* The ECDH secret is the premaster secret used for key derivation. */
unsigned char *psm = ssl->handshake->premaster;
unsigned char *psm_end = psm + sizeof( ssl->handshake->premaster );
- size_t zlen;
+ size_t zlen = 0;
/* Compu... |
Update bist for CLI changes to Fpgainfo | @@ -60,7 +60,7 @@ def main(args):
# Display data from FPGA info
for feature in FEATURES:
- cmd = "fpgainfo {} -b {}".format(feature, bdf['bus'])
+ cmd = "fpgainfo {} -B {}".format(feature, bdf['bus'])
subprocess.call(cmd, shell=True)
gbs_paths = args.gbs_paths
|
spec: fix require | @@ -65,7 +65,7 @@ bool isToBeIgnored (std::string const & name)
startsWith (name, "exports") ||
// spec-plugin
- startsWith (name, "conflict") || startsWith (name, "required") || startsWith (name, "array/") ||
+ startsWith (name, "conflict") || startsWith (name, "require") || startsWith (name, "array/") ||
startsWith (... |
adjust nanosleep initial state | @@ -37,7 +37,7 @@ Performance options.
/* use pipe for wakeup if == 0 else, use nanosleep when no tasks. */
#ifndef ASYNC_NANO_SLEEP
-#define ASYNC_NANO_SLEEP 16777216 // 8388608 // 1048576 // 524288
+#define ASYNC_NANO_SLEEP 8388608 // 1048576 // 524288 // 16777216
#endif
/* Sentinal thread to respawn crashed threads ... |
[sfud] Correct dual_io dummy cycle setting to 4. | @@ -218,7 +218,7 @@ sfud_err sfud_qspi_fast_read_enable(sfud_flash *flash, uint8_t data_line_width)
break;
case 2:
if (read_mode & DUAL_IO) {
- qspi_set_read_cmd_format(flash, SFUD_CMD_DUAL_IO_READ_DATA, 1, 2, 8, 2);
+ qspi_set_read_cmd_format(flash, SFUD_CMD_DUAL_IO_READ_DATA, 1, 2, 4, 2);
} else if (read_mode & DUAL_... |
Tests: default port number used. | @@ -321,7 +321,7 @@ class TestConfiguration(TestControl):
}
for a in range(999)
},
- "listeners": {"*:7001": {"pass": "applications/app-1"}},
+ "listeners": {"*:7080": {"pass": "applications/app-1"}},
}
self.assertIn('success', self.conf(conf))
|
update Microchip id to align with Atmel. Add preinclude file category | <xs:enumeration value="MediaTek:129"/>
<xs:enumeration value="MegaChips:128"/>
<xs:enumeration value="Mentor Graphics Co.:24"/>
- <xs:enumeration value="Microchip:142"/>
+ <xs:enumeration value="Microchip:3"/>
<xs:enumeration value="Micronas:30"/>
<xs:enumeration value="Microsemi:112"/>
<xs:enumeration value="Milandr:9... |
bonding: fix the GSO flags
Type: fix
Only add GSO and Checksum offload flags when gso is
enabled. | @@ -458,8 +458,14 @@ bond_create_if (vlib_main_t * vm, bond_create_if_args_t * args)
bif->numa_only = args->numa_only;
hw = vnet_get_hw_interface (vnm, bif->hw_if_index);
+ /*
+ * Add GSO and Checksum offload flags if GSO is enabled on Bond
+ */
+ if (args->gso)
+ {
hw->flags |= (VNET_HW_INTERFACE_FLAG_SUPPORTS_GSO |
V... |
Add status of blocks before vote | @@ -328,8 +328,12 @@ void OverviewPage::displayAssetInfo()
case THRESHOLD_DEFINED:
if (currentTime < startTime)
status = tr("Waiting until ") + date;
- else
- status = tr("Waiting");
+ else {
+ auto cycleWidth = Params().GetConsensus().nMinerConfirmationWindow;
+ QString currentCount;
+ currentCount.sprintf("%d of %d b... |
[add] semaphore reset support for rt-thread
add semaphore reset support for rt-thread | @@ -63,7 +63,8 @@ TU_ATTR_ALWAYS_INLINE static inline bool osal_semaphore_wait(osal_semaphore_t se
}
TU_ATTR_ALWAYS_INLINE static inline void osal_semaphore_reset(osal_semaphore_t const sem_hdl) {
- // TODO: implement
+ rt_ubase_t value = 0;
+ rt_sem_control(sem_hdl, RT_IPC_CMD_RESET, &value);
}
//---------------------... |
common/charge_state_v2.c: Format with clang-format
BRANCH=none
TEST=none
Tricium: disable | @@ -992,8 +992,8 @@ static int charge_request(int voltage, int current)
* from nvdc + chrg will be done separately.
*/
should_bypass = board_should_charger_bypass();
- if ((should_bypass && !(curr.chg.status & CHARGER_BYPASS_MODE))
- || (!should_bypass && (curr.chg.status & CHARGER_BYPASS_MODE)))
+ if ((should_bypass &... |
Fix word order in README | @@ -697,7 +697,7 @@ a location inverted through the center of the screen.
By default, scrcpy uses Android key or text injection: it works everywhere, but
is limited to ASCII.
-On Linux, scrcpy can simulate a USB physical keyboard on Android to provide a
+On Linux, scrcpy can simulate a physical USB keyboard on Android ... |
Define internal PSK getter | @@ -921,7 +921,58 @@ void mbedtls_ssl_optimize_checksum( mbedtls_ssl_context *ssl,
#if defined(MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED)
int mbedtls_ssl_psk_derive_premaster( mbedtls_ssl_context *ssl, mbedtls_key_exchange_type_t key_ex );
-#endif
+
+/*
+ * Get the first defined PSK by order of precedence:
+ * 1. handshake... |
spinlock: bug fix in spinlock code
Using ebx will truncate the high 32bit part of 64bit virtual address.
So using rbx instead of ebx. | @@ -69,13 +69,13 @@ static inline int spinlock_release(spinlock_t *lock)
.macro spinlock_obtain lock
movl $1, % eax
- lea \lock, % ebx
- lock xaddl % eax, SYNC_SPINLOCK_HEAD_OFFSET(%ebx)
- cmpl % eax, SYNC_SPINLOCK_TAIL_OFFSET(%ebx)
+ lea \lock, % rbx
+ lock xaddl % eax, SYNC_SPINLOCK_HEAD_OFFSET(%rbx)
+ cmpl % eax, SY... |
Implemented the startproject option for xcode by copying the functionality from vs2005. | return {
m.xmlDeclaration,
m.workspace,
+ m.reorderProjects,
m.workspaceFileRefs,
m.workspaceTail,
}
end
+--
+-- If a startup project is specified, move it (and any enclosing groups)
+-- to the front of the project list. This will make Visual Studio treat
+-- it like a startup project.
+--
+-- I force the new ordering ... |
Fix single instance regression | @@ -1062,14 +1062,46 @@ PhGetNamespaceHandle(
if (PhBeginInitOnce(&initOnce))
{
+ static SID_IDENTIFIER_AUTHORITY ntAuthority = SECURITY_NT_AUTHORITY;
OBJECT_ATTRIBUTES objectAttributes;
+ PSECURITY_DESCRIPTOR securityDescriptor;
+ ULONG sdAllocationLength;
+ UCHAR administratorsSidBuffer[FIELD_OFFSET(SID, SubAuthority... |
Move cfgParseOptionalFilterDepend() and add comment block. | @@ -734,55 +734,6 @@ typedef struct CfgParseOptionalRuleState
bool required;
} CfgParseOptionalRuleState;
-static bool
-cfgParseOptionalFilterDepend(PackRead *const filter, const Config *const config, const unsigned int optionListIdx)
-{
- FUNCTION_TEST_BEGIN();
- FUNCTION_TEST_PARAM(PACK_READ, filter);
- FUNCTION_TEST... |
Support non-zero starting nonce, make minor changes | (lth a b)
::
++ init
- |= [n=@da g=@ud]
+ |= [n=@da g=@ud non=@ud]
^+ this
=+ pkf=(get-file /pk/txt)
?> ?=(^ pkf)
=+ prv=(rash i.pkf ;~(pfix (jest '0x') hex))
%_ this
now n
+ nonce non
gas-price g
pk prv
addr (address-from-prv prv)
%^ end 3 20
(keccak-256:keccak:crypto wid (rev 3 wid dat))
::
-++ deploy-contract
- |= [... |
[docs] [ci skip] | @@ -10,7 +10,7 @@ However, by using meta-programming and parameter systems, generators can allow f
The following pages introduce the generators integrated with the Chipyard framework.
Chipyard bundles the source code for the generators, under the ``generators`` directory.
-It builds them from source each time (although... |
system: remove SYSTEM_BBRAM_IDX_VBNVBLOCK*
No current devices use VBNV in EC BBRAM... delete.
BRANCH=none
TEST=buildall | @@ -378,13 +378,6 @@ __override_proto int board_write_mac_addr(const char *mac_addr);
* not implemented.
*/
enum system_bbram_idx {
- SYSTEM_BBRAM_IDX_VBNVBLOCK0 = 0,
- /*
- * ...
- * 16 total bytes of VB NVRAM.
- * ...
- */
- SYSTEM_BBRAM_IDX_VBNVBLOCK15 = 15,
/* PD state for CONFIG_USB_PD_DUAL_ROLE uses one byte per ... |
minor fixes: initialize options struct with 0 always
also, clean up redisContextInit -- we're just zeoring the struct | @@ -591,21 +591,14 @@ static redisContext *redisContextInit(const redisOptions *options) {
if (c == NULL)
return NULL;
- c->err = 0;
- c->errstr[0] = '\0';
c->obuf = sdsempty();
- c->flags = 0;
- c->tcp.host = NULL;
- c->tcp.source_addr = NULL;
- c->unix_sock.path = NULL;
- c->timeout = NULL;
c->reader = redisReaderCre... |
refactor: remove unecessary conditional to reset conn->resp_body | @@ -83,24 +83,24 @@ http_code_print(int httpcode)
switch (httpcode) {
case HTTP_OK: return "OK";
case HTTP_CREATED: return "CREATED";
- case HTTP_NO_CONTENT: return "NO CONTENT";
- case HTTP_NOT_MODIFIED: return "NOT MODIFIED";
- case HTTP_BAD_REQUEST: return "BAD REQUEST";
+ case HTTP_NO_CONTENT: return "NO_CONTENT";
... |
cooja: copy directly into dst
Remove the extra copy into 'mem', this
saves up to two copies. | @@ -288,11 +288,8 @@ Java_org_contikios_cooja_corecomm_CLASSNAME_getMemory(JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_org_contikios_cooja_corecomm_CLASSNAME_setMemory(JNIEnv *env, jobject obj, jlong rel_addr, jint length, jbyteArray mem_arr)
{
- jbyte *mem = (*env)->GetByteArrayElements(env, mem_arr, 0);
- m... |
[wrap] import boost/smart_ptr/detail/sp_noexcept.hpp only for boost version >= 1.64 | @@ -44,7 +44,10 @@ namespace STD11 {
// boost >= 1.40
#if (BOOST_VERSION >= 104000)
%ignore std11::enable_shared_from_this::operator=;
-%import "boost//smart_ptr/detail/sp_noexcept.hpp"
+// boost >= 1.64
+#if (BOOST_VERSION >= 106400)
+%import "boost/smart_ptr/detail/sp_noexcept.hpp"
+#endif
%import "boost/smart_ptr/en... |
Raise max_content_len constraint by one in Connection ID tests | @@ -2244,9 +2244,12 @@ run_test "Connection ID, 3D: Cli+Srv enabled, Srv disables on renegotiation"
-c "ignoring unexpected CID" \
-s "ignoring unexpected CID"
+# This and the test below it requires MAX_CONTENT_LEN to be MFL+1, because the
+# tests check that the buffer contents are reallocated when the message is
+# l... |
OcAppleEventLib: Silence Coverity warning | @@ -419,6 +419,10 @@ InternalGetCurrentKeyStroke (
DEBUG ((DEBUG_VERBOSE, "InternalGetCurrentKeyStroke\n"));
+ if (NumberOfKeyCodes == NULL || KeyCodes == NULL || Key == NULL) {
+ return EFI_INVALID_PARAMETER;
+ }
+
if (mModifiers != Modifiers) {
for (Index = 0; Index < ARRAY_SIZE (mKeyStrokeInfo); ++Index) {
mKeyStrok... |
[apps] Add unrolled matrix multiplication | @@ -48,6 +48,34 @@ void matrix_multiplication(uint32_t coreid, uint32_t num_cores) {
asm volatile ("nop"::);
}
+void matrix_multiplication_unrolled(uint32_t coreid, uint32_t num_cores) {
+ asm volatile ("nop"::);
+ for (int i=coreid; i<N; i += num_cores) {
+ uint32_t sum0 = 0;
+ uint32_t sum1 = 0;
+ uint32_t sum2 = 0;
... |
docs/fingerprint: Remove note about flash_ec workaround
flash_ec now consistently works with icetower.
BRANCH=none
TEST=view in gitiles | @@ -57,16 +57,6 @@ This FPMCU board is Icetower Rev 0.1. |
**Partners**: You can request an Icetower development board from Google.
***
-
-*** note
-The instructions below to flash the FPMCU using the [Servo Micro] and `flash_ec`
-do not work at the moment with the Icetower board.
-See details in this
-[bug report](htt... |
DM USB: xHCI: Fix a potential NULL pointer issue.
After excap pointer is assigned, it should be checked whether it's
possible to get assignment for NULL pointer or not. This patch
fixes this issue.
Acked-by: Yu Wang | @@ -4001,13 +4001,13 @@ pci_xhci_init(struct vmctx *ctx, struct pci_vdev *dev, char *opts)
* ended by EXCAP_GROUP_END at last item.
*/
excap = xdev->excap_ptr;
- xdev->excapoff = excap->start;
-
if (!excap) {
- UPRINTF(LWRN, "Failed to set xHCI extended capability\r\n");
- return -1;
+ error = -1;
+ goto done;
}
+ xdev... |
oculus_mobile: Add handModels to bridge; | #pragma once
#include "../../core/util.h"
+#include "data/modelData.h"
#include <stdbool.h>
// What's going on here:
@@ -133,6 +134,7 @@ typedef struct {
BridgeLovrVibrateFunction* vibrateFunction; // Returns true on success
unsigned int textureHandles[4];
unsigned int textureCount;
+ ModelData* handModels[2];
} Bridge... |
sidebar: fixes urbit/landscape#596 item bolding | @@ -93,6 +93,8 @@ export function SidebarItem(props: {
}
}
+ const fontWeight = (hasUnread || hasNotification) ? '500' : 'normal';
+
if (props.hideUnjoined && !isSynced) {
return null;
}
@@ -148,6 +150,7 @@ export function SidebarItem(props: {
width='100%'
mono={urbitOb.isValidPatp(title)}
color={color}
+ fontWeight={f... |
Deprecate DSA_sign_setup() in the documentation | @@ -23,13 +23,12 @@ digest B<dgst> using the private key B<dsa> and places its ASN.1 DER
encoding at B<sigret>. The length of the signature is places in
*B<siglen>. B<sigret> must point to DSA_size(B<dsa>) bytes of memory.
-DSA_sign_setup() may be used to precompute part of the signing
-operation in case signature gene... |
papi: vpp_serializer.py - replace slow bytes() with fast bytearray()
"if concatenating bytes objects, you can similarly use bytes.join() or io.BytesIO, or you can do in-place concatenation with a bytearray object. bytearray objects are mutable and have an efficient overallocation mechanism"
Type: improvement | @@ -262,10 +262,10 @@ class FixedList(Packer):
len(list), self.num
)
)
- b = bytes()
+ b = bytearray()
for e in list:
b += self.packer.pack(e)
- return b
+ return bytes(b)
def unpack(self, data, offset=0, result=None, ntc=False):
# Return a list of arguments
@@ -311,10 +311,10 @@ class VLAList(Packer):
return b"".join(... |
router: print error message if invalid routing types (logs/metrics) are set | @@ -214,10 +214,6 @@ int flb_router_io_set(struct flb_config *config)
continue;
}
- if (!flb_router_match_type(i_ins->event_type, o_ins)) {
- continue;
- }
-
if (flb_router_match(i_ins->tag, i_ins->tag_len, o_ins->match
#ifdef FLB_HAVE_REGEX
, o_ins->match_regex
@@ -225,6 +221,26 @@ int flb_router_io_set(struct flb_con... |
ensure there's no more data to process before marking as idle | @@ -154,12 +154,14 @@ static void cleanup_connection(struct st_h2o_http1_conn_t *conn)
close_connection(conn, 1);
return;
} else {
+ if (conn->sock->input->size == 0) {
--*get_connection_state_counter(conn->super.ctx, conn->super.state);
h2o_linklist_unlink(&conn->super._conns);
h2o_linklist_insert(&conn->super.ctx->_c... |
re-added improved out of sequence packet detection | @@ -232,6 +232,7 @@ static uint64_t rcgapmax;
static long int taglenerrorcount;
static long int essidcount;
static long int essiderrorcount;
+static long int sequenceerrorcount;
static long int essiddupemax;
static long int malformedcount;
@@ -240,6 +241,7 @@ static uint64_t timestampstart;
static uint64_t timestampmin... |
tic sync fix | @@ -173,7 +173,7 @@ void tic_api_sync(tic_mem* tic, u32 mask, s32 bank, bool toCart)
static const struct { s32 bank; s32 ram; s32 size; u8 mask; } Sections[] =
{
-#define TIC_SYNC_DEF(CART, RAM, INDEX) { offsetof(tic_bank, CART), offsetof(tic_ram, RAM), sizeof(tic_##CART), 1 << INDEX },
+#define TIC_SYNC_DEF(CART, RAM,... |
king: address ~pilfer-pandex review | @@ -37,12 +37,12 @@ textPlain = Path [(MkKnot "text"), (MkKnot "plain")]
-- | Filter for dotfiles, tempfiles and backup files.
validClaySyncPath :: FilePath -> Bool
-validClaySyncPath fp = hasPeriod && notTildeFile && notDotHash && notDoubleHash
+validClaySyncPath fp = hasPeriod && notTildeFile && notDotFile && notDoub... |
quat: axis angle of quaternion | @@ -260,6 +260,56 @@ glm_quat_imag(versor q, vec3 dest) {
dest[2] = q[2];
}
+/*!
+ * @brief returns normalized imaginary part of quaternion
+ *
+ * @param[in] q quaternion
+ */
+CGLM_INLINE
+void
+glm_quat_imagn(versor q, vec3 dest) {
+ glm_normalize_to(q, dest);
+}
+
+/*!
+ * @brief returns length of imaginary part of... |
Roll back 'Add std/adler32 hasher.up_x86_avx2'
See the previous commit for the rationale. | @@ -27,7 +27,6 @@ pub func hasher.update_u32!(x: slice base.u8) base.u32 {
this.state = 1
choose up = [
up_arm_neon,
- up_x86_avx2,
up_x86_sse42]
}
this.up!(x: args.x)
|
just because we may want it :) | #define BMP_FB0_END_TILE_INDEX (BMP_FB0_TILE_INDEX + (BMP_TILE_WIDTH * BMP_TILE_HEIGHT))
#define BMP_FB1_END_TILE_INDEX (BMP_FB1_TILE_INDEX + (BMP_TILE_WIDTH * BMP_TILE_HEIGHT))
+#define BMP_END_TILE_INDEX BMP_FB1_END_TILE_INDEX
#define BMP_BASE_ADDR (BMP_BASE_TILE_INDEX * 32)
#define BMP_FB0_ADDR (BMP_FB0_TILE_INDEX *... |
xtensa: Avoid including handlers when no coprocessor is available | #include "chip.h"
#include "syscall.h"
#include "xtensa_asm_utils.h"
+
+#if XCHAL_CP_NUM > 0
# include "xtensa_coproc.S"
+#endif
/****************************************************************************
* Public Functions
|
Fix an issue in CMake status print | @@ -177,6 +177,9 @@ function(afr_status arg_msg)
# Calculate indent.
string(LENGTH "${status_name}" indent_len)
+ if(indent_len GREATER 35)
+ message(FATAL_ERROR "Status name must be less than 35")
+ endif()
math(EXPR indent_len "${indent_len} - 1")
set(indent "")
foreach(i RANGE ${indent_len})
@@ -189,6 +192,12 @@ fun... |
Nissa: modify Amber LED RGB setting for Craask
<R, G, B> = <90, 10, 0>
It's close to desired color of Amber LED.
BRANCH=none
TEST=the color of Amber LED on the Craask machine is desired color. | color-map-blue = < 0 0 100>;
color-map-yellow = < 0 50 50>;
color-map-white = <100 100 100>;
- color-map-amber = < 70 30 0>;
+ color-map-amber = < 90 10 0>;
brightness-range = <100 100 100 0 0 0>;
|
Directory Value: Add Doxygen comments | @@ -27,6 +27,11 @@ static KeySet * directoryValueContract (void)
keyNew ("system/elektra/modules/directoryvalue/infos/version", KEY_VALUE, PLUGINVERSION, KEY_END), KS_END);
}
+// ====================
+// = Plugin Interface =
+// ====================
+
+/** @see elektraDocGet */
int elektraDirectoryvalueGet (Plugin * ha... |
renaming to tx complete better to understanding
optimiz rx state time | @@ -35,7 +35,7 @@ void Transmit_SendAck(void)
LuosHAL_SetTxState(true);
LuosHAL_SetRxState(false);
LuosHAL_ComTransmit((unsigned char *)&ctx.rx.status.unmap, 1);
- LuosHAL_ComTxTimeout();
+ LuosHAL_ComTxComplete();
LuosHAL_SetRxState(true);
LuosHAL_SetTxState(false);
ctx.rx.status.unmap = 0x0F;
@@ -85,12 +85,12 @@ uint... |
zephyr/make-bin-testsuite: Blacklist extmod/vfs_fat_ramdisklarge.
VFS got recently enabled for Zephyr, so various related tests aren't
automatically skipped, and this particular fails for unrelated reason. | -e async -e intbig -e int_big -e builtin_help -e memstats -e bytes_compare3 -e class_reverse_op \
-e /set -e '_set\.' -e frozenset -e complex -e const -e native -e viper \
-e 'float_divmod\.' -e float_parse_doubleprec -e float/true_value -e float/types \
+ -e extmod/vfs_fat_ramdisklarge \
| ../tools/tinytest-codegen.py... |
Tests: Enable internal check on ASAN/Linux | @@ -130,8 +130,5 @@ endif (INSTALL_TESTING)
file (GLOB SCRIPT_TESTS *.sh)
foreach (file ${SCRIPT_TESTS})
get_filename_component (name ${file} NAME)
- # The test `testscr_check_kdb_internal_check` might fail on Linux if ASAN is enabled because of problematic code in `stl_tree.h`
- if (NOT (${name} MATCHES "check_kdb_int... |
Simplify example dir name | @@ -653,11 +653,7 @@ fi
[ "$(optvalue testcase)" == off ] && OPTS[choice]=${T4P4S_CHOICE-${OPTS[example]}@${OPTS[variant]}}
[ "$(optvalue testcase)" != off ] && OPTS[choice]=${T4P4S_CHOICE-${OPTS[example]}@${OPTS[variant]}-$(optvalue testcase)}
-if [ "${OPTS[model]}" == "${OPTS[choice]}" ]; then
- T4P4S_COMPILE_DIR=${T... |
Fix cfName of ocean param | parameterCategory = 4 ;
parameterNumber = 14 ;
typeOfFirstFixedSurface = 20 ;
+ typeOfSecondFixedSurface = 255 ;
scaleFactorOfFirstFixedSurface = 2 ;
scaledValueOfFirstFixedSurface = 29315 ;
}
+#Ocean mixed layer thickness defined by sigma theta 0.01 kg/m3
+'ocean_mixed_layer_thickness_defined_by_sigma_theta' = {
+ dis... |
nimble/ll: Fix removing IRK from resolv list
We need to move proper number of bytes for complete resolv entry. | @@ -348,7 +348,8 @@ ble_ll_resolv_list_rmv(uint8_t *cmdbuf)
memmove(&g_ble_ll_resolv_list[position - 1],
&g_ble_ll_resolv_list[position],
- g_ble_ll_resolv_data.rl_cnt - position);
+ (g_ble_ll_resolv_data.rl_cnt - position) *
+ sizeof(g_ble_ll_resolv_list[0]));
--g_ble_ll_resolv_data.rl_cnt;
/* Remove from HW list */
|
Ack of random validates connection. | @@ -1304,9 +1304,16 @@ int picoquic_incoming_client_initial(
/* decode the incoming frames */
if (ret == 0) {
+ uint64_t highest_ack_before = (*pcnx)->pkt_ctx[picoquic_packet_context_initial].highest_acknowledged;
ret = picoquic_decode_frames(*pcnx, (*pcnx)->path[0],
bytes + ph->offset, ph->payload_length, received_dat... |
Remove meanwhile redundant error output of apps/opt_next(void) parsing numbers | @@ -740,40 +740,29 @@ int opt_next(void)
break;
case 'p':
case 'n':
- if (!opt_int(arg, &ival)
- || (o->valtype == 'p' && ival <= 0)) {
+ if (!opt_int(arg, &ival))
+ return -1;
+ if (o->valtype == 'p' && ival <= 0) {
opt_printf_stderr("%s: Non-positive number \"%s\" for -%s\n",
prog, arg, o->name);
return -1;
}
break;
... |
include setsockopt(PACKET_MR_PROMISC) in driver check | @@ -4930,8 +4930,8 @@ static inline bool opensocket()
static struct ifreq ifr;
static struct iwreq iwr;
static struct sockaddr_ll ll;
-static struct ethtool_perm_addr *epmaddr;
static struct packet_mreq mr;
+static struct ethtool_perm_addr *epmaddr;
fd_socket = 0;
fd_socket_gpsd = 0;
@@ -5055,7 +5055,11 @@ if(bind(fd_s... |
fs/driver/mtd: Check invaid param in mtdconfig_ioctl function.
If param is NUll, error value EINVAL should return,
otherwise it will cause crash. | @@ -1160,6 +1160,9 @@ static int mtdconfig_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
FAR struct mtdconfig_struct_s *dev = inode->i_private;
FAR struct config_data_s *pdata;
int ret = -ENOSYS;
+ if (!arg) {
+ return -EINVAL;
+ }
switch (cmd) {
case CFGDIOC_SETCONFIG:
|
esp32s2: Add missing ESP32S2 SPIRAM config | @@ -272,6 +272,10 @@ config ESP32S2_SPIFLASH
bool "SPI Flash"
default n
+config ESP32S2_SPIRAM
+ bool "SPI RAM Support"
+ default n
+
config ESP32S2_TIMER0
bool "64-bit Timer 0 (Group 0 Timer 0)"
default n
|
lwip: Add docs about not supported delete of task while blocked on select | @@ -294,6 +294,9 @@ Thread-safe sockets
It is possible to ``close()`` a socket from a different thread to the one that created it. The ``close()`` call will block until any function calls currently using that socket from other tasks have returned.
+It is, however, not possible to delete a task while it is actively wait... |
Minor update to pause/resume documentation | @@ -47,7 +47,9 @@ void XGM_startPlay(const u8 *song);
void XGM_stopPlay();
/**
* \brief
- * Pause playing music, music can be resumed by calling #XGM_resumePlay (XGM music player driver).
+ * Pause playing music, music can be resumed by calling #XGM_resumePlay (XGM music player driver).<br>
+ * Note that due to the nat... |
travis: export llvm paths | @@ -212,6 +212,9 @@ before_script:
SYSTEM_DIR="$PWD/kdbsystem"
export CC_FOR_BUILD="$CC"
export CXX_FOR_BUILD="$CXX"
+ if [ "$CC" = 'clang-12' ]; then
+ export PATH=/usr/lib/llvm-12/bin:$PATH
+ fi
mkdir build && cd build
CMAKE_OPT+=(
-GNinja
|
fstore: fix invalid reference on exception (CID 310820) | @@ -145,9 +145,9 @@ struct flb_fstore_file *flb_fstore_file_create(struct flb_fstore *fs,
}
fsf->name = flb_sds_create(name);
if (!fsf->name) {
- flb_free(fsf);
flb_error("[fstore] could not create file: %s:%s",
fsf->stream->name, name);
+ flb_free(fsf);
return NULL;
}
|
test %generators | !:
|%
+$ card card:agent:gall
-+$ test ?(%agents %marks)
++$ test ?(%agents %marks %generators)
+$ state
$: app=(set path)
app-ok=?
mar=(set path)
mar-ok=?
+ gen=(set path)
+ gen-ok=?
==
--
=, format
?- test
%marks test-marks
%agents test-agents
+ %generators test-generators
==
::
++ test-marks
app.state (~(put in app.... |
make -j bombs my docker | @@ -8,5 +8,4 @@ fi
cd qemu/qemu
./configure --target-list=i386-linux-user,x86_64-linux-user,arm-linux-user,ppc-linux-user,aarch64-linux-user,mips-linux-user,mipsel-linux-user --enable-tcg-interpreter --enable-debug-tcg --cpu=unknown --python=python
-make -j
-
+make -j$(getconf _NPROCESSORS_ONLN)
|
Improve error messages when BUFR encoded value out of range | @@ -837,6 +837,8 @@ static int encode_double_value(grib_context* c,grib_buffer* buff,long* pos,bufr_
value = GRIB_MISSING_DOUBLE; /* Ignore the bad value and instead use 'missing' */
grib_set_bits_on(buff->data,pos,modifiedWidth);
} else {
+ grib_context_log(c, GRIB_LOG_DEBUG, "encode_double_value: %s. Value (%g) out o... |
Start introducing Bounties | @@ -51,6 +51,9 @@ void fail() {
// know where to sig check
extern void *_app_start[];
+// FIXME: sometimes your panda will fail flashing and will quickly blink a single Green LED
+// BOUNTY: $200 coupon on shop.comma.ai or $100 check.
+
int main() {
__disable_irq();
clock_init();
|
Allow the host to suggest a window title | @@ -15,6 +15,10 @@ typedef struct clap_plugin_gui_free_standing {
// embedded in the host and managed by the plugin.
// [main-thread]
bool (*open)(const clap_plugin_t *plugin);
+
+ // Suggests a window title
+ // [main-thread]
+ void (*suggest_window_title)(const clap_plugin_t *plugin);
} clap_plugin_gui_free_standing_... |
Require an argument for an audio device id;
(It can still be nil or a non-userdata value to use the default) | @@ -41,6 +41,7 @@ static int l_lovrAudioGetDevices(lua_State *L) {
static int l_lovrAudioSetDevice(lua_State *L) {
AudioType type = luax_checkenum(L, 1, AudioType, "playback");
+ luaL_checkany(L, 2);
void* id = lua_touserdata(L, 2);
size_t size = luax_len(L, 2);
uint32_t sampleRate = lua_tointeger(L, 3);
|
filter: allow instance name up to 32 bytes | @@ -58,7 +58,7 @@ struct flb_filter_plugin {
struct flb_filter_instance {
int id; /* instance id */
- char name[16]; /* numbered name */
+ char name[32]; /* numbered name */
char *alias; /* alias name */
char *match; /* match rule based on Tags */
#ifdef FLB_HAVE_REGEX
|
remove gpsd from alpine-mcpha.sh | @@ -99,7 +99,7 @@ echo $alpine_url/community >> $root_dir/etc/apk/repositories
chroot $root_dir /bin/sh <<- EOF_CHROOT
apk update
-apk add openssh iw wpa_supplicant dhcpcd dnsmasq hostapd iptables avahi dbus dcron chrony gpsd musl-dev curl wget less nano bc
+apk add openssh iw wpa_supplicant dhcpcd dnsmasq hostapd ipta... |
Parse "a[i]". | @@ -346,7 +346,22 @@ func (p *parser) parseOperand() (*a.Node, error) {
// TODO: parse "f(i)".
case t.IDOpenBracket:
- // TODO: parse "a[i]".
+ p.src = p.src[1:]
+ rhs, err := p.parseExpr()
+ if err != nil {
+ return nil, err
+ }
+ if x := p.peekID(); x != t.IDCloseBracket {
+ got := p.m.ByKey(x.Key())
+ return nil, fm... |
Reduce clientWiatSync timeout for WebGL; | @@ -1152,7 +1152,7 @@ void lovrGpuUnlock(void* lock) {
if (!lock) return;
GLsync sync = (GLsync) lock;
if (glClientWaitSync(sync, 0, 0) == GL_TIMEOUT_EXPIRED) {
- while (glClientWaitSync(sync, GL_SYNC_FLUSH_COMMANDS_BIT, 1E9) == GL_TIMEOUT_EXPIRED) {
+ while (glClientWaitSync(sync, GL_SYNC_FLUSH_COMMANDS_BIT, 32768) ==... |
gitlab: Build herobrine_npcx9 on gitlab
Add herobrine_npcx9 to gitlab CI script.
TEST=None
BRANCH=None
Tested-by: Jeremy Bettis | @@ -83,6 +83,13 @@ hayato:
VERSION: 26
<<: *build_template
+herobrine_npcx9:
+ variables:
+ PROJECT: "herobrine_npcx9"
+ PROJECT_SUBDIR: "herobrine/"
+ VERSION: 26
+ <<: *build_template
+
it8xxx2_evb:
variables:
PROJECT: "it8xxx2_evb"
|
VirtualScroller: remove incorrect .toString() calls | @@ -101,7 +101,9 @@ interface VirtualScrollerState<K> {
}
type LogLevel = 'scroll' | 'network' | 'bail' | 'reflow';
-const logLevel = ['network', 'bail', 'scroll', 'reflow'] as LogLevel[];
+const logLevel = process.env.NODE_ENV === 'production'
+ ? []
+ : ['network', 'bail', 'scroll', 'reflow'] as LogLevel[];
const log... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.