message
stringlengths
6
474
diff
stringlengths
8
5.22k
misc: add a nerd knob to skip a sysctl during the .deb installation In some cases, e.g. in the container installs, it's beneficial to skip the sysctl portion of the installation. This commit allows to do that by setting the environment variable VPP_INSTALL_SKIP_SYSCTL. Type: feature
#!/bin/sh -e # try to set the required values now. This may or may not work. +# Allow for a nerd knob to skip this, e.g. during the container installs +if [ -z "${VPP_INSTALL_SKIP_SYSCTL}" ] +then sysctl --system +fi #DEBHELPER#
Fix a doc-nits failure We need blank lines on each side of a section heading.
=pod =head1 NAME + OSSL_thread_stop_handler_fn, ossl_init_thread_start, ossl_init_thread_deregister - internal thread routines + =head1 SYNOPSIS #include "internal/cryptlib_int.h"
VERSION bump ot version 1.3.2
@@ -27,7 +27,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 1) set(SYSREPO_MINOR_VERSION 3) -set(SYSREPO_MICRO_VERSION 1) +set(SYSREPO_MICRO_VERSION 2) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MICRO_VERSION}) # Version of the library
Utility: Fix scope of variable
@@ -153,10 +153,9 @@ char * elektraReplace (char const * const text, char const * const pattern, char char const * current = text; char const * before = text; char * destination = result; - size_t length; while ((current = strstr (current, pattern)) != NULL) { - length = current - before; + size_t length = current - before; strncpy (destination, before, length); destination += length;
cache: fix memleak
@@ -70,6 +70,7 @@ static int resolveCacheDirectory (Plugin * handle, CacheHandle * ch, Key * error cacheDir = elektraStrConcat (cacheDir, "/elektra"); ch->cachePath = keyNew ("system/elektracache", KEY_END); resolverConfig = ksNew (5, keyNew ("system/path", KEY_VALUE, cacheDir, KEY_END), KS_END); + elektraFree (cacheDir); } else {
[typo] fix a typo to make the comment more precise
* The 48 bits available in the struct are divided as follow: * * - the 7 most significant bits stand for which segment file the tuple is in - * (Limit: 128 (2^8)). This also makes up part of the "block number" when + * (Limit: 128 (2^7)). This also makes up part of the "block number" when * interpreted as a heap TID. * * - The next 25 bits come from the 25 most significant bits of the row
Hide T2RBUF control for SXR
@@ -592,6 +592,10 @@ void lms7002_pnlSX_view::UpdateGUI() return; } } + if(ch == 1) + chkPD_LOCH_T2RBUF->Hide(); + else + chkPD_LOCH_T2RBUF->Show(); wxCommandEvent evt; OnbtnReadComparators(evt);
spwaterfall/example: cutting number of samples down by a factor of 10
@@ -13,7 +13,7 @@ int main() // spectral periodogram options unsigned int nfft = 1800; // spectral periodogram FFT size unsigned int time = 1000; // minimum time buffer - unsigned int num_samples = 20e6; // number of samples + unsigned int num_samples = 2e6; // number of samples // create spectral waterfall object spwaterfallcf periodogram = spwaterfallcf_create_default(nfft,time); @@ -32,10 +32,10 @@ int main() msourcecf_add_tone(gen, -0.4f, 0.0f, 0); // add fsk modem - msourcecf_add_fsk(gen, -0.35f, 0.03f, -30.0f, 2, 2000); + msourcecf_add_fsk(gen, -0.35f, 0.03f, -30.0f, 2, 500); // add chirp signal - msourcecf_add_chirp(gen, 0.17f, 0.10f, -50, 5e6, 0, 0); + msourcecf_add_chirp(gen, 0.17f, 0.10f, -50, 250e3, 0, 0); // add modulated data msourcecf_add_modem(gen, -0.1f, 0.15f, -10, LIQUID_MODEM_QPSK, 12, 0.25); @@ -58,11 +58,11 @@ int main() total_samples += buf_len; // update state for noise source - if (state == 0 && randf() < 1e-4f) { + if (state == 0 && randf() < 1e-3f) { state = 1; msourcecf_enable(gen, id_noise); //printf("turning noise on\n"); - } else if (state == 1 && randf() < 3e-4f) { + } else if (state == 1 && randf() < 3e-3f) { state = 0; msourcecf_disable(gen, id_noise); //printf("turning noise off\n");
Add two more lambda tests.
@@ -29,10 +29,18 @@ Y_UNIT_TEST_SUITE(Demangle) { Check("_ZUliE_", "'lambda'(int)"); } + Y_UNIT_TEST(Lambda2) { + Check("_ZUlfdE_", "'lambda'(float, double)"); + } + Y_UNIT_TEST(LambdaGeneric1) { Check("_ZUlT_E_", "'lambda'(auto)"); } + Y_UNIT_TEST(LambdaGeneric2) { + Check("_ZUlOT_RT0_E_", "'lambda'(auto&&, auto&)"); + } + Y_UNIT_TEST(LambdaTemplateParam) { Check("_Z1bIZN1cC1EvEUlT_E_EvS1_", "void b<c::c()::'lambda'(auto)>(auto)"); }
proxy: fail on missing FLBPluginRegister symbol
@@ -144,6 +144,9 @@ int flb_plugin_proxy_register(struct flb_plugin_proxy *proxy, /* Lookup the registration callback */ cb_register = flb_plugin_proxy_symbol(proxy, "FLBPluginRegister"); + if (!cb_register) { + return -1; + } /* * Create a temporary definition used for registration. This definition
fix bug - catboost tries to load available snapshot file even if save_snapshot==False
@@ -185,7 +185,7 @@ void UpdateUndefinedRandomSeed(ETaskType taskType, NJson::TJsonValue* updatedJsonParams, std::function<void(TIFStream*, TString&)> paramsLoader) { const TString snapshotFilename = TOutputFiles::AlignFilePath(outputOptions.GetTrainDir(), outputOptions.GetSnapshotFilename(), /*namePrefix=*/""); - if (NFs::Exists(snapshotFilename)) { + if (outputOptions.SaveSnapshot() && NFs::Exists(snapshotFilename)) { TString serializedTrainParams; NJson::TJsonValue restoredJsonParams; try {
Minor coding style fixes in lib/error.h
@@ -185,22 +185,31 @@ void gumbo_error_destroy(struct GumboInternalParser* parser, GumboError* error); // responsible for deleting the buffer. (Note that the buffer is allocated with // the allocator specified in the GumboParser config and hence should be freed // by gumbo_parser_deallocate().) -void gumbo_error_to_string(struct GumboInternalParser* parser, - const GumboError* error, GumboStringBuffer* output); +void gumbo_error_to_string ( + struct GumboInternalParser* parser, + const GumboError* error, + GumboStringBuffer* output +); // Prints a caret diagnostic to a string. This fills an empty GumboStringBuffer // with a freshly-allocated buffer containing the error message text. The // caller is responsible for deleting the buffer. (Note that the buffer is // allocated with the allocator specified in the GumboParser config and hence // should be freed by gumbo_parser_deallocate().) -void gumbo_caret_diagnostic_to_string(struct GumboInternalParser* parser, - const GumboError* error, const char* source_text, - GumboStringBuffer* output); +void gumbo_caret_diagnostic_to_string ( + struct GumboInternalParser* parser, + const GumboError* error, + const char* source_text, + GumboStringBuffer* output +); // Like gumbo_caret_diagnostic_to_string, but prints the text to stdout instead // of writing to a string. -void gumbo_print_caret_diagnostic(struct GumboInternalParser* parser, - const GumboError* error, const char* source_text); +void gumbo_print_caret_diagnostic ( + struct GumboInternalParser* parser, + const GumboError* error, + const char* source_text +); #ifdef __cplusplus }
Prepare for running new spec tests.
@@ -309,7 +309,7 @@ print(wasm3.version()) blacklist = Blacklist([ "float_exprs.wast:* f32.nonarithmetic_nan_bitpattern*", "imports.wast:*", - "names.wast:630 *", # name that starts with '\0' + "names.wast:* *.wasm \\x00*", # names that start with '\0' ]) stats = dotdict(total_run=0, skipped=0, failed=0, crashed=0, timeout=0, success=0, missing=0) @@ -389,12 +389,12 @@ def runInvoke(test): expect = "result " + value if actual_val != None: - if (t == "f32" or t == "f64") and (value == "<Canonical NaN>" or value == "<Arithmetic NaN>"): + if (t == "f32" or t == "f64") and (value == "nan:canonical" or value == "nan:arithmetic"): val = binaryToFloat(actual_val, t) #warning(f"{actual_val} => {val}") if math.isnan(val): - actual = "<Some NaN>" - expect = "<Some NaN>" + actual = "nan:any" + expect = "nan:any" else: expect = "result " + formatValue(value, t) actual = "result " + formatValue(actual_val, t) @@ -490,10 +490,10 @@ for fn in jsonFiles: test.expected = cmd["expected"] elif test.type == "assert_return_canonical_nan": test.expected = cmd["expected"] - test.expected[0]["value"] = "<Canonical NaN>" + test.expected[0]["value"] = "nan:canonical" elif test.type == "assert_return_arithmetic_nan": test.expected = cmd["expected"] - test.expected[0]["value"] = "<Arithmetic NaN>" + test.expected[0]["value"] = "nan:arithmetic" elif test.type == "assert_trap": test.expected_trap = cmd["text"] elif test.type == "assert_exhaustion":
Fix root of
@@ -117,7 +117,6 @@ static void http1_on_data(intptr_t uuid, http1_protocol_s *pr) { char buff[HTTP_BODY_CHUNK_SIZE]; http1_request_s *request = &pr->request; char *buffer = request->buffer; - for (;;) { // handle requests with no file data if (request->request.body_file <= 0) { // request headers parsing @@ -142,9 +141,8 @@ static void http1_on_data(intptr_t uuid, http1_protocol_s *pr) { goto finished_reading; // parse headers - result = - http1_parse_request_headers(buffer, request->buffer_pos, - &request->request, http1_on_header_found); + result = http1_parse_request_headers( + buffer, request->buffer_pos, &request->request, http1_on_header_found); // review result if (result >= 0) { // headers comeplete // are we done? @@ -167,7 +165,7 @@ static void http1_on_data(intptr_t uuid, http1_protocol_s *pr) { goto parser_error; // assume incomplete (result == -2), even if wrong, we're right. pr->len = 0; - continue; + goto postpone; } if (request->request.body_file > 0) { // fprintf(stderr, "Body File\n"); @@ -186,7 +184,7 @@ static void http1_on_data(intptr_t uuid, http1_protocol_s *pr) { goto finished_reading; goto parse_body; } - continue; + goto postpone; handle_request: // review required headers / data if (request->request.host == NULL) @@ -198,10 +196,10 @@ static void http1_on_data(intptr_t uuid, http1_protocol_s *pr) { // call request callback if (pr && settings && (request->request.upgrade || settings->public_folder == NULL || - http_response_sendfile2( - NULL, &request->request, settings->public_folder, - settings->public_folder_length, request->request.path, - request->request.path_len, settings->log_static))) { + http_response_sendfile2(NULL, &request->request, settings->public_folder, + settings->public_folder_length, + request->request.path, request->request.path_len, + settings->log_static))) { pr->on_request(&request->request); // fprintf(stderr, "Called on_request\n"); } @@ -222,18 +220,12 @@ static void http1_on_data(intptr_t uuid, http1_protocol_s *pr) { request->buffer_pos = pr->len; // make sure to use the correct buffer. buffer = request->buffer; - if (pr->len) { /* prevent this connection from hogging the thread by pipelining endless * requests. */ +postpone: facil_force_event(uuid, FIO_EVENT_ON_DATA); return; - } - } - // no routes lead here. - fprintf(stderr, - "I am lost on a deserted island, no code can reach me here :-)\n"); - goto finished_reading; // How did we get here? parser_error: if (request->request.headers_count >= HTTP1_MAX_HEADER_COUNT) goto too_big;
chore: Add note about copyrights on PR checklist
- [ ] This board/shield is tested working on real hardware - [ ] Definitions follow the general style of other shields/boards upstream ([Reference](https://zmk.dev/docs/development/new-shield)) - [ ] `.zmk.yml` metadata file added - - [ ] Proper Copyright + License headers added to applicable files + - [ ] Proper Copyright + License headers added to applicable files (Generally, we stick to "The ZMK Contributors" for copyrights to help avoid churn when files get edited) - [ ] General consistent formatting of DeviceTree files - [ ] Keymaps do not use deprecated key defines (Check using the [upgrader tool](https://zmk.dev/docs/codes/keymap-upgrader)) - [ ] `&pro_micro` used in favor of `&pro_micro_d/a` if applicable
Key update HKDF label is now "quic ku"
@@ -139,7 +139,7 @@ int ngtcp2_crypto_update_traffic_secret(uint8_t *dest, const ngtcp2_crypto_md *md, const uint8_t *secret, size_t secretlen) { - static const uint8_t LABEL[] = "traffic upd"; + static const uint8_t LABEL[] = "quic ku"; if (ngtcp2_crypto_hkdf_expand_label(dest, secretlen, md, secret, secretlen, LABEL, sizeof(LABEL) - 1) != 0) {
dominik-AD: Clean upwarnings and add a device print of x
@@ -12,17 +12,19 @@ for (i = 0; i < 10; ++i) { x1[i] = 3; } x_d = x1; -printf("2nd arg x1 should be equal to 3rd %lx %lx %lx\n",x, x1, x_d); +printf("2nd arg x1 should be equal to 3rd %p %p %p \n",x, x1, x_d); #pragma omp target enter data map(to:x) #pragma omp target map(tofrom:x_d) +{ x_d = x; - -printf("1st arg x should be equal to 3rd %lx %lx %lx\n",x, x1, x_d); + printf("x on device : %p\n", x); +} +printf("1st arg x = to host x, 3rd arg = to device x %p %p %p \n",x, x1, x_d); printf("x_d %lf %lf \n",x_d[0], x_d[1]); for (i = 0; i < 10; ++i) { x[i] = 4; } -printf("1st arg x should be equal to 3rd %lx %lx %lx\n",x, x1, x_d); +printf("1st arg x should be equal to 3rd %p %p %p \n",x, x1, x_d); printf("x_d %lf should equal to %lf \n",x_d[0], x[0]); return 0; }
More SceSysconForDriver NIDs
@@ -5724,6 +5724,8 @@ modules: ksceSysconReadCommand: 0x299B1CE7 ksceSysconSendCommand: 0xE26488B9 ksceSysconSetDebugHandlers: 0xF245CD6F + ksceSysconSetLowBatteryCallback: 0x3F0DB7C0 + ksceSysconSetThermalAlertCallback: 0x773B8126 SceLowio: nid: 0x17E0D8DF libraries:
wifi test: Add check if WiFi was brought up successfully for MQTT tests Make use of the error code that we use in startWifi().
@@ -573,7 +573,7 @@ static int32_t wifiMqttPublishSubscribeTest(bool isSecuredConnection) return err; } -static void startWifi(void) +static uWifiTestError_t startWifi(void) { int32_t waitCtr = 0; //lint -e(438) suppress testError warning @@ -596,11 +596,15 @@ static void startWifi(void) wifiNetworkStatusCallback, NULL); // Connect to wifi network - if (0 != uWifiNetStationConnect(gHandles.wifiHandle, + int32_t status; + status = uWifiNetStationConnect(gHandles.wifiHandle, U_PORT_STRINGIFY_QUOTED(U_WIFI_TEST_CFG_SSID), U_WIFI_NET_AUTH_WPA_PSK, - U_PORT_STRINGIFY_QUOTED(U_WIFI_TEST_CFG_WPA2_PASSPHRASE))) { - + U_PORT_STRINGIFY_QUOTED(U_WIFI_TEST_CFG_WPA2_PASSPHRASE)); + if (status == (int32_t) U_WIFI_ERROR_ALREADY_CONNECTED_TO_SSID) { + gWifiConnected = true; + gNetStatusMask = gNetStatusMaskAllUp; + } else if (status != 0) { testError = U_WIFI_TEST_ERROR_CONNECT; } } @@ -623,6 +627,7 @@ static void startWifi(void) } uPortLog(LOG_TAG "wifi handle = %d\n", gHandles.wifiHandle); + return testError; } static void stopWifi(void) @@ -635,14 +640,14 @@ static void stopWifi(void) * -------------------------------------------------------------- */ U_PORT_TEST_FUNCTION("[wifiMqtt]", "wifiMqttPublishSubscribeTest") { - startWifi(); + U_PORT_TEST_ASSERT_EQUAL(U_WIFI_TEST_ERROR_NONE, startWifi()); wifiMqttPublishSubscribeTest(false); stopWifi(); } U_PORT_TEST_FUNCTION("[wifiMqtt]", "wifiMqttUnsubscribeTest") { - startWifi(); + U_PORT_TEST_ASSERT_EQUAL(U_WIFI_TEST_ERROR_NONE, startWifi()); wifiMqttUnsubscribeTest(false); stopWifi(); } @@ -650,7 +655,7 @@ U_PORT_TEST_FUNCTION("[wifiMqtt]", "wifiMqttUnsubscribeTest") U_PORT_TEST_FUNCTION("[wifiMqtt]", "wifiMqttSecuredPublishSubscribeTest") { int32_t err; - startWifi(); + U_PORT_TEST_ASSERT_EQUAL(U_WIFI_TEST_ERROR_NONE, startWifi()); err = uSecurityCredentialStore(gHandles.wifiHandle, U_SECURITY_CREDENTIAL_ROOT_CA_X509, mqttTlsSettings.pRootCaCertificateName, @@ -670,7 +675,7 @@ U_PORT_TEST_FUNCTION("[wifiMqtt]", "wifiMqttSecuredPublishSubscribeTest") U_PORT_TEST_FUNCTION("[wifiMqtt]", "wifiMqttSecuredUnsubscribeTest") { int32_t err; - startWifi(); + U_PORT_TEST_ASSERT_EQUAL(U_WIFI_TEST_ERROR_NONE, startWifi()); err = uSecurityCredentialStore(gHandles.wifiHandle, U_SECURITY_CREDENTIAL_ROOT_CA_X509, mqttTlsSettings.pRootCaCertificateName,
Fix microchip bootloader location in CMake file
@@ -332,7 +332,7 @@ endif() # These locations have to be generalized through the toolchain # We may have to re-build the bootloader hex file? -set(bl_hex_file ${CMAKE_CURRENT_LIST_DIR}/bootloader/aws_bootloader.X/dist/pic32mz_ef_curiosity/production/aws_bootloader.X.production.hex) +set(bl_hex_file ${CMAKE_CURRENT_LIST_DIR}/bootloader/aws_bootloader.X.production.hex) add_custom_command( TARGET ${exe_target} POST_BUILD
passwd: check return values and fail properly
@@ -60,18 +60,16 @@ static struct passwd * strToPasswd (char * line) pwd->pw_name = elektraStrDup (ptoken); // passwd - // TODO if x check /etc/shadow ptoken = strtok (NULL, PWD_DELIMITER); pwd->pw_passwd = elektraStrDup (ptoken); // uid ptoken = strtok (NULL, PWD_DELIMITER); - sscanf (ptoken, "%u", &pwd->pw_uid); // XXX check retval - + if (sscanf (ptoken, "%u", &pwd->pw_uid) != 1) return NULL; // gid ptoken = strtok (NULL, PWD_DELIMITER); - sscanf (ptoken, "%u", &pwd->pw_gid); // XXX checkretval + if (sscanf (ptoken, "%u", &pwd->pw_gid) != 1) return NULL; // gecos ptoken = strtok (NULL, PWD_DELIMITER); @@ -189,6 +187,11 @@ int elektraPasswdGet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned ELEKTRA_ while (getline (&line, &len, pwfile) != -1) { pwd = strToPasswd (line); + if (!pwd) + { + ELEKTRA_SET_ERRORF (110, parentKey, "Failed to parse line '%s' of passwd file\n", line); + return -1; + } KeySet * ks = pwentToKS (pwd, parentKey, index); ksAppend (returned, ks); ksDel (ks);
launch: left-align "home" in mobile layout We don't want long patps to overlay the "Home" title -- to do so without truncating planet names, we just push "Home" out of the way here.
@@ -49,10 +49,11 @@ export default class Header extends Component { return ( <header - className="bg-white bg-gray0-d w-100 justify-between relative tc pt3" + className={"bg-white bg-gray0-d w-100 justify-between relative " + + "tl tc-m tc-l tc-xl pt3"} style={{ height: 40 }}> <span - className="f9 white-d inter dib" + className="f9 white-d inter dib ml4 ml0-m ml0-l ml0-xl" style={{ verticalAlign: "text-top", paddingTop: 3
Mutex to control threaded access to xterm terminal size variables.
@@ -58,11 +58,13 @@ static struct termios g_old_termios; #endif static struct { + SDL_mutex *lock; bool waiting; int columns; int rows; Uint32 timestamp; } g_terminal_size_state = { + .lock = NULL, .waiting = false, .columns = 0, .rows = 0, @@ -444,6 +446,7 @@ static void xterm_handle_input_escape() { send_sdl_key_press(SDLK_F2, false); break; case 'R': + SDL_LockMutex(g_terminal_size_state.lock); if (g_terminal_size_state.waiting) { g_terminal_size_state.rows = arg0; g_terminal_size_state.columns = arg1; @@ -451,6 +454,7 @@ static void xterm_handle_input_escape() { } else { send_sdl_key_press(SDLK_F3, false); } + SDL_UnlockMutex(g_terminal_size_state.lock); break; case 'S': send_sdl_key_press(SDLK_F4, false); @@ -552,20 +556,27 @@ static TCOD_Error xterm_recommended_console_size( int* __restrict rows) { fprintf(stdout, "\x1b[%i;%iH", INT_MAX, INT_MAX); fflush(stdout); + SDL_LockMutex(g_terminal_size_state.lock); g_terminal_size_state.waiting = true; + SDL_UnlockMutex(g_terminal_size_state.lock); const Uint32 start_time = SDL_GetTicks(); fprintf(stdout, "\x1b[6n"); fflush(stdout); while (!SDL_TICKS_PASSED(SDL_GetTicks(), start_time + 100)) { + SDL_LockMutex(g_terminal_size_state.lock); if (SDL_TICKS_PASSED(g_terminal_size_state.timestamp, start_time)) { *columns = g_terminal_size_state.columns; *rows = g_terminal_size_state.rows; g_terminal_size_state.waiting = false; + SDL_UnlockMutex(g_terminal_size_state.lock); return TCOD_E_OK; } + SDL_UnlockMutex(g_terminal_size_state.lock); SDL_Delay(1); } + SDL_LockMutex(g_terminal_size_state.lock); g_terminal_size_state.waiting = false; + SDL_UnlockMutex(g_terminal_size_state.lock); return TCOD_E_ERROR; } @@ -661,6 +672,7 @@ TCOD_Context* TCOD_renderer_init_xterm( if (columns > 0 && rows > 0) fprintf(stdout, "\x1b[8;%i;%it", rows, columns); else if (pixel_width > 0 && pixel_height > 0) fprintf(stdout, "\x1b[4;%i;%it", pixel_height, pixel_width); if (window_title) fprintf(stdout, "\x1b]0;%s\x07", window_title); + g_terminal_size_state.lock = SDL_CreateMutex(); SDL_Init(SDL_INIT_VIDEO); // Need SDL init to get keysyms data->input_thread = SDL_CreateThread(&xterm_handle_input, "input thread", NULL); return context;
docs: Add hw_bcs to BoAT demo protocol
@@ -158,7 +158,7 @@ real node of an Ethereum compatible blockchain network must be available. $chmod a+x ./build/demo/demo_<protocol>/<demo_name> $./build/demo/demo_<protocol>/<demo_name> ``` -\<protocol\> can be `ethereum` `fiscobcos` `platone` `fabric` `platon`. +\<protocol\> can be `ethereum` `fiscobcos` `platone` `fabric` `platon` `hw_bcs`. Make sure the network connection to the blockchain node (or blockchain simulator) is available.
add a few ENV options to CLI parser
@@ -413,10 +413,18 @@ static VALUE iodine_cli_parse(VALUE self) { if (level > 0 && level < 100) FIO_LOG_LEVEL = level; } - + if (!fio_cli_get("-w") && getenv("WEB_CONCURRENCY")) { + fio_cli_set("-w", getenv("WEB_CONCURRENCY")); + } + if (!fio_cli_get("-w") && getenv("WORKERS")) { + fio_cli_set("-w", getenv("WORKERS")); + } if (fio_cli_get("-w")) { iodine_workers_set(IodineModule, INT2NUM(fio_cli_get_i("-w"))); } + if (!fio_cli_get("-t") && getenv("THREADS")) { + fio_cli_set("-t", getenv("THREADS")); + } if (fio_cli_get("-t")) { iodine_threads_set(IodineModule, INT2NUM(fio_cli_get_i("-t"))); } @@ -426,6 +434,9 @@ static VALUE iodine_cli_parse(VALUE self) { if (fio_cli_get_bool("-warmup")) { rb_hash_aset(defaults, ID2SYM(rb_intern("warmup_")), Qtrue); } + // if (!fio_cli_get("-b") && getenv("ADDRESS")) { + // fio_cli_set("-b", getenv("ADDRESS")); + // } if (fio_cli_get("-b")) { if (fio_cli_get("-b")[0] == '/' || (fio_cli_get("-b")[0] == '.' && fio_cli_get("-b")[1] == '/')) { @@ -437,6 +448,10 @@ static VALUE iodine_cli_parse(VALUE self) { fio_cli_get("-p")); } fio_cli_set("-p", "0"); + } else { + // if (!fio_cli_get("-p") && getenv("PORT")) { + // fio_cli_set("-p", getenv("PORT")); + // } } rb_hash_aset(defaults, address_sym, rb_str_new_cstr(fio_cli_get("-b"))); }
Add build time to end of console output
@@ -24,6 +24,7 @@ export default store => next => async action => { if (action.type === BUILD_GAME) { const { buildType, exportBuild, ejectBuild } = action; const dispatch = store.dispatch.bind(store); + const buildStartTime = Date.now(); dispatch({ type: CMD_START }); @@ -97,6 +98,13 @@ export default store => next => async action => { ); } + const buildTime = Date.now() - buildStartTime; + + dispatch({ + type: CMD_STD_OUT, + text: `Build Time: ${buildTime}ms` + }); + dispatch({ type: CMD_COMPLETE }); } catch (e) { if (typeof e === "string") {
fix: supress warning
@@ -452,7 +452,7 @@ ws_send_heartbeat(struct discord_ws_s *ws) { char payload[64]; int ret = snprintf(payload, sizeof(payload), "{\"op\":1,\"d\":%d}", ws->payload.seq_number); - ASSERT_S(ret < sizeof(payload), "Out of bounds write attempt"); + ASSERT_S(ret < (int)sizeof(payload), "Out of bounds write attempt"); D_PRINT("HEARTBEAT_PAYLOAD:\n\t\t%s", payload); ws_send_payload(ws, payload);
fix openssl test fail. different version openssl client return different output. remove string check to workaround it
@@ -11194,10 +11194,10 @@ run_test "TLS 1.3: HRR check, ciphersuite TLS_AES_256_GCM_SHA384 - gnutls" \ -c "Protocol is TLSv1.3" \ -c "HTTP/1.0 200 OK" +requires_openssl_tls1_3 requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 requires_config_enabled MBEDTLS_DEBUG_C requires_config_enabled MBEDTLS_SSL_SRV_C -requires_openssl_tls1_3 run_test "TLS 1.3: Server side check - openssl" \ "$P_SRV debug_level=4 crt_file=data_files/server5.crt key_file=data_files/server5.key force_version=tls13 tickets=0" \ "$O_NEXT_CLI -msg -debug -tls1_3 -no_middlebox" \ @@ -11209,8 +11209,7 @@ run_test "TLS 1.3: Server side check - openssl" \ -s "tls13 server state: MBEDTLS_SSL_CERTIFICATE_VERIFY" \ -s "tls13 server state: MBEDTLS_SSL_SERVER_FINISHED" \ -s "tls13 server state: MBEDTLS_SSL_CLIENT_FINISHED" \ - -s "tls13 server state: MBEDTLS_SSL_HANDSHAKE_WRAPUP" \ - -c "DONE" + -s "tls13 server state: MBEDTLS_SSL_HANDSHAKE_WRAPUP" requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 requires_config_enabled MBEDTLS_DEBUG_C
Tweak update docs
ds) (defn update - `Accepts a key argument and passes its associated value to a function. - The key is the re-associated to the function's return value. Returns the updated - data structure ds.` + ``Accepts a key argument and passes its associated value to a function. + The key is then re-associated to the function's return value. Returns the updated + data structure `ds`.`` [ds key func & args] (def old (get ds key)) (put ds key (func old ;args)))
threads/low power: Proper time convertion
@@ -1459,13 +1459,14 @@ static void threads_idlethr(void *arg) wakeup = proc_nextWakeup(); if (wakeup > TIMER_US2CYC(2000)) { - wakeup = hal_cpuLowPower((wakeup + TIMER_US2CYC(500)) / 1000); + wakeup = hal_cpuLowPower((TIMER_CYC2US(wakeup) + TIMER_US2CYC(500)) / TIMER_US2CYC(1000)); #ifdef CPU_STM32 hal_spinlockSet(&threads_common.spinlock); threads_common.jiffies += wakeup * 1000; hal_spinlockClear(&threads_common.spinlock); #endif } + hal_cpuHalt(); } }
bitcoin: v0.0.2
glob-http+['https://bootstrap.urbit.org/glob-0v3.7b5q1.gn30e.cpfem.abmqg.qh77v.glob' 0v3.7b5q1.gn30e.cpfem.abmqg.qh77v] image+'https://urbit.ewr1.vultrobjects.com/hastuc-dibtux/2021.8.24..02.57.38-bitcoin.svg' base+'bitcoin' - version+[0 0 1] + version+[0 0 2] license+'MIT' website+'https://tlon.io' ==
profile: amend mobile 'back' link size
@@ -104,6 +104,7 @@ export default function ProfileScreen(props: any) { alignItems="center" px={3} borderBottom={1} + fontSize='0' borderBottomColor="washedGray" > <Link to="/~profile">{"<- Back"}</Link>
More compile fixes for sock options
@@ -504,11 +504,11 @@ static void* cmsg_format_header_return_data_ptr(struct msghdr* msg, struct cmsgh if (cmsg != NULL) { size_t cmsg_required_space = CMSG_SPACE(cmsg_data_len); - *control_length += (INT)cmsg_required_space; + *control_length += (int)cmsg_required_space; memset(cmsg, 0, cmsg_required_space); cmsg->cmsg_level = cmsg_level; cmsg->cmsg_type = cmsg_type; - cmsg->cmsg_len = WSA_CMSG_LEN(cmsg_data_len); + cmsg->cmsg_len = CMSG_LEN(cmsg_data_len); cmsg_data_ptr = (void*)CMSG_DATA(cmsg); *last_cmsg = cmsg; } @@ -592,7 +592,6 @@ void picoquic_socks_cmsg_format( #else struct msghdr* msg = (struct msghdr*)vmsg; int control_length = 0; - struct cmsghdr* cmsg; struct cmsghdr* last_cmsg = NULL; int is_null = 0; @@ -619,9 +618,10 @@ void picoquic_socks_cmsg_format( is_null = 1; } #endif +#ifdef IP_DONTFRAG if (!is_null && message_length > PICOQUIC_INITIAL_MTU_IPV4) { int* pval = (int*)cmsg_format_header_return_data_ptr(msg, &last_cmsg, - &control_length, IPPROTO_IP, IP_DONTFRAGMENT, sizeof(int)); + &control_length, IPPROTO_IP, IP_DONTFRAG, sizeof(int)); if (pval != NULL) { *pval = 1; } @@ -629,12 +629,13 @@ void picoquic_socks_cmsg_format( is_null = 1; } } +#endif } else { struct in6_pktinfo* pktinfo6 = (struct in6_pktinfo*)cmsg_format_header_return_data_ptr(msg, &last_cmsg, &control_length, IPPROTO_IPV6, IPV6_PKTINFO, sizeof(struct in6_pktinfo)); if (pktinfo6 != NULL) { - memcpy(&pktinfo6->ipi6_addr.u, &((struct sockaddr_in6*)addr_from)->sin6_addr.u, sizeof(IN6_ADDR)); + memcpy(&pktinfo6->ipi6_addr.u, &((struct sockaddr_in6*)addr_from)->sin6_addr, sizeof(struct in6_addr)); pktinfo6->ipi6_ifindex = (unsigned long)dest_if; } else {
publish: make dropdown arrow clickable
@@ -64,10 +64,10 @@ export class Dropdown extends Component { }); return ( - <div className={"options relative dib " + optionsClass} - ref={(el) => {this.optsButton = el}}> - <button className="bg-transparent white-d pr3 mb1 pointer br2 pa2 pr4" + <div className={"options relative dib pr3 pointer " + optionsClass} + ref={(el) => {this.optsButton = el}} onClick={this.toggleDropdown}> + <button className="bg-transparent white-d pointer mb1 br2 pa2 pr4"> {this.props.buttonText} </button> <div className="absolute flex flex-column pv2 ba b--gray4 br2 z-1 bg-white bg-gray0-d"
router_readconfig: align carets in case of tabs
@@ -1122,8 +1122,13 @@ router_readconfig(router *orig, carrets = ra_malloc(ret, carlen + 1); memset(carrets, '^', carlen); carrets[carlen] = '\0'; - fprintf(stderr, "%s\n%*s%s\n", - line, (int)ret->parser_err.start, "", carrets); + fprintf(stderr, "%s\n", line); + /* deal with tabs in the input */ + for (p = line; p - line < ret->parser_err.start; p++) + if (*p != '\t') + *p = ' '; + *p = '\0'; + fprintf(stderr, "%s%s\n", line, carrets); } else { logerr("%s: %s\n", path, ret->parser_err.msg); }
include/power_led.h: Format with clang-format BRANCH=none TEST=none
@@ -28,7 +28,9 @@ void powerled_set_state(enum powerled_state state); #else -static inline void powerled_set_state(enum powerled_state state) {} +static inline void powerled_set_state(enum powerled_state state) +{ +} #endif
Fail the test...
@@ -237,7 +237,7 @@ BOOST_AUTO_TEST_CASE(test_net_builder) BOOST_REQUIRE(h_orig == h_build_loaded); // compare the original to the build without saving -// BOOST_REQUIRE(h_orig == h_build); // this seems to fail :( + BOOST_REQUIRE(h_orig == h_build); // this seems to fail :( }
lib/libc/lib_strftime.c : Support %Z for timezone %Z : The timezone name or abbreviation, or by no bytes if no timezone information exists.
@@ -156,6 +156,7 @@ static const char *const g_monthname[12] = { * %t A tab character. (SU) * %y The year as a decimal number without a century (range 00 to 99). * %Y The year as a decimal number including the century. + * %Z The timezone name or abbreviation, or by no bytes if no timezone information exists. * %% A literal '%' character. * * Returned Value: @@ -380,6 +381,34 @@ size_t strftime(FAR char *s, size_t max, FAR const char *format, FAR const struc } break; + case 'Z': { +#ifdef CONFIG_LIBC_LOCALTIME + char *zoneinfo = getenv("TZ"); + char *zone = NULL; + if (zoneinfo == NULL) { + zone = "UTC"; + } else { + int zoneinfo_len; + zone = zoneinfo; +#ifdef CONFIG_LIBC_TZDIR + /* If CONFIG_LIBC_TZDIR is enabled, zoneinfo is like "CONFIG_LIBC_TZDIR/XXX". */ + zoneinfo_len = strlen(CONFIG_LIBC_TZDIR); +#else + /* If CONFIG_LIBC_TZDIR is not enabled, zoneinfo is like "/usr/local/etc/zoneinfo/XXX". */ + zoneinfo_len = strlen("/usr/local/etc/zoneinfo"); +#endif + while (zoneinfo_len != 0) { + zone++; + zoneinfo_len--; + } + zone++; + } + + len = snprintf(dest, chleft, "%s", zone); +#endif + break; + } + /* %%: A literal '%' character. */ case '%': {
OpenCanopy: Do not draw the entry selection twice each frame on intro
@@ -1528,14 +1528,22 @@ InternalBootPickerAnimateOpacity ( ASSERT (BaseY >= mBootPickerContainer.Obj.OffsetY); ASSERT (BaseY + mBootPickerRightScroll.Hdr.Obj.Height <= mBootPickerContainer.Obj.OffsetY + mBootPickerContainer.Obj.Height); DEBUG_CODE_END (); - - GuiDrawScreen ( + // + // The screen is drawn by the offset animation, which is always called after + // this one. Do not draw here to not cause pointless overhead. + // + // FIXME: Investigate and opt for one of the two. + // 1. Merge the offset and opacity animations into one. + // 2. Add a layer of literal 'draw requests' to merge and process drawing + // requests after all animations and events have been processed. + // + /*GuiDrawScreen ( DrawContext, mBootPickerContainer.Obj.OffsetX, mBootPickerContainer.Obj.OffsetY, DrawContext->Screen->Width, mBootPickerContainer.Obj.Height - ); + );*/ if (mBootPickerOpacity == mBpAnimInfoOpacity.EndValue) { return TRUE; @@ -1749,18 +1757,18 @@ BootPickerViewInitialize ( // if (!GuiContext->DoneIntroAnimation) { - InitBpAnimSinMov (GuiInterpolTypeSmooth, 0, 25); - STATIC GUI_ANIMATION PickerAnim; - PickerAnim.Context = NULL; - PickerAnim.Animate = InternalBootPickerAnimateSinMov; - InsertHeadList (&DrawContext->Animations, &PickerAnim.Link); - InitBpAnimOpacity (GuiInterpolTypeSmooth, 0, 25); STATIC GUI_ANIMATION PickerAnim2; PickerAnim2.Context = NULL; PickerAnim2.Animate = InternalBootPickerAnimateOpacity; InsertHeadList (&DrawContext->Animations, &PickerAnim2.Link); + InitBpAnimSinMov (GuiInterpolTypeSmooth, 0, 25); + STATIC GUI_ANIMATION PickerAnim; + PickerAnim.Context = NULL; + PickerAnim.Animate = InternalBootPickerAnimateSinMov; + InsertHeadList (&DrawContext->Animations, &PickerAnim.Link); + GuiContext->DoneIntroAnimation = TRUE; }
doc: deprecate ENGINE documentation
@@ -46,6 +46,10 @@ ENGINE_unregister_digests #include <openssl/engine.h> +Deprecated since OpenSSL 3.0, can be hidden entirely by defining +B<OPENSSL_API_COMPAT> with a suitable version value, see +L<openssl_user_macros(7)>: + ENGINE *ENGINE_get_first(void); ENGINE *ENGINE_get_last(void); ENGINE *ENGINE_get_next(ENGINE *e); @@ -162,6 +166,9 @@ L<openssl_user_macros(7)>: =head1 DESCRIPTION +All of the functions described on this page are deprecated. +Applications should instead use the provider APIs. + These functions create, manipulate, and use cryptographic modules in the form of B<ENGINE> objects. These objects act as containers for implementations of cryptographic algorithms, and support a @@ -651,6 +658,8 @@ L<RAND_bytes(3)>, L<config(5)> =head1 HISTORY +All of these functions were deprecated in OpenSSL 3.0. + ENGINE_cleanup() was deprecated in OpenSSL 1.1.0 by the automatic cleanup done by OPENSSL_cleanup() and should not be used.
Don't wait infinitely for server response, might never come and prevents closing of program
@@ -10522,7 +10522,7 @@ read_message(FILE *fp, /* value of request_timeout is in seconds, config in milliseconds */ request_timeout = atof(conn->dom_ctx->config[REQUEST_TIMEOUT]) / 1000.0; } else { - request_timeout = -1.0; + request_timeout = 30.0; } if (conn->handled_requests > 0) { if (conn->dom_ctx->config[KEEP_ALIVE_TIMEOUT]) {
bugfix acl doesn't disconnect when hfp_client disconnect
@@ -214,7 +214,7 @@ const UINT8 bta_hf_client_st_closing[][BTA_HF_CLIENT_NUM_COLS] = { /* DISC_OK_EVT */ {BTA_HF_CLIENT_IGNORE, BTA_HF_CLIENT_IGNORE, BTA_HF_CLIENT_CLOSING_ST}, /* DISC_FAIL_EVT */ {BTA_HF_CLIENT_IGNORE, BTA_HF_CLIENT_IGNORE, BTA_HF_CLIENT_CLOSING_ST}, /* SCO_OPEN_EVT */ {BTA_HF_CLIENT_IGNORE, BTA_HF_CLIENT_IGNORE, BTA_HF_CLIENT_CLOSING_ST}, - /* SCO_CLOSE_EVT */ {BTA_HF_CLIENT_IGNORE, BTA_HF_CLIENT_IGNORE, BTA_HF_CLIENT_CLOSING_ST}, + /* SCO_CLOSE_EVT */ {BTA_HF_CLIENT_SCO_CONN_CLOSE, BTA_HF_CLIENT_IGNORE, BTA_HF_CLIENT_CLOSING_ST}, /* SEND_AT_CMD_EVT */ {BTA_HF_CLIENT_IGNORE, BTA_HF_CLIENT_IGNORE, BTA_HF_CLIENT_CLOSING_ST}, #if (BTM_SCO_HCI_INCLUDED == TRUE ) /* CI_SCO_DATA_EVT */ {BTA_HF_CLIENT_IGNORE, BTA_HF_CLIENT_IGNORE, BTA_HF_CLIENT_CLOSING_ST},
common/usbc/usb_pd_dp_ufp.c: Format with clang-format BRANCH=none TEST=none
#include "usb_pd.h" #include "usb_pd_dp_ufp.h" - #define CPRINTF(format, args...) cprintf(CC_USBPD, format, ##args) #define CPRINTS(format, args...) cprints(CC_USBPD, format, ##args) @@ -154,10 +153,10 @@ static void hpd_queue_event(enum hpd_event evt) * are kept in the queue. */ if (evt == hpd_irq) { - if ((hpd.count >= HPD_QUEUE_DEPTH) || ((hpd.count >= 2) && + if ((hpd.count >= HPD_QUEUE_DEPTH) || + ((hpd.count >= 2) && (hpd.queue[hpd.count - 2] == hpd_irq))) { - CPRINTS("hpd: discard hpd: count - %d", - hpd.count); + CPRINTS("hpd: discard hpd: count - %d", hpd.count); return; } } @@ -238,8 +237,8 @@ static void hpd_to_pd_converter(int level, uint64_t ts) */ if (!level) { /* Still low, now wait for IRQ or LOW determination */ - hpd.timer = ts + (HPD_T_IRQ_MAX_PULSE - - HPD_T_IRQ_MIN_PULSE); + hpd.timer = ts + + (HPD_T_IRQ_MAX_PULSE - HPD_T_IRQ_MIN_PULSE); hpd.state = IRQ_CHECK; } else { @@ -331,8 +330,7 @@ static void manage_hpd(void) * a DP_ATTENTION message if a DP_CONFIG message has been * received and have passed the minimum spacing interval. */ - if (hpd.send_enable && - ((get_time().val - hpd.last_send_ts) > + if (hpd.send_enable && ((get_time().val - hpd.last_send_ts) > HPD_T_MIN_DP_ATTEN)) { /* Generate DP_ATTENTION event pending in queue */ hpd_to_dp_attention();
YAML CPP: Update MSR test for boolean data
@@ -373,10 +373,17 @@ echo 'truth: true' > `kdb file user/tests/yamlcpp` kdb get user/tests/yamlcpp/truth #> 1 +# A boolean in Elektra has the type `boolean` +kdb meta-get user/tests/yamlcpp/truth type +#> boolean + # Add another boolean value kdb set user/tests/yamlcpp/success 0 +kdb meta-set user/tests/yamlcpp/success type boolean kdb get user/tests/yamlcpp/success #> 0 +kdb export user/tests/yamlcpp/success yamlcpp +#> false # Undo modifications to the database kdb rm -r user/tests/yamlcpp
Tests: added tests for the $request_time variable.
@@ -47,6 +47,35 @@ class TestVariables(TestApplicationProto): ) check_dollar('path$dollar${dollar}', 'path$$') + def test_variables_request_time(self): + self.set_format('$uri $request_time') + + sock = self.http(b'', raw=True, no_recv=True) + + time.sleep(1) + + assert self.get(url='/r_time_1', sock=sock)['status'] == 200 + assert self.wait_for_record(r'\/r_time_1 0\.\d{3}') is not None + + sock = self.http( + b"""G""", + no_recv=True, + raw=True, + ) + + time.sleep(2) + + self.http( + b"""ET /r_time_2 HTTP/1.1 +Host: localhost +Connection: close + +""", + sock=sock, + raw=True, + ) + assert self.wait_for_record(r'\/r_time_2 [1-9]\.\d{3}') is not None + def test_variables_method(self): self.set_format('$method')
hardware: a few minor comment clarifications [ci skip]
@@ -164,7 +164,7 @@ module thread_select_stage( // fills up because there are several stages in-between. assign ts_fetch_en[thread_idx] = !ififo_almost_full && thread_en[thread_idx]; - /// XXX Treat PC specially for scoreboard? + /// XXX PC should not be tracked by the scoreboard // Generate destination register bitmap for the next instruction // to be issued. @@ -362,7 +362,7 @@ module thread_select_stage( // instruction issue and not scheduling instructions that would // collide. Track instructions even if they don't write back to a // register, since they may have other side effects that the writeback - // stage handles. + // stage handles (for example, a store instruction can raise an exception) always_comb begin writeback_allocate_nxt = {1'b0, writeback_allocate[WRITEBACK_ALLOC_STAGES - 1:1]};
put AA null warning behind verbose check, closes
@@ -747,8 +747,10 @@ static ScsWork *init_work(const ScsData *d, const ScsCone *k) { if (!(w->accel = aa_init(2 * (w->m + w->n + 1), ABS(w->stgs->acceleration_lookback), w->stgs->acceleration_lookback >= 0))) { + if (w->stgs->verbose) { scs_printf("WARN: aa_init returned NULL, no acceleration applied.\n"); } + } return w; }
Drop data marked by user with None destination
@@ -281,10 +281,14 @@ def _fix_user_data(orig_cmd, shell, user_input, user_output, strategy): ]: if srcs: for path in srcs.values(): - if path.startswith('/'): + if path and path.startswith('/'): raise InvalidInputError("Don't use abs path for specifying destination path '{}'".format(path)) dst.update(srcs) + # Drop data marked by user with None destination + input_data = {k: v for k, v in input_data.iteritems() if v} + output_data = {k: v for k, v in output_data.iteritems() if v} + return subprocess.list2cmdline(cmd) if shell else cmd, input_data, output_data
libbarrelfish: pmap-ll: fix pmap_foreach_child() macro
* Note: this macro requires both root and iter to be 'struct vnode *'. */ #define pmap_foreach_child(root, iter) \ - for (iter = root->v.u.vnode.children; iter; iter = iter->v.meta.next) + for (iter = (root)->v.u.vnode.children; iter; iter = iter->v.meta.next) #define INIT_SLAB_BUFFER_SIZE SLAB_STATIC_SIZE(INIT_SLAB_COUNT, sizeof(struct vnode))
set default allocator for GO programs build with MUSL
@@ -5939,7 +5939,12 @@ macro _GO_GRPC_GATEWAY_SWAGGER_SRCS(Files...) { PEERDIR(vendor/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options) } +when ($MUSL == "yes") { + _GO_DEFAULT_ALLOCATOR=$DEFAULT_ALLOCATOR +} +otherwise { _GO_DEFAULT_ALLOCATOR=FAKE +} ### @usage _GO_BASE_UNIT # internal ###
odissey: print available users during debug bootstrap
@@ -292,4 +292,14 @@ void od_schemeprint(od_scheme_t *scheme, od_log_t *log) od_log(log, NULL, " pool_min %d", route->pool_min); od_log(log, NULL, " pool_max %d", route->pool_max); } + if (! od_listempty(&scheme->users)) { + od_log(log, NULL, "users"); + od_listforeach(&scheme->users, i) { + od_schemeuser_t *user; + user = od_container_of(i, od_schemeuser_t, link); + od_log(log, NULL, " <%s>", user->user); + if (user->password) + od_log(log, NULL, " password '****'"); + } + } }
add case schematic
// sync problem fork height #define SYNC_FIX_HEIGHT 0 -#define SYNC_FIX_TESTNET_HEIGHT 10000 +#define SYNC_FIX_TESTNET_HEIGHT 0 struct block_backrefs; struct orphan_block; @@ -815,6 +815,10 @@ static int add_block_nolock(struct xdag_block *newBlock, xtime_t limit) xdag_info("Diff : %llx%016llx (+%llx%016llx)", xdag_diff_args(tmpNodeBlock.difficulty), xdag_diff_args(diff0)); } + // | epoch 1 | epoch 2 | epoch 3 | + // A <-------- B <-------- C + // | + // |------------- D // 1. find the common ancestor for(blockRef = nodeBlock, blockRef0 = 0; blockRef && !(blockRef->flags & BI_MAIN_CHAIN); blockRef = blockRef->link[blockRef->max_diff_link]) { if((!blockRef->link[blockRef->max_diff_link] || xdag_diff_gt(blockRef->difficulty, blockRef->link[blockRef->max_diff_link]->difficulty))
compiled BUGFIX do not access when on nodes without it
@@ -6978,7 +6978,8 @@ lys_compile_check_when_cyclic(struct lyxp_set *set, const struct lysc_node *node continue; } - if ((xp_scnode->type != LYXP_NODE_ELEM) || !xp_scnode->scnode->when) { + if ((xp_scnode->type != LYXP_NODE_ELEM) || (xp_scnode->scnode->nodetype & (LYS_ACTION | LYS_NOTIF)) + || !xp_scnode->scnode->when) { /* no when to check */ xp_scnode->in_ctx = 0; continue;
[core] simpler loops to run plugin hooks
@@ -291,28 +291,14 @@ int plugins_load(server *srv) { #define PLUGIN_TO_SLOT(x, y) \ handler_t plugins_call_##y(server *srv, connection *con) {\ - plugin **slot;\ - size_t j;\ - slot = ((plugin ***)(srv->plugin_slots))[x];\ - if (!slot) return HANDLER_GO_ON;\ - for (j = 0; j < srv->plugins.used && slot[j]; j++) { \ - plugin *p = slot[j];\ - handler_t r;\ - switch(r = p->y(srv, con, p->data)) {\ - case HANDLER_GO_ON:\ - break;\ - case HANDLER_FINISHED:\ - case HANDLER_COMEBACK:\ - case HANDLER_WAIT_FOR_EVENT:\ - case HANDLER_WAIT_FOR_FD:\ - case HANDLER_ERROR:\ - return r;\ - default:\ - log_error_write(srv, __FILE__, __LINE__, "sbs", #x, p->name, "unknown state");\ - return HANDLER_ERROR;\ - }\ + plugin ** const slot = ((plugin ***)(srv->plugin_slots))[x];\ + const size_t used = srv->plugins.used;\ + handler_t rc = HANDLER_GO_ON;\ + if (slot) {\ + const plugin *p;\ + for (size_t i = 0; i < used && (p = slot[i]) && (rc = p->y(srv, con, p->data)) == HANDLER_GO_ON; ++i) ;\ }\ - return HANDLER_GO_ON;\ + return rc;\ } /** @@ -341,28 +327,14 @@ PLUGIN_TO_SLOT(PLUGIN_FUNC_CONNECTION_RESET, connection_reset) #define PLUGIN_TO_SLOT(x, y) \ handler_t plugins_call_##y(server *srv) {\ - plugin **slot;\ - size_t j;\ - slot = ((plugin ***)(srv->plugin_slots))[x];\ - if (!slot) return HANDLER_GO_ON;\ - for (j = 0; j < srv->plugins.used && slot[j]; j++) { \ - plugin *p = slot[j];\ - handler_t r;\ - switch(r = p->y(srv, p->data)) {\ - case HANDLER_GO_ON:\ - break;\ - case HANDLER_FINISHED:\ - case HANDLER_COMEBACK:\ - case HANDLER_WAIT_FOR_EVENT:\ - case HANDLER_WAIT_FOR_FD:\ - case HANDLER_ERROR:\ - return r;\ - default:\ - log_error_write(srv, __FILE__, __LINE__, "sbsd", #x, p->name, "unknown state:", r);\ - return HANDLER_ERROR;\ - }\ + plugin ** const slot = ((plugin ***)(srv->plugin_slots))[x];\ + const size_t used = srv->plugins.used; \ + handler_t rc = HANDLER_GO_ON;\ + if (slot) {\ + const plugin *p;\ + for (size_t i = 0; i < used && (p = slot[i]) && (rc = p->y(srv, p->data)) == HANDLER_GO_ON; ++i) ;\ }\ - return HANDLER_GO_ON;\ + return rc;\ } /**
remove extraneous luaC_checkGC call
@@ -274,7 +274,6 @@ local function codewhile(ctx, node) else tmpl = [[ while(1) { - luaC_checkGC(L); $CSTATS if(!($CEXP)) { break;
Clean up warnings about ambiguous grammar.
@@ -159,6 +159,26 @@ static void setupinit(Node *n); %type <uconlist> unionbody +/* +We want to bind more tightly to `Foo unaryexpr +than to binary operators around it. Eg: + + `Foo +bar + +should be interpreted as + + (`Foo (+bar)) + +and not + + (`Foo) + (bar) + +The default action of shifting does the right thing, +but warnings suck. +*/ +%left Ttick +%left Tplus Tminus Tband + %union { struct { Srcloc loc;
Cppcheck: address of local variable 'value' is accessed at non-zero index
@@ -142,6 +142,7 @@ static int unpack_long(grib_accessor* a, long* val, size_t* len) long value = 0; long pos = a->offset * 8; char* intc = NULL; + char* pTemp = NULL; char expver[5]; char refexpver[5]; size_t llen = a->length + 1; @@ -158,13 +159,20 @@ static int unpack_long(grib_accessor* a, long* val, size_t* len) /* test for endian */ intc = (char*)&value; + pTemp = intc; + expver[0] = *pTemp++; + expver[1] = *pTemp++; + expver[2] = *pTemp++; + expver[3] = *pTemp++; + expver[4] = 0; +#if 0 expver[0] = intc[0]; expver[1] = intc[1]; expver[2] = intc[2]; expver[3] = intc[3]; expver[4] = 0; - +#endif /* if there is a difference, have to reverse*/ if (strcmp(refexpver, expver)) { intc[0] = expver[3];
Added klib vendor directories to CLEANDIRS
@@ -130,3 +130,5 @@ CFLAGS+= $(KERNCFLAGS) $(INCLUDES) -fPIC $(DEFINES) # TODO should add stack protection to klibs... CFLAGS+= -fno-stack-protector LDFLAGS+= -pie -nostdlib -T$(ARCHDIR)/klib.lds + +CLEANDIRS+= $(OUTDIR)/klib/vendor $(OUTDIR)/klib/vendor/mbedtls
Updated license informations
@@ -229,6 +229,8 @@ img = sensor.snapshot() output = net.predict(img) ``` -## License information +## License informations + +- The python wrapper i.e the sources files `nn_st.c`, `nn_st.h`, `py_st_nn.c` are under MIT License. See LICENSE file for more information. +- All files (header file and compiled library) present in the AI directory are under the [SLA0044](www.st.com/SLA0044) licence. See AI/LICENCE for more information. -This software is under MIT License. See LICENSE file for more information.
Fix cygwin make dependencies
@@ -390,9 +390,13 @@ uninstall: uninstall_docs uninstall_sw libclean: @set -e; for s in $(SHLIB_INFO); do \ + if [ "$$s" = ";" ]; then continue; fi; \ s1=`echo "$$s" | cut -f1 -d";"`; \ s2=`echo "$$s" | cut -f2 -d";"`; \ - $(ECHO) $(RM) $$s1; \ + $(ECHO) $(RM) $$s1; {- output_off() unless windowsdll(); "" -}\ + $(RM) apps/$$s1; \ + $(RM) test/$$s1; \ + $(RM) fuzz/$$s1; {- output_on() unless windowsdll(); "" -}\ $(RM) $$s1; \ if [ "$$s1" != "$$s2" ]; then \ $(ECHO) $(RM) $$s2; \ @@ -979,7 +983,6 @@ EOF $cmd = '$(RC)'; $cmdflags = '$(RCFLAGS)'; $cmdcompile = ''; - $makedepprog = undef; } elsif (grep /\.(cc|cpp)$/, @srcs) { $cmd = '$(CXX)'; $cmdcompile = ' -c'; @@ -1014,7 +1017,8 @@ EOF $obj$objext: $deps $cmd $incs $cmdflags -c -o \$\@ $srcs EOF - } elsif (defined $makedepprog && $makedepprog !~ /\/makedepend/) { + } elsif (defined $makedepprog && $makedepprog !~ /\/makedepend/ + && !grep /\.rc$/, @srcs) { $recipe .= <<"EOF"; $obj$objext: $deps $cmd $incs $cmdflags -MMD -MF $obj$depext.tmp -MT \$\@ -c -o \$\@ $srcs
[mod_webdav] cold func if xml reqbody w/o db conf
@@ -2304,6 +2304,21 @@ webdav_fcopyfile_sz (int ifd, int ofd, off_t isz) } +#ifdef USE_PROPPATCH +__attribute_cold__ +__attribute_noinline__ +static handler_t +webdav_405_no_db (request_st * const r) +{ + http_header_response_set(r, HTTP_HEADER_ALLOW, + CONST_STR_LEN("Allow"), + CONST_STR_LEN("GET, HEAD, PROPFIND, DELETE, MKCOL, PUT, MOVE, COPY")); + http_status_set_error(r, 405); /* Method Not Allowed */ + return HANDLER_FINISHED; +} +#endif + + static int webdav_if_match_or_unmodified_since (request_st * const r, struct stat *st) { @@ -5356,14 +5371,8 @@ mod_webdav_copymove (request_st * const r, const plugin_config * const pconf) static handler_t mod_webdav_proppatch (request_st * const r, const plugin_config * const pconf) { - if (!pconf->sql) { - http_header_response_set(r, HTTP_HEADER_ALLOW, - CONST_STR_LEN("Allow"), - CONST_STR_LEN("GET, HEAD, PROPFIND, DELETE, " - "MKCOL, PUT, MOVE, COPY")); - http_status_set_error(r, 405); /* Method Not Allowed */ - return HANDLER_FINISHED; - } + if (!pconf->sql) + return webdav_405_no_db(r); if (0 == r->reqbody_length) { http_status_set_error(r, 400); /* Bad Request */
python: fix key args in tests
@@ -50,7 +50,7 @@ static void test_variable_passing (void) KeySet * conf = ksNew (1, keyNew ("user/script", KEY_VALUE, python_file ("python_plugin.py"), KEY_END), keyNew ("user/shutdown", KEY_VALUE, "1", KEY_END), keyNew ("user/print", KEY_END), - keyNew ("user/python/path", ".", KEY_END), KS_END); + keyNew ("user/python/path", KEY_VALUE, ".", KEY_END), KS_END); PLUGIN_OPEN (ELEKTRA_STRINGIFY (PYTHON_PLUGIN_NAME)); Key * parentKey = keyNew ("user/from_c", KEY_END); @@ -74,11 +74,11 @@ static void test_two_scripts (void) elektraModulesInit (modules, 0); KeySet * conf = ksNew (2, keyNew ("user/script", KEY_VALUE, python_file ("python_plugin.py"), KEY_END), - keyNew ("user/shutdown", KEY_VALUE, "1", KEY_END), keyNew ("user/python/path", ".", KEY_END), + keyNew ("user/shutdown", KEY_VALUE, "1", KEY_END), keyNew ("user/python/path", KEY_VALUE, ".", KEY_END), keyNew ("user/print", KEY_END), KS_END); KeySet * conf2 = ksNew (2, keyNew ("user/script", KEY_VALUE, python_file ("python_plugin2.py"), KEY_END), - keyNew ("user/shutdown", KEY_VALUE, "1", KEY_END), keyNew ("user/python/path", ".", KEY_END), + keyNew ("user/shutdown", KEY_VALUE, "1", KEY_END), keyNew ("user/python/path", KEY_VALUE, ".", KEY_END), keyNew ("user/print", KEY_END), KS_END); Key * errorKey = keyNew ("", KEY_END); @@ -107,7 +107,7 @@ static void test_fail (void) printf ("Testing return values from python functions...\n"); KeySet * conf = ksNew (2, keyNew ("user/script", KEY_VALUE, python_file ("python_plugin_fail.py"), KEY_END), - keyNew ("user/shutdown", KEY_VALUE, "1", KEY_END), keyNew ("user/python/path", ".", KEY_END), + keyNew ("user/shutdown", KEY_VALUE, "1", KEY_END), keyNew ("user/python/path", KEY_VALUE, ".", KEY_END), keyNew ("user/print", KEY_END), KS_END); PLUGIN_OPEN (ELEKTRA_STRINGIFY (PYTHON_PLUGIN_NAME)); @@ -133,7 +133,7 @@ static void test_wrong (void) elektraModulesInit (modules, 0); KeySet * conf = ksNew (2, keyNew ("user/script", KEY_VALUE, python_file ("python_plugin_wrong.py"), KEY_END), - keyNew ("user/shutdown", KEY_VALUE, "1", KEY_END), keyNew ("user/python/path", ".", KEY_END), + keyNew ("user/shutdown", KEY_VALUE, "1", KEY_END), keyNew ("user/python/path", KEY_VALUE, ".", KEY_END), keyNew ("user/print", KEY_END), KS_END); Key * errorKey = keyNew ("", KEY_END);
DeviceJS: Update docs for new wrapper attributes
@@ -47,8 +47,11 @@ namespace deCONZ ### Object Methods - R.item(suffix) --> gets Item object, for example the 'config.offset' + R.item(suffix) -> gets Item object, for example the 'config.offset' Item.val -> ResourceItem value (read/write) + Item.name -> ResourceItem name like 'state/on' (read only) + Attr.id -> attribute id (number, read only) + Attr.dataType -> attribute datatype (number, read only) Attr.val -> attribute value (read only) ### under consideration (not implemented) @@ -56,7 +59,6 @@ namespace deCONZ R.subDevice(uniqueId) --> get another sub-device resource object Item.lastSet --> timestamp when item was last set Item.lastChanged --> timestamp when item was last changed - Attr.type --> attribute datatype ZclFrame.attr(id) --> Attr object (if the ZclFrame has multiple)
memif: fix rx/txqueue RC on connected Type: fix Calling vnet_hw_if_register_tx_queue should be done with the worker barrier held, as virtio-pre-input might be grabbing a queue while a memif connect event is triggered.
@@ -248,6 +248,7 @@ memif_connect (memif_if_t * mif) u32 n_txqs = 0, n_threads = vlib_get_n_threads (); clib_error_t *err = NULL; u8 max_log2_ring_sz = 0; + int with_barrier = 0; memif_log_debug (mif, "connect %u", mif->dev_instance); @@ -278,6 +279,13 @@ memif_connect (memif_if_t * mif) template.read_function = memif_int_fd_read_ready; template.write_function = memif_int_fd_write_ready; + with_barrier = 1; + if (vlib_worker_thread_barrier_held ()) + with_barrier = 0; + + if (with_barrier) + vlib_worker_thread_barrier_sync (vm); + /* *INDENT-OFF* */ vec_foreach_index (i, mif->tx_queues) { @@ -359,13 +367,6 @@ memif_connect (memif_if_t * mif) if (1 << max_log2_ring_sz > vec_len (mm->per_thread_data[0].desc_data)) { memif_per_thread_data_t *ptd; - int with_barrier = 1; - - if (vlib_worker_thread_barrier_held ()) - with_barrier = 0; - - if (with_barrier) - vlib_worker_thread_barrier_sync (vm); vec_foreach (ptd, mm->per_thread_data) { @@ -376,9 +377,9 @@ memif_connect (memif_if_t * mif) vec_validate_aligned (ptd->desc_status, pow2_mask (max_log2_ring_sz), CLIB_CACHE_LINE_BYTES); } + } if (with_barrier) vlib_worker_thread_barrier_release (vm); - } mif->flags &= ~MEMIF_IF_FLAG_CONNECTING; mif->flags |= MEMIF_IF_FLAG_CONNECTED; @@ -388,6 +389,8 @@ memif_connect (memif_if_t * mif) return 0; error: + if (with_barrier) + vlib_worker_thread_barrier_release (vm); memif_log_err (mif, "%U", format_clib_error, err); return err; }
Setup the runtime and build the CLI
@@ -4,6 +4,9 @@ on: workflow_dispatch: pull_request: +env: + METACALL_BASE_IMAGE: debian:bullseye-slim + jobs: linux-test: name: Linux (Ubuntu) GCC Test @@ -51,10 +54,11 @@ jobs: - name: Set up the runtime run: | export "METACALL_PATH=$(pwd)" - mkdir -p /usr/local/scripts - sudo ./tools/metacall-configure.sh $METACALL_RUNTIME_OPTIONS + sudo mkdir -p /usr/local/scripts + sudo ./tools/metacall-runtime.sh $METACALL_RUNTIME_OPTIONS env: METACALL_RUNTIME_OPTIONS: root base python ruby nodejs typescript file rpc ports clean # v8 + METACALL_BUILD_TYPE: debug # relwithdebinfo LOADER_LIBRARY_PATH: /usr/local/lib LOADER_SCRIPT_PATH: /usr/local/scripts CONFIGURATION_PATH: /usr/local/share/metacall/configurations/global.json @@ -66,3 +70,22 @@ jobs: LTTNG_UST_REGISTER_TIMEOUT: 0 NUGET_XMLDOC_MODE: skip DOTNET_CLI_TELEMETRY_OPTOUT: 'true' + + - name: Build the CLI + run: | + export "METACALL_PATH=$(pwd)" + cd build && sudo make pack + env: + METACALL_BUILD_TYPE: debug # relwithdebinfo + LOADER_LIBRARY_PATH: /usr/local/lib + LOADER_SCRIPT_PATH: /usr/local/scripts + CONFIGURATION_PATH: /usr/local/share/metacall/configurations/global.json + SERIAL_LIBRARY_PATH: /usr/local/lib + DETOUR_LIBRARY_PATH: /usr/local/lib + PORT_LIBRARY_PATH: /usr/local/lib + DEBIAN_FRONTEND: noninteractive + NODE_PATH: /usr/local/lib/node_modules + DOTNET_CLI_TELEMETRY_OPTOUT: 'true' + LTTNG_UST_REGISTER_TIMEOUT: 0 + NUGET_XMLDOC_MODE: skip + ARTIFACTS_PATH: ./build-artifacts
Update docs/RELEASE.md to reflect new update_latest.yml workflow.
@@ -50,9 +50,10 @@ to a minimum. prior minor release and provides a starting point for maintenance releases to the new minor release. -* We have a `staging` branch for the website content. The - documentation team updates the website content on that branch, then - creates PRs to merge their changes into the default branch. +* For website content, the staging website always reflects what is on the + master branch. The documentation team provides PRs that target the master + branch. When they are merged, the website workflow runs, causing the + staging website content to be updated. ## Workflows @@ -74,9 +75,15 @@ additional steps are taken depending on the trigger. these tests use up to Docker Hub on pushes to the default branch. The [`website`](../.github/workflows/website.yml) workflow handles building and -deploying the [`website/`](../website/) content to <https://appscope.dev/> from -the default branch and <https://staging.appscope.dev/> from `staging`. See the -build script in that folder for details. +deploying the [`website/`](../website/) content to <https://staging.appscope.dev/> +and <https://appscope.dev/>. The staging website is intended to always reflect +the master branch. The production website is updated only when a "web" tag +has been applied and pushed. See the build script in that folder for details. + +The [`update_latest`](../.github/workflows/update_latest.yml) workflow updates +the value returned by `https://cdn.cribl.io/dl/scope/latest`, and updates +the `latest` tag at `https://hub.docker.com/r/cribl/scope/tags`. This workflow +is run manually, and does not have any automatic triggers. ## CDN @@ -84,15 +91,11 @@ We push the built and tested `scope` binary and a TGZ package to an AWS S3 container exposed at `https://cdn.cribl.io/dl/scope/`. Below that base URL we have: -* `latest` - text file with the latest release number in it; e.g., `0.6.1` * `$VERSION/linux/scope` * `$VERSION/linux/scope.md5` * `$VERSION/linux/scope.tgz` * `$VERSION/linux/scope.tgz.md5` -The `latest` file is updated only for builds of `v*` tags without `-rc` in -them. - Starting with the `v0.7.2` release, we are building separate x86 and ARM versions of AppScope. The links described above still lead to the x86 files. We've added arch-specific links for the `x86_64` and `aarch64` files. @@ -133,8 +136,7 @@ repositories at Docker Hub. See [`docker/`](../docker/) for details on how those images are built. We currently build these for release `v*` tags and tag the images to match with -the leading `v` stripped off. If the git tag isn't a preprelease tag and is the -last one then we apply the `:latest` tag to the image too. +the leading `v` stripped off. ```text docker run --rm -it cribl/scope:latest
CCode: Move contract into separate function
@@ -49,6 +49,23 @@ inline int elektraHexcodeConvFromHex (char character) return 0; /* Unknown escape char */ } +/** + * @brief This function returns a key set containing the contract of this plugin. + * + * @return A contract describing the functionality of this plugin. + */ +inline KeySet * contract (void) +{ + return ksNew (30, keyNew ("system/elektra/modules/ccode", KEY_VALUE, "ccode plugin waits for your orders", KEY_END), + keyNew ("system/elektra/modules/ccode/exports", KEY_END), + keyNew ("system/elektra/modules/ccode/exports/open", KEY_FUNC, elektraCcodeOpen, KEY_END), + keyNew ("system/elektra/modules/ccode/exports/close", KEY_FUNC, elektraCcodeClose, KEY_END), + keyNew ("system/elektra/modules/ccode/exports/get", KEY_FUNC, elektraCcodeGet, KEY_END), + keyNew ("system/elektra/modules/ccode/exports/set", KEY_FUNC, elektraCcodeSet, KEY_END), +#include "readme_ccode.c" + keyNew ("system/elektra/modules/ccode/infos/version", KEY_VALUE, PLUGINVERSION, KEY_END), KS_END); +} + /** * @brief This function sets default values for the encoding and decoding character mapping. * @@ -239,15 +256,7 @@ int elektraCcodeGet (Plugin * handle, KeySet * returned, Key * parentKey) { if (!strcmp (keyName (parentKey), "system/elektra/modules/ccode")) { - KeySet * pluginConfig = - ksNew (30, keyNew ("system/elektra/modules/ccode", KEY_VALUE, "ccode plugin waits for your orders", KEY_END), - keyNew ("system/elektra/modules/ccode/exports", KEY_END), - keyNew ("system/elektra/modules/ccode/exports/open", KEY_FUNC, elektraCcodeOpen, KEY_END), - keyNew ("system/elektra/modules/ccode/exports/close", KEY_FUNC, elektraCcodeClose, KEY_END), - keyNew ("system/elektra/modules/ccode/exports/get", KEY_FUNC, elektraCcodeGet, KEY_END), - keyNew ("system/elektra/modules/ccode/exports/set", KEY_FUNC, elektraCcodeSet, KEY_END), -#include "readme_ccode.c" - keyNew ("system/elektra/modules/ccode/infos/version", KEY_VALUE, PLUGINVERSION, KEY_END), KS_END); + KeySet * pluginConfig = contract (); ksAppend (returned, pluginConfig); ksDel (pluginConfig); return ELEKTRA_PLUGIN_STATUS_SUCCESS;
Unix build: for mingw and cygwin, create the right location for DLLs Mingw and Cygwin builds install the DLLs in the application directory, not the library directory, so ensure that one is created for them when installing the DLLs. Fixes
@@ -644,7 +644,9 @@ install_runtime_libs: build_libs @[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1) @ : {- output_off() if windowsdll(); "" -} @$(PERL) $(SRCDIR)/util/mkdir-p.pl $(DESTDIR)$(libdir) - @ : {- output_on() if windowsdll(); "" -} + @ : {- output_on() if windowsdll(); output_off() unless windowsdll(); "" -} + @$(PERL) $(SRCDIR)/util/mkdir-p.pl $(DESTDIR)$(INSTALLTOP)/bin + @ : {- output_on() unless windowsdll(); "" -} @$(ECHO) "*** Installing runtime libraries" @set -e; for s in dummy $(INSTALL_SHLIBS); do \ if [ "$$s" = "dummy" ]; then continue; fi; \
fix null reference access to emdk3Listener
@@ -599,6 +599,7 @@ public class BarcodeFactory extends RhoApiFactory<Barcode, BarcodeSingleton> imp if (releaseEMDKOnPause) { Logger.D( TAG, "Will restore EMDK resources" ); + if(emdk3Listener) emdk3Listener.resume(); } @@ -647,6 +648,7 @@ public class BarcodeFactory extends RhoApiFactory<Barcode, BarcodeSingleton> imp Logger.D( TAG, "Will release EMDK resources" ); enabledScanner = null; removeAllEMDKScannerIDs(); + if(emdk3Listener) emdk3Listener.pause(); setIsEMDKScannerSetupCalled(false); }
correct sudo command This way it works and users can just copy paste and run it
@@ -138,5 +138,5 @@ located in ``/usr/local/lib``. In some Linux flavors the loader doesn't look for libraries in this path by default, we must instruct it to do so by adding ``/usr/local/lib`` to the loader configuration file ``/etc/ld.so.conf``:: - sudo echo "/usr/local/lib" >> /etc/ld.so.conf + sudo sh -c 'echo "/usr/local/lib" >> /etc/ld.so.conf' sudo ldconfig
driverless: Always output debug message when ippfind terminates successfully
@@ -608,7 +608,8 @@ list_printers (int mode, int reg_type_no, int isFax) if (exit_status) fprintf(stderr, "ERROR: ippfind (PID %d) stopped on signal %d!\n", ippfind_pid, exit_status); - } else if (debug) + } + if (!exit_status && debug) fprintf(stderr, "DEBUG: ippfind (PID %d) exited with no errors.\n", ippfind_pid);
examples/apache: make h2 config http2 only
@@ -12,7 +12,8 @@ LogLevel crit LogLevel debug Listen 127.0.0.1:8080 PidFile /tmp/apache-pid -Protocols h2 h2c http/1.1 +#Protocols h2 h2c http/1.1 +Protocols h2c H2Direct on H2Upgrade on H2SerializeHeaders on
travis: Enable test for running native code via mpy.
@@ -66,7 +66,8 @@ jobs: - (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests) - (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -d thread) - (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --emit native) - - (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --via-mpy -d basics float) + - (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --via-mpy -d basics float micropython) + - (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --via-mpy --emit native -d basics float micropython) # test when input script comes from stdin - cat tests/basics/0prelim.py | ports/unix/micropython_coverage | grep -q 'abc' # run coveralls coverage analysis (try to, even if some builds/tests failed)
fix format string for lifetime
@@ -1009,13 +1009,13 @@ char* _argumentsToCommandLineOptions(const struct arguments* arguments) { options->free = (void (*)(void*))_secFree; if (arguments->lifetime) { - list_rpush(options, list_node_new(oidc_sprintf("--lifetime=%d", + list_rpush(options, list_node_new(oidc_sprintf("--lifetime=%ld", arguments->lifetime))); } if (arguments->pw_lifetime.argProvided) { if (arguments->pw_lifetime.lifetime) { list_rpush(options, - list_node_new(oidc_sprintf("--pw-store=%d", + list_node_new(oidc_sprintf("--pw-store=%ld", arguments->pw_lifetime.lifetime))); } else { list_rpush(options, list_node_new(oidc_strcopy("--pw-store")));
Display the bar start and bar number
@@ -4,7 +4,7 @@ import clap 1.0 Rectangle { width: 450 - height: 470 + height: 490 color: "#f8f8f8" Text { @@ -22,7 +22,11 @@ Rectangle { text += "Tempo: " + (transport.hasTempo ? (transport.tempo.toFixed(3) + " (bpm)") : "(none)") + "\n"; if (transport.hasBeatsTimeline) + { text += "song position (beats): " + transport.songPositionBeats.toFixed(3) + "\n"; + text += "bar start: " + transport.barStart.toFixed(3) + "\n"; + text += "bar number: " + transport.barNumber + "\n"; + } else text += "No timeline in beats\n";
Replace strNewFmt() with TEST_ERROR_FMT() in command/archive-push module. This test was likely written before TEST_ERROR_FMT() existed.
@@ -512,13 +512,12 @@ testRun(void) HRN_STORAGE_MODE(storageTest, "repo2/archive/test/11-1/0000000100000001", .mode = 0500); - TEST_ERROR( + TEST_ERROR_FMT( cmdArchivePush(), CommandError, - strZ( - strNewFmt( "archive-push command encountered error(s):\n" "repo2: [FileOpenError] unable to open file '" TEST_PATH "/repo2/archive/test/11-1/0000000100000001" - "/000000010000000100000002-%s' for write: [13] Permission denied", walBuffer2Sha1))); + "/000000010000000100000002-%s' for write: [13] Permission denied", + walBuffer2Sha1); TEST_STORAGE_LIST_EMPTY(storageTest, "repo2/archive/test/11-1/0000000100000001", .comment = "check repo2 for no WAL file"); TEST_STORAGE_LIST(
Don't start SCTP/UDP receive threads (and don't open corresponding UDP sockets) when the UDP port specified in scpt_init() is 0. This helps Howver, this removes the non-intended behaviour used in
@@ -1200,7 +1200,7 @@ recv_thread_init(void) } } } - if (SCTP_BASE_VAR(userspace_udpsctp) == -1) { + if ((SCTP_BASE_VAR(userspace_udpsctp) == -1) && (SCTP_BASE_SYSCTL(sctp_udp_tunneling_port) != 0)) { if ((SCTP_BASE_VAR(userspace_udpsctp) = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1) { #if defined(_WIN32) SCTPDBG(SCTP_DEBUG_USR, "Can't create socket for SCTP/UDP/IPv4 (errno = %d).\n", WSAGetLastError()); @@ -1337,7 +1337,7 @@ recv_thread_init(void) } } } - if (SCTP_BASE_VAR(userspace_udpsctp6) == -1) { + if ((SCTP_BASE_VAR(userspace_udpsctp6) == -1) && (SCTP_BASE_SYSCTL(sctp_udp_tunneling_port) != 0)) { if ((SCTP_BASE_VAR(userspace_udpsctp6) = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP)) == -1) { #if defined(_WIN32) SCTPDBG(SCTP_DEBUG_USR, "Can't create socket for SCTP/UDP/IPv6 (errno = %d).\n", WSAGetLastError());
Fix hashtable macro warning
@@ -2875,13 +2875,9 @@ typedef struct _PH_HASHTABLE ULONG NextEntry; } PH_HASHTABLE, *PPH_HASHTABLE; -#define PH_HASHTABLE_ENTRY_SIZE(InnerSize) (UFIELD_OFFSET(PH_HASHTABLE_ENTRY, Body) + (InnerSize)) -#define PH_HASHTABLE_GET_ENTRY(Hashtable, Index) \ - ((PPH_HASHTABLE_ENTRY)PTR_ADD_OFFSET((Hashtable)->Entries, \ - PH_HASHTABLE_ENTRY_SIZE((Hashtable)->EntrySize) * (Index))) -#define PH_HASHTABLE_GET_ENTRY_INDEX(Hashtable, Entry) \ - ((ULONG)(PTR_ADD_OFFSET(Entry, -(Hashtable)->Entries) / \ - PH_HASHTABLE_ENTRY_SIZE((Hashtable)->EntrySize))) +#define PH_HASHTABLE_ENTRY_SIZE(InnerSize) (UInt32Add32To64(UFIELD_OFFSET(PH_HASHTABLE_ENTRY, Body), (InnerSize))) +#define PH_HASHTABLE_GET_ENTRY(Hashtable, Index) ((PPH_HASHTABLE_ENTRY)PTR_ADD_OFFSET((Hashtable)->Entries, UInt32Mul32To64(PH_HASHTABLE_ENTRY_SIZE((Hashtable)->EntrySize), (Index)))) +#define PH_HASHTABLE_GET_ENTRY_INDEX(Hashtable, Entry) ((ULONG)(PTR_ADD_OFFSET(Entry, -(Hashtable)->Entries) / PH_HASHTABLE_ENTRY_SIZE((Hashtable)->EntrySize))) PHLIBAPI PPH_HASHTABLE
[kernel]Fixed issue that could all timers stop
@@ -148,13 +148,15 @@ static void _timer_init(rt_timer_t timer, * * @param timer_list is the array of time list * - * @return the next timer's ticks + * @param timeout_tick is the next timer's ticks + * + * @return Return the operation status. If the return value is RT_EOK, the function is successfully executed. + * If the return value is any other values, it means this operation failed. */ -static rt_tick_t _timer_list_next_timeout(rt_list_t timer_list[]) +static rt_err_t _timer_list_next_timeout(rt_list_t timer_list[], rt_tick_t *timeout_tick) { struct rt_timer *timer; register rt_base_t level; - rt_tick_t timeout_tick = RT_TICK_MAX; /* disable interrupt */ level = rt_hw_interrupt_disable(); @@ -163,13 +165,18 @@ static rt_tick_t _timer_list_next_timeout(rt_list_t timer_list[]) { timer = rt_list_entry(timer_list[RT_TIMER_SKIP_LIST_LEVEL - 1].next, struct rt_timer, row[RT_TIMER_SKIP_LIST_LEVEL - 1]); - timeout_tick = timer->timeout_tick; + *timeout_tick = timer->timeout_tick; + + /* enable interrupt */ + rt_hw_interrupt_enable(level); + + return RT_EOK; } /* enable interrupt */ rt_hw_interrupt_enable(level); - return timeout_tick; + return -RT_ERROR; } /** @@ -565,6 +572,7 @@ rt_err_t rt_timer_control(rt_timer_t timer, int cmd, void *arg) break; case RT_TIMER_CTRL_SET_TIME: + RT_ASSERT((*(rt_tick_t *)arg) < RT_TICK_MAX / 2); timer->init_tick = *(rt_tick_t *)arg; break; @@ -682,7 +690,9 @@ void rt_timer_check(void) */ rt_tick_t rt_timer_next_timeout_tick(void) { - return _timer_list_next_timeout(_timer_list); + rt_tick_t next_timeout = RT_TICK_MAX; + _timer_list_next_timeout(_timer_list, &next_timeout); + return next_timeout; } #ifdef RT_USING_TIMER_SOFT @@ -776,8 +786,7 @@ static void _timer_thread_entry(void *parameter) while (1) { /* get the next timeout tick */ - next_timeout = _timer_list_next_timeout(_soft_timer_list); - if (next_timeout == RT_TICK_MAX) + if (_timer_list_next_timeout(_soft_timer_list, &next_timeout) != RT_EOK) { /* no software timer exist, suspend self. */ rt_thread_suspend(rt_thread_self());
io-libs/adios: fix description of python package
@@ -76,7 +76,7 @@ Summary: Bindings for %{python_flavor} to adios Group: %{PROJ_NAME}/io-libs BuildRequires: %{python_prefix}-numpy-%{compiler_family}%{PROJ_DELIM} Requires: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM} = %{version}-%{release} -%description -n %{python_flavor}-%{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM} +%description -n %{python_prefix}-%{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM} This package includes the %{python_flavor} API to provide a helpful interface to Adios through Python
estdelay tests
@@ -8,6 +8,42 @@ tests/test-estdelay: estdelay traj phantom nrmse rm *.ra ; cd .. ; rmdir $(TESTS_TMP) touch $@ +tests/test-estdelay-coils: estdelay traj phantom nrmse + set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\ + $(TOOLDIR)/traj -G -q0.3:-0.1:0.2 -y5 t.ra ;\ + $(TOOLDIR)/traj -G -r -y5 n.ra ;\ + $(TOOLDIR)/scale 0.5 n.ra ns.ra ;\ + $(TOOLDIR)/scale 0.5 t.ra ts.ra ;\ + $(TOOLDIR)/phantom -s8 -k -t ts.ra k.ra ;\ + $(TOOLDIR)/traj -G -q`$(TOOLDIR)/estdelay ns.ra k.ra` -y5 t2.ra ;\ + $(TOOLDIR)/nrmse -t 0.004 t.ra t2.ra ;\ + rm *.ra ; cd .. ; rmdir $(TESTS_TMP) + touch $@ + +tests/test-estdelay-ring: estdelay traj phantom nrmse + set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\ + $(TOOLDIR)/traj -G -q0.3:-0.1:0.2 -c -y5 t.ra ;\ + $(TOOLDIR)/traj -G -c -r -y5 n.ra ;\ + $(TOOLDIR)/scale 0.5 n.ra ns.ra ;\ + $(TOOLDIR)/scale 0.5 t.ra ts.ra ;\ + $(TOOLDIR)/phantom -k -t ts.ra k.ra ;\ + $(TOOLDIR)/traj -G -q`$(TOOLDIR)/estdelay -R ns.ra k.ra` -c -y5 t2.ra ;\ + $(TOOLDIR)/nrmse -t 0.003 t.ra t2.ra ;\ + rm *.ra ; cd .. ; rmdir $(TESTS_TMP) + touch $@ + +tests/test-estdelay-scale: estdelay scale traj phantom nrmse + set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\ + $(TOOLDIR)/traj -D -q1.5:1:-0.5 -r -y8 t.ra ;\ + $(TOOLDIR)/scale 0.5 t.ra ts.ra ;\ + $(TOOLDIR)/phantom -k -t ts.ra k.ra ;\ + $(TOOLDIR)/traj -D -q`$(TOOLDIR)/estdelay ts.ra k.ra` -r -y8 t2.ra ;\ + $(TOOLDIR)/scale 0.5 t2.ra t2s.ra ;\ + $(TOOLDIR)/nrmse -t 0.0001 ts.ra t2s.ra ;\ + rm *.ra ; cd .. ; rmdir $(TESTS_TMP) + touch $@ + + -TESTS += tests/test-estdelay +TESTS += tests/test-estdelay tests/test-estdelay-ring tests/test-estdelay-coils tests/test-estdelay-scale
sse: add missing simde_mm_cvttss_si32 (alias for simde_mm_cvtt_ss2si)
@@ -1627,6 +1627,7 @@ simde_mm_cvtt_ss2si (simde__m128 a) { #endif #endif } +#define simde_mm_cvttss_si32(a) simde_mm_cvtt_ss2si((a)) #if defined(SIMDE_X86_SSE_ENABLE_NATIVE_ALIASES) # define _mm_cvtt_ss2si(a) simde_mm_cvtt_ss2si((a)) # define _mm_cvttss_si32(a) simde_mm_cvtt_ss2si((a))
dummy_afu: retain loopback buffers through reset Hold a reference to the shared buffer pointers so that they are not freed before afu reset is asserted.
#include "dummy_afu.h" using namespace opae::app; +using opae::fpga::types::shared_buffer; + namespace dummy_afu { class lpbk_test : public test_command @@ -50,17 +52,21 @@ public: (void)app; auto d_afu = dynamic_cast<dummy_afu*>(afu); auto done = d_afu->register_interrupt(); - auto source = d_afu->allocate(64); - d_afu->fill(source); - auto destination = d_afu->allocate(64); - d_afu->write64(MEM_TEST_SRC_ADDR, source->io_address()); - d_afu->write64(MEM_TEST_DST_ADDR, destination->io_address()); + source_ = d_afu->allocate(64); + d_afu->fill(source_); + destination_ = d_afu->allocate(64); + d_afu->write64(MEM_TEST_SRC_ADDR, source_->io_address()); + d_afu->write64(MEM_TEST_DST_ADDR, destination_->io_address()); d_afu->write64(MEM_TEST_CTRL, 0x0); d_afu->write64(MEM_TEST_CTRL, 0b1); d_afu->interrupt_wait(done, 1000); - d_afu->compare(source, destination); + d_afu->compare(source_, destination_); return 0; } + +protected: + shared_buffer::ptr_t source_; + shared_buffer::ptr_t destination_; }; } // end of namespace dummy_afu
Add a test to validate copy to read only lifetime
@@ -1401,6 +1401,10 @@ Copy fail: AES, invalid lifetime (unknown location) in attributes depends_on:PSA_WANT_ALG_CTR:PSA_WANT_KEY_TYPE_AES:MBEDTLS_PSA_CRYPTO_STORAGE_C:!MBEDTLS_PSA_CRYPTO_DRIVERS copy_fail:PSA_KEY_USAGE_COPY | PSA_KEY_USAGE_ENCRYPT | PSA_KEY_USAGE_EXPORT:PSA_ALG_CTR:0:0:PSA_KEY_TYPE_AES:"404142434445464748494a4b4c4d4e4f":PSA_KEY_TYPE_AES:0:PSA_KEY_USAGE_COPY | PSA_KEY_USAGE_ENCRYPT | PSA_KEY_USAGE_EXPORT:PSA_ALG_CTR:0:1:PSA_KEY_LIFETIME_FROM_PERSISTENCE_AND_LOCATION(PSA_KEY_PERSISTENCE_DEFAULT, 11):PSA_ERROR_INVALID_ARGUMENT +Copy fail: AES, copy to a readonly lifetime in attributes +depends_on:PSA_WANT_ALG_CTR:PSA_WANT_KEY_TYPE_AES:MBEDTLS_PSA_CRYPTO_STORAGE_C +copy_fail:PSA_KEY_USAGE_COPY | PSA_KEY_USAGE_ENCRYPT | PSA_KEY_USAGE_EXPORT:PSA_ALG_CTR:0:0:PSA_KEY_TYPE_AES:"404142434445464748494a4b4c4d4e4f":PSA_KEY_TYPE_AES:0:PSA_KEY_USAGE_COPY | PSA_KEY_USAGE_ENCRYPT | PSA_KEY_USAGE_EXPORT:PSA_ALG_CTR:0:1:PSA_KEY_LIFETIME_FROM_PERSISTENCE_AND_LOCATION( PSA_KEY_PERSISTENCE_READ_ONLY, 0 ):PSA_ERROR_INVALID_ARGUMENT + Copy fail: AES, across locations (unsupported) in attributes depends_on:PSA_WANT_ALG_CTR:PSA_WANT_KEY_TYPE_AES:MBEDTLS_PSA_CRYPTO_DRIVERS copy_fail:PSA_KEY_USAGE_COPY | PSA_KEY_USAGE_ENCRYPT | PSA_KEY_USAGE_EXPORT:PSA_ALG_CTR:0:PSA_KEY_LIFETIME_FROM_PERSISTENCE_AND_LOCATION(PSA_KEY_PERSISTENCE_VOLATILE, TEST_DRIVER_LOCATION):PSA_KEY_TYPE_AES:"404142434445464748494a4b4c4d4e4f":PSA_KEY_TYPE_AES:0:PSA_KEY_USAGE_COPY | PSA_KEY_USAGE_ENCRYPT | PSA_KEY_USAGE_EXPORT:PSA_ALG_CTR:0:1:PSA_KEY_LIFETIME_FROM_PERSISTENCE_AND_LOCATION(PSA_KEY_PERSISTENCE_VOLATILE, 0):PSA_ERROR_NOT_SUPPORTED
refactors DER ASN.1 parser
%+ cook |*(a=* `spec:asn1`a) :: ^- $-(nail (like spec:asn1)) ;~ pose - %+ stag %int - %+ bass 256 - %+ sear + (stag %int (bass 256 (sear int ;~(pfix (tag 2) till)))) + (stag %bit (boss 256 (cook tail ;~(pfix (tag 3) till)))) :: XX test + (stag %oct (boss 256 ;~(pfix (tag 4) till))) + (stag %nul (cold ~ ;~(plug (tag 5) (tag 0)))) + (stag %obj (boss 256 ;~(pfix (tag 6) till))) + (stag %seq (sear recur ;~(pfix (tag 48) till))) + (stag %set (sear recur ;~(pfix (tag 49) till))) + (stag %con ;~(plug (sear context next) till)) + == + :: + ++ tag :: tag byte + |=(a=@ (just a)) + :: + ++ int :: @u big endian |= a=(list @) ^- (unit (list @)) ?~ a ~ ?: ?=([@ ~] a) `a ?. =(0 i.a) `a ?.((gth i.t.a 127) ~ `t.a) - ;~(pfix (just `@`2) till) :: - (stag %bit (boss 256 (cook tail ;~(pfix (just `@`3) till)))) :: XX test - (stag %oct (boss 256 ;~(pfix (just `@`4) till))) - (stag %nul (cold ~ ;~(plug (just `@`5) (just `@`0)))) - (stag %obj (boss 256 ;~(pfix (just `@`6) till))) - :: - %+ stag %seq - %+ sear + ++ recur |=(a=(list @) (rust a (star decode))) :: XX plus? curr? - ;~(pfix (just `@`48) till) :: - %+ stag %set - %+ sear - |=(a=(list @) (rust a (star decode))) :: XX plus? curr? - ;~(pfix (just `@`49) till) - :: - %+ stag %con - ;~ plug - %+ sear + ++ context :: context-specific tag |= a=@ ^- (unit [? @udC]) ?. =(1 (cut 0 [7 1] a)) ~ :+ ~ =(1 (cut 0 [5 1] a)) (dis 0x1f a) - next - till - == - == :: ++ till :: len-prefixed bytes |= tub/nail
Don't require a default digest from signature algorithms Some signature algorithms don't need a default digest, so don't fail if we don't have one.
@@ -172,9 +172,6 @@ static int do_sigver_init(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, locmdname, sizeof(locmdname)) > 0) { mdname = canon_mdname(locmdname); - } else { - EVPerr(EVP_F_DO_SIGVER_INIT, EVP_R_NO_DEFAULT_DIGEST); - return 0; } }
libhfuzz: remove always_inline attribute
#include "instrument.h" -__attribute__ ((always_inline)) static inline int _strcmp(const char *s1, const char *s2, void *addr) { unsigned int v = 0; @@ -24,7 +23,6 @@ int __wrap_strcmp(const char *s1, const char *s2) return _strcmp(s1, s2, __builtin_return_address(0)); } -__attribute__ ((always_inline)) static inline int _strcasecmp(const char *s1, const char *s2, void *addr) { unsigned int v = 0; @@ -45,7 +43,6 @@ int __wrap_strcasecmp(const char *s1, const char *s2) return _strcasecmp(s1, s2, __builtin_return_address(0)); } -__attribute__ ((always_inline)) static inline int _strncmp(const char *s1, const char *s2, size_t n, void *addr) { if (n == 0) {
Fix non-portable u_int64_t
@@ -135,7 +135,7 @@ int CNAME(BLASLONG m, BLASLONG n, IFLOAT *a, BLASLONG lda, IFLOAT *b){ 0x0, 0x1, 0x2, 0x3, 0x10, 0x11, 0x12, 0x13, 0x8, 0x9, 0xa, 0xb, 0x18, 0x19, 0x1a, 0x1b, 0x4, 0x5, 0x6, 0x7, 0x14, 0x15, 0x16, 0x17, 0xc, 0xd, 0xe, 0xf, 0x1c, 0x1d, 0x1e, 0x1f, }; - u_int64_t permute_table2[] = { + uint64_t permute_table2[] = { 0x00, 0x01, 0x02, 0x03, 8|0x0, 8|0x1, 8|0x2, 8|0x3, 0x04, 0x05, 0x06, 0x07, 8|0x4, 8|0x5, 8|0x6, 8|0x7, };
Optionally add ReLAPACK to LIB_COMPONENTS
@@ -387,6 +387,9 @@ if (NOT NO_LAPACK) if (NOT NO_LAPACKE) set(LIB_COMPONENTS "${LIB_COMPONENTS} LAPACKE") endif () + if (BUILD_RELAPACK) + set(LIB_COMPONENTS "${LIB_COMPONENTS} ReLAPACK") + endif () endif () if (ONLY_CBLAS)
[Rust] Install build products to sysroot/usr/applications/ instead of initrd/
@@ -158,9 +158,9 @@ def build_rust_programs(check_only: bool = False) -> None: # binary = entry / 'target' / 'x86_64-unknown-axle' / 'release' / entry.name binary = cargo_workspace_dir / 'target' / 'x86_64-unknown-axle' / 'release' / entry.name if binary.exists(): - print(f'Moving build result to initrd: {binary}') - initrd_dir = _REPO_ROOT / 'initrd' - shutil.copy(binary.as_posix(), initrd_dir) + print(f'Moving build result to sysroot: {binary}') + sysroot_applications_dir = _REPO_ROOT / "axle-sysroot" / "usr" / "applications" + shutil.copy(binary.as_posix(), sysroot_applications_dir) def main() -> None:
docs: more items for ChangeLog
@@ -4,6 +4,17 @@ Version 1.3.7 (March 2019) [Important Highlights/Notices] + * The provided SLURM builds have been updated to the 18.08 release series. Please see the SLURM release notes at + https://github.com/SchedMD/slurm/blob/slurm-18.08/RELEASE_NOTES for details on upgrade procedures from previous + versions; in particular, sites leveraging slurmdbd are advised to update this component first. + + * CI testing for this release with newer versions of Intel MPI (2019.x) found that MPI applications linked against + these versions may no longer execute outside of the resource manager. If observed locally, users are advised to try + setting the following environment variable as highlighted in the following discussion: + https://software.intel.com/en-us/forums/intel-clusters-and-hpc-technology/topic/799716. + + $ export FI_PROVIDER=sockets + * Warewulf now packages iPXE in an architecture-specific RPM. Upgrading from previous versions will require installing warewulf-provision-server-ipxe-aarch64-ohpc or warewulf-provision-server-ipxe-x86_64-ohpc. @@ -18,6 +29,10 @@ Version 1.3.7 (March 2019) [General] * updates to support target distro versions of CentOS 7.6 and SLES12 SP4 + * re-enable genders support for pdsh (https://github.com/openhpc/ohpc/issues/885) + * enable support for NVME devices in Warewulf provisioning (https://github.com/openhpc/ohpc/issues/890) + * update ganglia dependency to call out shadow/shadow-utils (https://github.com/openhpc/ohpc/issues/938) + * update munge startup configuration to write to syslog (https://github.com/openhpc/ohpc/issues/943) * variety of component version updates and other additions highlighted below [Component Version Changes] @@ -49,7 +64,7 @@ Version 1.3.7 (March 2019) * hypre-intel-mvapich2-ohpc (2.14.0 -> 2.15.1) * hypre-intel-openmpi3-ohpc (2.14.0 -> 2.15.1) * intel-compilers-devel-ohpc (2018 -> 2019) - * intel-mpi-devel-ohpc (2018 -> 2019) +lik * intel-mpi-devel-ohpc (2018 -> 2019) * kmod-lustre-client-ohpc (2.11.0 -> 2.12.0) * kmod-lustre-client-ohpc-tests (2.11.0 -> 2.12.0) * likwid-gnu8-ohpc (4.3.2 -> 4.3.3)
Fix handling of infinite results from install_filter.
@@ -467,19 +467,24 @@ change_route(int operation, const struct babel_route *route, int metric, int new_ifindex, int new_metric) { struct filter_result filter_result; - unsigned char *pref_src = NULL; unsigned int ifindex = route->neigh->ifp->ifindex; int m = install_filter(route->src->prefix, route->src->plen, route->src->src_prefix, route->src->src_plen, ifindex, &filter_result); - if (m < INFINITY) - pref_src = filter_result.pref_src; + if(m >= INFINITY) { + if(operation == ROUTE_ADD) + return 0; + else if(operation == ROUTE_MODIFY) { + operation = ROUTE_FLUSH; + } + } int table = filter_result.table ? filter_result.table : export_table; return kernel_route(operation, table, route->src->prefix, route->src->plen, - route->src->src_prefix, route->src->src_plen, pref_src, + route->src->src_prefix, route->src->src_plen, + filter_result.pref_src, route->nexthop, ifindex, metric, new_next_hop, new_ifindex, new_metric, operation == ROUTE_MODIFY ? table : 0);
decision: replace usize with ukey in calculation example
@@ -260,22 +260,22 @@ As an example, let's take `user:/hosts/ipv6/example.com = 2606:2800:220:1:248:18 For a single key, it would take for the COW implementation: -`sizeof(_Key) + sizeof(_KeyName) + sizeof(_KeyData) + name + 1 /* \0 */ + usize + value + 1 /* \0 */` = +`sizeof(_Key) + sizeof(_KeyName) + sizeof(_KeyData) + name + 1 /* \0 */ + ukey + value + 1 /* \0 */` = 32 + 40 + 24 + 28 + 1 + 25 + 34 + 1 = 185 bytes. For two keys (one original and one copy), it would take for the COW implementation: -`sizeof(_Key)*2 + sizeof(_KeyName) + sizeof(_KeyData) + name + 1 /* \0 */ + usize + value + 1 /* \0 */` = +`sizeof(_Key)*2 + sizeof(_KeyName) + sizeof(_KeyData) + name + 1 /* \0 */ + ukey + value + 1 /* \0 */` = 32*2 + 40 + 24 + 28 + 1 + 25 + 34 + 1 = 217 bytes. For a single key, it would take the current implementation: -`sizeof(_Key) + name + 1 + usize + value + 1` = +`sizeof(_Key) + name + 1 + ukey + value + 1` = 64 + 28 + 1 + 25 + 34 + 1 = 153 bytes For two keys, the current implementation would take: -`(sizeof(_Key) + name + 1 + usize + value + 1) * 2` = +`(sizeof(_Key) + name + 1 + ukey + value + 1) * 2` = (64 + 28 + 1 + 25 + 34 + 1) * 2 = 306 bytes. #### Changes to `KeySet`
http_client: fix header_lookup() to honor the header/body boundery header_lookup() has a bug that it goes over the boundary line and finds matches in the body part. This patch fixes the bug by limiting its search scope to the HTTP header section.
@@ -58,11 +58,13 @@ static int header_lookup(struct flb_http_client *c, { char *p; char *crlf; + char *end; /* Lookup the beginning of the header */ p = strcasestr(c->resp.data, header); + end = strstr(c->resp.data, "\r\n\r\n"); if (!p) { - if (strstr(c->resp.data, "\r\n\r\n")) { + if (end) { /* The headers are complete but the header is not there */ return FLB_HTTP_NOT_FOUND; } @@ -71,6 +73,11 @@ static int header_lookup(struct flb_http_client *c, return FLB_HTTP_MORE; } + /* Exclude matches in the body */ + if (end && p > end) { + return FLB_HTTP_NOT_FOUND; + } + /* Lookup CRLF (end of line \r\n) */ crlf = strstr(p, "\r\n"); if (!crlf) {
Adding explicit braces
@@ -1213,7 +1213,7 @@ oc_ri_invoke_coap_entity_handler(void *request, void *response, uint8_t *buffer, !resource_is_collection && #endif /* OC_COLLECTIONS */ cur_resource && (method == OC_PUT || method == OC_POST) && - response_buffer.code < oc_status_code(OC_STATUS_BAD_REQUEST)) + response_buffer.code < oc_status_code(OC_STATUS_BAD_REQUEST)) { if ((iface_mask == OC_IF_STARTUP) || (iface_mask == OC_IF_STARTUP_REVERT)) { oc_resource_defaults_data_t* resource_defaults_data = oc_ri_alloc_resource_defaults(); @@ -1226,6 +1226,7 @@ oc_ri_invoke_coap_entity_handler(void *request, void *response, uint8_t *buffer, oc_ri_add_timed_event_callback_ticks( cur_resource, &oc_observe_notification_delayed, 0); } + } #endif /* OC_SERVER */ if (response_buffer.response_length > 0) {
Removing unnecessary include of oc_log.h
#include <stdio.h> #include "oc_enums.h" -#include "oc_log.h" static const char *pos_desc[] = { "unknown", "top", "bottom", "left", "right", "centre",
BugID:17711858: Redefine stat structure to shield the C library difference
@@ -82,21 +82,9 @@ int aos_sync(int fd) return _vfs_to_aos_res(vfs_sync(fd)); } -int aos_stat(const char *path, struct stat *st) +int aos_stat(const char *path, struct aos_stat *st) { - int ret; - vfs_stat_t stat; - - memset(&stat, 0, sizeof(vfs_stat_t)); - ret = _vfs_to_aos_res(vfs_stat(path, &stat)); - - st->st_mode = stat.st_mode; - -#if VFS_STAT_INCLUDE_SIZE - st->st_size = stat.st_size; -#endif - - return ret; + return _vfs_to_aos_res(vfs_stat(path, (vfs_stat_t *)st)); } int aos_unlink(const char *path) @@ -149,7 +137,7 @@ void aos_seekdir(aos_dir_t *dir, long loc) vfs_seekdir((vfs_dir_t *)dir, loc); } -int aos_statfs(const char *path, struct statfs *buf) +int aos_statfs(const char *path, struct aos_statfs *buf) { return _vfs_to_aos_res(vfs_statfs(path, (vfs_statfs_t *)buf)); }
filter: do not process new buffer if it size is zero
@@ -93,6 +93,12 @@ void flb_filter_do(msgpack_sbuffer *mp_sbuf, msgpack_packer *mp_pck, /* Override buffer just if it was modified */ if (ret == FLB_FILTER_MODIFIED) { + /* all records removed */ + if (out_size == 0) { + mp_sbuf->size = 0; + continue; + } + flb_filter_replace(mp_sbuf, mp_pck, /* msgpack */ bytes, /* passed data */ out_buf, out_size); /* new data */
Remove unused _bt_delitems_delete() argument. The latestRemovedXid values used by nbtree deletion operations are determined by _bt_delitems_delete()'s caller, so there is no reason to pass a separate heapRel argument. Oversight in commit
@@ -41,8 +41,7 @@ static void _bt_log_reuse_page(Relation rel, BlockNumber blkno, static void _bt_delitems_delete(Relation rel, Buffer buf, TransactionId latestRemovedXid, OffsetNumber *deletable, int ndeletable, - BTVacuumPosting *updatable, int nupdatable, - Relation heapRel); + BTVacuumPosting *updatable, int nupdatable); static char *_bt_delitems_update(BTVacuumPosting *updatable, int nupdatable, OffsetNumber *updatedoffsets, Size *updatedbuflen, bool needswal); @@ -1260,8 +1259,7 @@ _bt_delitems_vacuum(Relation rel, Buffer buf, static void _bt_delitems_delete(Relation rel, Buffer buf, TransactionId latestRemovedXid, OffsetNumber *deletable, int ndeletable, - BTVacuumPosting *updatable, int nupdatable, - Relation heapRel) + BTVacuumPosting *updatable, int nupdatable) { Page page = BufferGetPage(buf); BTPageOpaque opaque; @@ -1650,7 +1648,7 @@ _bt_delitems_delete_check(Relation rel, Buffer buf, Relation heapRel, /* Physically delete tuples (or TIDs) using deletable (or updatable) */ _bt_delitems_delete(rel, buf, latestRemovedXid, deletable, ndeletable, - updatable, nupdatable, heapRel); + updatable, nupdatable); /* be tidy */ for (int i = 0; i < nupdatable; i++)
Fix DaemonClient exception propagation for ExecuteCmdSingleAsync
@@ -240,7 +240,7 @@ namespace Miningcore.DaemonInterface logger.LogInvoke(new[] { "\"" + method + "\"" }); var task = BuildRequestTask(logger, endPoints.First(), method, payload, CancellationToken.None, payloadJsonSerializerSettings); - await task; + await Task.WhenAny(new[] { task }); var result = MapDaemonResponse<TResponse>(0, task); return result; @@ -262,7 +262,7 @@ namespace Miningcore.DaemonInterface logger.LogInvoke(new[] { "\"" + method + "\"" }); var task = BuildRequestTask(logger, endPoints.First(), method, payload, ct, payloadJsonSerializerSettings); - await task; + await Task.WhenAny(new[] { task }); var result = MapDaemonResponse<TResponse>(0, task); return result; @@ -358,7 +358,7 @@ namespace Miningcore.DaemonInterface var responseContent = await response.Content.ReadAsStringAsync(); if (!response.IsSuccessStatusCode) - throw new HttpRequestException($"{(int) response.StatusCode} {responseContent}"); + throw new DaemonClientException(response.StatusCode, response.ReasonPhrase); // deserialize response using (var jreader = new JsonTextReader(new StringReader(responseContent)))