message
stringlengths
6
474
diff
stringlengths
8
5.22k
sysdeps/managarm: Stub sys_fchownat
@@ -2822,6 +2822,16 @@ int sys_fchmodat(int fd, const char *pathname, mode_t mode, int flags) { } } +int sys_fchownat(int dirfd, const char *pathname, uid_t owner, gid_t group, int flags) { + (void)dirfd; + (void)pathname; + (void)owner; + (void)group; + (void)flags; + mlibc::infoLogger() << "mlibc: sys_fchownat is a s...
[platon][tests]reslove tests err
@@ -96,7 +96,7 @@ START_TEST(test_001CreateWallet_0001CreateOneTimeWalletSuccess) g_platon_wallet_ptr = BoatGetWalletByIndex(rtnVal); ck_assert(g_platon_wallet_ptr != NULL); - ck_assert(check_platon_wallet(g_platon_wallet_ptr) == BOAT_SUCCESS); + //ck_assert(check_platon_wallet(g_platon_wallet_ptr) == BOAT_SUCCESS); Bo...
doc: start writing release notes
@@ -227,6 +227,9 @@ base64 \fIbase64/\fR using the Base64 encoding scheme (RFC4648) Transformations: . .IP "\(bu" 4 +directoryvalue \fIdirectoryvalue/\fR converts directory values to leaf values +. +.IP "\(bu" 4 keytometa \fIkeytometa/\fR transforms keys to metadata . .IP "\(bu" 4
Add function comment.
@@ -140,6 +140,9 @@ storagePosixInfo(THIS_VOID, const String *file, StorageInterfaceInfoParam param) } /**********************************************************************************************************************************/ +// Helper function to get info for a file if it exists. This logic can't live direc...
Added ksceKernelRegisterSysEventHandler to header
extern "C" { #endif +typedef int (* SceSysEventHandler)(int resume, int eventid, void *args, void *opt); + typedef enum SceKernelPowerTickType { /** Cancel all timers */ SCE_KERNEL_POWER_TICK_DEFAULT = 0, @@ -34,6 +36,17 @@ typedef enum SceKernelPowerTickType { */ int ksceKernelPowerTick(int type); +/** + * Register sy...
sysdeps/managarm: Implement sys_pwrite
@@ -3917,6 +3917,56 @@ int sys_pread(int fd, void *buf, size_t n, off_t off, ssize_t *bytes_read) { } } +int sys_pwrite(int fd, const void *buf, size_t n, off_t off, ssize_t *bytes_written) { + SignalGuard sguard; + + auto handle = getHandleForFd(fd); + if (!handle) + return EBADF; + + managarm::fs::CntRequest<MemoryAl...
rmt: fix wrong signal assign on esp32
@@ -22,35 +22,35 @@ const rmt_signal_conn_t rmt_periph_signals = { .channels = { [0] = { .tx_sig = RMT_SIG_OUT0_IDX, - .rx_sig = -1 + .rx_sig = RMT_SIG_IN0_IDX }, [1] = { .tx_sig = RMT_SIG_OUT1_IDX, - .rx_sig = -1 + .rx_sig = RMT_SIG_IN1_IDX }, [2] = { .tx_sig = RMT_SIG_OUT2_IDX, - .rx_sig = -1 + .rx_sig = RMT_SIG_IN2_...
[CUDA] Fix bug in notify handler We were assuming all notifications were from external events, which isn't the case anymore.
@@ -1230,6 +1230,10 @@ pocl_cuda_submit (_cl_command_node *node, cl_command_queue cq) void pocl_cuda_notify (cl_device_id device, cl_event event, cl_event finished) { + /* Ignore CUDA device events, we've already handled these dependencies */ + if (finished->queue && finished->queue->device->ops == device->ops) + retur...
Add pool_get_zero, pool_get_aligned_zero macros Shorthand for the pattern: pool_get (<pool>, ep); memset (ep, 0, sizeof(*ep)); Should have done this years ago.
@@ -185,7 +185,7 @@ pool_free_elts (void *v) First search free list. If nothing is free extend vector of objects. */ -#define pool_get_aligned(P,E,A) \ +#define _pool_get_aligned_internal(P,E,A,Z) \ do { \ pool_header_t * _pool_var (p) = pool_header (P); \ uword _pool_var (l); \ @@ -222,11 +222,22 @@ do { \ /* align */...
Fixed undefined behavior in UBSan.
@@ -158,9 +158,11 @@ static int64_t get_signed_val(FAR struct type_descriptor *type, if (is_inline_int(type)) { unsigned extra_bits = sizeof(int64_t) * 8 - type_bit_width(type); - uintptr_t ulong_val = (uintptr_t)val; + uint64_t mask = (1llu << extra_bits) - 1; + uint64_t ret = (uint64_t)val & mask; - return ((int64_t)...
landscape: fix dismiss
@@ -153,7 +153,7 @@ class App extends React.Component { A network-wide breach is scheduled for early December 2020. Please visit <Anchor target="_blank" href="https://urbit.org/breach" color='inherit'>urbit.org/breach</Anchor> for more information. </Text> <Text cursor='pointer' fontWeight='500' onClick={() => { - bann...
support on_unsubscribe
@@ -109,6 +109,8 @@ typedef struct { * The callback will be called for each message forwarded to the subscription. */ void (*callback)(facil_msg_s *msg); + /** An optional callback for when a subscription is fully canceled. */ + void (*on_unsubscribe)(void *udata1, void *udata2); /** The udata values are ignored and ma...
Restore missing allowed failures
@@ -70,6 +70,10 @@ matrix: - os : linux env : TESTS=sawHMACFailure SAW=true addons : *sawaddons + allow_failures: + - os: osx + # Optional until we resolve broken remote dependency: https://github.com/awslabs/s2n/pull/615 + - env: TESTS=ctverif fast_finish: true
Disable O_RSYNC
@@ -303,7 +303,7 @@ m3ApiRawFunction(m3_wasi_unstable_fd_fdstat_get) fdstat->fs_flags = ((fl & O_APPEND) ? __WASI_FDFLAG_APPEND : 0) | ((fl & O_DSYNC) ? __WASI_FDFLAG_DSYNC : 0) | ((fl & O_NONBLOCK) ? __WASI_FDFLAG_NONBLOCK : 0) | - ((fl & O_RSYNC) ? __WASI_FDFLAG_RSYNC : 0) | + //((fl & O_RSYNC) ? __WASI_FDFLAG_RSYNC ...
Deploy constitution resolver
=^ delegated-sending this %+ do-deploy 'delegated-sending' ~[address+ships] + ~& 'Deploying constitution-resolver...' + =^ constitution-resolver this + %+ do-deploy 'constitution-resolver' + ~[address+ships] :: :: tlon galaxy booting ::
external/mbedtls: modify a dependancy ARCH_BOARD_ARTIK05X_FAMILY with SUPPORT_FULL_SECURITY Even if artik053 is selected, security on tls can be used.
@@ -7,7 +7,7 @@ config TLS_WITH_SSS config SUPPORT_FULL_SECURITY bool "Enable full security features" - depends on S5J_SSS && (ARCH_BOARD_ARTIK053 || ARCH_BOARD_ARTIK053S) + depends on S5J_SSS && ARCH_BOARD_ARTIK05X_FAMILY default n ---help--- Supports security features with secure storage.
[viostor] fix SRB_GET_SENSE_INFO_BUFFER macro
@@ -86,7 +86,8 @@ SrbGetPnpInfo(_In_ PVOID Srb, ULONG* PnPFlags, ULONG* PnPAction) { #define SRB_LENGTH(Srb) SrbGetSrbLength(Srb) #define SRB_WMI_DATA(Srb) (PSRBEX_DATA_WMI)SrbGetSrbExDataByType((PSTORAGE_REQUEST_BLOCK)Srb, SrbExDataTypeWmi) #define SRB_GET_SENSE_INFO(Srb, senseInfoBuffer, senseInfoBufferLen) SrbGetScs...
[components][dfs][ramfs] add RT_Object_Class_MemHeap flag for ramfs->memheap
@@ -453,6 +453,7 @@ struct dfs_ramfs* dfs_ramfs_create(rt_uint8_t *pool, rt_size_t size) /* initialize ramfs object */ ramfs->magic = RAMFS_MAGIC; + ramfs->memheap.parent.type = RT_Object_Class_MemHeap | RT_Object_Class_Static; /* initialize root directory */ memset(&(ramfs->root), 0x00, sizeof(ramfs->root));
graph-store: remove obsoleted code necessary to keep graph marks warm
%0 %_ $ -.old %1 - :: - validators.old - (~(put in validators.old) %graph-validator-link) - :: - cards - %+ weld cards - %+ turn - ~(tap in (~(put in validators.old) %graph-validator-link)) - |= validator=@t - ^- card - =/ =wire /validator/[validator] - =/ =rave:clay [%sing %b [%da now.bowl] /[validator]] - [%pass wire...
Add missing quote in docs Mistake in commit Reported-by: Ian Barwick
@@ -267,7 +267,7 @@ CREATE FOREIGN TABLE pglog ( application_name text, backend_type text ) SERVER pglog -OPTIONS ( filename log/pglog.csv', format 'csv' ); +OPTIONS ( filename 'log/pglog.csv', format 'csv' ); </programlisting> </para>
add ability to turn on plugins for CPP_PROTO Note: mandatory check (NEED_CHECK) was skipped
@@ -316,6 +316,7 @@ CPP_PROTO_CMDLINE= CPP_PROTO_OPTS= CPP_PROTO_OUTS= CPP_PROTO_SUFFIXES=.pb.h .pb.cc +CPP_PROTO_PLUGINS= CPP_EV_OPTS= CPP_EV_OUTS= @@ -617,7 +618,7 @@ module _BASE_UNIT { PROTO_HEADER_INCLUDE=contrib/libs/protobuf/stubs/once.h contrib/libs/protobuf/io/coded_stream.h contrib/libs/protobuf/wire_format_l...
Made state based default dis
@@ -399,7 +399,7 @@ int survive_startup(SurviveContext *ctx) { ctx->buttonservicethread = OGCreateThread(button_servicer, ctx); PoserCB PreferredPoserCB = GetDriverByConfig(ctx, "Poser", "defaultposer", "MPFIT"); - ctx->lightcapfunction = GetDriverByConfig(ctx, "Disambiguator", "disambiguator", "Turvey"); + ctx->lightc...
Fix problem with debug output
@@ -209,7 +209,8 @@ esp_cb(esp_cb_t* cb) { return espOKIGNOREMORE; /* Return OK to free the memory and ignore further data */ } } - ESP_DEBUGF(ESP_CFG_DBG_NETCONN | ESP_DBG_TYPE_TRACE, "NETCONN: Written %d bytes to receive mbox\r\n", cb->cb.conn_data_recv.buff->len); + ESP_DEBUGF(ESP_CFG_DBG_NETCONN | ESP_DBG_TYPE_TRAC...
security fix: double free in function handle_format_unit
@@ -595,7 +595,6 @@ static int handle_format_unit(struct tcmu_device *dev, struct tcmulib_cmd *cmd) state->length = (num_lbas - state->done_blocks) * block_size; if (alloc_iovec(writecmd, state->length)) { - free(state); goto free_state; }
Remove bashisms from tests/check-namespace.sh Stray errors were being reported on travis.ci because /bin/sh was not bash. Fixes
@@ -93,7 +93,7 @@ filter_misc () { ignore _gp fi - if [ ${os} == "solaris2.11" ]; then + if [ ${os} = "solaris2.11" ]; then ignore _PROCEDURE_LINKAGE_TABLE_ ignore _etext fi
Check result of ftell()
@@ -30,7 +30,8 @@ static int split_file(FILE* in, const char* filename, const int nchunks, unsigne { void* mesg=NULL; FILE* out; - size_t size=0,read_size=0,insize=0,chunk_size; + off_t insize=0; + size_t size=0,read_size=0,chunk_size; off_t offset=0; int err=GRIB_SUCCESS; int i; @@ -44,6 +45,8 @@ static int split_file...
Fix declaration order in cbmc_utils.c
@@ -119,6 +119,9 @@ int nondet_compare(const void *const a, const void *const b) } int __CPROVER_uninterpreted_compare(const void *const a, const void *const b); +bool __CPROVER_uninterpreted_equals(const void *const a, const void *const b); +uint64_t __CPROVER_uninterpreted_hasher(const void *const a); + int uninterpr...
x86_64: fail or attempt to map page-tables read/write
@@ -294,7 +294,6 @@ static errval_t x86_64_ptable(struct capability *dest, cslot_t slot, if (src->type != ObjType_Frame && src->type != ObjType_DevFrame && //(!type_is_ept(dest->type) && - src->type != ObjType_RAM && !type_is_vnode(src->type) && src->type != ObjType_EndPointUMP) { // Right mapping debug(SUBSYS_PAGING, ...
Don't override CMAKE_INSTALL_RPATH Tested-by: Build Bot
@@ -66,11 +66,13 @@ ELSE() ENDIF() SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) + IF("${CMAKE_INSTALL_RPATH}" STREQUAL "") LIST(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/lib" isSystemDir) IF("${isSystemDir}" STREQUAL "-1") SET(CMAKE_INSTALL_RPATH "...
Add delete to replace with '.'
@@ -1777,6 +1777,10 @@ int main(int argc, char** argv) { app_modify_selection_size(&app_state, 0, 1); break; + case 330: // delete? + app_input_character(&app_state, '.'); + break; + case KEY_F(1): app_state.grid_scroll_x -= 1; app_state.is_draw_dirty = true;
framework/media: remove unnecessary code Try to free an uninitialized pointer may cause problem.
@@ -322,7 +322,6 @@ bool header_parsing(FILE *fp, audio_type_t audioType, unsigned int *channel, uns ret = fseek(fp, -1, SEEK_CUR); if (ret != OK) { meddbg("file seek failed errno : %d\n", errno); - free(header); return false; } }
[core] handle RDHUP when collecting chunked body handle RDHUP as soon as RDHUP detected when collecting HTTP/1.1 chunked request body (and when not streaming request body to backend) x-ref:
@@ -2228,7 +2228,7 @@ handler_t gw_handle_subrequest(request_st * const r, void *p_d) { * and module is flagged to stream request body to backend) */ return (r->conf.stream_request_body & FDEVENT_STREAM_REQUEST) ? http_response_reqbody_read_error(r, 411) - : HANDLER_WAIT_FOR_EVENT; + : (rc == HANDLER_GO_ON) ? HANDLER_W...
R-package fix empty params
@@ -1433,9 +1433,7 @@ catboost.train <- function(learn_pool, test_pool = NULL, params = list()) { if (length(params) == 0) message("Training catboost with default parameters! See help(catboost.train).") - params <- prepare_train_params(params) - - json_params <- jsonlite::toJSON(params, auto_unbox = TRUE) + json_params...
(543) http-metrics event now matches HTTTP/1 The `req_per_sec` value is hard-coded to `2` for now. Need to review the open question about how this value should be calculated.
@@ -1303,12 +1303,16 @@ doHttp2Frame(protocol_info *proto) // build and send the `http-metrics` event event_field_t mfields[] = { DURATION_FIELD(duration), - //RATE_FIELD(rps), // XXX the HTTP/1 math for this value is curious... - //HTTPSTAT_FIELD(status), // TODO + // TODO RPS is hard coded for now + // see docs/HTTP....
readme: update CONTRIBUTING.md This fixes some links and updates the git policy to reflect the use of `next/` branches.
@@ -9,8 +9,12 @@ interface, see its [contribution guidelines][interface]. For information on Arvo's maintainers, see [pkg/arvo][main]. +For more extensive information on Urbit development, such as how to set up an +environment and how to submit a grant, see the [developer documentation][dev]. + [start]: https://urbit.o...
Create only fold-count folds
@@ -379,18 +379,14 @@ static void CreateFoldData( NCB::ExecuteTasksInParallel(&tasks, localExecutor); } -static void RemoveUnusedFolds( +static void TakeMiddleElements( ui32 offset, - ui32 foldCount, - TVector<TTrainingDataProviders>* foldsData, - TVector<TTrainingDataProviders>* testFoldsData + ui32 count, + TVector<N...
BugID:17134554: fixed aos compile error first
#ifndef IOT_EXPORT_HTTP2_H #define IOT_EXPORT_HTTP2_H -#include "lite-list.h" #ifdef __cplusplus extern "C" { @@ -19,6 +18,11 @@ typedef enum { } http2_flag; +typedef struct http2_list_s { + struct http2_list_s *prev; + struct http2_list_s *next; +} http2_list_t; + typedef struct http2_connection { void *network; /* io...
get_disto: make ReadPicture() return a bool the input size of one of the images in the output didn't add much value.
#include "../imageio/image_dec.h" #include "../imageio/imageio_util.h" -static size_t ReadPicture(const char* const filename, WebPPicture* const pic, +static int ReadPicture(const char* const filename, WebPPicture* const pic, int keep_alpha) { const uint8_t* data = NULL; size_t data_size = 0; @@ -45,7 +45,7 @@ static s...
test: added more tests for the keyCopy function.
@@ -776,8 +776,53 @@ static void test_keyCopy (void) succeed_if_same_string (keyName (k), "/abc"); succeed_if_same_string (keyName (c), "/abc"); + succeed_if (keySetName (c, "spec:/test") != -1, "could not set name"); + succeed_if (keyCopy (k, c, KEY_CP_NAME) != NULL, "could not copy"); + succeed_if_same_string (keyNam...
Enhanced pack description with ARM Compiler 6 awareness for Cortex-A.
@@ -843,7 +843,12 @@ and 8-bit Java bytecodes in Jazelle state. <condition id="CA_ARMCC"> <description>Cortex-A5, Cortex-A7 or Cortex-A9 processor based device for the ARM Compiler</description> <require condition="ARMv7-A Device"/> - <require Tcompiler="ARMCC"/> + <require condition="ARMCC"/> + </condition> + <conditi...
Even better: run assert_exhaustion only with --all flag
@@ -518,8 +518,8 @@ for fn in jsonFiles: test.expected[0]["value"] = "<Arithmetic NaN>" elif test.type == "assert_trap": test.expected_trap = cmd["text"] - #elif test.type == "assert_exhaustion": - # test.expected_trap = "stack overflow" + elif test.type == "assert_exhaustion" and args.all: # TODO: Remove args.all chec...
viorng: log out also VirtIO debug printouts
*/ #include "viorng.h" +#include <ntstrsafe.h> #include "virtio.tmh" @@ -36,8 +37,22 @@ static void NoDebugPrintFunc(const char *format, ...) UNREFERENCED_PARAMETER(format); } +static void DebugPrintFuncWPP(const char *format, ...) +{ + char buf[256]; + NTSTATUS status; + va_list list; + va_start(list, format); + statu...
X509V3_set_ctx(): Improve documentation
@@ -16,29 +16,32 @@ X509V3_set_issuer_pkey - X.509 v3 extension generation utilities =head1 DESCRIPTION X509V3_set_ctx() fills in the basic fields of I<ctx> of type B<X509V3_CTX>, -providing details potentially needed by functions producing X509 v3 extensions, -e.g., to look up values for filling in authority key ident...
CMSIS-NN: Added missing intrinsics for Cortex-A.
@@ -332,7 +332,10 @@ __STATIC_FORCEINLINE uint8_t __CLZ(uint32_t value) #define __SMUSD __builtin_arm_smusd #define __SMUSDX __builtin_arm_smusdx #define __SMLSDX __builtin_arm_smlsdx - +#define __USAT16 __builtin_arm_usat16 +#define __SSUB8 __builtin_arm_ssub8 +#define __SXTB16 __builtin_arm_sxtb16 +#define __SXTAB16 ...
Add additional integrity checks while in paranoid mode.
@@ -826,6 +826,9 @@ int yr_execute_code( // After the opcode there's an int32_t corresponding to the jump's // offset and an uint32_t corresponding to the rule's index. current_rule_idx = *(uint32_t*)(ip + sizeof(int32_t)); + + assert(current_rule_idx < context->rules->num_rules); + current_rule = &context->rules->rule...
When reading group membership make sure server cluster exists lumi.ctrl_ln2.aq1 doesn't provide a group cluster on the second endpoint.
@@ -7173,6 +7173,21 @@ bool DeRestPluginPrivate::readGroupMembership(LightNode *lightNode, const std::v return false; } + bool found = false; + for (const auto &cl : lightNode->haEndpoint().inClusters()) + { + if (cl.id() == GROUP_CLUSTER_ID) + { + found = true; + break; + } + } + + if (!found) // not all light endpoin...
io: properly set the file descriptor mode according to the stream flags
int flb_io_net_accept(struct flb_connection *connection, struct flb_coro *coro) { + int flags; int ret; if (connection->fd != FLB_INVALID_SOCKET) { @@ -84,6 +85,15 @@ int flb_io_net_accept(struct flb_connection *connection, return -1; } + /* Since flb_net_accept implicitly makes the client socket non blocking + * we ha...
Set path for installation
@@ -40,6 +40,7 @@ jobs: -DBUILD_TESTING=ON -DDOWNLOAD_AND_BUILD_DEPS=ON -DUPNP_ENABLE_OPEN_SSL=ON + -DCMAKE_INSTALL_PREFIX=${{ GITHUB_WORKSPACE }}/test-install ${{ env.cmake_extra_flags }} - name: Build run: cmake --build build --config ${{matrix.conf}} @@ -71,6 +72,7 @@ jobs: -DCMAKE_BUILD_TYPE=${{ matrix.conf }} -DBU...
app_trace: Fix tmo initialization
@@ -41,6 +41,7 @@ static inline void esp_apptrace_tmo_init(esp_apptrace_tmo_t *tmo, uint32_t user_ { tmo->start = portGET_RUN_TIME_COUNTER_VALUE(); tmo->tmo = user_tmo; + tmo->elapsed = 0; } /**
Fix vrapi includes;
#include "graphics/canvas.h" #include "graphics/graphics.h" #include "graphics/model.h" +#include "graphics/texture.h" +#include "data/blob.h" #include "core/maf.h" #include "core/os.h" #include <stdint.h>
Fix installing stack.
@@ -21,7 +21,9 @@ before_install: - | # Install stack mkdir -p ~/.local/bin # travis_retry curl -L https://get.haskellstack.org/stable/osx-x86_64.tar.gz | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin - travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --strip-compo...
vioser: fix possible NULL 'port' pointer dereference (SDV) VIOSerialFindPortById may produce NULL 'port' pointer, VIOSerialInitPortConsole may consume it and perform pointer dereference.
@@ -152,7 +152,7 @@ VIOSerialHandleCtrlMsg( case VIRTIO_CONSOLE_CONSOLE_PORT: TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "VIRTIO_CONSOLE_CONSOLE_PORT id = %d value = %u\n", cpkt->id, cpkt->value); - if (cpkt->value) + if (port && cpkt->value) { VIOSerialInitPortConsole(Device,port); }
Switching Visual Studio 2017 build to 32 bit
@@ -23,7 +23,7 @@ environment: BOOST_ROOT: "C:/Libraries/boost" # New build on Visual Studio 15 2017 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 - GENERATOR: "Visual Studio 15 2017 Win64" + GENERATOR: "Visual Studio 15 2017" GROUP: "EXPERIMENTAL" BOOST_ROOT: "C:/Libraries/boost_1_67_0"
Vulkan Overlay: Don't try to change the image layout to present twice The render pass already does the transition. The pipeline barrier is still needed to transfer the queue family ownership. Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3740> Part-of: <https://gitlab.freedesktop.org/mes...
@@ -1706,12 +1706,16 @@ static struct overlay_draw *render_swapchain_display(struct swapchain_data *data device_data->vtable.CmdEndRenderPass(draw->command_buffer); - /* Bounce the image to display back to present layout. */ + if (device_data->graphic_queue->family_index != present_queue->family_index) + { + /* Transfe...
add test to result.json
"checksum": "7e1f25371d18c5f1fa356a8972aa8d7b", "uri": "file://test.test_yetirank_with_params_calc_block=60-Plain_/test.eval" } + ], + "test.test_total_f1_params[Macro]": [ + { + "checksum": "45a9b213724dc657f87b870a7a8cbc2f", + "uri": "file://test.test_total_f1_params_Macro_/output.tsv" + } + ], + "test.test_total_f1_...
win32: load correct NVAPI dll by checking _WIN64
@@ -25,10 +25,12 @@ unsigned int gpuUsages[NVAPI_MAX_USAGES_PER_GPU] = { 0 }; bool checkNVAPI(){ - if (MANGOHUD_ARCH == "64bit") +#if _WIN64 hmod = LoadLibraryA("nvapi64.dll"); - else +#else hmod = LoadLibraryA("nvapi.dll"); +#endif + if (hmod == NULL) { printf("Failed to load nvapi.dll");
Now using self-as-partner arms wherever appropriate.
=/ oud (~(got by aud.tot.t) [%& (above our.bol) nom]) =+ (~(del by aud.tot.t) [%& (above our.bol) nom]) - (~(put by -) [%& our.bol nom] oud) + (~(put by -) so-pan oud) :: burden flag (so-delta-our %burden &) :: sa-change-remote :: $status - ?: =(pan.dif [%& our.bol nom]) + ?: =(pan.dif sa-pan) sa-change-local sa-change...
removed tests up to test_bhdct_get_nonexist_many in int_int suite
@@ -1507,13 +1507,13 @@ bhdct_run_tests( PLANCK_UNIT_ADD_TO_SUITE(suite, test_bhdct_get_in_many); PLANCK_UNIT_ADD_TO_SUITE(suite, test_bhdct_get_lots); -*/ + PLANCK_UNIT_ADD_TO_SUITE(suite, test_bhdct_get_nonexist_empty); PLANCK_UNIT_ADD_TO_SUITE(suite, test_bhdct_get_nonexist_single); PLANCK_UNIT_ADD_TO_SUITE(suite, t...
Make new IV and block size getters return size_t
@@ -516,13 +516,13 @@ static inline const char *mbedtls_cipher_info_get_name( * \return The recommended IV size. * \return \c 0 for ciphers not using an IV or a nonce. */ -static inline int mbedtls_cipher_info_get_iv_size( +static inline size_t mbedtls_cipher_info_get_iv_size( const mbedtls_cipher_info_t *info ) { if( ...
tests: add test run time. Type: feature
@@ -1394,7 +1394,7 @@ class VppTestResult(unittest.TestResult): test.__class__._header_printed = True print_header(test) - + self.start_test = time.time() unittest.TestResult.startTest(self, test) if self.verbosity > 0: self.stream.writeln( @@ -1409,13 +1409,16 @@ class VppTestResult(unittest.TestResult): """ unittest....
Remove bogus cast
@@ -124,8 +124,7 @@ int ngtcp2_acktr_add(ngtcp2_acktr *acktr, ngtcp2_acktr_entry *ent, tail = acktr->tail; *tail->pprev = NULL; - acktr->tail = ngtcp2_struct_of((ngtcp2_acktr_entry *)tail->pprev, - ngtcp2_acktr_entry, next); + acktr->tail = ngtcp2_struct_of(tail->pprev, ngtcp2_acktr_entry, next); ngtcp2_acktr_entry_del...
Ensure the WebSocket server also supports openssl-1.1*.
@@ -498,7 +498,9 @@ ws_ssl_cleanup (WSServer * server) CRYPTO_set_id_callback (NULL); CRYPTO_set_locking_callback (NULL); ERR_free_strings (); +#if OPENSSL_VERSION_NUMBER < 0x10100000L ERR_remove_state (0); +#endif EVP_cleanup (); } #endif @@ -644,7 +646,11 @@ initialize_ssl_ctx (WSServer * server) int ret = 1; SSL_CTX...
[NFSU] add one more frametime patch
@@ -1032,6 +1032,9 @@ void Init() if (FrameSeconds < 60.0) FrameSeconds = 60.0; injector::WriteMemory(dword_6CC8B0, FrameSeconds, true); + // another frametime -- seems to affect some gameplay elements... + uint32_t* dword_6B5C08 = *hook::pattern("DF E0 F6 C4 41 7A ? 8A 44 24 12 D9 05 ? ? ? ?").count(1).get(0).get<uint...
armv8: Remove duplicate armv8 qemu target
@@ -759,15 +759,6 @@ let bin_rcce_lu = [ "/sbin/" ++ f | f <- [ ) "Boot QEMU in 64-bit ARM mode emulating a ARM Virtual Machine using U-Boot", - boot "qemu_armv8_uboot" [ "armv8" ] ([ - In SrcTree "tools" "/tools/qemu-wrapper.sh", - Str "--image", In BuildTree "root" "/armv8_a57_qemu_image.efi", - Str "--arch", Str "ar...
OpenXR build instructions; It is probably bad that there is not a better place to put this, but it is better than nothing.
@@ -238,6 +238,8 @@ if(LOVR_ENABLE_HEADSET AND LOVR_USE_OPENVR) endif() # OpenXR +# Currently, to use OpenXR, add the OpenXR SDK to the deps folder: +# git submodule add https://github.com/khronosgroup/openxr-sdk deps/openxr if(LOVR_ENABLE_HEADSET AND LOVR_USE_OPENXR) include_directories(deps/openxr/include) add_subdir...
If built with --enable-debug, do not minify app.js and chart.js.
@@ -99,6 +99,9 @@ if HAS_SEDTR else ./bin2c $(srcdir)/resources/js/charts.js src/chartsjs.h charts_js endif +if DEBUG + ./bin2c $(srcdir)/resources/js/charts.js src/chartsjs.h charts_js +endif # App.js src/appjs.h: bin2c$(EXEEXT) $(srcdir)/resources/js/app.js if HAS_SEDTR @@ -107,6 +110,9 @@ if HAS_SEDTR else ./bin2c $...
esp_hw_support: explicit initialization
@@ -59,36 +59,36 @@ _Static_assert(NUM_RESULTS == NUM_MESSAGES, "expected_results size should be the TEST_CASE("Digital Signature Parameter Encryption data NULL", "[hw_crypto] [ds]") { - const char iv [32]; - esp_ds_p_data_t p_data; - const char key [32]; + const char iv [32] = {0}; + esp_ds_p_data_t p_data = {0}; + co...
Add instructions for Scoop installation.
@@ -82,6 +82,17 @@ Janet is prebuilt for a few systems, but if you want to develop janet, run janet get the latest, you must build janet from source. Janet is in alpha and may change in backwards incompatible ways. +### Windows + +On Windows, the easiest way to install is via the [scoop](https://scoop.sh) +package mana...
khan: sequence number before socket open
@@ -102,6 +102,16 @@ u3_khan_io_init(u3_pier* pir_u) car_u->io.kick_f = _khan_io_kick; car_u->io.exit_f = _khan_io_exit; + { + u3_noun now; + struct timeval tim_u; + gettimeofday(&tim_u, 0); + + now = u3_time_in_tv(&tim_u); + cop_u->sev_l = u3r_mug(now); + u3z(now); + } + // Open socket. The full socket path is limited...
publish: edit post content no longer tied to api The component for editing a post was tied up in checking for API instantiation -- we want the check for a blank body to be independent of that. Fixes
@@ -25,10 +25,13 @@ export class EditPost extends Component { componentDidUpdate(prevProps) { const { props, state } = this; + const contents = props.notebooks[props.ship]?.[props.book]?.notes?.[props.note]?.file; if (prevProps && prevProps.api !== props.api) { - if (!(props.notebooks[props.ship]?.[props.book]?.notes?....
Add note for Phoscon App public beta
@@ -7,6 +7,11 @@ As hardware the [RaspBee](https://www.dresden-elektronik.de/raspbee?L=1&ref=gh) To learn more about the REST API itself please visit the [REST API Documentation](http://dresden-elektronik.github.io/deconz-rest-doc/) page. +### Phoscon App Beta +The *Phoscon App* is the successor of the current WebApp (...
actual verbosity fix
#include "util.h" #if EXTRA_VERBOSE > 0 -/* if verbose print summary output every this num iterations */ +#define PRINT_INTERVAL 1 +#define CONVERGED_INTERVAL 1 +#else +/* print summary output every this num iterations */ #define PRINT_INTERVAL 100 /* check for convergence every this num iterations */ #define CONVERGED...
useFileUpload: fixing stale closure
import _ from 'lodash'; -import { useState, ClipboardEvent } from 'react'; +import { useState, ClipboardEvent, useCallback } from 'react'; import { useFileDrag } from './useDrag'; import useStorage, { IuseStorage } from './useStorage'; @@ -32,20 +32,9 @@ export function useFileUpload({ multiple = true, ...params }: use...
misc: update package_count utility for 2.1
@@ -20,6 +20,7 @@ oses="CentOS_8 Leap_15" major_ver=`echo ${version} | cut -d '.' -f1` minor_ver=`echo ${version} | cut -d '.' -f1,2` micro_ver=`echo ${version} | cut -d '.' -f3` +minor_dig=`echo ${version} | cut -d '.' -f2` if [[ -z $micro_ver ]];then micro_ver=0 @@ -48,8 +49,12 @@ for os in ${oses}; do repobase="http...
example(console): print column name for tasks.
@@ -94,6 +94,7 @@ static int tasks_info(int argc, char** argv) ESP_LOGE(__func__, "failed to allocate buffer for vTaskList output"); return 1; } + fputs("Task Name\tStatus\tPrio\tHWM\tTask Number\n", stdout); vTaskList(task_list_buffer); fputs(task_list_buffer, stdout); free(task_list_buffer);
landscape: cache marks again Fixes urbit/urbit#5590
[%4 observers=(map serial observer:sur)] [%5 observers=(map serial observer:sur) warm-cache=_|] [%6 state-0] + [%7 state-0] == :: +$ serial @uv -- :: %- agent:dbug -=| [%6 state-0] +=| [%7 state-0] =* state - :: ^- agent:gall =| cards=(list card) |- ?- -.old-state - %6 + %7 [cards this(state old-state)] + %6 + $(-.old-...
fix definition of YANDEX_EXPORT for OS_ANDROID
@@ -5977,7 +5977,7 @@ when ($MAPSMOBI_BUILD_TARGET) { when ($MAPSMOBI_BUILD_TARGET && $OS_ANDROID) { JDK_VERSION=8 CPP_PROTO_PLUGINS="dllexport_decl=YANDEX_EXPORT:" - YANDEX_EXPORT=__attribute__\(\(visibility\(\\\"default\\\"\)\)\) + YANDEX_EXPORT=__attribute__((visibility(\"default\"))) STRIP=yes LDFLAGS+=-lc++_shared...
dma: fixing confusion with library names
-- Builds a driver module: this is identical to building a -- library, the only difference is in how this is linked with the domain build library { - target = "mod_ioat", + target = "mod_ioat2", cFiles = [ "mod_ioat.c"] }, cFiles = [ "main.c", "queue_manager.c" ], addLinkFlags = ["-T" ++ Config.source_dir ++ "/lib/driv...
Add pointer type casts to Internal/String.h This allows for this header to be used in C++ projects as well.
@@ -371,7 +371,8 @@ ZYAN_INLINE ZyanStatus ZydisStringAppendDecS(ZyanString* string, ZyanI64 value, { ZYAN_CHECK(ZydisStringAppend(string, prefix)); } - return ZydisStringAppendDecU(string, -value, padding_length, ZYAN_NULL, suffix); + return ZydisStringAppendDecU(string, -value, padding_length, + (const ZyanStringView...
Remove unnecessary #include <limits.h> This include was probably copied from tuplestore.c, but it's not needed. Extracted from a larger patch submitted by vignesh C Discussion:
#include "storage/sharedfileset.h" #include "utils/sharedtuplestore.h" -#include <limits.h> - /* * The size of chunks, in pages. This is somewhat arbitrarily set to match * the size of HASH_CHUNK, so that Parallel Hash obtains new chunks of tuples
Fix typo in comment on OpenSSL PEM password callback type name. The type is called "pem_password_cb", not "pem_passwd_cb". Author: Daniel Gustafsson Discussion:
@@ -1702,7 +1702,7 @@ PQsetSSLKeyPassHook(PQsslKeyPassHook_type hook) /* * Supply a password to decrypt a client certificate. * - * This must match OpenSSL type pem_passwd_cb. + * This must match OpenSSL type pem_password_cb. */ static int PQssl_passwd_cb(char *buf, int size, int rwflag, void *userdata)
fixup locks.
@@ -3207,6 +3207,7 @@ xfr_start_transfer(struct auth_xfer* xfr, struct module_env* env, log_assert(xfr->task_transfer->chunks_last == NULL); xfr->task_transfer->worker = env->worker; xfr->task_transfer->env = env; + lock_basic_unlock(&xfr->lock); /* init transfer process */ /* find that master in the transfer's list of...
armv7: Fixed core selection in CFLAGS
@@ -17,18 +17,21 @@ MKDEPFLAGS = $(CFLAGS) CC = $(CROSS)gcc CFLAGS += -Wall -Wstrict-prototypes -I$(SRCDIR) -nostartfiles -nostdlib\ - -mcpu=cortex-m3 -mthumb -ffixed-r9 -fomit-frame-pointer -ffreestanding -Wno-bool-operation \ + -mthumb -ffixed-r9 -fomit-frame-pointer -ffreestanding -Wno-bool-operation \ -DVERSION=\"$...
fix: avoid checking if the webhook needs updating when static webhook is active
@@ -182,10 +182,14 @@ func (r *ReconcileSPOd) Reconcile(_ context.Context, req reconcile.Request) (rec } spodUpdate := spodNeedsUpdate(configuredSPOd, foundSPOd) - hookUpdate, err := webhook.NeedsUpdate(ctx, r.client) + + var hookUpdate bool + if !spod.Spec.StaticWebhookConfig { + hookUpdate, err = webhook.NeedsUpdate(...
web-base: fix Dockerfile
@@ -31,7 +31,7 @@ WORKDIR /home/elektra/libelektra ADD . /home/elektra/libelektra/ # build & install libelektra -RUN mkdir /home/elektra/libelektra/build +RUN mkdir -p /home/elektra/libelektra/build WORKDIR /home/elektra/libelektra/build RUN cmake .. -DTOOLS="kdb;web" && make -j ${PARALLEL} && make install
Add GGL benchmarks to README
@@ -19,5 +19,5 @@ The source codes included in this directory can be used to reproduce all benchma * **halomod_bm.py** : this python script can be used to generate the files used in tests halomod:model_1-3. * **model1_pk_nu.ini**, **model2_pk_nu.ini**, and **model3_pk_nu.ini** and CLASS ini files; running CLASS with th...
ocbuild.config fixed
@@ -3,10 +3,13 @@ oc_package_name='OcSupportPkg' oc_release_support=true oc_version_header_file='' oc_version_macro_name='' -oc_dependency_repos=( https://github.com/acidanthera/EfiPkg ) -oc_dependency_names=( EfiPkg ) +oc_dependency_repos=( +'https://github.com/acidanthera/EfiPkg' +) +oc_dependency_names=( +'EfiPkg' +...
check_readme_links: remove throwing of exception before exit Reraising the exception before exiting was intended to help troubleshoot, but turned out to be more confusing than helpful as it might look like the script was failing
@@ -22,6 +22,7 @@ import concurrent.futures import os import os.path import re +import sys import urllib.error import urllib.request from collections import defaultdict, namedtuple @@ -148,8 +149,8 @@ def check_readme_links(args): print('Found {} errors:'.format(len(errors))) for e in errors: print(e) - if errors: - ra...
doc: Update Fedora packaging instructions
@@ -253,14 +253,35 @@ sudo apt-get -f install #### Fedora +For packaging Fedora has `rpmdevtools` as an additional dependency: + +```sh +sudo yum install -y rpmdevtools +``` + +When configuring CMake it is also required to set the `CMAKE_BUILD_TYPE` to `Release`. +For instance, a minimal configuration is + +```sh +cmak...
[DeviceDriver][SPI] Fix 3 wires SPI issue.
/* - * Copyright (c) 2006-2018, RT-Thread Development Team + * Copyright (c) 2006-2020, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2012-11-23 Bernard Add extern "C" + * 2020-06-13 armink fix the 3 wires issue */ #ifndef __SPI_H__ extern "C"{ #endif -#define...
GA: Install libraries.
@@ -28,6 +28,18 @@ jobs: # The CMake binaries on the Github Actions machines are (as of this writing) 3.12 run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_SHARED_LIBS=${{ matrix.shared }} -DTINYSPLINE_FLOAT_PRECISION=${{ matrix.float }} + - name: Configure Installation + working-directory: ${{runner...
udev: Use TAG+="uaccess" in udev rules The method of assigning MODE="660", GROUP="plugdev" appears to be an old Ubuntuism. The preferred way to make the device accessible to the logged in user is the uaccess tag.
-SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="8613", SYMLINK+="stream-%k", MODE="660", GROUP="plugdev" -SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="00f1", SYMLINK+="stream-%k", MODE="660", GROUP="plugdev" -SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}=="601f", SYMLINK+="stream...
system: zmodem: Fix debug assert condition
@@ -755,7 +755,7 @@ static int zm_parse(FAR struct zm_state_s *pzm, size_t rcvlen) uint8_t ch; int ret; - DEBUGASSERT(pzm && rcvlen < CONFIG_SYSTEM_ZMODEM_RCVBUFSIZE); + DEBUGASSERT(pzm && rcvlen <= CONFIG_SYSTEM_ZMODEM_RCVBUFSIZE); zm_dumpbuffer("Received", pzm->rcvbuf, rcvlen); /* We keep a copy of the length and buf...
parallel-libs/petsc: bump to v3.12.0
@@ -25,7 +25,7 @@ Name: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM} Summary: Portable Extensible Toolkit for Scientific Computation License: 2-clause BSD Group: %{PROJ_NAME}/parallel-libs -Version: 3.11.1 +Version: 3.12.0 Release: 1%{?dist} Source0: http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-%{...
Fix typos in entry.h
@@ -23,20 +23,20 @@ extern "C" { // - /Library/Audio/Plug-Ins/CLAP // - ~/Library/Audio/Plug-Ins/CLAP // -// Additionally, extra path may be specified in CLAP_PATH environment variable. -// CLAP_PATH is formated in the same way as the OS' binary search path (PATH on UNIX, Path on Windows). +// Additionally, extra paths...
apps/netutils/ftpc: Fix a typo/compile problem found in build testing.
@@ -166,7 +166,7 @@ void ftpc_stripcrlf(FAR char *str) { for (ptr = str + len - 1; len > 0 && (*ptr == '\r' || *ptr == '\n'); - ptr--, len--; + ptr--, len--) { *ptr = '\0'; }
Fix 2 typos in comments.
@@ -173,9 +173,9 @@ typedef enum { */ typedef enum { - picoquic_lossbit_none = 0, /* No support for the spin bits */ + picoquic_lossbit_none = 0, /* No support for the loss bits */ picoquic_lossbit_send_only = 1, /* Able to send the loss bit, but not receive it */ - picoquic_lossbit_send_receive = 2, /* Able to send or...
peview: Improve file dialog performance
@@ -134,7 +134,28 @@ INT WINAPI wWinMain( if (PhShowFileDialog(NULL, fileDialog)) { - PvFileName = PhGetFileDialogFileName(fileDialog); + PPH_STRING applicationFileName; + + if (PvFileName = PhGetFileDialogFileName(fileDialog)) + { + if (applicationFileName = PhGetApplicationFileName()) + { + PhMoveReference(&PvFileNam...
now covers posts with spaces and no text
|= {pax/path sup/spur hed/@t txt/@t} ^- (quip move _+>) :_ +> - ?: =(txt '') ~ + :: + :: Does txt actually have content, or is it blank? + :: + =/ txt-blank=? + ?~ (rust (trip txt) spac:de-json:html) + %| + %& + :: + :: If txt is blank then return no moves. + :: + ?: txt-blank ~ + :: + :: Otherwise, post the content. +...
correct changes for GPU multiclass
# Release 0.12.2 ## Changes: * Fixed loading of `epsilon` dataset into memory -* Fixed multiclass accuracy computation on GPU +* Fixed multiclass learning on GPU for >255 classes * Improved error handling * Some other minor fixes