Skip to content

Commit

Permalink
Release 6.1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxin-azrtos committed Jul 26, 2022
1 parent bea2597 commit 193598a
Show file tree
Hide file tree
Showing 104 changed files with 1,190 additions and 948 deletions.
7 changes: 5 additions & 2 deletions addons/BSD/nxd_bsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -13577,7 +13577,7 @@ UINT index = 0;
/* FUNCTION RELEASE */
/* */
/* getaddrinfo PORTABLE C */
/* 6.1 */
/* 6.1.12 */
/* AUTHOR */
/* */
/* Yuxin Zhou, Microsoft Corporation */
Expand Down Expand Up @@ -13638,6 +13638,9 @@ UINT index = 0;
/* verified memcpy use cases, */
/* fixed compiler errors, */
/* resulting in version 6.1 */
/* 07-29-2022 Yuxin Zhou Modified comment(s), and */
/* fixed compiler warnings, */
/* resulting in version 6.1.12 */
/* */
/**************************************************************************/
INT getaddrinfo(const CHAR *node, const CHAR *service, const struct addrinfo *hints, struct addrinfo **res)
Expand Down Expand Up @@ -13772,7 +13775,7 @@ static struct addrinfo default_hints = {0, AF_UNSPEC, 0, 0, 0, NX_NULL, NX_NULL,
/* Service is a decimal port number string, and has been converted to a numeric port successfully. */

/* Convert port from host byte order to network byte order. */
port = htons(port);
port = htons((USHORT)port);
}
else
{
Expand Down
3 changes: 3 additions & 0 deletions addons/auto_ip/nx_auto_ip.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,17 @@


/* Force error checking to be disabled in this module */
#include "tx_port.h"

#ifndef NX_DISABLE_ERROR_CHECKING
#define NX_DISABLE_ERROR_CHECKING
#endif

#ifndef TX_SAFETY_CRITICAL
#ifndef TX_DISABLE_ERROR_CHECKING
#define TX_DISABLE_ERROR_CHECKING
#endif
#endif


/* Include necessary system files. */
Expand Down
2 changes: 1 addition & 1 deletion addons/azure_iot/azure-sdk-for-c
Submodule azure-sdk-for-c updated 74 files
+6 −6 .github/CODEOWNERS
+5 −0 CHANGELOG.md
+4 −3 CMakeLists.txt
+5 −0 README.md
+1 −1 cmake-modules/AddAzureSDKforC.cmake
+17 −3 eng/cmake/global_compile_options.cmake
+29 −39 eng/common/TestResources/New-TestResources.ps1
+1 −2 eng/common/TestResources/New-TestResources.ps1.md
+44 −1 eng/common/TestResources/README.md
+36 −15 eng/common/TestResources/Remove-TestResources.ps1
+5 −2 eng/common/TestResources/Remove-TestResources.ps1.md
+20 −0 eng/common/TestResources/SubConfig-Helpers.ps1
+4 −5 eng/common/TestResources/Update-TestResources.ps1
+2 −1 eng/common/TestResources/deploy-test-resources.yml
+6 −4 eng/common/TestResources/remove-test-resources.yml
+21 −8 eng/common/docgeneration/Generate-DocIndex.ps1
+6 −6 eng/common/docgeneration/templates/matthews/partials/class.header.tmpl.partial
+5 −5 eng/common/docgeneration/templates/matthews/partials/class.tmpl.partial
+5 −0 eng/common/pipelines/templates/steps/check-spelling.yml
+0 −12 eng/common/pipelines/templates/steps/cosmos-emulator.yml
+8 −1 eng/common/pipelines/templates/steps/create-apireview.yml
+5 −3 eng/common/pipelines/templates/steps/credscan.yml
+1 −1 eng/common/pipelines/templates/steps/install-pipeline-generation.yml
+8 −0 eng/common/pipelines/templates/steps/prepare-pipelines.yml
+4 −2 eng/common/pipelines/templates/steps/publish-blobs.yml
+3 −2 eng/common/pipelines/templates/steps/sparse-checkout.yml
+77 −70 eng/common/pipelines/templates/steps/update-docsms-metadata.yml
+18 −0 eng/common/pipelines/templates/steps/validate-filename.yml
+18 −6 eng/common/pipelines/templates/steps/verify-readme.yml
+14 −4 eng/common/pipelines/templates/steps/verify-samples.yml
+99 −62 eng/common/scripts/ChangeLog-Operations.ps1
+95 −27 eng/common/scripts/Delete-RemoteBranches.ps1
+51 −0 eng/common/scripts/Helpers/Metadata-Helpers.ps1
+12 −3 eng/common/scripts/Helpers/PSModule-Helpers.ps1
+37 −0 eng/common/scripts/Helpers/Package-Helpers.ps1
+53 −19 eng/common/scripts/Invoke-GitHubAPI.ps1
+6 −0 eng/common/scripts/Save-Package-Properties.ps1
+231 −0 eng/common/scripts/Service-Level-Readme-Automation.ps1
+1 −0 eng/common/scripts/Test-SampleMetadata.ps1
+21 −15 eng/common/scripts/Update-DocsMsMetadata.ps1
+13 −15 eng/common/scripts/Update-DocsMsToc.ps1
+91 −10 eng/common/scripts/Verify-Readme.ps1
+11 −2 eng/common/scripts/Verify-Resource-Ref.ps1
+2 −0 eng/common/scripts/common.ps1
+1 −1 eng/common/scripts/get-codeowners.ps1
+31 −8 eng/common/scripts/job-matrix/README.md
+3 −3 eng/common/scripts/job-matrix/job-matrix-functions.ps1
+28 −1 eng/common/scripts/job-matrix/tests/job-matrix-functions.modification.tests.ps1
+4 −1 eng/common/scripts/stress-testing/deploy-stress-tests.ps1
+13 −12 eng/common/scripts/stress-testing/find-all-stress-packages.ps1
+30 −11 eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1
+3 −7 eng/common/testproxy/docker-start-proxy.ps1
+1 −1 eng/common/testproxy/target_version.txt
+16 −1 eng/common/testproxy/test-proxy-tool.yml
+4 −4 eng/pipelines/templates/jobs/archetype-sdk-client.yml
+2 −2 sdk/inc/azure/core/az_version.h
+11 −0 sdk/inc/azure/core/internal/az_config_internal.h
+11 −0 sdk/inc/azure/core/internal/az_credentials_internal.h
+11 −0 sdk/inc/azure/core/internal/az_http_internal.h
+11 −0 sdk/inc/azure/core/internal/az_log_internal.h
+5 −0 sdk/inc/azure/core/internal/az_precondition_internal.h
+11 −0 sdk/inc/azure/core/internal/az_retry_internal.h
+11 −0 sdk/inc/azure/core/internal/az_span_internal.h
+11 −0 sdk/src/azure/core/az_hex_private.h
+4 −0 sdk/src/azure/core/az_http_header_validation_private.h
+11 −0 sdk/src/azure/core/az_http_policy_logging_private.h
+0 −2 sdk/src/azure/core/az_http_policy_retry.c
+11 −0 sdk/src/azure/core/az_http_private.h
+11 −0 sdk/src/azure/core/az_json_private.h
+11 −0 sdk/src/azure/core/az_span_private.h
+1 −1 sdk/tests/core/CMakeLists.txt
+1 −1 sdk/tests/iot/common/CMakeLists.txt
+1 −1 sdk/tests/iot/hub/CMakeLists.txt
+1 −1 sdk/tests/iot/provisioning/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CONF_DEFINE_BASE(${g_core_config_path} base_dist.cmake)
# DIST: overwrite configuration for specific distribution
set(SECURITY_MODULE_VERSION_MAJOR 3)
set(SECURITY_MODULE_VERSION_MINOR 5)
set(SECURITY_MODULE_VERSION_PATCH 2)
set(SECURITY_MODULE_VERSION_PATCH 3)

set(ASC_COMPONENT_CONFIGURATION OFF)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ extern "C" {
/********************
* Core configuration
*********************/
/* Based on 2021.09.28-3.5.1 core tag */
/* Based on 2022.07.19-3.5.3 core tag */

/* ID and version */
#define ASC_SECURITY_MODULE_ID "defender-iot-micro-agent"
#define SECURITY_MODULE_VERSION_MAJOR 3
#define SECURITY_MODULE_VERSION_MINOR 5
#define SECURITY_MODULE_VERSION_PATCH 2
#define SECURITY_MODULE_VERSION_PATCH 3
#ifndef SECURITY_MODULE_VERSION_MAJOR
#define SECURITY_MODULE_VERSION_MAJOR 0
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ extern "C" {
/********************
* Core configuration
*********************/
/* Based on 2021.09.28-3.5.1 core tag */
/* Based on 2022.07.19-3.5.3 core tag */

/* ID and version */
#define ASC_SECURITY_MODULE_ID "defender-iot-micro-agent"
#define SECURITY_MODULE_VERSION_MAJOR 3
#define SECURITY_MODULE_VERSION_MINOR 5
#define SECURITY_MODULE_VERSION_PATCH 2
#define SECURITY_MODULE_VERSION_PATCH 3
#ifndef SECURITY_MODULE_VERSION_MAJOR
#define SECURITY_MODULE_VERSION_MAJOR 0
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ extern "C" {
/********************
* Core configuration
*********************/
/* Based on 2021.09.28-3.5.1 core tag */
/* Based on 2022.07.19-3.5.3 core tag */

/* ID and version */
#define ASC_SECURITY_MODULE_ID "defender-iot-micro-agent"
#define SECURITY_MODULE_VERSION_MAJOR 3
#define SECURITY_MODULE_VERSION_MINOR 5
#define SECURITY_MODULE_VERSION_PATCH 2
#define SECURITY_MODULE_VERSION_PATCH 3
#ifndef SECURITY_MODULE_VERSION_MAJOR
#define SECURITY_MODULE_VERSION_MAJOR 0
#endif
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/********************
* Core configuration
*********************/
/* Based on 2021.09.28-3.5.1 core tag */
/* Based on 2022.07.19-3.5.3 core tag */

/* ID and version */
#cmakedefine ASC_SECURITY_MODULE_ID "@ASC_SECURITY_MODULE_ID@"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ extern "C" {

/* flatcc/portable/pendian.h sets LITTLE/BIG flags if possible, and always defines le16toh. */
#ifndef flatbuffers_is_native_pe
#if defined(__LITTLE_ENDIAN__) || FLATBUFFERS_LITTLEENDIAN
#if (__LITTLE_ENDIAN__==1) || FLATBUFFERS_LITTLEENDIAN
#undef FLATBUFFERS_LITTLEENDIAN
#define FLATBUFFERS_LITTLEENDIAN 1
#define flatbuffers_is_native_pe() (FLATBUFFERS_PROTOCOL_IS_LE)
#elif defined(__BIG_ENDIAN__) || (defined(FLATBUFFERS_LITTLEENDIAN) && !FLATBUFFERS_LITTLEENDIAN)
#elif (__BIG_ENDIAN__==1) || (defined(FLATBUFFERS_LITTLEENDIAN) && !FLATBUFFERS_LITTLEENDIAN)
#undef FLATBUFFERS_LITTLEENDIAN
#define FLATBUFFERS_LITTLEENDIAN 0
#define flatbuffers_is_native_pe() (FLATBUFFERS_PROTOCOL_IS_BE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ extern "C" {
/* Assume it goes for all. */
#if !defined(le16toh)

#if defined(__LITTLE_ENDIAN__)
#if (__LITTLE_ENDIAN__==1)

#define le16toh(v) (v)
#define le32toh(v) (v)
Expand All @@ -149,7 +149,7 @@ extern "C" {
#define htobe32(v) bswap32(v)
#define htobe64(v) bswap64(v)

#elif defined(__BIG_ENDIAN__)
#elif (__BIG_ENDIAN__==1)

#define le16toh(v) bswap16(v)
#define le32toh(v) bswap32(v)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ extern "C" {

#ifdef __BYTE_ORDER__

#if defined(__LITTLE_ENDIAN__) && __BYTE_ORDER__ != __ORDER_LITTLE_ENDIAN__
#if (__LITTLE_ENDIAN__ == 1) && __BYTE_ORDER__ != __ORDER_LITTLE_ENDIAN__
#error __LITTLE_ENDIAN__ inconsistent with __BYTE_ORDER__
#endif

#if defined(__BIG_ENDIAN__) && __BYTE_ORDER__ != __ORDER_BIG_ENDIAN__
#if (__BIG_ENDIAN__ == 1) && __BYTE_ORDER__ != __ORDER_BIG_ENDIAN__
#error __BIG_ENDIAN__ inconsistent with __BYTE_ORDER__
#endif

#else /* __BYTE_ORDER__ */


#if \
defined(__LITTLE_ENDIAN__) || \
(__LITTLE_ENDIAN__ == 1) || \
(defined(__BYTE_ORDER) && __BYTE_ORDER == __ORDER_LITTLE_ENDIAN) || \
defined(__ARMEL__) || defined(__THUMBEL__) || \
defined(__AARCH64EL__) || \
Expand All @@ -64,7 +64,7 @@ extern "C" {
#endif

#if \
defined (__BIG_ENDIAN__) || \
(__BIG_ENDIAN__ == 1) || \
(defined(__BYTE_ORDER) && __BYTE_ORDER == __ORDER_BIG_ENDIAN) || \
defined(__ARMEB__) || defined(THUMBEB__) || defined (__AARCH64EB__) || \
defined(_MIPSEB) || defined(__MIPSEB) || defined(__MIPSEB__) || \
Expand Down Expand Up @@ -107,7 +107,7 @@ extern "C" {
#endif
#endif /* __BYTE_ORDER__ */

#if defined(__LITTLE_ENDIAN__) && defined(__BIG_ENDIAN__)
#if (__LITTLE_ENDIAN__ == 1) && (__BIG_ENDIAN__ == 1)
#error conflicting definitions of __LITTLE_ENDIAN__ and __BIG_ENDIAN__
#endif

Expand Down
2 changes: 1 addition & 1 deletion addons/azure_iot/nx_azure_iot_hub_client_properties.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ UINT system_component;
return(NX_AZURE_IOT_INVALID_PARAMETER);
}

component_name = az_span_create((UCHAR *)component_name_pptr, (INT)*component_name_length_ptr);
component_name = az_span_create((UCHAR *)*component_name_pptr, (INT)*component_name_length_ptr);
core_message_type = (message_type == NX_AZURE_IOT_HUB_PROPERTIES) ? AZ_IOT_HUB_CLIENT_PROPERTIES_MESSAGE_TYPE_GET_RESPONSE :
AZ_IOT_HUB_CLIENT_PROPERTIES_MESSAGE_TYPE_WRITABLE_UPDATED;
core_property_type = (property_type == NX_AZURE_IOT_HUB_CLIENT_PROPERTY_REPORTED_FROM_DEVICE) ? AZ_IOT_HUB_CLIENT_PROPERTY_REPORTED_FROM_DEVICE :
Expand Down
Loading

0 comments on commit 193598a

Please sign in to comment.