From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 0E1C9740035 for ; Thu, 18 Jul 2024 16:44:09 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=P4vSA8immVD0ZLeA8JNVpP3NrifBuFe6Z25wmrOuxFc=; c=relaxed/simple; d=groups.io; h=From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20240206; t=1721321049; v=1; b=pktCTuJuzK82km/JrfdE9TutQc0HDCS1YflU+02fQ9XbfCGod/mx/1gdwx9b5kVB3ydHWH0l MrPTCxxHvRPse4Td5R+hnh4EIj4BgcOIROfe0jrwbTyl/jXNaf9FjKeVm0ewXuPQtf8zfVKNgNc CLiS9jvB9fyG3dndladJRe6nPAZVqB/vUYGtuO55K/OnnEVdJWGlgG6ojucHSyjbkWA3u50YBpT TsTCIX2ItyWk5nKIPaED5y2k/g++o01PLbemLTzZ3/35yHdVuAhL1AwldDjVL4CtLvQEtYF3Wog vX0R0THmuazGYFokTyJ25vHg1VOCvKezmic0a2bD5RFGw== X-Received: by 127.0.0.2 with SMTP id S7APYY7687511xSR7ZFd7q0U; Thu, 18 Jul 2024 09:44:08 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by mx.groups.io with SMTP id smtpd.web10.19939.1721321047902649290 for ; Thu, 18 Jul 2024 09:44:07 -0700 X-CSE-ConnectionGUID: pXLMdg4/SMS9sKfYf8Tn5A== X-CSE-MsgGUID: 2y3G0lM2SvmUiPizAypPzw== X-IronPort-AV: E=McAfee;i="6700,10204,11137"; a="29567412" X-IronPort-AV: E=Sophos;i="6.09,218,1716274800"; d="scan'208";a="29567412" X-Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jul 2024 09:44:03 -0700 X-CSE-ConnectionGUID: oI8i9ko9S8q6JdakaMTxzw== X-CSE-MsgGUID: 9W4V3t1aThyrc1K76rT6hQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,218,1716274800"; d="scan'208";a="50680477" X-Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orviesa010.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 18 Jul 2024 09:44:04 -0700 X-Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 18 Jul 2024 09:44:03 -0700 X-Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Thu, 18 Jul 2024 09:44:03 -0700 X-Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.170) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Thu, 18 Jul 2024 09:44:02 -0700 X-Received: from PH7PR11MB5943.namprd11.prod.outlook.com (2603:10b6:510:13f::19) by CO1PR11MB4899.namprd11.prod.outlook.com (2603:10b6:303:6e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.17; Thu, 18 Jul 2024 16:43:58 +0000 X-Received: from PH7PR11MB5943.namprd11.prod.outlook.com ([fe80::15cc:b461:7bb8:b69f]) by PH7PR11MB5943.namprd11.prod.outlook.com ([fe80::15cc:b461:7bb8:b69f%5]) with mapi id 15.20.7762.027; Thu, 18 Jul 2024 16:43:58 +0000 From: "Jayaprakash, N" To: "Kinney, Michael D" , "devel@edk2.groups.io" CC: Rebecca Cran Subject: Re: [edk2-devel] [edk2-libc Patch 1/1] edk2-libc: Support for compiling Python UEFI interpreter with VS2022 Thread-Topic: [edk2-libc Patch 1/1] edk2-libc: Support for compiling Python UEFI interpreter with VS2022 Thread-Index: AQHa2BdBNEEjxRpu4k+1MnBfxhuEsbH7F1kAgADVSACAALXOAIAAEHIA Date: Thu, 18 Jul 2024 16:43:58 +0000 Message-ID: References: <20240717070053.323-1-n.jayaprakash@intel.com> <20240717070053.323-2-n.jayaprakash@intel.com> In-Reply-To: Accept-Language: en-IN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH7PR11MB5943:EE_|CO1PR11MB4899:EE_ x-ms-office365-filtering-correlation-id: b310a15f-5d29-4974-568e-08dca748d252 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: =?us-ascii?Q?q0GjklK3Vd6v3R8Qb9ewZjW6TOawPq+sCgMrIkG/xrauThfsph/IybH2Kt1s?= =?us-ascii?Q?NswHQ4rL+JUIF1ZmdKMyMKVKT1kIyP+nADLjyX5BUn6Q6ZTwndo6OVmx7TSF?= =?us-ascii?Q?E/58oAujeMi0FQHn0E3pE5b/T3+MOH3k/AHN90iyOYP1hjXRzu0KkmzOtagA?= =?us-ascii?Q?rrjou9QhA62Fw1YjrgA4gfb3rVcqWzPts+k5eHV85v4Tljo4N1l/B/Pxxwfz?= =?us-ascii?Q?qLBJTG6+xq+0KdAtnsULTxRUCUidepy3xQNCQpRR0eVmsIv98JwjIZP7eyUT?= =?us-ascii?Q?jX+qPn1of2WqYOnAl8ThvWzJacx1HTiqjJKq+Y7DY62mRl8fiCE9XV9b1GFp?= =?us-ascii?Q?0QpQMALTwOk+SNJ6iizZnEjaIr0vquukdF45KJi67CCXjMg/oPJsHhObXBFS?= =?us-ascii?Q?exAOgMIx4Mpcn2yHZ25Fwgu+Mo+DyJ/KGsA36l85uUYqvlE8MT9jxxlNt/G9?= =?us-ascii?Q?b7QsfjOP7WjbT0447qaKKfvSPFmz1yydC962xoNLutJqAhbt4jlFHeTZmDBW?= =?us-ascii?Q?2sASUPdxHo5zJjxRwwNpPR2bFw9Npx7ZMOmZ5/tHI9Be89p8Iv7RJK6WOGSQ?= =?us-ascii?Q?f9XBir65xKA87w4s4OQETS5iM+q9jc5s9+apwGop7d4kg2v0f3O3OIqA0MmS?= =?us-ascii?Q?IuFJ6gvJepdfpSrdpSMJVKp9R8TUWxYFxxQC13MSRpQ2i7owSveMbFWGRNv2?= =?us-ascii?Q?lZvd63fEsMj7H5LjKOVlS6DeWNl0lKqXdtdQjdsHkENei/wkhjycVFXfZuc+?= =?us-ascii?Q?xddZibl16xdUZW6NxlYY++4PDeecrlhitlAamdF3KN85GbDZ6fNXbg0CXSVa?= =?us-ascii?Q?iJXESpSv5T0BCM9mvFo8Jf6VpgWJYQyJfGoaC/wKxi4g7UafsteDK9+9joTK?= =?us-ascii?Q?PPLqnwH7pB2rsWG6GmmSEd9U5VM0GbbJCXPxVXFcA0zTH0gj4e3/+SuA54Ba?= =?us-ascii?Q?UeXvuXV9BLYe3o3sLROA/OTOB2ibWoGow74pTqse8k3WAkXQEZCsGFor1PrD?= =?us-ascii?Q?VTLnYBwHaZh+pVY01YPei7OU5UrX9/poauzuN+9xeCXVT/fEjhdOJ1JToc24?= =?us-ascii?Q?SZOl+KZ+pFMpjyAbA2rWlZMcrUV7pON3IPDyK34BsSjuAP9bk90E90yofHyD?= =?us-ascii?Q?PK4fIyOohjVj9AE/jDY4PpWI/MXbagPOORsrb3wlSQ6Jnx8waXNck8tUjXL1?= =?us-ascii?Q?j25ElJsMpT25LpTM/jkPF57Ol5DDYqGkCc0aziCttbE5p762QjIH6Jy9xsgS?= =?us-ascii?Q?bidTcxa5J9tZr9QxmlQ1jlvQ5jWju62cemSqlRbzyrRNG/ohCZ+MZVTI9sqq?= =?us-ascii?Q?/F2Z/phJo2riyRsY5IONt3WgD4vPsHvh9SBIuY6vlbz7muZsy89KL/642RIk?= =?us-ascii?Q?kUv/Ko4=3D?= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?WvEuiuonV3Ht1bAwT09XGlvHfWPXpxUvenrBbqMeEUMhZb/CNF0MO4rQV2as?= =?us-ascii?Q?GDvxbi06U2zx3+cUbq5F7A46qfrhKd6RouoEJwcVQnwohppMWwLlXfyvy0zm?= =?us-ascii?Q?jsST53kfct29J4yXGcwAJw+HI22IqTp9hFULwogC4LW2Te8/YSwj/0rsNevr?= =?us-ascii?Q?e3dnXV/tiMYGgemcLWO6VGvD2/i1bxdZpReB8bPpLwx7MctwpYkdIG49OJ80?= =?us-ascii?Q?B+zoE248j7SJiEdORUif3OyMjMfJfJVGXZd4FeQM8CfPGtJOB/aXM5bim0YB?= =?us-ascii?Q?br5t+J+QZdpxIGoVWF2iFXgekz3sJuLQKMJYU+fPCfqNj5LgA017hSMW01md?= =?us-ascii?Q?081zhUD9lbB2J8zAvcfZy6ejqnQg+v3cSO1X5Y1dDxNCgkDo+CsEgugAEPBs?= =?us-ascii?Q?HcHvK3TBShBJtquj4ZavW0qJkfvWPPXyCbzTPJ8Qnf7ls5d6TeSYscEhaF54?= =?us-ascii?Q?WAPuHlSJabiOe6xcTGsEe6Z09rJ8Q13TpqpdkVBg9pzFSR8ZMA3HArkpORIs?= =?us-ascii?Q?MpLXRHsfOA+jj6qeHyBHHYTjCmGgV6NtQgKbev/lISRc9aeZy1wUesdWix1M?= =?us-ascii?Q?89LsyLsLqMo7g7NOkW9Deekp2M5Cz8TTnxhvtuyfYkGKjh8QFtEqiIp3Vrnj?= =?us-ascii?Q?R4iIk2jMYvSl770gpRgazkpu4vGYFjtnfqSP6CcTjZxpGC1sNqbQ5j4/gQPI?= =?us-ascii?Q?Brc108UECAiYVxhkHeyZ0nDb/fumWGXXIoxhNB1bi4rsWgmEpWFEiBPign26?= =?us-ascii?Q?SOKGRiRApDpisXyXWMQu3E29K6HdkpR4IPB4l+FPh5VDkbOavbIoEIzjAhQx?= =?us-ascii?Q?X0al50Up+uaP8us8qfgR04rPpAwLD7q1V1Hx+mqF7w1EMmWmG33M4GREW452?= =?us-ascii?Q?Jz4AWlzKw02J7klyU/R0j4Yxezx+Ei/951OfyfISWT6Tp7KLGlbHQxxxJw4/?= =?us-ascii?Q?ySFF2m8Xtt+R4KSbDoR41/Q66fS/pKISE8X0EFZn74DVo3uDvy71U7ouVmib?= =?us-ascii?Q?G2CIXzgoNATe3aaDSVII1BGIAy3Sh9SE7dWYyVlSAuw46wfZkzhoe9ll9Aze?= =?us-ascii?Q?WiMZfxysodXuSAT84z65qW9yzMfWachRtJZ+rG6u/cN8zhc6KiMEUKGRu/JJ?= =?us-ascii?Q?5goP1Hy9ICRiCSiMpakiH/1Ob4muHfC7DyjAKyBqyGgJ8uDvCz7Yj1UC5DGF?= =?us-ascii?Q?sQkAuapvdA6rmQYzvrUavvMfaznZ94KiCiQCkaxPIdXvw/5l+qXCV/V1eRJx?= =?us-ascii?Q?WpAXL726fpvqYUIVBZ6f71D5fcB/LDCLiIMgatjg2JUycSzIgLnIKkIi2f5k?= =?us-ascii?Q?GUgMR2+/7Z+fKB5ZSo/wcP6yfR9QoK7QvrKAf4yl9cS2s+7RSn958Uvx2Gu8?= =?us-ascii?Q?lHQQBabYCMN2CAKITH4sixFinRBFJ0l42edkmflI52C+zbUdNmM1UK3fHKlK?= =?us-ascii?Q?FBBfNp1clvQBxG4Zd9GYq0kAlK5ry/LqZgqUZyBR0gYdbZudPgDVm4MOf1bp?= =?us-ascii?Q?0Kx2l5dyOkNfj6v1bXhNLocxr92OOWk6Khh+MKnRWi/CSpXKdanu4un+fjC5?= =?us-ascii?Q?1LDDyD5/GSBtCAgBOtBll4mq0falrKZDB9i8Qdnp?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH7PR11MB5943.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b310a15f-5d29-4974-568e-08dca748d252 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jul 2024 16:43:58.7423 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: crIKZ3UtMEYBn1ekMZn6Ju5ZK2QkJhBzTo1GxshVZZmA3miKvzhOn28ZMoK5PdL3XreDG/aa8JpUa4pA6egzDw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR11MB4899 X-OriginatorOrg: intel.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Thu, 18 Jul 2024 09:44:08 -0700 Resent-From: n.jayaprakash@intel.com Reply-To: devel@edk2.groups.io,n.jayaprakash@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: daFlya8hZwGedmIZIgb3Gs7vx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=pktCTuJu; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io Thanks Mike. I shall add the summary of the types of compiler warnings being addressed i= nto PR description and the commit message. Regards, JP -----Original Message----- From: Kinney, Michael D =20 Sent: Thursday, July 18, 2024 9:14 PM To: Jayaprakash, N ; devel@edk2.groups.io Cc: Rebecca Cran ; Kinney, Michael D Subject: RE: [edk2-libc Patch 1/1] edk2-libc: Support for compiling Python = UEFI interpreter with VS2022 Hi JP, Thanks for adding details to the BZ. For the commit message and PR description please add the Summary of the typ= es of compiler warnings being addressed. For example, I did not know why declaring a different named local variable = resolved an issue. Mike > -----Original Message----- > From: Jayaprakash, N > Sent: Wednesday, July 17, 2024 9:58 PM > To: Kinney, Michael D ;=20 > devel@edk2.groups.io > Cc: Rebecca Cran > Subject: RE: [edk2-libc Patch 1/1] edk2-libc: Support for compiling=20 > Python UEFI interpreter with VS2022 >=20 > Hi Mike, >=20 > It's a big list of warnings treated as errors in VS2022. > So, I have captured all these compilation issues in the BZ: > https://bugzilla.tianocore.org/show_bug.cgi?id=3D4811 >=20 > GitHub actions with VS2019 and GCC building successfully post these=20 > fixes in my fork of edk2-libc. > VS2019 Github action: https://github.com/jpshivakavi/edk2-libc- > jp/actions/runs/9969663166 > GCC github action: https://github.com/jpshivakavi/edk2-libc- > jp/actions/runs/9969663158 >=20 > I have also verified the builds with VS2022 in my local workspace. >=20 > Regards, > JP > -----Original Message----- > From: Kinney, Michael D > Sent: Wednesday, July 17, 2024 9:40 PM > To: Jayaprakash, N ; devel@edk2.groups.io > Cc: Rebecca Cran ; Kinney, Michael D=20 > > Subject: RE: [edk2-libc Patch 1/1] edk2-libc: Support for compiling=20 > Python UEFI interpreter with VS2022 >=20 > Can you list the compiler errors that are being fixed by this patch? >=20 > Mike >=20 > > -----Original Message----- > > From: Jayaprakash, N > > Sent: Tuesday, July 16, 2024 11:59 PM > > To: devel@edk2.groups.io > > Cc: Jayaprakash, N ; Rebecca Cran=20 > > ; Kinney, Michael D > > Subject: [edk2-libc Patch 1/1] edk2-libc: Support for compiling=20 > > Python UEFI interpreter with VS2022 > > > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4811 > > > > This commit fixes the compilation issues observed with several=20 > > components in the edk2-libc repo while trying to compile Python=20 > > interpreter for UEFI. > > > > Cc: Rebecca Cran > > Cc: Michael D Kinney > > Cc: Jayaprakash N > > Signed-off-by: Jayaprakash N > > --- > > AppPkg/Applications/Enquire/Enquire.c | 48 +++++------ > > .../OrderedCollectionTest.c | 10 +-- > > .../Sockets/DataSource/DataSource.c | 10 +-- > > AppPkg/Applications/Sockets/OobRx/OobRx.c | 4 +- > > .../Applications/Sockets/RawIp4Rx/RawIp4Rx.c | 4 +- > > StdLib/BsdSocketLib/getnetbyht.c | 9 ++- > > StdLib/BsdSocketLib/ns_print.c | 57 +++++++------ > > StdLib/EfiSocketLib/Socket.c | 80 +++++++++---------- > > 8 files changed, 116 insertions(+), 106 deletions(-) > > > > diff --git a/AppPkg/Applications/Enquire/Enquire.c > > b/AppPkg/Applications/Enquire/Enquire.c > > index 1e1db69..5e34f48 100644 > > --- a/AppPkg/Applications/Enquire/Enquire.c > > +++ b/AppPkg/Applications/Enquire/Enquire.c > > @@ -5,7 +5,7 @@ > > Steven Pemberton, CWI, Amsterdam; "Steven.Pemberton@cwi.nl" > > Used with permission. > > > > - Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.=
> > + Copyright (c) 2010 - 2024, Intel Corporation. All rights=20 > > + reserved.
> > This program and the accompanying materials > > are licensed and made available under the terms and conditions=20 > > of the BSD License > > which accompanies this distribution. The full text of the=20 > > license may be found at @@ -918,15 +918,15 @@ memeq( } > > > > Void > > -farewell(int bugs) > > +farewell(int bugs_local) > > { > > - if (bugs =3D=3D 0) exit(0); > > + if (bugs_local =3D=3D 0) exit(0); > > printf("\n%sFor hints on dealing with the ", co); > > - if (bugs =3D=3D 1) printf("problem"); > > - else printf("%d problems", bugs); > > + if (bugs_local =3D=3D 1) printf("problem"); else printf("%d=20 > > + problems", bugs_local); > > printf(" above\n see the section 'TROUBLESHOOTING' in the file "); > > printf("%s%s\n", FILENAME, oc); > > - exit(bugs); > > + exit(bugs_local); > > } > > > > /* The program has received a signal where it wasn't expecting one=20 > > */ @@ -1927,51 +1927,51 @@ int cprop( void ) > > > > if (c_signed) { > > #ifndef NO_UC > > -/* Syntax error? Define NO_UC */ Volatile unsigned char c1, char_max; > > - c1=3D0; char_max=3D0; > > +/* Syntax error? Define NO_UC */ Volatile unsigned char c1, > char_max_local; > > + c1=3D0; char_max_local=3D0; > > c1++; > > - if (setjmp(lab)=3D=3D0) { /* Yields char_max */ > > - while (c1>char_max) { > > - char_max=3Dc1; > > + if (setjmp(lab)=3D=3D0) { /* Yields char_max_local */ > > + while (c1>char_max_local) { > > + char_max_local=3Dc1; > > c1++; > > } > > } > > Unexpected(4); > > if (sizeof(char) =3D=3D sizeof(int)) { > > u_define(D_UCHAR_MAX, "", "UCHAR", "_MAX", > > - (ulong) char_max, > > + (ulong) char_max_local, > > (ulong) UCHAR_MAX, ""); > > } else { > > i_define(D_UCHAR_MAX, "", "UCHAR", "_MAX", > > - (long) char_max, 0L, > > + (long) char_max_local, 0L, > > (long) UCHAR_MAX, ""); > > } > > #endif > > } else { > > #ifndef NO_SC > > -/* Syntax error? Define NO_SC */ Volatile signed char c1, char_max,=20 > > char_min; > > - c1=3D0; char_max=3D0; > > +/* Syntax error? Define NO_SC */ Volatile signed char c1,=20 > > +char_max_local, > > char_min_local; > > + c1=3D0; char_max_local=3D0; > > c1++; > > - if (setjmp(lab)=3D=3D0) { /* Yields char_max */ > > - while (c1>char_max) { > > - char_max=3Dc1; > > + if (setjmp(lab)=3D=3D0) { /* Yields char_max_local */ > > + while (c1>char_max_local) { > > + char_max_local=3Dc1; > > c1++; > > } > > } > > - c1=3D0; char_min=3D0; > > + c1=3D0; char_min_local=3D0; > > c1--; > > - if (setjmp(lab)=3D=3D0) { /* Yields char_min */ > > - while (c1 > - char_min=3Dc1; > > + if (setjmp(lab)=3D=3D0) { /* Yields char_min_local */ > > + while (c1 > + char_min_local=3Dc1; > > c1--; > > } > > } > > Unexpected(5); > > i_define(D_SCHAR_MIN, "", "SCHAR", "_MIN", > > - (long) char_min, (long) maxint, > > + (long) char_min_local, (long) maxint, > > (long) SCHAR_MIN, ""); > > i_define(D_SCHAR_MAX, "", "SCHAR", "_MAX", > > - (long) char_max, 0L, > > + (long) char_max_local, 0L, > > (long) SCHAR_MAX, ""); > > #endif /* NO_SC */ > > } > > diff --git > > a/AppPkg/Applications/OrderedCollectionTest/OrderedCollectionTest.c > > b/AppPkg/Applications/OrderedCollectionTest/OrderedCollectionTest.c > > index 712ee8f..ea44b31 100644 > > --- > > a/AppPkg/Applications/OrderedCollectionTest/OrderedCollectionTest.c > > +++ b/AppPkg/Applications/OrderedCollectionTest/OrderedCollectionTest. > > +++ c > > @@ -7,7 +7,7 @@ > > per default, eg. serial line). > > > > Copyright (C) 2014, Red Hat, Inc. > > - Copyright (c) 2010 - 2011, Intel Corporation. All rights=20 > > reserved.
> > + Copyright (c) 2010 - 2024, Intel Corporation. All rights=20 > > + reserved.
> > > > SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -458,10 > > +458,10 @@ SetupInputOutput ( > > > > case 'h': > > fprintf (stderr, > > - "%1$s: simple OrderedCollectionLib tester\n" > > + "%s: simple OrderedCollectionLib tester\n" > > "\n" > > - "Usage: 1. %1$s [-i InputFile] [-o OutputFile]\n" > > - " 2. %1$s -h\n" > > + "Usage: 1. %s [-i InputFile] [-o OutputFile]\n" > > + " 2. %s -h\n" > > "\n" > > "Options:\n" > > " -i InputFile : read commands from InputFile\n" > > @@ -469,7 +469,7 @@ SetupInputOutput ( > > " -o OutputFile: write command responses to OutputFile\n" > > " (will write to stdout if absent)\n" > > " -h : print this help and exit\n" > > - "\n", ArgV[0]); > > + "\n", ArgV[0], ArgV[0], ArgV[0]); > > ListCommands (); > > exit (EXIT_SUCCESS); > > > > diff --git a/AppPkg/Applications/Sockets/DataSource/DataSource.c > > b/AppPkg/Applications/Sockets/DataSource/DataSource.c > > index 360689e..0ca6a9a 100644 > > --- a/AppPkg/Applications/Sockets/DataSource/DataSource.c > > +++ b/AppPkg/Applications/Sockets/DataSource/DataSource.c > > @@ -1,7 +1,7 @@ > > /** @file > > Data source for network testing. > > > > - Copyright (c) 2011-2012, Intel Corporation. All rights reserved. > > + Copyright (c) 2011-2024, Intel Corporation. All rights reserved. > > SPDX-License-Identifier: BSD-2-Clause-Patent > > > > **/ > > @@ -538,7 +538,7 @@ EFI_STATUS > > SocketSend ( > > ) > > { > > - size_t BytesSent; > > + size_t BytesSentLocal; > > EFI_STATUS Status; > > EFI_TPL TplPrevious; > > > > @@ -562,8 +562,8 @@ SocketSend ( > > // > > // Send some bytes > > // > > - BytesSent =3D write ( Socket, &Buffer[0], sizeof ( Buffer )); > > - if ( -1 =3D=3D BytesSent ) { > > + BytesSentLocal =3D write ( Socket, &Buffer[0], sizeof ( Buffer )); > > + if ( -1 =3D=3D BytesSentLocal ) { > > DEBUG (( DEBUG_INFO, > > "ERROR: send failed, errno: %d\r\n", > > errno )); > > @@ -589,7 +589,7 @@ Status =3D EFI_NOT_STARTED; > > // > > // Account for the data sent > > // > > - TotalBytesSent +=3D BytesSent; > > + TotalBytesSent +=3D BytesSentLocal; > > > > // > > // Release the TimerCallback routine synchronization diff=20 > > --git a/AppPkg/Applications/Sockets/OobRx/OobRx.c > > b/AppPkg/Applications/Sockets/OobRx/OobRx.c > > index 28e10d8..af07127 100644 > > --- a/AppPkg/Applications/Sockets/OobRx/OobRx.c > > +++ b/AppPkg/Applications/Sockets/OobRx/OobRx.c > > @@ -150,7 +150,7 @@ OobRx ( > > // > > // Display the received OOB data > > // > > - printf ( "%5Ld OOB bytes received\r\n", (UINT64)BytesRecei= ved > ); > > + printf ( "%5llu OOB bytes received\r\n",=20 > > + (UINT64)BytesReceived > > ); > > > > // > > // Account for the bytes received @@ -183,7 +183,7 @@=20 > > OobRx ( > > // > > // Display the received data > > // > > - printf ( "%4Ld bytes received\r\n", (UINT64)BytesReceive= d ); > > + printf ( "%4llu bytes received\r\n",=20 > > + (UINT64)BytesReceived ); > > > > // > > // Account for the bytes received diff --git=20 > > a/AppPkg/Applications/Sockets/RawIp4Rx/RawIp4Rx.c > > b/AppPkg/Applications/Sockets/RawIp4Rx/RawIp4Rx.c > > index b52cd38..b190b44 100644 > > --- a/AppPkg/Applications/Sockets/RawIp4Rx/RawIp4Rx.c > > +++ b/AppPkg/Applications/Sockets/RawIp4Rx/RawIp4Rx.c > > @@ -1,7 +1,7 @@ > > /** @file > > Raw IP4 receive application > > > > - Copyright (c) 2011-2012, Intel Corporation. All rights reserved. > > + Copyright (c) 2011-2024, Intel Corporation. All rights reserved. > > SPDX-License-Identifier: BSD-2-Clause-Patent > > > > **/ > > @@ -157,7 +157,7 @@ RawIp4Rx ( > > // Display the bytes received > > // > > if ( 0 =3D=3D RetVal ) { > > - printf ( "Total Bytes Received: %Ld\r\n", TotalBytesReceive= d ); > > + printf ( "Total Bytes Received: %llu\r\n",=20 > > + TotalBytesReceived ); > > } > > > > // > > diff --git a/StdLib/BsdSocketLib/getnetbyht.c > > b/StdLib/BsdSocketLib/getnetbyht.c > > index 08b8042..5907d44 100644 > > --- a/StdLib/BsdSocketLib/getnetbyht.c > > +++ b/StdLib/BsdSocketLib/getnetbyht.c > > @@ -41,6 +41,11 @@ > > * from getnetent.c 1.1 (Coimbra) 93/06/02 > > */ > > > > +/* > > + * Copyright (c) 2024, Intel Corporation. All rights reserved. > > + * SPDX-License-Identifier: BSD-2-Clause-Patent */ > > + > > #if defined(LIBC_SCCS) && !defined(lint) > > static char sccsid[] =3D "@(#)getnetent.c 8.1 (Berkeley) 6/4/93"; > > static char orig_rcsid[] =3D "From: Id: getnetent.c,v 8.4 1997/06/01 > > 20:34:37 vixie Exp"; @@ -155,13 +160,13 @@ found: > > } > > > > struct netent * > > -_getnetbyhtaddr(register unsigned long net, register int type) > > +_getnetbyhtaddr(register unsigned long net_local, register int=20 > > +type) > > { > > register struct netent *p; > > > > setnetent(_net_stayopen); > > while ( NULL !=3D (p =3D getnetent()) ) > > - if (p->n_addrtype =3D=3D type && p->n_net =3D=3D net) > > + if (p->n_addrtype =3D=3D type && p->n_net =3D=3D net_local) > > break; > > if (!_net_stayopen) > > endnetent(); > > diff --git a/StdLib/BsdSocketLib/ns_print.c=20 > > b/StdLib/BsdSocketLib/ns_print.c index ea29d01..fb19bf9 100644 > > --- a/StdLib/BsdSocketLib/ns_print.c > > +++ b/StdLib/BsdSocketLib/ns_print.c > > @@ -55,6 +55,11 @@ > > * > > */ > > > > +/* > > + * Copyright (c) 2024, Intel Corporation. All rights reserved. > > + * SPDX-License-Identifier: BSD-2-Clause-Patent */ > > + > > /* Import. */ > > > > #include > > @@ -211,7 +216,7 @@ ns_sprintrrf(const u_char *msg, size_t msglen, > > break; > > > > case ns_t_soa: { > > - u_long t; > > + u_long t_local; > > > > /* Server name. */ > > T(addname(msg, msglen, &rdata, origin, &buf, &buflen)); @@ > > -226,45 +231,45 @@ ns_sprintrrf(const u_char *msg, size_t msglen, > > goto formerr; > > > > /* Serial number. */ > > - t =3D ns_get32(rdata); rdata +=3D NS_INT32SZ; > > + t_local =3D ns_get32(rdata); rdata +=3D NS_INT32SZ; > > T(addstr("\t\t\t\t\t", 5, &buf, &buflen)); > > - len =3D SPRINTF((tmp, "%lu", (unsigned long)t)); > > + len =3D SPRINTF((tmp, "%lu", (unsigned long)t_local)); > > T(addstr(tmp, len, &buf, &buflen)); > > T(spaced =3D addtab(len, 16, spaced, &buf, &buflen)); > > T(addstr("; serial\n", 9, &buf, &buflen)); > > spaced =3D 0; > > > > /* Refresh interval. */ > > - t =3D ns_get32(rdata); rdata +=3D NS_INT32SZ; > > + t_local =3D ns_get32(rdata); rdata +=3D NS_INT32SZ; > > T(addstr("\t\t\t\t\t", 5, &buf, &buflen)); > > - T(len =3D ns_format_ttl(t, buf, buflen)); > > + T(len =3D ns_format_ttl(t_local, buf, buflen)); > > addlen(len, &buf, &buflen); > > T(spaced =3D addtab(len, 16, spaced, &buf, &buflen)); > > T(addstr("; refresh\n", 10, &buf, &buflen)); > > spaced =3D 0; > > > > /* Retry interval. */ > > - t =3D ns_get32(rdata); rdata +=3D NS_INT32SZ; > > + t_local =3D ns_get32(rdata); rdata +=3D NS_INT32SZ; > > T(addstr("\t\t\t\t\t", 5, &buf, &buflen)); > > - T(len =3D ns_format_ttl(t, buf, buflen)); > > + T(len =3D ns_format_ttl(t_local, buf, buflen)); > > addlen(len, &buf, &buflen); > > T(spaced =3D addtab(len, 16, spaced, &buf, &buflen)); > > T(addstr("; retry\n", 8, &buf, &buflen)); > > spaced =3D 0; > > > > /* Expiry. */ > > - t =3D ns_get32(rdata); rdata +=3D NS_INT32SZ; > > + t_local =3D ns_get32(rdata); rdata +=3D NS_INT32SZ; > > T(addstr("\t\t\t\t\t", 5, &buf, &buflen)); > > - T(len =3D ns_format_ttl(t, buf, buflen)); > > + T(len =3D ns_format_ttl(t_local, buf, buflen)); > > addlen(len, &buf, &buflen); > > T(spaced =3D addtab(len, 16, spaced, &buf, &buflen)); > > T(addstr("; expiry\n", 9, &buf, &buflen)); > > spaced =3D 0; > > > > /* Minimum TTL. */ > > - t =3D ns_get32(rdata); rdata +=3D NS_INT32SZ; > > + t_local =3D ns_get32(rdata); rdata +=3D NS_INT32SZ; > > T(addstr("\t\t\t\t\t", 5, &buf, &buflen)); > > - T(len =3D ns_format_ttl(t, buf, buflen)); > > + T(len =3D ns_format_ttl(t_local, buf, buflen)); > > addlen(len, &buf, &buflen); > > T(addstr(" )", 2, &buf, &buflen)); > > T(spaced =3D addtab(len, 16, spaced, &buf, &buflen)); @@ -276,15 > > +281,15 @@ ns_sprintrrf(const u_char *msg, size_t msglen, > > case ns_t_mx: > > case ns_t_afsdb: > > case ns_t_rt: { > > - u_int t; > > + u_int t_local; > > > > if (rdlen < NS_INT16SZ) > > goto formerr; > > > > /* Priority. */ > > - t =3D ns_get16(rdata); > > + t_local =3D ns_get16(rdata); > > rdata +=3D NS_INT16SZ; > > - len =3D SPRINTF((tmp, "%u ", (unsigned int)t)); > > + len =3D SPRINTF((tmp, "%u ", (unsigned int)t_local)); > > T(addstr(tmp, len, &buf, &buflen)); > > > > /* Target. */ > > @@ -294,15 +299,15 @@ ns_sprintrrf(const u_char *msg, size_t msglen, > > } > > > > case ns_t_px: { > > - u_int t; > > + u_int t_local; > > > > if (rdlen < NS_INT16SZ) > > goto formerr; > > > > /* Priority. */ > > - t =3D ns_get16(rdata); > > + t_local =3D ns_get16(rdata); > > rdata +=3D NS_INT16SZ; > > - len =3D SPRINTF((tmp, "%u ", (unsigned int)t)); > > + len =3D SPRINTF((tmp, "%u ", (unsigned int)t_local)); > > T(addstr(tmp, len, &buf, &buflen)); > > > > /* Name1. */ > > @@ -503,33 +508,33 @@ ns_sprintrrf(const u_char *msg, size_t msglen, > > } > > > > case ns_t_sig: { > > - u_int type, algorithm, labels, footprint; > > + u_int type_local, algorithm, labels, footprint; > > const char *leader; > > - u_long t; > > + u_long t_local; > > int n; > > > > if (rdlen < 22) > > goto formerr; > > > > /* Type covered, Algorithm, Label count, Original TTL. */ > > - type =3D ns_get16(rdata); rdata +=3D NS_INT16SZ; > > + type_local =3D ns_get16(rdata); rdata +=3D NS_INT16SZ; > > algorithm =3D *rdata++; > > labels =3D *rdata++; > > - t =3D ns_get32(rdata); rdata +=3D NS_INT32SZ; > > + t_local =3D ns_get32(rdata); rdata +=3D NS_INT32SZ; > > len =3D SPRINTF((tmp, " %s %d %lu ", > > - p_type((int)type), (int)algorithm, (unsigned long)t= )); > > + p_type((int)type_local), (int)algorithm,=20 > > + (unsigned > > long)t_local)); > > T(addstr(tmp, len, &buf, &buflen)); > > if (labels !=3D (u_int)dn_count_labels(name)) > > goto formerr; > > > > /* Signature expiry. */ > > - t =3D ns_get32(rdata); rdata +=3D NS_INT32SZ; > > - len =3D SPRINTF((tmp, "%s ", p_secstodate(t))); > > + t_local =3D ns_get32(rdata); rdata +=3D NS_INT32SZ; > > + len =3D SPRINTF((tmp, "%s ", p_secstodate(t_local))); > > T(addstr(tmp, len, &buf, &buflen)); > > > > /* Time signed. */ > > - t =3D ns_get32(rdata); rdata +=3D NS_INT32SZ; > > - len =3D SPRINTF((tmp, "%s ", p_secstodate(t))); > > + t_local =3D ns_get32(rdata); rdata +=3D NS_INT32SZ; > > + len =3D SPRINTF((tmp, "%s ", p_secstodate(t_local))); > > T(addstr(tmp, len, &buf, &buflen)); > > > > /* Signature Footprint. */ > > diff --git a/StdLib/EfiSocketLib/Socket.c=20 > > b/StdLib/EfiSocketLib/Socket.c index ee15b62..5f91744 100644 > > --- a/StdLib/EfiSocketLib/Socket.c > > +++ b/StdLib/EfiSocketLib/Socket.c > > @@ -5,7 +5,7 @@ > > * Bound - pSocket->PortList is not NULL > > * Listen - AcceptWait event is not NULL > > > > - Copyright (c) 2010 - 2014, Intel Corporation. All rights=20 > > reserved.
> > + Copyright (c) 2010 - 2024, Intel Corporation. All rights=20 > > + reserved.
> > SPDX-License-Identifier: BSD-2-Clause-Patent > > > > > > @@ -570,7 +570,7 @@ EslSocket ( > > int ApiArraySize; > > ESL_SOCKET * pSocket; > > EFI_STATUS Status; > > - int errno; > > + int error_num; > > > > DBG_ENTER ( ); > > > > @@ -583,7 +583,7 @@ EslSocket ( > > } > > > > // Assume success > > - errno =3D 0; > > + error_num =3D 0; > > Status =3D EFI_SUCCESS; > > > > // Use break instead of goto > > @@ -595,7 +595,7 @@ EslSocket ( > > DEBUG (( DEBUG_ERROR | DEBUG_SOCKET, > > "ERROR - Invalid domain value\r\n" )); > > Status =3D EFI_INVALID_PARAMETER; > > - errno =3D EAFNOSUPPORT; > > + error_num =3D EAFNOSUPPORT; > > break; > > } > > > > @@ -625,7 +625,7 @@ EslSocket ( > > "ERROR - Invalid type value\r\n" )); > > // The socket type is not supported > > Status =3D EFI_INVALID_PARAMETER; > > - errno =3D EPROTOTYPE; > > + error_num =3D EPROTOTYPE; > > break; > > } > > > > @@ -665,15 +665,15 @@ EslSocket ( > > if ( ppApiArrayEnd <=3D ppApiArray ) { > > DEBUG (( DEBUG_ERROR | DEBUG_SOCKET, > > "ERROR - The protocol is not supported!\r\n" )); > > - errno =3D EPROTONOSUPPORT; > > + error_num =3D EPROTONOSUPPORT; > > break; > > } > > > > // The driver does not support this protocol > > DEBUG (( DEBUG_ERROR | DEBUG_SOCKET, > > "ERROR - The protocol does not support this socket=20 > > type!\r\n" )); > > - errno =3D EPROTONOSUPPORT; > > - errno =3D EPROTOTYPE; > > + error_num =3D EPROTONOSUPPORT; > > + error_num =3D EPROTOTYPE; > > break; > > } > > // Save the socket attributes > > @@ -687,7 +687,7 @@ EslSocket ( > > } > > // Return the operation status > > if ( NULL !=3D pErrno ) { > > - *pErrno =3D errno; > > + *pErrno =3D error_num; > > } > > DBG_EXIT_STATUS ( Status ); > > return Status; > > @@ -1334,7 +1334,7 @@ EslSocketClosePoll ( > > IN int * pErrno > > ) > > { > > - int errno; > > + int error_num; > > ESL_LAYER * pLayer; > > ESL_SOCKET * pNextSocket; > > ESL_SOCKET * pSocket; > > @@ -1346,7 +1346,7 @@ EslSocketClosePoll ( > > // > > // Assume success > > // > > - errno =3D 0; > > + error_num =3D 0; > > Status =3D EFI_SUCCESS; > > > > // > > @@ -1401,7 +1401,7 @@ EslSocketClosePoll ( > > // At least one port is still open > > // > > Status =3D EFI_NOT_READY; > > - errno =3D EAGAIN; > > + error_num =3D EAGAIN; > > } > > } > > else { > > @@ -1409,7 +1409,7 @@ EslSocketClosePoll ( > > // SocketCloseStart was not called > > // > > Status =3D EFI_NOT_STARTED; > > - errno =3D EPERM; > > + error_num =3D EPERM; > > } > > break; > > } > > @@ -1428,7 +1428,7 @@ EslSocketClosePoll ( > > // Socket not found > > // > > Status =3D EFI_NOT_FOUND; > > - errno =3D ENOTSOCK; > > + error_num =3D ENOTSOCK; > > } > > > > // > > @@ -1440,7 +1440,7 @@ EslSocketClosePoll ( > > // Return the operation status > > // > > if ( NULL !=3D pErrno ) { > > - *pErrno =3D errno; > > + *pErrno =3D error_num; > > } > > DBG_EXIT_STATUS ( Status ); > > return Status; > > @@ -1477,7 +1477,7 @@ EslSocketCloseStart ( > > IN int * pErrno > > ) > > { > > - int errno; > > + int error_num; > > ESL_PORT * pNextPort; > > ESL_PORT * pPort; > > ESL_SOCKET * pSocket; > > @@ -1490,7 +1490,7 @@ EslSocketCloseStart ( > > // Assume success > > // > > Status =3D EFI_SUCCESS; > > - errno =3D 0; > > + error_num =3D 0; > > > > // > > // Synchronize with the socket layer @@ -1521,7 +1521,7 @@=20 > > EslSocketCloseStart ( > > DEBUG_CLOSE | DEBUG_LISTEN=20 > > | DEBUG_CONNECTION ); > > if (( EFI_SUCCESS !=3D Status ) > > && ( EFI_NOT_READY !=3D Status )) { > > - errno =3D EIO; > > + error_num =3D EIO; > > break; > > } > > > > @@ -1535,12 +1535,12 @@ EslSocketCloseStart ( > > // Attempt to finish closing the socket > > // > > if ( NULL =3D=3D pPort ) { > > - Status =3D EslSocketClosePoll ( pSocketProtocol, &errno ); > > + Status =3D EslSocketClosePoll ( pSocketProtocol, &error_num ); > > } > > } > > else { > > Status =3D EFI_NOT_READY; > > - errno =3D EAGAIN; > > + error_num =3D EAGAIN; > > } > > > > // > > @@ -1552,7 +1552,7 @@ EslSocketCloseStart ( > > // Return the operation status > > // > > if ( NULL !=3D pErrno ) { > > - *pErrno =3D errno; > > + *pErrno =3D error_num; > > } > > DBG_EXIT_STATUS ( Status ); > > return Status; > > @@ -1889,7 +1889,7 @@ EslSocketFree ( > > ) > > { > > EFI_HANDLE ChildHandle; > > - int errno; > > + int error_num; > > ESL_LAYER * pLayer; > > ESL_SOCKET * pSocket; > > ESL_SOCKET * pSocketPrevious; > > @@ -1901,7 +1901,7 @@ EslSocketFree ( > > // > > // Assume failure > > // > > - errno =3D EIO; > > + error_num =3D EIO; > > pSocket =3D NULL; > > Status =3D EFI_INVALID_PARAMETER; > > > > @@ -1986,7 +1986,7 @@ EslSocketFree ( > > "0x%08x: Free pSocket, %d bytes\r\n", > > pSocket, > > sizeof ( *pSocket ))); > > - errno =3D 0; > > + error_num =3D 0; > > } > > else { > > DEBUG (( DEBUG_ERROR | DEBUG_POOL, @@ -2014,10 +2014,10=20 > > @@ EslSocketFree ( > > } > > > > // > > - // Return the errno value if possible > > + // Return the error_num value if possible > > // > > if ( NULL !=3D pErrno ) { > > - *pErrno =3D errno; > > + *pErrno =3D error_num; > > } > > > > // > > @@ -2751,7 +2751,7 @@ EslSocketOptionGet ( > > IN int * pErrno > > ) > > { > > - int errno; > > + int error_num; > > socklen_t LengthInBytes; > > socklen_t MaxBytes; > > CONST UINT8 * pOptionData; > > @@ -2763,7 +2763,7 @@ EslSocketOptionGet ( > > // > > // Assume failure > > // > > - errno =3D EINVAL; > > + error_num =3D EINVAL; > > Status =3D EFI_INVALID_PARAMETER; > > > > // > > @@ -2795,7 +2795,7 @@ EslSocketOptionGet ( > > OptionName, > > (CONST void **=20 > > __restrict)&pOptionData, > > &LengthInBytes ); > > - errno =3D pSocket->errno; > > + error_num =3D pSocket->errno; > > break; > > } > > else { > > @@ -2814,7 +2814,7 @@ EslSocketOptionGet ( > > "ERROR - %a does not support any options!\r\n", > > pSocket->pApi->pName )); > > } > > - errno =3D ENOPROTOOPT; > > + error_num =3D ENOPROTOOPT; > > Status =3D EFI_INVALID_PARAMETER; > > break; > > > > @@ -2825,7 +2825,7 @@ EslSocketOptionGet ( > > // Socket option not supported > > // > > DEBUG (( DEBUG_INFO | DEBUG_OPTION, "ERROR - Invalid socket=20 > > option!\r\n" )); > > - errno =3D EINVAL; > > + error_num =3D EINVAL; > > Status =3D EFI_INVALID_PARAMETER; > > break; > > > > @@ -2927,7 +2927,7 @@ EslSocketOptionGet ( > > if ( LengthInBytes < MaxBytes ) { > > ZeroMem ( &((UINT8 *)pOptionValue)[LengthInBytes], MaxBytes=20 > > - LengthInBytes ); > > } > > - errno =3D 0; > > + error_num =3D 0; > > Status =3D EFI_SUCCESS; > > } > > } > > @@ -2936,7 +2936,7 @@ EslSocketOptionGet ( > > // Return the operation status > > // > > if ( NULL !=3D pErrno ) { > > - *pErrno =3D errno; > > + *pErrno =3D error_num; > > } > > DBG_EXIT_STATUS ( Status ); > > return Status; > > @@ -2971,7 +2971,7 @@ EslSocketOptionSet ( > > ) > > { > > BOOLEAN bTrueFalse; > > - int errno; > > + int error_num; > > socklen_t LengthInBytes; > > UINT8 * pOptionData; > > ESL_SOCKET * pSocket; > > @@ -2982,7 +2982,7 @@ EslSocketOptionSet ( > > // > > // Assume failure > > // > > - errno =3D EINVAL; > > + error_num =3D EINVAL; > > Status =3D EFI_INVALID_PARAMETER; > > > > // > > @@ -3015,7 +3015,7 @@ EslSocketOptionSet ( > > OptionName, > > pOptionValue, > > OptionLength ); > > - errno =3D pSocket->errno; > > + error_num =3D pSocket->errno; > > break; > > } > > else { > > @@ -3034,7 +3034,7 @@ EslSocketOptionSet ( > > "ERROR - %a does not support any options!\r\n", > > pSocket->pApi->pName )); > > } > > - errno =3D ENOPROTOOPT; > > + error_num =3D ENOPROTOOPT; > > Status =3D EFI_INVALID_PARAMETER; > > break; > > > > @@ -3046,7 +3046,7 @@ EslSocketOptionSet ( > > // > > DEBUG (( DEBUG_OPTION, > > "ERROR - Sockets does not support this option!\r\n= " > )); > > - errno =3D EINVAL; > > + error_num =3D EINVAL; > > Status =3D EFI_INVALID_PARAMETER; > > break; > > > > @@ -3133,7 +3133,7 @@ EslSocketOptionSet ( > > // Set the option value > > // > > CopyMem ( pOptionData, pOptionValue, LengthInBytes ); > > - errno =3D 0; > > + error_num =3D 0; > > Status =3D EFI_SUCCESS; > > } > > else { > > @@ -3150,7 +3150,7 @@ EslSocketOptionSet ( > > // Return the operation status > > // > > if ( NULL !=3D pErrno ) { > > - *pErrno =3D errno; > > + *pErrno =3D error_num; > > } > > DBG_EXIT_STATUS ( Status ); > > return Status; > > -- > > 2.45.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119972): https://edk2.groups.io/g/devel/message/119972 Mute This Topic: https://groups.io/mt/107267145/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-