message
stringlengths
6
474
diff
stringlengths
8
5.22k
posix.signal: add some missing signals and flags
@@ -288,6 +288,7 @@ Any constants not available in the underlying system will be `nil` valued. @int SIGFPE floating point error @int SIGHUP hangup @int SIGILL illegal instruction +@int SIGINFO information request @int SIGINT interrupt @int SIGKILL kill @int SIGPIPE write on pipe with no reader @@ -304,12 +305,14 @@ Any constants not available in the underlying system will be `nil` valued. @int SIGUSR1 user defined @int SIGUSR2 user defined @int SIGVTALRM virtual time alarm +@int SIGWINCH window size change @int SIGXCPU exceeded cpu time limit @int SIGXFSZ exceeded file size limit @int SA_NOCLDSTOP do not generate a SIGCHLD on child stop @int SA_NOCLDWAIT don't keep zombies child processes @int SA_NODEFER don't mask the signal we're delivering @int SA_RESETHAND reset to SIG_DFL when taking a signal +@int SA_RESTART allow syscalls to restart instead of returning EINTR @usage -- Print signal constants supported on this host. for name, value in pairs (require "posix.signal") do @@ -358,6 +361,9 @@ luaopen_posix_signal(lua_State *L) #ifdef SIGILL LPOSIX_CONST( SIGILL ); #endif +#ifdef SIGINFO + LPOSIX_CONST( SIGINFO ); +#endif #ifdef SIGINT LPOSIX_CONST( SIGINT ); #endif @@ -406,6 +412,9 @@ luaopen_posix_signal(lua_State *L) #ifdef SIGVTALRM LPOSIX_CONST( SIGVTALRM ); #endif +#ifdef SIGWINCH + LPOSIX_CONST( SIGWINCH ); +#endif #ifdef SIGXCPU LPOSIX_CONST( SIGXCPU ); #endif @@ -434,6 +443,9 @@ luaopen_posix_signal(lua_State *L) #ifdef SA_RESETHAND LPOSIX_CONST( SA_RESETHAND ); #endif +#ifdef SA_RESTART + LPOSIX_CONST( SA_RESTART ); +#endif return 1; }
Update libunwind-common.h.in
@@ -101,7 +101,7 @@ unw_caching_policy_t; typedef enum { - UNW_INIT_SIGNAL_FRAME = 1, /* We know this is a signal frame */ + UNW_INIT_SIGNAL_FRAME = 1 /* We know this is a signal frame */ } unw_init_local2_flags_t;
ERR: preserve system error number in a few more places It turns out that intialization may change the error number, so we need to preserve the system error number in functions where initialization is called for. These are ERR_get_state() and err_shelve_state() Fixes
@@ -697,6 +697,7 @@ DEFINE_RUN_ONCE_STATIC(err_do_init) ERR_STATE *ERR_get_state(void) { ERR_STATE *state; + int saveerrno = get_last_sys_error(); if (!OPENSSL_init_crypto(OPENSSL_INIT_BASE_ONLY, NULL)) return NULL; @@ -728,6 +729,7 @@ ERR_STATE *ERR_get_state(void) OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL); } + set_sys_error(saveerrno); return state; } @@ -737,6 +739,8 @@ ERR_STATE *ERR_get_state(void) */ int err_shelve_state(void **state) { + int saveerrno = get_last_sys_error(); + if (!OPENSSL_init_crypto(OPENSSL_INIT_BASE_ONLY, NULL)) return 0; @@ -747,6 +751,7 @@ int err_shelve_state(void **state) if (!CRYPTO_THREAD_set_local(&err_thread_local, (ERR_STATE*)-1)) return 0; + set_sys_error(saveerrno); return 1; }
I know this is probably obvious to you, but not me Any info you can give the user to save them confusion is a plus IMHO.
@@ -41,7 +41,7 @@ namespace (ebi::vcf::HELP_OPTION, "Display this help") (ebi::vcf::VERSION_OPTION, "Display version of the assembly checker") (ebi::vcf::INPUT_OPTION, po::value<std::string>()->default_value(ebi::vcf::STDIN), "Path to the input VCF file, or stdin") - (ebi::vcf::FASTA_OPTION, po::value<std::string>()->default_value(""), "Path to the input FASTA file; please note that the index file must have the same name as the FASTA file and saved with a .fai extension") + (ebi::vcf::FASTA_OPTION, po::value<std::string>()->default_value(""), "Path to the input FASTA file; please note that the index file (from samtools faidx) must have the same name as the FASTA file and saved with a .fai extension") (ebi::vcf::ASSEMBLY_REPORT_OPTION, po::value<std::string>()->default_value(ebi::vcf::NO_MAPPING), "Path to the input assembly report used for contig synonym mapping") (ebi::vcf::REPORT_OPTION, po::value<std::string>()->default_value(ebi::vcf::SUMMARY), "Comma separated values for types of reports (summary, text, valid)") (ebi::vcf::OUTDIR_OPTION, po::value<std::string>()->default_value(""), "Output directory")
* test fixes
@@ -1960,7 +1960,7 @@ void test4() { void test_invalid_binn() { - char buffers[][20] = { + unsigned char buffers[][20] = { { 0xE0 }, { 0xE0, 0x7E }, { 0xE0, 0x7E, 0x7F }, @@ -2000,7 +2000,7 @@ void test_invalid_binn() { }; int count, size, i; - char *ptr; + unsigned char *ptr; puts("testing invalid binn buffers..."); @@ -2008,7 +2008,7 @@ void test_invalid_binn() { for (i = 0; i < count; i++) { ptr = buffers[i]; - size = strlen(ptr); + size = strlen((char*) ptr); printf("checking invalid binn #%d size: %d bytes\n", i, size); CU_ASSERT(binn_is_valid_ex(ptr, NULL, NULL, &size) == FALSE); }
Plugins: Fix minor spelling mistake
@@ -207,7 +207,7 @@ copied by the `spec` plugin just before): - [path](path/) by checking files on file system - [type](type/) using run-time type checking (CORBA types/) - [enum](enum/) compares the keyvalue against a list of valid values -- [mathcheck](mathcheck/) by mathematical expressions using keysvalues as operands +- [mathcheck](mathcheck/) by mathematical expressions using key values as operands - [conditionals](conditionals/) by using if-then-else like statements - [required](required/) rejects non-required keys - [date](date/) validates date and time data
BugID:16859273:add keil iar prebuild targets
@@ -92,5 +92,5 @@ component.add_global_macros('SYSINFO_DEVICE_NAME=\\"'+'developerkit'+'\\"') component.set_enable_vfp() -linux_only_targets="helloworld mqttapp acapp uDataapp tls netmgrapp networkapp linkkit_gateway littlevgl_developerkit linuxapp cameraapp linkkit_sched hdlcapp.hdlcclient developerkitgui alinkapp blink linkkitapp hdlcapp.hdlcserver qr coapapp vflashdemo littlevgl_starterkit emwinapp atapp wifihalapp helloworld_nocli modbus_test" +linux_only_targets="helloworld mqttapp acapp uDataapp tls netmgrapp networkapp linkkit_gateway littlevgl_developerkit linuxapp cameraapp linkkit_sched hdlcapp.hdlcclient developerkitgui alinkapp blink linkkitapp hdlcapp.hdlcserver qr coapapp vflashdemo littlevgl_starterkit emwinapp atapp wifihalapp helloworld_nocli" windows_only_targets="helloworld|COMPILER=armcc acapp|COMPILER=armcc helloworld|COMPILER=iar acapp|COMPILER=iar linkkitapp|COMPILER=armcc linkkitapp|COMPILER=iar linkkit_gateway|COMPILER=armcc linkkit_gateway|COMPILER=iar"
test/siphash_internal_test.c: ensure the SIPHASH structure is zeroed Fixes [extended tests]
@@ -169,7 +169,7 @@ static TESTDATA tests[] = { static int test_siphash(int idx) { - SIPHASH siphash; + SIPHASH siphash = { 0, }; TESTDATA test = tests[idx]; unsigned char key[SIPHASH_KEY_SIZE]; unsigned char in[64]; @@ -257,7 +257,7 @@ static int test_siphash(int idx) static int test_siphash_basic(void) { - SIPHASH siphash; + SIPHASH siphash = { 0, }; unsigned char key[SIPHASH_KEY_SIZE]; unsigned char output[SIPHASH_MAX_DIGEST_SIZE];
Delete superfluous frame_config.duration comment
@@ -351,7 +351,6 @@ var Funcs = []string{ "token_writer.available() u64", // ---- frame_config - // Duration's upper bound is the maximum possible i64 value. "frame_config.blend() u8", "frame_config.disposal() u8",
kdb-complete: add detection for missing / outdated namespaces
@@ -55,7 +55,7 @@ int CompleteCommand::execute (const Cmdline & cl) const Key originalUnprocessedKey (originalInput, KEY_END); KDB kdb; // Determine the actual root key, as for completion purpose originalRoot may not exist - // Maybe we want to complete an initial namespace, in that case bookmark expansion checks done by cl.createKey are useless + // If we want to complete an initial namespace, everything done by cl.createKey is unnecessary and will fail const Key originalRoot = originalUnprocessedKey.isValid () ? cl.createKey (cl.arguments.size () - 1) : originalUnprocessedKey; Key root = originalUnprocessedKey.isValid () ? originalRoot : Key ("/", KEY_END); KeySet ks; @@ -109,11 +109,34 @@ void CompleteCommand::addMountpoints (KeySet & ks, const Key root) void CompleteCommand::addNamespaces (map<Key, pair<int, int>> & hierarchy) { - // Currently assumed to be fixed, and they are on level 0 - const string namespaces[] = { "spec/", "proc/", "dir/", "user/", "system/" }; - for (const auto ns : namespaces) + // Always add them on level 0 + const string namespaces[] = { + "spec/", "proc/", "dir/", "user/", "system/", + }; + + // Check for new namespaces, issue a warning in case + for (elektraNamespace ens = KEY_NS_FIRST; ens <= KEY_NS_LAST; ++ens) + { + // since ens are numbers, there is no way to get a string representation if not found in that case + bool found = false; + for (const string ns : namespaces) { - Key nsKey (ns, KEY_END); + found = found || ckdb::keyGetNamespace (Key (ns, KEY_END).getKey ()) == ens; + } + if (!found) + { + cerr << "Missing namespace detected:" << ens << ". \nPlease report this issue." << endl; + } + } + + for (const string ns : namespaces) + { + const Key nsKey (ns, KEY_END); + // Check for outdated namespaces, issue a warning in case + if (ckdb::keyGetNamespace (nsKey.getKey ()) == KEY_NS_EMPTY) + { + cerr << "Outdated namespace detected:" << ns << ".\nPlease report this issue." << endl; + } hierarchy[nsKey] = pair<int, int> (1, 0); } }
Add gl_sync to MangoHud.conf
### VSYNC [0-3] 0 = adaptive; 1 = off; 2 = mailbox; 3 = on # vsync= +### OpenGL VSYNC [0-N] 0 = off; >=1 = wait for N v-blanks, N > 1 acts as a fps limiter (fps = display refresh rate / N) +# gl_vsync= + ################### VISUAL ################### ### Display the current CPU information
rust/bb02_async: remove qualifier Already imported at the top.
@@ -38,7 +38,7 @@ pub struct AsyncOption<'a, O>(&'a RefCell<Option<O>>); impl<O> core::future::Future for AsyncOption<'_, O> { type Output = (); - fn poll(self: core::pin::Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<Self::Output> { + fn poll(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<Self::Output> { match *self.0.borrow() { None => Poll::Pending, Some(_) => Poll::Ready(()),
Pack: Enhanced uVision and EWARM Simulators for Armv8.1-M compatibility.
@@ -4013,6 +4013,7 @@ and 8-bit Java bytecodes in Jazelle state. <compatibleDevice deviceIndex="0" Dvendor="ARM:82" Dname="ARMv8MML"/> <compatibleDevice deviceIndex="0" Dvendor="ARM:82" Dname="ARMv8MML_SP"/> <compatibleDevice deviceIndex="0" Dvendor="ARM:82" Dname="ARMv8MML_DP"/> + <compatibleDevice deviceIndex="0" Dvendor="ARM:82" Dname="ARMv81MML_DSP_DP_MVE_FP"/> <compatibleDevice deviceIndex="0" Dvendor="ARM:82" Dname="ARMCM23"/> <compatibleDevice deviceIndex="0" Dvendor="ARM:82" Dname="ARMCM23_TZ"/> <compatibleDevice deviceIndex="0" Dvendor="ARM:82" Dname="ARMCM33"/> @@ -4023,6 +4024,7 @@ and 8-bit Java bytecodes in Jazelle state. <compatibleDevice deviceIndex="0" Dvendor="ARM:82" Dname="ARMCM35P_TZ"/> <compatibleDevice deviceIndex="0" Dvendor="ARM:82" Dname="ARMCM35P_DSP_FP"/> <compatibleDevice deviceIndex="0" Dvendor="ARM:82" Dname="ARMCM35P_DSP_FP_TZ"/> + <compatibleDevice deviceIndex="0" Dvendor="ARM:82" Dname="ARMCM55"/> </board> <board name="EWARM Simulator" vendor="IAR"> @@ -4041,6 +4043,7 @@ and 8-bit Java bytecodes in Jazelle state. <compatibleDevice deviceIndex="0" Dvendor="ARM:82" Dname="ARMv8MML"/> <compatibleDevice deviceIndex="0" Dvendor="ARM:82" Dname="ARMv8MML_SP"/> <compatibleDevice deviceIndex="0" Dvendor="ARM:82" Dname="ARMv8MML_DP"/> + <compatibleDevice deviceIndex="0" Dvendor="ARM:82" Dname="ARMv81MML_DSP_DP_MVE_FP"/> <compatibleDevice deviceIndex="0" Dvendor="ARM:82" Dname="ARMCM23"/> <compatibleDevice deviceIndex="0" Dvendor="ARM:82" Dname="ARMCM23_TZ"/> <compatibleDevice deviceIndex="0" Dvendor="ARM:82" Dname="ARMCM33"/> @@ -4051,6 +4054,7 @@ and 8-bit Java bytecodes in Jazelle state. <compatibleDevice deviceIndex="0" Dvendor="ARM:82" Dname="ARMCM35P_TZ"/> <compatibleDevice deviceIndex="0" Dvendor="ARM:82" Dname="ARMCM35P_DSP_FP"/> <compatibleDevice deviceIndex="0" Dvendor="ARM:82" Dname="ARMCM35P_DSP_FP_TZ"/> + <compatibleDevice deviceIndex="0" Dvendor="ARM:82" Dname="ARMCM55"/> </board> </boards>
nat plugin - fix test logic warning found by clang: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses]
@@ -409,7 +409,7 @@ typedef struct { @param s SNAT session @return 1 if SNAT session is created from static mapping otherwise 0 */ -#define snat_is_session_static(s) s->flags & SNAT_SESSION_FLAG_STATIC_MAPPING +#define snat_is_session_static(s) (s->flags & SNAT_SESSION_FLAG_STATIC_MAPPING) /** \brief Check if SNAT session for unknown protocol. @param s SNAT session
Updated travis ci script
-script: -language: python -python: - - "2.7" - - "3.5" - - "3.6" +language: c + +# Compiler selection +compiler: + - clang + - gcc -# Travis uses Ubuntu 12.04 and 14.04. None of them have GSL2x in apt-get -# We have to install it from source (this will make the tests slower) -# CLASS also needs to be downloaded and compiled, which there is no easy fix for. +# Installs system level dependencies before_install: - sudo apt-get -qq update - sudo apt-get install fftw3 fftw3-dev pkg-config cmake -# - sudo apt-get install latexmk -#addons: -# apt: -# packages: -# - texlive-latex-recommended -# - texlive-latex-extra -# - texlive-fonts-recommended -# - texlive-fonts-extra -# - dvipng -install: +install: true + +script: - mkdir build - cd build - cmake .. - make && make install -script: - - python tests/run_tests.py --debug --detailed-errors --verbose --process-restartworker - - make check-cpp - # Check why the note creation process crashes # - make -C doc/0000-ccl_note #after_success:
Fixed blank time distribution panel when using timestamps. Fixes
@@ -2339,7 +2339,7 @@ gen_visit_time_key (GKeyData * kdata, GLogItem * logitem) { /* otherwise it attempts to convert the date given a time format, * though this is slower */ memset (hour, 0, sizeof *hour); - if (convert_date (hour, logitem->time, conf.time_format, "%H:%M", HRMI_LEN) != 0) + if (convert_date (hour, logitem->time, "%T", "%H:%M", HRMI_LEN) != 0) return 1; if (*hour == '\0')
http3: instrument with req-level dtrace probes
@@ -984,6 +984,8 @@ static int handle_input_expect_headers(struct st_h2o_http3_server_stream_t *stre return 0; } + h2o_probe_log_request(&stream->req, stream->quic->stream_id); + /* change state */ set_state(stream, H2O_HTTP3_SERVER_STREAM_STATE_RECV_BODY_BEFORE_BLOCK); @@ -1016,6 +1018,7 @@ static void do_send(h2o_ostream_t *_ostr, h2o_req_t *_req, h2o_sendvec_t *bufs, if (stream->state == H2O_HTTP3_SERVER_STREAM_STATE_SEND_HEADERS) { write_response(stream); + h2o_probe_log_response(&stream->req, stream->quic->stream_id); set_state(stream, H2O_HTTP3_SERVER_STREAM_STATE_SEND_BODY); } else { assert(stream->state == H2O_HTTP3_SERVER_STREAM_STATE_SEND_BODY);
out_td: use new http client api
@@ -159,7 +159,7 @@ struct flb_http_client *td_http_client(struct flb_upstream_conn *u_conn, /* Create client */ c = flb_http_client(u_conn, FLB_HTTP_PUT, tmp, - gz, gz_size, NULL, 0, NULL); + gz, gz_size, NULL, 0, NULL, 0); if (!c) { flb_free(tmp); flb_free(gz);
hls_search doesnt support demo_memcopy anymore
fi fi # memcopy - if [[ $t0l == "10141000" || ${env_action} == "hls_memcopy" || ${env_action} == "hls_search" ]];then echo -e "$del\ntesting demo_memcopy" + if [[ $t0l == "10141000" || ${env_action} == "hls_memcopy" ]];then echo -e "$del\ntesting demo_memcopy" t="$DONUT_ROOT/software/examples/demo_memcopy -h" ;echo -e "$t $l"; $t;echo -e "RC=$?$del" # 5..7 # t="$DONUT_ROOT/software/examples/demo_memcopy -C0 -i ../../1KB.txt -o 1KB.out -t10" ;echo -e "$t $l";date;((n+=1));time $t;echo -e "RC=$?$del" # 5..7 #### select 1 selection loop
Add support for pinned actors in asm implementation
@@ -31,13 +31,45 @@ _UpdateActors_b:: push hl check_if_pinned: + ld a, #22 + _add_a h, l + ld a, (hl) + cp a, #0 + jp z, handle_unpinned + + handle_pinned: ; load pos y push to stack ; load pos x push to stack ; jp move_sprite_pair + ; Load current pos in de (only lowest bytes) + pop hl + push hl + ld a, (hl) + add a, #8 + ld e, a + inc hl + inc hl + ld a, (hl) + add a, #8 + ld d, a + push de + + ; Get sprite index into a + ld a, #7 ; ptr currently at actor.pos.y(2) + _add_a h, l + ld a, (hl) + push af + inc sp + + jp move_sprite_pair + handle_unpinned: + pop hl + push hl + ; Load current pos y in e (only lowest byte) inc hl inc hl
isLightNodeInGroup() shoud always return true for global group (0)
@@ -4314,6 +4314,10 @@ bool DeRestPluginPrivate::isLightNodeInGroup(LightNode *lightNode, uint16_t grou if (lightNode) { + if (groupId == 0) + { + return true; // global group + } std::vector<GroupInfo>::const_iterator i = lightNode->groups().begin(); std::vector<GroupInfo>::const_iterator end = lightNode->groups().end();
tsch-log: fix autoconfiguration of TSCH_LOG_PER_SLOT
#define TSCH_LOG_PER_SLOT TSCH_LOG_CONF_PER_SLOT #else /* TSCH_LOG_CONF_PER_SLOT */ #include "sys/log.h" -#define TSCH_LOG_PER_SLOT (LOG_LEVEL_MAC >= LOG_LEVEL_DBG) +#define TSCH_LOG_PER_SLOT (LOG_CONF_LEVEL_MAC >= LOG_LEVEL_DBG) #endif /* TSCH_LOG_CONF_PER_SLOT */ /* The length of the log queue, i.e. maximum number postponed log messages */
secure_boot: Do not allow key revocation in bootloader
@@ -137,10 +137,13 @@ esp_err_t esp_secure_boot_verify_rsa_signature_block(const ets_secure_boot_signa #if SOC_EFUSE_SECURE_BOOT_KEY_DIGESTS == 1 int sb_result = ets_secure_boot_verify_signature(sig_block, image_digest, trusted.key_digests[0], verified_digest); #else - ets_secure_boot_key_digests_t trusted_key_digests; + ets_secure_boot_key_digests_t trusted_key_digests = {0}; for (unsigned i = 0; i < SECURE_BOOT_NUM_BLOCKS; i++) { trusted_key_digests.key_digests[i] = &trusted.key_digests[i]; } + // Key revocation happens in ROM bootloader. + // Do NOT allow key revocation while verifying application + trusted_key_digests.allow_key_revoke = false; int sb_result = ets_secure_boot_verify_signature(sig_block, image_digest, &trusted_key_digests, verified_digest); #endif if (sb_result != SB_SUCCESS) {
grid: correct name for landscape Fixes urbit/landscape#1168
@@ -14,8 +14,8 @@ const cards: OnboardingCardProps[] = [ href: '/leap/search/direct/apps/~zod/webterm' }, { - title: 'Groups', - body: 'Install Groups, a suite of social software to communicate with other urbit users', + title: 'Landscape', + body: 'Install Landscape, a suite of social software to communicate with other urbit users', button: 'Install', color: '#D1DDD3', href: '/leap/search/direct/apps/~zod/landscape'
hw: pic32mz2048efg100: Remove unused variables in hal_gpio
@@ -136,7 +136,7 @@ static void hal_gpio_handle_isr(uint32_t port) { uint8_t index = 0; - static unsigned int i = 0; + for (index = 0; index < HAL_GPIO_MAX_IRQ; ++index) { uint32_t mask, val; @@ -377,7 +377,6 @@ hal_gpio_irq_release(int pin) void hal_gpio_irq_enable(int pin) { - volatile uint32_t dummy; uint32_t port, mask, ctx; uint8_t index = hal_gpio_find_pin(pin);
hoon: refactors +stir types/comments for clarity
|= tub=nail ^- (like _rud) :: - :: lef: successful interim parse results per .fel - :: wag: initial accumulator + :: lef: successful interim parse results (per .fel) + :: wag: initial accumulator (.rud in .tub at farthest success) :: =+ ^= [lef wag] =| lef=(list _(fel tub)) - =| wag=[p=hair q=[~ u=[p=_rud q=nail]]] - |- ^+ [lef wag] + |- ^- [_lef (pair hair [~ u=(pair _rud nail)])] =+ vex=(fel tub) ?~ q.vex - =. wag [p.vex [~ rud tub]] - [lef wag] + :- lef + [p.vex [~ rud tub]] $(lef [vex lef], tub q.u.q.vex) :: :: fold .lef into .wag, combining results with .raq :: %+ roll lef - |= [vex=_(fel tub) wag=_wag] + |= _[vex=(fel tub) wag=wag] :: q.vex is always (some) ^+ wag :- (last p.vex p.wag) - ?> ?=(^ q.vex) - [~ (raq p.u.q.vex p.u.q.wag) q.u.q.wag] + [~ (raq p.u.+.q.vex p.u.q.wag) q.u.q.wag] :: ++ stun :: parse several times |* {lig/{@ @} fel/rule}
config tool:add support for bootargs missing Bugfix:bootargs is optional parameter, which may be not present in xml as a node, asl_gen.py needs to process that case.
@@ -829,7 +829,8 @@ def main(args): kern_args = common.get_leaf_tag_map(scenario, "os_config", "bootargs") kern_type = common.get_leaf_tag_map(scenario, "os_config", "kern_type") for vm_id, passthru_devices in dict_passthru_devices.items(): - if kern_args[int(vm_id)].find('reboot=acpi') == -1 and kern_type[int(vm_id)] in ['KERNEL_BZIMAGE']: + bootargs_node= common.get_node(f"//vm[@id='{vm_id}']/os_config/bootargs", scenario_etree) + if bootargs_node is not None and kern_args[int(vm_id)].find('reboot=acpi') == -1 and kern_type[int(vm_id)] in ['KERNEL_BZIMAGE']: emsg = "you need to specify 'reboot=acpi' in scenario file's bootargs for VM{}".format(vm_id) print(emsg) err_dic['vm,bootargs'] = emsg
If printing out message about non-admin user then do not print error about verb.
@@ -363,9 +363,12 @@ EFI_STATUS findVerb(UINTN *pStart, struct CommandInput *pInput, struct Command * if (g_basic_commands) { // This should be updated when there are other comamnds a non-root user can run Print(L"A non-root user is restricted to run only version command\n"); - } + } else { #endif SetSyntaxError(CatSPrint(NULL, CLI_PARSER_ERR_VERB_EXPECTED, pInput->ppTokens[*pStart])); +#ifdef OS_BUILD + } +#endif } NVDIMM_EXIT_I64(rc);
esp32/mphalport: Improve mp_hal_delay_us so it handles pending events. Thanks to for the initial idea and implementation.
@@ -113,7 +113,28 @@ void mp_hal_delay_ms(uint32_t ms) { } void mp_hal_delay_us(uint32_t us) { - ets_delay_us(us); + // these constants are tested for a 240MHz clock + const uint32_t this_overhead = 5; + const uint32_t pend_overhead = 150; + + // return if requested delay is less than calling overhead + if (us < this_overhead) { + return; + } + us -= this_overhead; + + uint64_t t0 = esp_timer_get_time(); + for (;;) { + uint64_t dt = esp_timer_get_time() - t0; + if (dt >= us) { + return; + } + if (dt + pend_overhead < us) { + // we have enough time to service pending events + // (don't use MICROPY_EVENT_POLL_HOOK because it also yields) + mp_handle_pending(); + } + } } // this function could do with improvements (eg use ets_delay_us)
sbgemm: spr: oncopy: avoid handling too much pointer at a time
@@ -49,27 +49,39 @@ int CNAME(BLASLONG m, BLASLONG n, IFLOAT *a, BLASLONG lda, IFLOAT *b) { BLASLONG m2 = m & ~1; for (j = 0; j < n16; j += 16) { + IFLOAT *boffset0 = boffset; aoffset0 = aoffset; aoffset1 = aoffset0 + lda; aoffset2 = aoffset1 + lda; aoffset3 = aoffset2 + lda; + for (i = 0; i < m32; i += 32) { + COPY_32(0); COPY_32(1); COPY_32(2); COPY_32(3); + boffset += 32 * 16; + } aoffset4 = aoffset3 + lda; aoffset5 = aoffset4 + lda; aoffset6 = aoffset5 + lda; aoffset7 = aoffset6 + lda; + boffset = boffset0; + for (i = 0; i < m32; i += 32) { + COPY_32(4); COPY_32(5); COPY_32(6); COPY_32(7); + boffset += 32 * 16; + } aoffset8 = aoffset7 + lda; aoffset9 = aoffset8 + lda; aoffset10 = aoffset9 + lda; aoffset11 = aoffset10 + lda; + boffset = boffset0; + for (i = 0; i < m32; i += 32) { + COPY_32(8); COPY_32(9); COPY_32(10); COPY_32(11); + boffset += 32 * 16; + } aoffset12 = aoffset11 + lda; aoffset13 = aoffset12 + lda; aoffset14 = aoffset13 + lda; aoffset15 = aoffset14 + lda; - aoffset += 16 * lda; + boffset = boffset0; for (i = 0; i < m32; i += 32) { - COPY_32(0); COPY_32(1); COPY_32(2); COPY_32(3); - COPY_32(4); COPY_32(5); COPY_32(6); COPY_32(7); - COPY_32(8); COPY_32(9); COPY_32(10); COPY_32(11); COPY_32(12); COPY_32(13); COPY_32(14); COPY_32(15); boffset += 32 * 16; } @@ -91,6 +103,7 @@ int CNAME(BLASLONG m, BLASLONG n, IFLOAT *a, BLASLONG lda, IFLOAT *b) { COPY_ODD_TAIL(12); COPY_ODD_TAIL(13); COPY_ODD_TAIL(14); COPY_ODD_TAIL(15); boffset += 16; } + aoffset += 16 * lda; } if (j < n) { int remain_n = n - j;
Change ApiResponse from struct to class Mainly for consistency and match forward declaration.
@@ -1018,8 +1018,9 @@ public: Helper to simplify HTTP REST request handling. */ -struct ApiResponse +class ApiResponse { +public: QString etag; const char *httpStatus; const char *contentType;
Fixed CMake error for newer CMake versions.
@@ -39,7 +39,7 @@ if(R_RSCRIPT_EXECUTABLE) OUTPUT_VARIABLE R_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE ) - string(REGEX REPLACE "[a-zA-Z]|[(].*|[ ]" "" R_VERSION ${R_VERSION}) + string(REGEX REPLACE "[a-zA-Z]|[(].*|[ ]" "" R_VERSION "${R_VERSION}") set(R_LIBRARY_DIR "${R_HOME_DIR}/bin/x64") if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "4")
sysdeps/managarm: Implement F_GETFD fcntl()
@@ -52,7 +52,6 @@ namespace mlibc { int sys_chroot(const char *path) { HelAction actions[3]; - globalQueue.trim(); managarm::posix::CntRequest<MemoryAllocator> req(getAllocator()); @@ -146,9 +145,39 @@ int sys_fcntl(int fd, int request, va_list args) { return -1; return newfd; }else if(request == F_GETFD) { - frigg::infoLogger() << "\e[31mmlibc: fcntl(F_GETFD) is not implemented correctly" - << "\e[39m" << frigg::endLog; - return 0; + HelAction actions[3]; + globalQueue.trim(); + + managarm::posix::CntRequest<MemoryAllocator> req(getAllocator()); + req.set_request_type(managarm::posix::CntReqType::FD_GET_FLAGS); + req.set_fd(fd); + + frigg::String<MemoryAllocator> ser(getAllocator()); + req.SerializeToString(&ser); + actions[0].type = kHelActionOffer; + actions[0].flags = kHelItemAncillary; + actions[1].type = kHelActionSendFromBuffer; + actions[1].flags = kHelItemChain; + actions[1].buffer = ser.data(); + actions[1].length = ser.size(); + actions[2].type = kHelActionRecvInline; + actions[2].flags = 0; + HEL_CHECK(helSubmitAsync(kHelThisThread, actions, 3, + globalQueue.getQueue(), 0, 0)); + + auto element = globalQueue.dequeueSingle(); + auto offer = parseSimple(element); + auto send_req = parseSimple(element); + auto recv_resp = parseInline(element); + + HEL_CHECK(offer->error); + HEL_CHECK(send_req->error); + HEL_CHECK(recv_resp->error); + + managarm::posix::SvrResponse<MemoryAllocator> resp(getAllocator()); + resp.ParseFromArray(recv_resp->data, recv_resp->length); + __ensure(resp.error() == managarm::posix::Errors::SUCCESS); + return resp.flags(); }else if(request == F_SETFD) { frigg::infoLogger() << "\e[31mmlibc: fcntl(F_SETFD) is not implemented correctly" << "\e[39m" << frigg::endLog;
Removed outdated warning message about moons.
leaf+"can't create a moon from a {?:(?=($earl ran) "moon" "comet")}" =/ mon (mix (lsh 5 1 (end 5 1 eny)) p.bec) =/ tic .^(@ /a/(scot %p p.bec)/tick/(scot %da now)/(scot %p mon)) -%+ sole-yo - leaf+"(see https://github.com/urbit/arvo/issues/327 for details)" -%+ sole-yo - :- %leaf - ;: weld - "WARNING: linking a moon to your " - ?-(ran $czar "galaxy", $king "star", $duke "planet") - " can cause networking bugs" - == -%+ sole-lo - [& %$ "enter y/yes to continue: "] -|= inp/tape -?. |(=("y" inp) =("yes" inp)) - (sole-so [%tang leaf+"canceled" ~]) -(sole-so [%tang leaf+"moon: {<`@p`mon>}; ticket: {<`@p`tic>}" leaf+"" ~]) +(sole-so [%tang leaf+"ticket: {<`@p`tic>}" leaf+"moon: {<`@p`mon>}" ~])
update the ASN and counter payload position.
@@ -13,8 +13,8 @@ while True: hisAddress = dist_addr[0] hisPort = dist_addr[1] - asn = struct.unpack('<HHB',request[:5]) - counter = struct.unpack('<h',request[-2:])[0] + asn = struct.unpack('<HHB',request[-14:-9]) + counter = struct.unpack('<h',request[-9:-7]) print 'received "{0}" from [{1}]:{2}'.format(counter,hisAddress,hisPort)
Query environment for desired version. Some minor stdout tweaks...
@@ -5,12 +5,34 @@ use warnings; use File::Path; use File::Copy::Recursive "dircopy"; -my @arches = ('aarch64', 'x86_64'); -my @distros = ('CentOS_7.2', 'SLE_12_SP1'); +#my @arches = ('aarch64', 'x86_64'); +#my @distros = ('CentOS_7.2', 'SLE_12_SP1'); +# debug for testing... +my @arches = ('x86_64'); +my @distros = ('CentOS_7.2'); + my $base_repo_path = "/srv/obs/repos/OpenHPC:"; my $dest_dir = "/srv/www/isos"; -my $release = "1.2.1"; -my $tmp_dir = "/srv/tmp/mk_isos.$$"; +#my $dest_dir = "/srv/tmp/isos/isos"; +my $tmp_dir = "/srv/tmp/isos/mk_isos.$$"; + +# query expected environment variables +my $release; +my $overwrite=0; + +if(defined $ENV{'Version'}) { + $release = $ENV{'Version'}; +} else { + die "Version environment variable not set!\n"; +} + +if(defined $ENV{'OverWritePrevoius'} ) { + if ($ENV{'OverWritePrevious'} eq "true") { $overwrite=1; } +} + +print "OpenHPC ISO creation utility\n"; +print "--> Requested release version = $release\n"; +print "--> Overwrite existing isos = $overwrite\n"; #getopts+usage @@ -19,12 +41,15 @@ my ($major, $minor, $micro) = split(/\./, $release); my $base_release = "$major.$minor"; # stage repo in tmp -unless(mkdir $tmp_dir) { - die "Unable to create $tmp_dir: $!\n"; -} +print "\nStaging iso creation in $tmp_dir...\n"; +die "Unable to create $tmp_dir: $!\n" unless(mkdir $tmp_dir); + +# copy base repo contents +print "\nCopying base repo contents from OBS...\n"; unless(dircopy("$base_repo_path/$base_release", $tmp_dir)) { die "Unable to copy $base_repo_path/$base_release to $tmp_dir: $!"; } +print "--> base repo copy complete\n"; # build update repo if ($micro) { @@ -87,7 +112,7 @@ foreach my $distro (@distros) { system("mkisofs $mkisofs_args"); } -TODO: write sed script for repo files +# TODO: write sed script for repo files unless(rmtree $tmp_dir) { die "Unable to remove $tmp_dir: $!\n";
Don't use an RSA-PSS cert for RSA key exchange If we have selected a ciphersuite using RSA key exchange then we must not attempt to use an RSA-PSS cert for that. Fixes
@@ -2473,7 +2473,10 @@ static int tls12_get_cert_sigalg_idx(const SSL *s, const SIGALG_LOOKUP *lu) const SSL_CERT_LOOKUP *clu = ssl_cert_lookup_by_idx(sig_idx); /* If not recognised or not supported by cipher mask it is not suitable */ - if (clu == NULL || !(clu->amask & s->s3->tmp.new_cipher->algorithm_auth)) + if (clu == NULL + || (clu->amask & s->s3->tmp.new_cipher->algorithm_auth) == 0 + || (clu->nid == EVP_PKEY_RSA_PSS + && (s->s3->tmp.new_cipher->algorithm_mkey & SSL_kRSA) != 0)) return -1; return s->s3->tmp.valid_flags[sig_idx] & CERT_PKEY_VALID ? sig_idx : -1; @@ -2643,8 +2646,9 @@ int tls_choose_sigalg(SSL *s, int fatalerrs) if (i == s->cert->shared_sigalgslen) { if (!fatalerrs) return 1; - SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_F_TLS_CHOOSE_SIGALG, - ERR_R_INTERNAL_ERROR); + SSLfatal(s, SSL_AD_HANDSHAKE_FAILURE, + SSL_F_TLS_CHOOSE_SIGALG, + SSL_R_NO_SUITABLE_SIGNATURE_ALGORITHM); return 0; } } else {
gtkui: center about_dlg
@@ -443,8 +443,11 @@ about_dialog (gpointer data) gtk_about_dialog_set_authors(GTK_ABOUT_DIALOG(about_dlg), authors); gtk_about_dialog_set_translator_credits(GTK_ABOUT_DIALOG(about_dlg), translators); set_window_icon(GTK_WINDOW(about_dlg), NULL); + gtk_window_set_transient_for( GTK_WINDOW (about_dlg), main_window ); + gtk_window_set_modal ( GTK_WINDOW (about_dlg), TRUE); + gtk_window_set_position (GTK_WINDOW (about_dlg), GTK_WIN_POS_CENTER_ON_PARENT); - /* Display the dialog, wait for the user to click OK, and dismiss the dialog. */ + /* Display the dialog, wait for the user to close it, and destroy the dialog. */ gtk_dialog_run(GTK_DIALOG(about_dlg)); gtk_widget_destroy(about_dlg); }
handle out of memory errors in get/set_plugin_metadata
@@ -1300,6 +1300,10 @@ int set_plugin_metadata(protoop_plugin_t *plugin, plugin_struct_metadata_t **met HASH_FIND_PLUGIN(*metadata, &(plugin->hash), md); if (md == NULL) { md = (plugin_struct_metadata_t *) calloc(1, sizeof(plugin_struct_metadata_t)); + if (!md) { + printf("ERROR: out of memory !\n"); + return -1; + } md->plugin_hash = plugin->hash; HASH_ADD_PLUGIN(*metadata, plugin_hash, md); } @@ -1327,6 +1331,10 @@ int get_plugin_metadata(protoop_plugin_t *plugin, plugin_struct_metadata_t **met if (md == NULL) { // the metadata were not already allocated, so create it md = (plugin_struct_metadata_t *) calloc(1, sizeof(plugin_struct_metadata_t)); + if (!md) { + printf("ERROR: out of memory !\n"); + return -1; + } md->plugin_hash = plugin->hash; HASH_ADD_PLUGIN((*metadata), plugin_hash, md); }
xcframeworkbuild.sh: add arm64 simulator target this fixes simulator builds on an M1
@@ -48,6 +48,7 @@ PLATFORMS[$MACOS_CATALYST]="MacOSX-Catalyst-x86_64" if [[ "${XCODE%%.*}" -ge 12 ]]; then PLATFORMS[$MACOS]+=" MacOSX-arm64" PLATFORMS[$MACOS_CATALYST]+=" MacOSX-Catalyst-arm64" + PLATFORMS[$IOS_SIMULATOR]+=" iPhoneSimulator-arm64" elif [[ "${XCODE%%.*}" -eq 11 ]]; then cat << EOF WARNING: Xcode 12.0 or higher is required to build targets for @@ -140,7 +141,9 @@ for (( i = 0; i < $NUM_PLATFORMS; ++i )); do CFLAGS="-pipe -isysroot ${SDKROOT} -O3 -DNDEBUG" case "${PLATFORM}" in iPhone*) - CFLAGS+=" -miphoneos-version-min=${IOS_MIN_VERSION} -fembed-bitcode" + CFLAGS+=" -fembed-bitcode" + CFLAGS+=" -target ${ARCH}-apple-ios${IOS_MIN_VERSION}" + [[ "${PLATFORM}" == *Simulator* ]] && CFLAGS+="-simulator" ;; MacOSX-Catalyst*) CFLAGS+=" -target"
artik055s/media:Disable gmock and update defconfig Disable CONFIG_GMOCK and update defconfig using make menuconfig
@@ -864,8 +864,6 @@ CONFIG_AUDIO_EXCLUDE_REWIND=y # Media Support # CONFIG_MEDIA=y -CONFIG_DEBUG_MEDIA=y -CONFIG_DEBUG_MEDIA_ERROR=y CONFIG_MEDIA_PLAYER=y CONFIG_MEDIA_RECORDER=y CONFIG_AUDIO_RESAMPLER_BUFSIZE=4096 @@ -996,6 +994,8 @@ CONFIG_DEBUG_ERROR=y # # CONFIG_DEBUG_FS is not set # CONFIG_DEBUG_AUDIO is not set +CONFIG_DEBUG_MEDIA=y +CONFIG_DEBUG_MEDIA_ERROR=y # CONFIG_DEBUG_LIB is not set # CONFIG_DEBUG_MM is not set CONFIG_DEBUG_NET=y @@ -1156,7 +1156,7 @@ CONFIG_LIBCXX_HAVE_LIBSUPCXX=y # CURL Options # # CONFIG_ENABLE_CURL is not set -CONFIG_GMOCK=y +# CONFIG_GMOCK is not set # CONFIG_ENABLE_IOTIVITY is not set CONFIG_NETUTILS_JSON=y # CONFIG_LIBTUV is not set @@ -1217,11 +1217,12 @@ CONFIG_DISABLE_MANUAL_TESTCASE=y # CONFIG_EXAMPLES_TESTCASE_ARASTORAGE_ITC is not set CONFIG_EXAMPLES_TESTCASE_AUDIO_UTC=y CONFIG_EXAMPLES_TESTCASE_AUDIO_ITC=y +CONFIG_EXAMPLES_TESTCASE_MEDIA_UTC=y # CONFIG_EXAMPLES_TESTCASE_SYSTEMIO_UTC is not set # CONFIG_EXAMPLES_TESTCASE_SYSTEMIO_ITC is not set # CONFIG_EXAMPLES_TESTCASE_WIFI_MANAGER_UTC is not set # CONFIG_EXAMPLES_TESTCASE_WIFI_MANAGER_ITC is not set -CONFIG_EXAMPLES_TESTCASE_MEDIA_UTC=y +# CONFIG_LIBCXX_UTC is not set # CONFIG_EXAMPLES_TLS_BENCHMARK is not set # CONFIG_EXAMPLES_TLS_CLIENT is not set # CONFIG_EXAMPLES_TLS_SELFTEST is not set @@ -1299,6 +1300,11 @@ CONFIG_ENABLE_UPTIME=y # # CONFIG_DM is not set +# +# Task management +# +# CONFIG_TASK_MANAGER is not set + # # Things Management #
test: Fix misleading comment in usb_typec_drp_acc_trysrc BRANCH=none TEST=none
* Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * - * Test USB Type-C VPD and CTVPD module. + * Test USB Type-C Dual Role Port, Audio Accessory, and Try.SRC Device module. */ #include "charge_manager.h" #include "mock/tcpc_mock.h"
Add prototypes for cblas_csrot and cblas_zdrot
@@ -125,6 +125,8 @@ void cblas_zswap(OPENBLAS_CONST blasint n, void *x, OPENBLAS_CONST blasint incx, void cblas_srot(OPENBLAS_CONST blasint N, float *X, OPENBLAS_CONST blasint incX, float *Y, OPENBLAS_CONST blasint incY, OPENBLAS_CONST float c, OPENBLAS_CONST float s); void cblas_drot(OPENBLAS_CONST blasint N, double *X, OPENBLAS_CONST blasint incX, double *Y, OPENBLAS_CONST blasint incY, OPENBLAS_CONST double c, OPENBLAS_CONST double s); +void cblas_csrot(OPENBLAS_CONST blasint n, OPENBLAS_CONST void *x, OPENBLAS_CONST blasint incx, void *y, OPENBLAS_CONST blasint incY, OPENBLAS_CONST float c, OPENBLAS_CONST float s); +void cblas_zdrot(OPENBLAS_CONST blasint n, OPENBLAS_CONST void *x, OPENBLAS_CONST blasint incx, void *y, OPENBLAS_CONST blasint incY, OPENBLAS_CONST double c, OPENBLAS_CONST double s); void cblas_srotg(float *a, float *b, float *c, float *s); void cblas_drotg(double *a, double *b, double *c, double *s);
Update rest client comment
/** * \brief Execute REST call and pass everything in single shot - * \param[in] m: HTTP method to ue + * \param[in] m: HTTP method used in request header * \param[in] uri: URI to open, including "http[s]://". Example: "http://example.com:80/test/data?param1=param2..." * \param[in] tx_data: Optional TX data to send. Usually not used on `GET` method * \param[in] tx_len: Optional length of TX data in units of bytes
Python message
@@ -70,7 +70,7 @@ list( APPEND tests_extra # The high level python test requires new features in the unittest # which are only there for python 2.7 onwards if( HAVE_PYTHON AND PYTHON_VERSION_STRING VERSION_GREATER "2.7" ) - ecbuild_info("Python examples: Adding test for High-level Pythonic Interface") + #ecbuild_info("Python examples: Adding test for High-level Pythonic Interface") list( APPEND tests_extra high_level_api ) list( APPEND tests_extra grib_set_keys ) # Uses OrderedDict endif()
A little more logging.
@@ -37,13 +37,19 @@ func pollSensors() { // If it's not currently connected, try connecting to pressure sensor if globalSettings.Sensors_Enabled && !globalStatus.PressureSensorConnected { + log.Println("AHRS Info: attempting pressure sensor connection.") globalStatus.PressureSensorConnected = initPressureSensor() // I2C temperature and pressure altitude. go tempAndPressureSender() } // If it's not currently connected, try connecting to IMU if globalSettings.Sensors_Enabled && !globalStatus.IMUConnected { + log.Println("AHRS Info: attempting IMU connection.") globalStatus.IMUConnected = initIMU() // I2C accel/gyro/mag. + } else if globalSettings.Sensors_Enabled { + log.Println("AHRS Info: IMU already connected.") + } else { + log.Println("AHRS Info: sensors disabled, not attempting to connect.") } } }
Fix chip/imxrt_lpspi.c:553:23: error: unused function 'imxrt_lpspi_readbyte' and chip/imxrt_lpspi.c:580:20: error: unused function 'imxrt_lpspi_writebyte'
@@ -409,46 +409,6 @@ static struct imxrt_lpspidev_s g_lpspi4dev = * Private Functions ****************************************************************************/ -/**************************************************************************** - * Name: imxrt_lpspi_getreg8 - * - * Description: - * Get the contents of the SPI register at offset - * - * Input Parameters: - * priv - private SPI device structure - * offset - offset to the register of interest - * - * Returned Value: - * The contents of the 8-bit register - * - ****************************************************************************/ - -static inline uint8_t imxrt_lpspi_getreg8(struct imxrt_lpspidev_s *priv, - uint8_t offset) -{ - return getreg8(priv->spibase + offset); -} - -/**************************************************************************** - * Name: imxrt_lpspi_putreg8 - * - * Description: - * Write a 8-bit value to the SPI register at offset - * - * Input Parameters: - * priv - private SPI device structure - * offset - offset to the register of interest - * value - the 8-bit value to be written - * - ****************************************************************************/ - -static inline void imxrt_lpspi_putreg8(struct imxrt_lpspidev_s *priv, - uint8_t offset, uint8_t value) -{ - putreg8(value, priv->spibase + offset); -} - /**************************************************************************** * Name: imxrt_lpspi_getreg * @@ -548,60 +508,6 @@ static inline void imxrt_lpspi_writeword(struct imxrt_lpspidev_s *priv, imxrt_lpspi_putreg32(priv, IMXRT_LPSPI_TDR_OFFSET, word); } -/**************************************************************************** - * Name: imxrt_lpspi_readbyte - * - * Description: - * Read one byte from SPI - * - * Input Parameters: - * priv - Device-specific state data - * - * Returned Value: - * Byte as read - * - ****************************************************************************/ - -static inline uint8_t imxrt_lpspi_readbyte(struct imxrt_lpspidev_s *priv) -{ - /* Wait until the receive buffer is not empty */ - - while ((imxrt_lpspi_getreg32(priv, IMXRT_LPSPI_SR_OFFSET) - & LPSPI_SR_RDF) == 0); - - /* Then return the received byte */ - - return imxrt_lpspi_getreg8(priv, IMXRT_LPSPI_RDR_OFFSET); -} - -/**************************************************************************** - * Name: imxrt_lpspi_writebyte - * - * Description: - * Write one 8-bit frame to the SPI FIFO - * - * Input Parameters: - * priv - Device-specific state data - * byte - Byte to send - * - * Returned Value: - * None - * - ****************************************************************************/ - -static inline void imxrt_lpspi_writebyte(struct imxrt_lpspidev_s *priv, - uint8_t byte) -{ - /* Wait until the transmit buffer is empty */ - - while ((imxrt_lpspi_getreg32(priv, IMXRT_LPSPI_SR_OFFSET) - & LPSPI_SR_TDF) == 0); - - /* Then send the byte */ - - imxrt_lpspi_putreg8(priv, IMXRT_LPSPI_TDR_OFFSET, byte); -} - /**************************************************************************** * Name: imxrt_lpspi_9to16bitmode *
Add installation instructions for Amazon Linux 1 AMI Sign-Off-By Travis Davies
- [Gentoo](#gentoo---portage) - [openSUSE](#opensuse---binary) - [RHEL](#rhel---binary) + - [Amazon Linux 1](#Amazon-Linux-1---Binary) * [Source](#source) - [Debian](#debian---source) - [Ubuntu](#ubuntu---source) @@ -164,6 +165,23 @@ For RHEL 7.6, bcc is already included in the official yum repository as bcc-tool yum install bcc-tools ``` +## Amazon Linux 1 - Binary +Use case 1. Install BCC for latest kernel available in repo: + Tested on Amazon Linux AMI release 2018.03 (kernel 4.14.88-72.73.amzn1.x86_64) +``` +sudo yum update kernel +sudo yum install bcc +sudo reboot +``` + +Use case 2. Install BCC for your AMI's default kernel (no reboot required): + Tested on Amazon Linux AMI release 2018.03 (kernel 4.14.77-70.59.amzn1.x86_64) +``` +sudo yum install kernel-headers-$(uname -r | cut -d'.' -f1-5) +sudo yum install kernel-devel-$(uname -r | cut -d'.' -f1-5) +sudo yum install bcc +``` + # Source ## Debian - Source
vere: refactors %lin blit handling in term.c
@@ -1203,6 +1203,28 @@ _term_it_show_stub(u3_utty* uty_u, u3z(tub); } +/* _term_it_show_tour(): send utf32 to terminal. +*/ +static void +_term_it_show_tour(u3_utty* uty_u, + u3_noun lin) +{ + c3_w len_w = u3qb_lent(lin); + c3_w* lin_w = c3_malloc( sizeof(c3_w) * len_w ); + + { + c3_w i_w; + + for ( i_w = 0; u3_nul != lin; i_w++, lin = u3t(lin) ) { + lin_w[i_w] = u3r_word(0, u3h(lin)); + } + } + + _term_it_show_line(uty_u, lin_w, len_w, 0); + + u3z(lin); +} + /* _term_ef_blit(): send blit to terminal. */ static void @@ -1239,24 +1261,10 @@ _term_ef_blit(u3_utty* uty_u, } break; case c3__lin: { - u3_noun lin = u3t(blt); - c3_w len_w = u3kb_lent(u3k(lin)); - c3_w* lin_w = c3_malloc( sizeof(c3_w) * len_w ); - - { - c3_w i_w; - - for ( i_w = 0; u3_nul != lin; i_w++, lin = u3t(lin) ) { - lin_w[i_w] = u3r_word(0, u3h(lin)); - } - } - if ( c3n == u3_Host.ops_u.tem ) { _term_it_show_clear(uty_u); - _term_it_show_line(uty_u, lin_w, len_w, 0); - } else { - _term_it_show_line(uty_u, lin_w, len_w, 0); } + _term_it_show_tour(uty_u, u3k(u3t(blt))); } break; case c3__mor: {
Reduce the CPU usage
@@ -314,7 +314,7 @@ def input(prompt=""): __PyInputHelper__.showAlertWithPrompt(prompt) while __PyInputHelper__.userInput == None or threading.currentThread() in ignoredThreads: - continue + time.sleep(0.2) userInput = __PyInputHelper__.userInput __PyInputHelper__.userInput = None
Fix wrong cblas_dgemv call See
@@ -157,8 +157,10 @@ void Jac_F_FB(int n1, int n2, double* restrict z, double* restrict F, double* re } // workV1 = "z" in Facchinei--Pang (2003) p. 808 // "z_i" = 1 if z_i = w_i = 0.0 - // nabla_F^T.workV1 --> workV2 - cblas_dgemv(CblasColMajor,CblasTrans, n2, n2, 1.0, nabla_F_dense, n2, &workV1[n1], 1, 0.0, &workV2[n1], 1); + // (nabla_F[n1:n,n1:n])^T.workV1 --> workV2 + // Thanks to octave-user on github for reporting and fixing this issue + // cf https://github.com/siconos/siconos/issues/452#issuecomment-1166539393 + cblas_dgemv(CblasColMajor, CblasTrans, n2, n2, 1.0, &nabla_F_dense[n * n1 + n1], n, &workV1[n1], 1, 0.0, &workV2[n1], 1); for(int i = n1; i < n; ++i) { if(workV1[i] != 0.0) // i in beta
small fix inside ifdef z13mvc . (z13mvc code is not used in production)
@@ -27,7 +27,6 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "common.h" - #if defined(Z13mvc) static void dcopy_kernel_32(BLASLONG n, FLOAT *x, FLOAT *y) { @@ -42,9 +41,9 @@ static void dcopy_kernel_32(BLASLONG n, FLOAT *x, FLOAT *y) { "la %[ptr_x],256(%[ptr_x]) \n\t" "la %[ptr_y],256(%[ptr_y]) \n\t" "brctg %[n_tmp],1b" - : [mem_y] "=m" (*(double (*)[n])y), [n_tmp] "+&r"(n) - : [mem_x] "m" (*(const double (*)[n])x), - [ptr_x] "a"(x), [ptr_y] "a"(y) + : [mem_y] "=m" (*(double (*)[n])y), [n_tmp] "+&r"(n), + [ptr_x] "+&a"(x), [ptr_y] "+&a"(y) + : [mem_x] "m" (*(const double (*)[n])x) : "cc" ); return;
out_s3: fix documentation for total_file_size option
@@ -1545,7 +1545,7 @@ static struct flb_config_map config_map[] = { { FLB_CONFIG_MAP_SIZE, "total_file_size", "100000000", 0, FLB_TRUE, offsetof(struct flb_s3, file_size), - "Specifies the size of files in S3. Maximum size is 50GB, minimim is 1MB" + "Specifies the size of files in S3. Maximum size is 50GB, minimum is 1MB" }, { FLB_CONFIG_MAP_SIZE, "upload_chunk_size", "5242880",
test-suite: include mpi family in module tests for mfem
@@ -17,7 +17,7 @@ rpm=mfem-$LMOD_FAMILY_COMPILER-$LMOD_FAMILY_MPI${DELIM} check_rms -@test "[$testname] Verify $PKG module is loaded and matches rpm version ($LMOD_FAMILY_COMPILER)" { +@test "[$testname] Verify $PKG module is loaded and matches rpm version ($LMOD_FAMILY_COMPILER/$LMOD_FAMILY_MPI)" { module list $module | grep "1) $module" >& .cmd_output || exit 1 run grep $module .cmd_output assert_success @@ -30,7 +30,7 @@ check_rms rm -f .cmd_output } -@test "[$testname] Verify module ${PKG}_DIR is defined and exists ($LMOD_FAMILY_COMPILER)" { +@test "[$testname] Verify module ${PKG}_DIR is defined and exists ($LMOD_FAMILY_COMPILER/$LMOD_FAMILY_MPI)" { DIR=${PKG}_DIR if [ -z ${!DIR} ];then flunk "${PKG}_DIR directory not defined" @@ -41,7 +41,7 @@ check_rms fi } -@test "[$testname] Verify module ${PKG}_BIN is defined and exists" { +@test "[$testname] Verify module ${PKG}_BIN is defined and exists ($LMOD_FAMILY_COMPILER/$LMOD_FAMILY_MPI)" { BIN=${PKG}_BIN if [ -z ${!BIN} ];then flunk "${PKG}_BIN directory not defined" @@ -57,7 +57,7 @@ check_rms # Lib Tests # ---------- -@test "[$testname] Verify module ${PKG}_LIB is defined and exists ($LMOD_FAMILY_COMPILER)" { +@test "[$testname] Verify module ${PKG}_LIB is defined and exists ($LMOD_FAMILY_COMPILER/$LMOD_FAMILY_MPI)" { LIB=${PKG}_LIB if [ -z ${!LIB} ];then @@ -69,7 +69,7 @@ check_rms fi } -@test "[$testname] Verify (dynamic) library available in ${PKG}_LIB ($LMOD_FAMILY_COMPILER)" { +@test "[$testname] Verify (dynamic) library available in ${PKG}_LIB ($LMOD_FAMILY_COMPILER/$LMOD_FAMILY_MPI)" { LIB=${PKG}_LIB if [ -z ${!LIB} ];then @@ -85,7 +85,7 @@ check_rms # Include Tests # -------------- -@test "[$testname] Verify module ${PKG}_INC is defined and exists ($LMOD_FAMILY_COMPILER)" { +@test "[$testname] Verify module ${PKG}_INC is defined and exists ($LMOD_FAMILY_COMPILER/$LMOD_FAMILY_MPI)" { INC=${PKG}_INC if [ -z ${!INC} ];then @@ -97,7 +97,7 @@ check_rms fi } -@test "[$testname] Verify header file is present in ${PKG}_INC ($LMOD_FAMILY_COMPILER)" { +@test "[$testname] Verify header file is present in ${PKG}_INC ($LMOD_FAMILY_COMPILER/$LMOD_FAMILY_MPI)" { INC=${PKG}_INC if [ -z ${!INC} ];then
Allow username to differ from bucket name Tested-by: Mark Nunberg
@@ -90,10 +90,6 @@ Authenticator::init(const std::string& username_, const std::string& bucket, m_username = (!username_.empty()) ? username_ : bucket; m_password = passwd; - if (conntype == LCB_TYPE_BUCKET && m_username != bucket) { - return LCB_INVALID_USERNAME; - } - m_buckets[bucket] = m_password; return LCB_SUCCESS; }
Fix warning in lv_img_src_get_type
@@ -238,20 +238,25 @@ bool lv_img_color_format_has_alpha(lv_img_cf_t cf) */ lv_img_src_t lv_img_src_get_type(const void * src) { - if(src == NULL) return LV_IMG_SRC_UNKNOWN; + lv_img_src_t img_src_type = LV_IMG_SRC_UNKNOWN; + + if(src == NULL) return img_src_type; const uint8_t * u8_p = src; /*The first byte shows the type of the image source*/ if(u8_p[0] >= 0x20 && u8_p[0] <= 0x7F) { - return LV_IMG_SRC_FILE; /*If it's an ASCII character then it's file name*/ + img_src_type = LV_IMG_SRC_FILE; /*If it's an ASCII character then it's file name*/ } else if(u8_p[0] >= 0x80) { - return LV_IMG_SRC_SYMBOL; /*Symbols begins after 0x7F*/ + img_src_type = LV_IMG_SRC_SYMBOL; /*Symbols begins after 0x7F*/ } else { - return LV_IMG_SRC_VARIABLE; /*`lv_img_dsc_t` is design to the first byte < 0x20*/ + img_src_type = LV_IMG_SRC_VARIABLE; /*`lv_img_dsc_t` is design to the first byte < 0x20*/ } + if (LV_IMG_SRC_UNKNOWN == img_src_type) { LV_LOG_WARN("lv_img_src_get_type: unknown image type"); - return LV_IMG_SRC_UNKNOWN; + } + + return img_src_type; } /**
sysdeps/managarm: Implement chdir()
@@ -52,10 +52,45 @@ HelHandle __mlibc_getPassthrough(int fd) { namespace mlibc { int sys_chdir(const char *path) { - mlibc::infoLogger() << "\e[31mmlibc: chdir() is not implemented correctly\e[39m" - << frg::endlog; + SignalGuard sguard; + HelAction actions[3]; + globalQueue.trim(); + + managarm::posix::CntRequest<MemoryAllocator> req(getSysdepsAllocator()); + req.set_request_type(managarm::posix::CntReqType::CHDIR); + req.set_path(frigg::String<MemoryAllocator>(getSysdepsAllocator(), path)); + + frigg::String<MemoryAllocator> ser(getSysdepsAllocator()); + req.SerializeToString(&ser); + actions[0].type = kHelActionOffer; + actions[0].flags = kHelItemAncillary; + actions[1].type = kHelActionSendFromBuffer; + actions[1].flags = kHelItemChain; + actions[1].buffer = ser.data(); + actions[1].length = ser.size(); + actions[2].type = kHelActionRecvInline; + actions[2].flags = 0; + HEL_CHECK(helSubmitAsync(kHelThisThread, actions, 3, + globalQueue.getQueue(), 0, 0)); + + auto element = globalQueue.dequeueSingle(); + auto offer = parseSimple(element); + auto send_req = parseSimple(element); + auto recv_resp = parseInline(element); + + HEL_CHECK(offer->error); + HEL_CHECK(send_req->error); + HEL_CHECK(recv_resp->error); + + managarm::posix::SvrResponse<MemoryAllocator> resp(getSysdepsAllocator()); + resp.ParseFromArray(recv_resp->data, recv_resp->length); + if(resp.error() == managarm::posix::Errors::FILE_NOT_FOUND) { + return ENOENT; + }else{ + __ensure(resp.error() == managarm::posix::Errors::SUCCESS); return 0; } +} int sys_chroot(const char *path) { SignalGuard sguard;
Treat '.mp*' files as mp3 audio
@@ -254,7 +254,7 @@ namespace nme bool isMp3(const std::string &inFilename) { - return inFilename.size()>3 && inFilename.substr( inFilename.size()-3 )=="mp3"; + return inFilename.size()>3 && inFilename.substr( inFilename.size()-3,2 )=="mp"; }
merge add wch chip.
@@ -144,6 +144,8 @@ jobs: - {RTT_BSP: "stm32/stm32mp157a-st-ev1", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "stm32/stm32u575-st-nucleo", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "stm32/stm32wb55-st-nucleo", RTT_TOOL_CHAIN: "sourcery-arm"} + - {RTT_BSP: "wch/arm/ch32f103c8-core", RTT_TOOL_CHAIN: "sourcery-arm"} + - {RTT_BSP: "wch/arm/ch32f203r-evt", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "swm320", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "swm320-lq100", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "beaglebone", RTT_TOOL_CHAIN: "sourcery-arm"}
Fix typo in aesccm.c CLA: trivial
@@ -89,7 +89,7 @@ void aes_ccm_decrypt(void) EVP_CIPHER_CTX *ctx; int outlen, tmplen, rv; unsigned char outbuf[1024]; - printf("AES CCM Derypt:\n"); + printf("AES CCM Decrypt:\n"); printf("Ciphertext:\n"); BIO_dump_fp(stdout, ccm_ct, sizeof(ccm_ct)); ctx = EVP_CIPHER_CTX_new();
moved laplacian to the vector expr list
@@ -708,6 +708,11 @@ IJ_Gradient Function: ``ij_gradient()`` : ``ij_gradient(expr0)`` IJK_Gradient Function: ``ijk_gradient()`` : ``ijk_gradient(expr0)`` No description available. +.. _Laplacian_Expression_Function: + +Laplacian Function: ``laplacian()`` : ``laplacian(expr0)`` + No description available. + .. _Surface_Normal_Expression_Function: Surface Normal Function: ``surface_normal()`` : ``surface_normal(expr0)`` @@ -1919,11 +1924,6 @@ agrad Function: ``agrad()`` : ``agrad(expr0)`` key aggregate Function: ``key_aggregate()`` : ``key_aggregate(expr0)`` No description available. -.. _Laplacian_Expression_Function: - -Laplacian Function: ``laplacian()`` : ``laplacian(expr0)`` - No description available. - .. _Rectilinear_Laplacian_Expression_Function: rectilinear Laplacian Function: ``rectilinear_laplacian()`` : ``rectilinear_laplacian(expr0)``
replace ifconfig & brctl with ip command clearlinux package will remove ifconfig/brctl tools. Acked-by: Eddie Dong
@@ -8,13 +8,13 @@ if [ ! -f "/data/$5/$5.img" ]; then fi #vm-name used to generate uos-mac address -mac=$(cat /sys/class/net/ens4/address) +mac=$(cat /sys/class/net/en*/address) vm_name=vm$1 vm_name=${vm_name}-${mac:9:8} # create a unique tap device for each VM tap=tap_LaaG -tap_exist=$(ifconfig | grep acrn_"$tap" | awk '{print $1}') +tap_exist=$(ip a | grep acrn_"$tap" | awk '{print $1}') if [ "$tap_exist"x != "x" ]; then echo "tap device existed, reuse acrn_$tap" else @@ -22,10 +22,10 @@ else fi # if acrn-br0 exists, add VM's unique tap device under it -br_exist=$(ifconfig | grep acrn-br0 | awk '{print $1}') +br_exist=$(ip a | grep acrn-br0 | awk '{print $1}') if [ "$br_exist"x != "x" -a "$tap_exist"x = "x" ]; then echo "acrn-br0 bridge aleady exists, adding new tap device to it..." - brctl addif acrn-br0 acrn_"$tap" + ip link set acrn_"$tap" master acrn-br0 ip link set dev acrn_"$tap" down ip link set dev acrn_"$tap" up fi @@ -133,13 +133,13 @@ if [ ! -f "/data/$5/$5.img" ]; then fi #vm-name used to generate uos-mac address -mac=$(cat /sys/class/net/ens4/address) +mac=$(cat /sys/class/net/en*/address) vm_name=vm$1 vm_name=${vm_name}-${mac:9:8} # create a unique tap device for each VM tap=tap_AaaG -tap_exist=$(ifconfig | grep acrn_"$tap" | awk '{print $1}') +tap_exist=$(ip a | grep acrn_"$tap" | awk '{print $1}') if [ "$tap_exist"x != "x" ]; then echo "tap device existed, reuse acrn_$tap" else @@ -147,10 +147,10 @@ else fi # if acrn-br0 exists, add VM's unique tap device under it -br_exist=$(ifconfig | grep acrn-br0 | awk '{print $1}') +br_exist=$(ip a | grep acrn-br0 | awk '{print $1}') if [ "$br_exist"x != "x" -a "$tap_exist"x = "x" ]; then echo "acrn-br0 bridge aleady exists, adding new tap device to it..." - brctl addif acrn-br0 acrn_"$tap" + ip link set acrn_"$tap" master acrn-br0 ip link set dev acrn_"$tap" down ip link set dev acrn_"$tap" up fi
pnlBoardControls: add pointer check
@@ -255,6 +255,7 @@ void pnlBoardControls::OnReadAll( wxCommandEvent& event ) evt.SetId(additionalControls->GetId()); wxPostEvent(additionalControls, evt); } + if (txtDACValue) { uint16_t val; LMS_VCTCXORead(lmsControl, &val, true);
Version 1.2 - readme rev
-2017-11-01 - Version 1.2 +2017-11-01 - Version 1.2 (rev 8e04633) - Software-based coverage feedback (-z) is now enabled by default, can be disabled with (-x) - Better sigprocmask manipulation before executing a process - Updated fuzzing corpora for ssl packages
Make cubic spline error more polite;
@@ -113,7 +113,7 @@ bool lovrAnimatorEvaluate(Animator* animator, int nodeIndex, mat4 transform) { } break; case SMOOTH_LINEAR: lerp(value, next, z); break; - case SMOOTH_CUBIC: lovrThrow("No spline interpolation yet"); break; + case SMOOTH_CUBIC: lovrThrow("Cubic spline keyframe interpolation is not supported yet"); break; } } else { memcpy(value, channel->data + CLAMP(k, 0, channel->keyframeCount - 1) * n, n * sizeof(float));
Fix eventfd configuration bug.
@@ -341,7 +341,7 @@ else () nng_check_sym (backtrace_symbols_fd execinfo.h NNG_HAVE_BACKTRACE) nng_check_sym (alloca alloca.h NNG_HAVE_ALLOCA) nng_check_struct_member(msghdr msg_control sys/socket.h NNG_HAVE_MSG_CONTROL) - nng_check_sym (eventfd sys/eventfd NNG_HAVE_EVENTFD) + nng_check_sym (eventfd sys/eventfd.h NNG_HAVE_EVENTFD) nng_check_sym (kqueue sys/event.h NNG_HAVE_KQUEUE) nng_check_sym (port_create port.h NNG_HAVE_PORT_CREATE) nng_check_sym (epoll_create sys/epoll.h NNG_HAVE_EPOLL)
Remove unused "#ifdef"-related cgen strings
@@ -577,6 +577,11 @@ func (g *gen) generate() ([]byte, error) { return *b, nil } +var ( + wiStartImpl = []byte("\n// WUFFS C HEADER ENDS HERE.\n#ifdef WUFFS_IMPLEMENTATION\n\n") + wiEnd = []byte("\n#endif // WUFFS_IMPLEMENTATION\n\n") +) + func (g *gen) genIncludes(b *buffer) error { b.writes("#if defined(WUFFS_IMPLEMENTATION) && !defined(WUFFS_CONFIG__MODULES)\n") b.writes("#define WUFFS_CONFIG__MODULES\n") @@ -1122,13 +1127,6 @@ func (g *gen) writeCppMethods(b *buffer, n *a.Struct) error { return nil } -var ( - wiStartImpl = []byte("\n// WUFFS C HEADER ENDS HERE.\n#ifdef WUFFS_IMPLEMENTATION\n\n") - wiStart = []byte("\n#ifdef WUFFS_IMPLEMENTATION\n\n") - wiElse = []byte("\n#else // WUFFS_IMPLEMENTATION\n\n") - wiEnd = []byte("\n#endif // WUFFS_IMPLEMENTATION\n\n") -) - func (g *gen) writeVTableImpl(b *buffer, n *a.Struct) error { impls := n.Implements() if len(impls) == 0 {
Fix incorrectly removed unrolljam option in PR
@@ -223,6 +223,7 @@ int main(int argc, char *argv[]) { {"parallelize", no_argument, &options->parallel, 1}, {"innerpar", no_argument, &options->innerpar, 1}, {"iss", no_argument, &options->iss, 1}, + {"unrolljam", no_argument, &options->unrolljam, 1}, {"nounrolljam", no_argument, &options->unrolljam, 0}, {"bee", no_argument, &options->bee, 1}, {"ufactor", required_argument, 0, 'u'},
restore upvalue
@@ -184,8 +184,22 @@ function serialize._resolvefunction(root, env, funccode) if type(funccode) ~= "string" then return nil, "func should called with a string" end - -- resolve - return load(funccode, "=(deserialized code)", "b", env) + + -- resolve funccode + local func, err = load(funccode, "=(deserialized code)", "b", env) + if err ~= nil then + return nil, err + end + + -- try restore upvalues + for i = 1, math.huge do + local upname = debug.getupvalue(func, i) + if upname == nil or upname == "" then + break + end + debug.setupvalue(func, i, env[upname]) + end + return func end function serialize._makeref(path, opt) @@ -320,9 +334,9 @@ function serialize._createenv() end -- load function - function env.func(funccode) + function env.func(...) -- load func - return serialize._createstub(serialize._resolvefunction, env, funccode) + return serialize._createstub(serialize._resolvefunction, env, ...) end -- return new env
remove text process 0
@@ -78,7 +78,7 @@ def create_frame(codec, beatmap, skin, replay_event, replay_info, resultinfo, st while frame_info.osr_index < end_index: # len(replay_event) - 3: status = render_draw(beatmap, component, cursor_event, frame_info, img, np_img, pbuffer, preempt_followpoint, replay_event, start_index, time_preempt, updater) - cv2.putText(np_img, str(resultinfo[min(len(resultinfo) - 1, updater.info_index)]), (100, 100), cv2.FONT_HERSHEY_SIMPLEX, 0.3, (255, 255, 255, 255), 1) + # cv2.putText(np_img, str(resultinfo[min(len(resultinfo) - 1, updater.info_index)].hitresult) + " " + str(resultinfo[min(len(resultinfo) - 1, updater.info_index)].more), (100, 100), cv2.FONT_HERSHEY_SIMPLEX, 0.3, (255, 255, 255, 255), 1) if status: im = cv2.cvtColor(np_img, cv2.COLOR_BGRA2RGB) writer.write(im)
[chainmaker][#436]modify create wallet return value
@@ -107,7 +107,7 @@ START_TEST(test_001Wallet_0002CreateOneTimeWalletFailureNullConfig) /* 3. verify test result */ /* 3-1. verify the return value */ - ck_assert_int_eq(rtnVal, -1); + ck_assert_int_eq(rtnVal, BOAT_ERROR_COMMON_INVALID_ARGUMENT); /* 3-2. verify the global variables that be affected */ ck_assert(g_boat_iot_sdk_context.wallet_list[0].is_used == false);
tweaks for CMakeLists.txt
@@ -26,8 +26,6 @@ ELSE (LIBBCC_LIB) MESSAGE(SEND_ERROR "libbcc not found") ENDIF (LIBBCC_LIB) -SET(SOURCE_FILES h2olog.cc http.cc quic.cc) - set(SOURCE_FILES "h2olog.cc" "http.cc" @@ -48,12 +46,12 @@ ADD_CUSTOM_COMMAND( LIST(APPEND DTRACE_FILES "${CMAKE_BINARY_DIR}/h2o-probes.d") ADD_CUSTOM_COMMAND( - OUTPUT "${CMAKE_BINARY_DIR}/quic.cc" - COMMAND "${CMAKE_SOURCE_DIR}/gen-bpf.py" "${CMAKE_BINARY_DIR}" "${CMAKE_BINARY_DIR}/quic.cc" + OUTPUT "${CMAKE_BINARY_DIR}/generated-quic.cc" + COMMAND "${CMAKE_SOURCE_DIR}/gen-bpf.py" "${CMAKE_BINARY_DIR}" "${CMAKE_BINARY_DIR}/generated-quic.cc" DEPENDS ${DTRACE_FILES} DEPENDS "${CMAKE_SOURCE_DIR}/gen-bpf.py" ) -LIST(APPEND SOURCE_FILES "${CMAKE_BINARY_DIR}/quic.cc") +LIST(APPEND SOURCE_FILES "${CMAKE_BINARY_DIR}/generated-quic.cc") INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
parser json BUGFIX correct metadata processing
@@ -734,7 +734,6 @@ lydjson_metadata(struct lyd_json_ctx *lydctx, const struct lysc_node *snode, str char *dynamic_prefname = NULL; size_t name_len, prefix_len = 0; struct lys_module *mod; - struct lyd_meta *meta = NULL; const struct ly_ctx *ctx = lydctx->jsonctx->ctx; ly_bool is_attr = 0; struct lyd_node *prev = node; @@ -856,13 +855,12 @@ next_entry: if (node->schema) { /* create metadata */ - meta = NULL; - ret = lyd_parser_create_meta((struct lyd_ctx *)lydctx, node, &meta, mod, name, name_len, lydctx->jsonctx->value, + ret = lyd_parser_create_meta((struct lyd_ctx *)lydctx, node, NULL, mod, name, name_len, lydctx->jsonctx->value, lydctx->jsonctx->value_len, &lydctx->jsonctx->dynamic, LY_VALUE_JSON, NULL, LYD_HINT_DATA, node->schema); LY_CHECK_GOTO(ret, cleanup); /* add/correct flags */ - ret = lyd_parse_set_data_flags(node, &meta, (struct lyd_ctx *)lydctx, NULL); + ret = lyd_parse_set_data_flags(node, &node->meta, (struct lyd_ctx *)lydctx, NULL); LY_CHECK_GOTO(ret, cleanup); } else { /* create attribute */ @@ -885,7 +883,7 @@ next_entry: if (nodetype == LYS_LEAFLIST) { /* continue by processing another metadata object for the following - * leaf-list instance since they are allways instantiated in JSON array */ + * leaf-list instance since they are always instantiated in JSON array */ prev = node; node = node->next; goto next_entry;
hv: mmio: replace hi_mmio with mmio64 Now HI_MMIO_xxx is duplicate with MMIO64_xxx. This patch replace HI_MMIO_xxx with MMIO64_xxx.
@@ -294,12 +294,12 @@ void init_paging(void) pgtable_add_map((uint64_t *)ppt_mmu_pml4_addr, high64_min_ram, high64_min_ram, high64_max_ram - high64_min_ram, PAGE_ATTR_USER | PAGE_CACHE_WB, &ppt_pgtable); } - /* Map [low32_max_ram, 4G) and [HI_MMIO_START, HI_MMIO_END) MMIO regions as UC attribute */ + /* Map [low32_max_ram, 4G) and [MMIO64_START, MMIO64_END) MMIO regions as UC attribute */ pgtable_add_map((uint64_t *)ppt_mmu_pml4_addr, low32_max_ram, low32_max_ram, MEM_4G - low32_max_ram, PAGE_ATTR_USER | PAGE_CACHE_UC, &ppt_pgtable); - if ((HI_MMIO_START != ~0UL) && (HI_MMIO_END != 0UL)) { - pgtable_add_map((uint64_t *)ppt_mmu_pml4_addr, HI_MMIO_START, HI_MMIO_START, - (HI_MMIO_END - HI_MMIO_START), PAGE_ATTR_USER | PAGE_CACHE_UC, &ppt_pgtable); + if ((MMIO64_START != ~0UL) && (MMIO64_END != 0UL)) { + pgtable_add_map((uint64_t *)ppt_mmu_pml4_addr, MMIO64_START, MMIO64_START, + (MMIO64_END - MMIO64_START), PAGE_ATTR_USER | PAGE_CACHE_UC, &ppt_pgtable); } /*
fix that testdata/rpz_clientip.rpl trigger tests succeed.
@@ -1356,7 +1356,7 @@ rpz_resolve_client_action_and_zone(struct auth_zones* az, struct query_info* qin z = rpz_find_zone(r->local_zones, qinfo->qname, qinfo->qname_len, qinfo->qclass, 0, 0, 0); node = rpz_ipbased_trigger_lookup(r->client_set, &repinfo->addr, repinfo->addrlen); - if(z && r->action_override == RPZ_DISABLED_ACTION) { + if((z || node) && r->action_override == RPZ_DISABLED_ACTION) { if(r->log) log_rpz_apply(z->name, r->action_override, @@ -1366,7 +1366,7 @@ rpz_resolve_client_action_and_zone(struct auth_zones* az, struct query_info* qin lock_rw_unlock(&z->lock); z = NULL; } - if(z) { + if(z || node) { break; } else { if(node != NULL) { @@ -1913,7 +1913,7 @@ rpz_apply_maybe_clientip_trigger(struct auth_zones* az, struct module_env* env, struct clientip_synthesized_rr* node = rpz_resolve_client_action_and_zone( az, qinfo, repinfo, taglist, taglen, stats, z_out, a_out, r_out); - client_action = node == NULL ? RPZ_INVALID_ACTION : node->action; + client_action = ((node == NULL) ? RPZ_INVALID_ACTION : node->action); verbose(VERB_ALGO, "rpz: qname trigger: client action=%s", rpz_action_to_string(client_action));
GO_PACKAGE_NAME() macro to define current package name when package name doesn't match last syllable of import path
@@ -3501,6 +3501,11 @@ macro GO_FAKE_OUTPUT(FILES...) { CGO_ENABLED=yes +GO_PACKAGE_VALUE= +macro GO_PACKAGE_NAME(NAME) { + SET(GO_PACKAGE_VALUE $NAME) +} + GO_SRCS_VALUE= macro GO_SRCS(FILES...) { GO_FAKE_OUTPUT($FILES)
YAML CPP: Do not use exceptions in bool conversion See also:
@@ -237,14 +237,12 @@ YAML::Node createMetaDataNode (Key const & key) return YAML::Node ("Unsupported binary value!"); } - try + auto value = key.get<string> (); + if (value == "0" || value == "1") { return YAML::Node (key.get<bool> ()); } - catch (KeyTypeConversion const &) - { - return YAML::Node (key.getString ()); - } + return YAML::Node (value); } /**
cmake: Require GnuTLS >= 3.7.0
@@ -68,7 +68,7 @@ endforeach() if(ENABLE_GNUTLS) - find_package(GnuTLS 3.6.12) + find_package(GnuTLS 3.7.0) endif() if(ENABLE_OPENSSL) find_package(OpenSSL 1.1.1) @@ -130,19 +130,8 @@ set(HAVE_LIBEV ${LIBEV_FOUND}) # libnghttp3 (for examples) set(HAVE_LIBNGHTTP3 ${LIBNGHTTP3_FOUND}) -# GnuTLS (required for external https://github.com/ueno/ngtcp2-gnutls-examples) +# GnuTLS (required for libngtcp2_crypto_gnutls) if(ENABLE_GNUTLS AND GNUTLS_FOUND) - # Until GnuTLS gains mainline support for QUIC, check for a patched version. - cmake_push_check_state() - set(CMAKE_REQUIRED_INCLUDES "${GNUTLS_INCLUDE_DIR}") - set(CMAKE_REQUIRED_LIBRARIES "${GNUTLS_LIBRARIES}") - check_symbol_exists(gnutls_handshake_write "gnutls/gnutls.h" HAVE_GNUTLS_HANDSHAKE_WRITE) - if(NOT HAVE_GNUTLS_HANDSHAKE_WRITE) - message(WARNING "Disabling GnuTLS due to lack of QUIC support in ${GNUTLS_LIBRARIES}") - endif() - cmake_pop_check_state() -endif() -if(ENABLE_GNUTLS AND HAVE_GNUTLS_HANDSHAKE_WRITE) set(GNUTLS_INCLUDE_DIRS ${GNUTLS_INCLUDE_DIR}) set(HAVE_GNUTLS 1) set(HAVE_CRYPTO 1)
Initialize per cc objective in PlutoOptions
@@ -2100,8 +2100,7 @@ isl_basic_map_extract_access_func(__isl_take isl_basic_map *bmap, void *user) { } /* Extract Pluto access functions from isl_map */ -isl_stat isl_map_extract_access_func(__isl_take isl_map *map, - void *user) { +isl_stat isl_map_extract_access_func(__isl_take isl_map *map, void *user) { /* Extract a PlutoAccess from every isl_basic_map */ isl_stat r = isl_map_foreach_basic_map(map, &isl_basic_map_extract_access_func, user); @@ -2531,7 +2530,6 @@ int read_codegen_context_from_file(PlutoConstraints *codegen_context) { return 1; } - /* * Extract necessary information from clan_scop to create PlutoProg - a * representation of the program sufficient to be used throughout Pluto. @@ -2788,6 +2786,8 @@ PlutoOptions *pluto_options_alloc() { options->diamondtile = 1; options->fulldiamondtile = 0; + options->per_cc_obj = 0; + options->iss = 0; options->unroll = 0; @@ -3565,8 +3565,8 @@ char *get_expr(PlutoConstraints *cst, int pos, const char **params, sprintf(expr + strlen(expr), (cst->val[pos][c] >= 1) ? "+%ld" : "%ld", cst->val[pos][c]); } else { - sprintf(expr + strlen(expr), - (cst->val[pos][c] <= -1) ? "+%ld" : "%ld", -cst->val[pos][c]); + sprintf(expr + strlen(expr), (cst->val[pos][c] <= -1) ? "+%ld" : "%ld", + -cst->val[pos][c]); } }
Analysis workflow, echo wrong directories.
@@ -292,6 +292,10 @@ jobs: echo "./configure SHELL=/usr/bin/bash CONFIG_SHELL=/usr/bin/bash --prefix=\"$prepath/expat\" --exec-prefix=\"$prepath/expat\" --bindir=\"$prepath/expat/bin\" --includedir=\"$prepath/expat/include\" --mandir=\"$prepath/expat/man\" --libdir=\"$prepath/expat/lib\"" ./configure SHELL=/usr/bin/bash CONFIG_SHELL=/usr/bin/bash --prefix="$prepath/expat" --exec-prefix="$prepath/expat" --bindir="$prepath/expat/bin" --includedir="$prepath/expat/include" --mandir="$prepath/expat/man" --libdir="$prepath/expat/lib" # fixup shell from space in pathname + grep 'SHELL =' Makefile | cat + grep 'Files' Makefile | cat + grep 'SHELL =' lib/Makefile | cat + grep 'Files' lib/Makefile | cat mv Makefile Makefile.orig sed -e 's?^SHELL =.*$??' < Makefile.orig > Makefile mv lib/Makefile lib/Makefile.orig
Fix missing output include in antlr4
@@ -32,5 +32,5 @@ def onrun_antlr4_cpp(unit, *args): if '-visitor' in args: arg_list += [ 'OUT', grammar + 'Visitor.h', grammar + 'BaseVisitor.h' ] arg_list += [ 'CWD', '${BINDIR}' ] - + arg_list += [ 'OUTPUT_INCLUDES', '${ARCADIA_ROOT}/contrib/libs/antlr4_cpp_runtime/src/antlr4-runtime.h' ] unit.onrun_antlr4(arg_list)
dojo: reintroduce "??? expr" parse debug mode NOTE does a somewhat quetionable type thing, original version didn't compile
^+ +> :: XX needs filter :: - :: ?: ?=({$show $3} -.mad) - :: (dy-rash %tan (dy-show-source q.mad) ~) :: XX separate command + ?: ?=({$show $3} -.mad) + (dy-rash %tan (dy-show-source q.mad) ~) :: XX separate command ?: ?=($brev -.mad) =. var (~(del by var) p.mad) =< dy-amok :: XX actually print something meaningful here :: %2 [[%rose [~ " " ~] *tank ~] maar] - %3 ~ + ::%3 handled above %4 ~ %5 [[%rose [~ " " ~] (xskol p.q.cay) ~] maar] == t=(turn `wain`?~(r.hit ~ (to-wain:format q.u.r.hit)) trip) == :: + :: XX needs filter + :: + ++ dy-shown + =/ jank-bucwut :: FIXME just $? fishes when defined for some reason + |* [a=mold b=mold] + |=(c=_`*`*a ?:(& (a c) (b c))) + :: + ::$? hoon + ;: jank-bucwut + hoon + $^ {dy-shown dy-shown} + $% {$ur cord} + {$sa mark} + {$as mark dy-shown} + {$do hoon dy-shown} + {$ge path (list dy-shown) (map term (unit dy-shown))} + {$dv path} + == + == + :: + ++ dy-show-source + |= a/dojo-source ^- tank + =- >[-]< + =+ `{@ bil/dojo-build}`a + |- ^- dy-shown + ::?- -.bil + ?+ -.bil dv+/[-.bil]/todo + $?($ur $dv $sa) bil + $ex ?. ?=({$cltr *} p.bil) p.bil + |- ^- hoon + ?~ p.p.bil !! + ?~ t.p.p.bil i.p.p.bil + [i.p.p.bil $(p.p.bil t.p.p.bil)] + $tu ?~ p.bil !! + |- + ?~ t.p.bil ^$(bil q.i.p.bil) + [^$(bil q.i.p.bil) $(p.bil t.p.bil)] + $as bil(q $(bil q.q.bil)) + $do bil(q $(bil q.q.bil)) + $ge :+ %ge q.p.p.bil + [(turn p.q.p.bil ..$) (~(run by q.q.p.bil) (lift ..$))] + == + :: ++ dy-edit :: handle edit |= cal/sole-change ^+ +>+> ?> ?=(~ cud) ?: =(nex num) dy-over + ?: =([%show %3] -.mad) :: just show source + dy-over dy-make(cud `[nex (~(got by job) nex)]) -- ::
Trap stb_image asserts to a clean error handler
* @brief Functions for building the implementation of stb_image and tinyexr */ +#include <cstdlib> +#include <cstdio> + #define STB_IMAGE_IMPLEMENTATION #define STB_IMAGE_WRITE_IMPLEMENTATION #define STBI_MSC_SECURE_CRT #define STBI_NO_PIC #define STBI_NO_PNM #define STBI_NO_PSD +#define STBI_ASSERT(x) astcenc_runtime_assert(x) + +static void astcenc_runtime_assert(bool condition) +{ + if (!condition) + { + printf("ERROR: Corrupt input image\n"); + exit(1); + } +} #include "stb_image.h" #include "stb_image_write.h"
bricks/ev3dev/pbinit: display play symbol This is a bit more descriptive than an empty rectangle.
@@ -55,9 +55,43 @@ void pybricks_init() { exit(1); } grx_clear_screen(GRX_COLOR_WHITE); - GrxLineOptions options = { .width = 10 }; - gint margin = MIN(grx_get_width(), grx_get_height()) / 10; - grx_draw_box_with_options(margin, margin, grx_get_max_x() - margin, grx_get_max_y() - margin, &options); + + // Screen center + gint cx = grx_get_width()/2; + gint cy = grx_get_height()/2; + + // One side of the triangle + gint base = MIN(grx_get_width(), grx_get_height()) * 7 / 16; + + // Perfect circle around triangle: r = base / (2*cos(30)) + // Horizontal distance from center to circle: s = r * sin(30) + gint r = (base * 100) / 173; + gint s = r / 2; + + // Draw larger circle around triangle + gint width = 5; + gint cr = r * 3 / 2; + grx_draw_filled_circle(cx, cy, cr, GRX_COLOR_BLACK); + grx_draw_filled_circle(cx, cy, cr-width, GRX_COLOR_WHITE); + + GrxPoint triangle[3] = { + { + // Upper left vertex + .x = cx - s, + .y = cy - base/2 + }, + { + // Bottom left vertex + .x = cx - s, + .y = cy + base/2 + }, + { + // Right vertex + .x = cx + r, + .y = cy + } + }; + grx_draw_filled_convex_polygon(3, triangle, GRX_COLOR_BLACK); pbio_init(); pbio_light_on_with_pattern(PBIO_PORT_SELF, PBIO_LIGHT_COLOR_GREEN, PBIO_LIGHT_PATTERN_BREATHE); // TODO: define PBIO_LIGHT_PATTERN_EV3_RUN (Or, discuss if we want to use breathe for EV3, too)
Improve consistency in the HOLDS_ITER macros
@@ -79,7 +79,7 @@ BSON_BEGIN_DECLS #define BSON_ITER_HOLDS_INT64(iter) (bson_iter_type ((iter)) == BSON_TYPE_INT64) #define BSON_ITER_HOLDS_DECIMAL128(iter) \ - (bson_iter_type (iter)) == BSON_TYPE_DECIMAL128 + (bson_iter_type ((iter)) == BSON_TYPE_DECIMAL128) #define BSON_ITER_HOLDS_MAXKEY(iter) \ (bson_iter_type ((iter)) == BSON_TYPE_MAXKEY)
Adjust the stack_top to bss
#define SUB_ISR_Stack_Size (SUB_UND_Stack_Size + SUB_SVC_Stack_Size + SUB_ABT_Stack_Size + \ SUB_RT_FIQ_STACK_PGSZ + SUB_RT_IRQ_STACK_PGSZ) -.section .data.share.isr +.section .bss.share.isr /* stack */ .globl stack_start .globl stack_top
Remove dead code from lpStringToInt64()
@@ -183,9 +183,6 @@ int lpStringToInt64(const char *s, unsigned long slen, int64_t *value) { if (p[0] >= '1' && p[0] <= '9') { v = p[0]-'0'; p++; plen++; - } else if (p[0] == '0' && slen == 1) { - *value = 0; - return 1; } else { return 0; }
parser common UPDATE explicit limited strcpy
@@ -1669,7 +1669,7 @@ lysp_stmt_revision(struct lysp_ctx *ctx, const struct lysp_stmt *stmt, struct ly /* store date */ LY_CHECK_RET(lysp_check_date(ctx, stmt->arg, strlen(stmt->arg), "revision")); - strcpy(rev->date, stmt->arg); + strncpy(rev->date, stmt->arg, LY_REV_SIZE - 1); /* parse substatements */ for (const struct lysp_stmt *child = stmt->child; child; child = child->next) {
Testing: PNG packing
@@ -18,11 +18,18 @@ temp2=${label}".2.tmp" files=" reduced_gaussian_model_level.grib2 reduced_gaussian_sub_area.grib2 + regular_gaussian_model_level.grib2 regular_latlon_surface_constant.grib2 + test_file.grib2 + constant_field.grib2 " +if [ $HAVE_AEC -eq 1 ]; then + files="ccsds.grib2 "$files +fi + if [ $HAVE_JPEG -eq 1 ]; then - files="v.grib2"$files + files="jpeg.grib2 reduced_gaussian_surface_jpeg.grib2 "$files fi # TODO: For the following the PNG packing fails with an assert!
Fix building of rust tools in Docker Attempting to run `cargo install --git --bins` in the rust Docker image fails during compilation of jemalloc since make is not installed
@@ -13,7 +13,7 @@ RUN mkdir -p $SCCACHE_DIR RUN \ apt-get update \ - && apt-get install -y libssl-dev pkg-config curl build-essential \ + && apt-get install -y libssl-dev pkg-config curl build-essential make \ && curl -sSL -o /tmp/sccache.tgz "${SCCACHE_URL}" \ && mkdir /tmp/sccache \ && tar --strip-components=1 -C /tmp/sccache -xzf /tmp/sccache.tgz \
npu2: Fix clearing the FIR bits FIR registers are SCOM-only so they cannot be accesses with the indirect write, and yet we use SCOM-based addresses for these; fix this.
@@ -331,7 +331,7 @@ static uint32_t reset_ntl_release(struct npu2_dev *ndev) npu2_fir = 0; for (i = 0; i < NPU2_TOTAL_FIR_REGISTERS; i++) { - npu2_write(ndev->npu, npu2_fir_addr, npu2_fir); + xscom_write(ndev->npu->chip_id, npu2_fir_addr, npu2_fir); npu2_fir_addr += NPU2_FIR_OFFSET; }
added a switch count to coroutine to prevent long runs of a single coroutine
@@ -211,6 +211,7 @@ public: , Func_(func) , Arg_(arg) , Name_(name) + , SwitchCount_(0) , Cancelled_(false) , Scheduled_(false) { @@ -225,7 +226,10 @@ public: inline void SwitchTo(TCont* next) noexcept { DBGOUT(PCORO(this) << " switch to " << PCORO(next)); - + if (next == this) { + return; + } + SwitchCount_ += 1; Context()->SwitchTo(next->Context()); } @@ -261,6 +265,10 @@ public: return Name_; } + inline ui64 GetSwitchCount() const noexcept { + return SwitchCount_; + } + void PrintMe(IOutputStream& out) const noexcept; inline void Yield() noexcept { @@ -479,6 +487,7 @@ private: void* Arg_; const char* Name_; TIntrusiveList<TJoinWait> Waiters_; + ui64 SwitchCount_; bool Cancelled_; bool Scheduled_; };
core: do not duplicate already newly allocated KeySet
/** * @file * - * @brief Interna of mount functionality. + * @brief Internals of mount functionality. * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ #include <stdio.h> #endif +#include <kdbassert.h> + #include "kdbinternal.h" @@ -289,9 +291,11 @@ Plugin * elektraMountGlobalsLoadPlugin (KeySet * referencePlugins, Key * cur, Ke else { KeySet * config = elektraMountGlobalsGetConfig (cur, global); + ELEKTRA_NOT_NULL (config); + // config holds a newly allocated KeySet const char * pluginName = keyString (cur); // loading the new plugin - plugin = elektraPluginOpen (pluginName, modules, ksDup (config), errorKey); + plugin = elektraPluginOpen (pluginName, modules, config, errorKey); if (!plugin) { ELEKTRA_ADD_WARNING (64, errorKey, pluginName); @@ -303,7 +307,6 @@ Plugin * elektraMountGlobalsLoadPlugin (KeySet * referencePlugins, Key * cur, Ke keyAddBaseName (refKey, keyString (cur)); ksAppendKey (referencePlugins, refKey); keyDel (refKey); - ksDel (config); } return plugin;
Docker: Remove pinned apt versions.
@@ -12,21 +12,21 @@ RUN useradd -u 1000 -U -m -c Jenkins jenkins ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && \ apt-get install --no-install-recommends -y \ - bc=1.07.1-2build1 \ - build-essential=12.8ubuntu1.1 \ - curl=7.68.0-1ubuntu2.5 \ - dos2unix=7.4.0-2 \ - git=1:2.25.1-1ubuntu3.1 \ - lib32stdc++6=10.2.0-5ubuntu1~20.04 \ - mscgen=0.20-12 \ - p7zip-full=16.02+dfsg-7build1 \ - python3=3.8.2-0ubuntu2 \ - python3-pip=20.0.2-5ubuntu1.3 \ - tar=1.30+dfsg-7ubuntu0.20.04.1 \ - unzip=6.0-25ubuntu1 \ - wget=1.20.3-1ubuntu1 \ - libxml2-utils=2.9.10+dfsg-5 \ - zip=3.0-11build1 && \ + bc \ + build-essential \ + curl \ + dos2unix \ + git \ + lib32stdc++6 \ + mscgen \ + p7zip-full \ + python3 \ + python3-pip \ + tar \ + unzip \ + wget \ + libxml2-utils \ + zip && \ apt-get autoremove -y && \ apt-get autoclean -y && \ rm -rf /var/lib/apt/lists/*
fix: get inheritable attribute from parent when /mediabox is inherited from parent, can't get rect.
@@ -217,14 +217,25 @@ extern "C" void pdf_add_type1_font(pdf_t *pdf, */ static bool dict_lookup_rect(QPDFObjectHandle object, std::string const& key, - float rect[4]) + float rect[4], + bool inheritable) { // preliminary checks - if (!object.isDictionary() || !object.hasKey(key)) + if (!object.isDictionary()) return false; + QPDFObjectHandle value; + if (!object.hasKey(key) && inheritable){ + QPDFFormFieldObjectHelper helper(object); + value = helper.getInheritableFieldValue(key); + if (value.isNull()) { + return false; + } + } else { + value = object.getKey(key); + } + // check if the key is array or some other type - QPDFObjectHandle value = object.getKey(key); if (!value.isArray()) return false; @@ -289,7 +300,7 @@ extern "C" void pdf_resize_page (pdf_t *pdf, float old_mediabox[4]; QPDFObjectHandle media_box; - if (!dict_lookup_rect(page, "/MediaBox", old_mediabox)) { + if (!dict_lookup_rect(page, "/MediaBox", old_mediabox, true)) { fprintf(stderr, "ERROR: pdf doesn't contain a valid mediabox\n"); return; }
zephyr/shim/src/gpio_id.c: Format with clang-format BRANCH=none TEST=none
#include "gpio.h" #include "util.h" -#define IS_BOARD_COMPATIBLE \ - DT_NODE_HAS_COMPAT(DT_PATH(board), cros_ec_gpio_id) -#define IS_SKU_COMPATIBLE \ - DT_NODE_HAS_COMPAT(DT_PATH(sku), cros_ec_gpio_id) +#define IS_BOARD_COMPATIBLE DT_NODE_HAS_COMPAT(DT_PATH(board), cros_ec_gpio_id) +#define IS_SKU_COMPATIBLE DT_NODE_HAS_COMPAT(DT_PATH(sku), cros_ec_gpio_id) #define CONVERT_NUMERAL_SYSTEM_EVAL(system, bits, nbits) \ system##_from_bits(bits, nbits) @@ -32,11 +30,8 @@ __override uint32_t board_get_sku_id(void) static uint32_t sku_id = (uint32_t)-1; if (sku_id == (uint32_t)-1) { - int bits[] = { - DT_FOREACH_PROP_ELEM(DT_PATH(sku), - bits, - READ_PIN_FROM_PHANDLE) - }; + int bits[] = { DT_FOREACH_PROP_ELEM(DT_PATH(sku), bits, + READ_PIN_FROM_PHANDLE) }; if (sizeof(bits) == 0) return (uint32_t)-1; @@ -58,11 +53,8 @@ __override int board_get_version(void) static int board_version = -1; if (board_version == -1) { - int bits[] = { - DT_FOREACH_PROP_ELEM(DT_PATH(board), - bits, - READ_PIN_FROM_PHANDLE) - }; + int bits[] = { DT_FOREACH_PROP_ELEM(DT_PATH(board), bits, + READ_PIN_FROM_PHANDLE) }; if (sizeof(bits) == 0) return -1;
build_qmcpack.sh - add option to not load ROCm module.
@@ -49,7 +49,9 @@ if [ -e /etc/profile.d/modules.sh ] ; then module load gcc module load hdf5/1.10.1 module load openblas + if [ "$ROCM_VER" != "none" ]; then module load $ROCM_VER + fi BOOST_ROOT=${BOOST_ROOT:-/cm/shared/opt/boost/1.72.0} FFTW_HOME=${FFTW_HOME:-/cm/shared/apps/fftw/openmpi/gcc/64/3.3.8} OPENMPI_INSTALL=${OPENMPI_INSTALL:-~/openmpi-4.0.3-install}
fix whitescan error
@@ -1507,7 +1507,7 @@ static int32_t _core_mqtt_subunsub(core_mqtt_handle_t *mqtt_handle, char *topic, pkt[idx++] = (uint8_t)((packet_id >> 8) & 0x00FF); pkt[idx++] = (uint8_t)((packet_id) & 0x00FF); - if (_core_mqtt_5_feature_is_enabled(mqtt_handle)) { + if (_core_mqtt_5_feature_is_enabled(mqtt_handle) && NULL != general_property) { _core_write_general_prop(pkt, &idx, general_property, property_len_array, property_len_offset); }
history: last part
# History -## Begin +## Elektrify The development of Elektra started in 2004. Initially the initiative only aimed at the straightforward idea to unify a configuration access API and a configuration format. @@ -11,21 +11,17 @@ Most proprietary software systems already had similar APIs for a long time. Nevertheless, it was clear that there was no portable configuration library available to be used for typical FLOSS applications. For example, the configuration libraries X/Q/GSettings, KConfig, dconf, plist, and Windows Registry are tied to their respective platforms. -## Elektrify - The first idea to improve adoption of Elektra was that the Elektra Initiative itself patches applications to use Elektra. This was done, e.g., for the X Server. The maintainers of the X Server, however, had other plans and later improved their software to auto-detect hardware. -This was admittedly the right choice: -Elektra would not have been able to help with this at that time. - -## Backends - -It became obvious that not a single configuration format would suffice for everyone. -In a first step, this was achieved by introducing different backends, chosen by users at run-time. +This was admittedly the right choice for them: +Elektra would not have been able to help them at that time. ## Mounting +One obvious limitation of Elektra was that no gradual migration is possible and previous configuration files would need to be rewritten. +In a first step, we introduced backends, chosen by users at run-time. + An implementation providing only a single backend for the whole system proved to be too limited: Individual applications cannot customize their backends for their own needs. We implemented a layer similar to a virtual file system, which enables applications and system administrators to mount configuration files. @@ -38,4 +34,13 @@ To solve this problem, we modularized Elektra so that users can select exactly t Such changes made part of the software more complicated. At first, we provided too little documentation for newcomers to grasp the abstraction mechanisms. Then we started to put efforts into rebuilding the community by overhauling documentation, introducing more regression tests, writing tutorials, and designing a new website. -We succeeded by other FLOSS initiatives willing to use Elektra, and Elektra being packaged for many distributions. + +## Elektrify: Back Again + +In the beginning of Elektra, there was no vision how configuration management and Elektra would work together. +After many years of research, we now have a [clear vision](/doc/VISION.md) how a world with Elektra would look like. + +To actually improve the adoption of Elektra, however, configuration management cannot help directly. +Instead we need applications that depend on Elektra, so that Elektra gets packaged for all distributions. +We now elektrify KDE, GNOME and XFCE to achieve this goal. +Furthermore, we are now in the process of doing the last cleanups before version 1.0.
out_stdout: set config_map flags
@@ -158,17 +158,17 @@ static int cb_stdout_exit(void *data, struct flb_config *config) static struct flb_config_map config_map[] = { { FLB_CONFIG_MAP_STR, "format", NULL, - FLB_FALSE, 0, + 0, FLB_FALSE, 0, NULL }, { FLB_CONFIG_MAP_STR, "json_date_format", NULL, - FLB_FALSE, 0, + 0, FLB_FALSE, 0, NULL }, { FLB_CONFIG_MAP_STR, "json_date_key", "date", - FLB_TRUE, offsetof(struct flb_stdout, json_date_key), + 0, FLB_TRUE, offsetof(struct flb_stdout, json_date_key), NULL },