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 387E0AC1B1E for ; Sun, 21 Jul 2024 21:01:26 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=w/bLfjGHRtPTRy1uS9Txoj8+dVnzCYo3YZIMFp0DO0I=; 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=1721595686; v=1; b=aUi63ZjgN3VKpj8EwMmUVlcVH9z4h7c6oAEUM69Q1fbzPooRcMqXxtyllefILo0JIJqG0goj UyQoIJotDPBppGKVzyjbbCqH78tczBqRl0aaWHuyT2bMTXQFO6V2GtvZrPxcXY5tIW80XjX94yu 6B6Bt4hPJ0EdmBgg6IeXLtcYLrZngwJ+15zKGE8M+jXgwiS2ExUiU2khGCemFrYYH+L1zcTQl8/ sm7ecUmiGaHpm1UfoJzYPVPCBA+zqUIVIlPVX6/sluTV7ihHhsCho6pv+YqS30I9ve7fa4JZRoa VSZiblpSRKA8c3YKN4pIEtsugrogJ0DeVB2aquPyX0uCA== X-Received: by 127.0.0.2 with SMTP id PwR7YY7687511xfrSxX1JVLh; Sun, 21 Jul 2024 14:01:24 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by mx.groups.io with SMTP id smtpd.web10.4982.1721595678925660854 for ; Sun, 21 Jul 2024 14:01:19 -0700 X-CSE-ConnectionGUID: TJE6PKiNS1KgTC1tROT4IA== X-CSE-MsgGUID: 1Lk87XwVRbKA9hbfSrrNbg== X-IronPort-AV: E=McAfee;i="6700,10204,11140"; a="18996178" X-IronPort-AV: E=Sophos;i="6.09,225,1716274800"; d="scan'208";a="18996178" X-Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2024 14:01:19 -0700 X-CSE-ConnectionGUID: loeipV6ST2KJd+XYH1jSyw== X-CSE-MsgGUID: x4MkF8h0TVCM3JIlNiDycg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,225,1716274800"; d="scan'208";a="55943798" X-Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmviesa005.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 21 Jul 2024 14:01:18 -0700 X-Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Sun, 21 Jul 2024 14:01:17 -0700 X-Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Sun, 21 Jul 2024 14:01:16 -0700 X-Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Sun, 21 Jul 2024 14:01:16 -0700 X-Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.46) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Sun, 21 Jul 2024 14:01:16 -0700 X-Received: from CO1PR11MB4929.namprd11.prod.outlook.com (2603:10b6:303:6d::19) by MW4PR11MB6886.namprd11.prod.outlook.com (2603:10b6:303:224::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.28; Sun, 21 Jul 2024 21:01:13 +0000 X-Received: from CO1PR11MB4929.namprd11.prod.outlook.com ([fe80::a886:6510:729d:f9d0]) by CO1PR11MB4929.namprd11.prod.outlook.com ([fe80::a886:6510:729d:f9d0%4]) with mapi id 15.20.7762.027; Sun, 21 Jul 2024 21:01:13 +0000 From: "Michael D Kinney" To: "Jayaprakash, N" , "devel@edk2.groups.io" CC: Rebecca Cran , "Kinney, Michael D" Subject: Re: [edk2-devel] [edk2-libc Patch v2 1/1] edk2-libc: Support for compiling Python UEFI interpreter with VS2022 Thread-Topic: [edk2-libc Patch v2 1/1] edk2-libc: Support for compiling Python UEFI interpreter with VS2022 Thread-Index: AQHa2rzMALNIzRcY1EidqwCh3HKtO7IBrLLA Date: Sun, 21 Jul 2024 21:01:13 +0000 Message-ID: References: <20240720155148.973-1-n.jayaprakash@intel.com> <20240720155148.973-2-n.jayaprakash@intel.com> In-Reply-To: <20240720155148.973-2-n.jayaprakash@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO1PR11MB4929:EE_|MW4PR11MB6886:EE_ x-ms-office365-filtering-correlation-id: 2a1e03e8-614a-4f19-6828-08dca9c8415f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: =?us-ascii?Q?8pvLy3zk4ukfoY7rws9ARlxO5WRHFmBBigEaT79KD2RWgooppXK4yPT4tVkl?= =?us-ascii?Q?thVUdSK8k7nD4jLwz7FeakGxoX4yhBqonvZA4YWuyHIyYP7y7zrYoiofnFzW?= =?us-ascii?Q?mvlvIeqLG0Ol7T+Lfe3f48pSj8ANb299uIPHX5F7GV+1Q79SPl/SPgPFrNNS?= =?us-ascii?Q?Rdu1TMZaLMG9/cXZFym1GkwwvCNpqApjEncbpg+jk2BRIxnzNE1wYHztIS2x?= =?us-ascii?Q?FoXKk8uXvQ+FuCR8EyxOi9Is8Rr1y7THIaXYqAYnWG5O8OD+ApLVVInT+f6S?= =?us-ascii?Q?1PB4lBjwgDrsLedzaMPHRQAYDDAaDAqjmtvpu2sCwiiGqc1NE2e8Xabn/bgy?= =?us-ascii?Q?OzIEgVRUa/8GAftlza0XERKPJh0vlIESdurIkTCUbAlggN5GNAeGPtL+i1xN?= =?us-ascii?Q?zBk/bV5zXNGlpYxmz69e6odtdk0w7OYfos860HHJXMiSyaRrWZb9g9kH+FsJ?= =?us-ascii?Q?7Fd1U+O35vN1IXjy4MkcmT5Te78xh+GGGYoyDfRF9qTt6ikR8gwmmvKPmTZL?= =?us-ascii?Q?i03DzGi3PCoHbpGTOlqCTg24ck2PG/OnXX/8PCTGEW0cB5QsWbwhQMP7brCU?= =?us-ascii?Q?ssEfi2RMPNcujgf0U7LK9ClNSDEbdkhJkkRhlL+bhZPBeiIorq7oX+pQ/K5P?= =?us-ascii?Q?W9Rnx9XH2NnixrzSXVjbv0LGkkwDKRcjU6ArjfeTTjLVFQeKKaIVBXlMH+MT?= =?us-ascii?Q?t9jUJZvRawVUviTNm6372Ie9l2s5ETkEaCjmU/stZVso0WjTS6FoZs9PYovh?= =?us-ascii?Q?br6Q58V/AQpRIGz2oCAUdY3AYJZAzQZNrYMq+rvlxoU7EeT+0kMokPdb3ZrY?= =?us-ascii?Q?PsGxV6yPwxpax8AUU2ZrqKWxJFemKStfFvdxjrMENgD6Oa2BDifhb9E5H0o4?= =?us-ascii?Q?7Lmzs6qoRBuTbC28wE0ZgXgAs1ULPEirPNkVvYduQIYw9+JJWJXHoAB7LOxo?= =?us-ascii?Q?WQ5AL4yyvVlxbYpFDdLQ0odx7AO8jfyzjE5k2Md5VTlgYQUyfDmBWx/Kghx0?= =?us-ascii?Q?hSyKtosfSGDqqbXoklmskSSAy7OoRfKaWya8L/ly6NcSvyBrvDhNQiWrk//2?= =?us-ascii?Q?0+GypaF0BSVYTsq8dUL2cya7zdNfhTxciXqcphJ81GHRWMxewqZGCUZTZtrP?= =?us-ascii?Q?DUMkNiTkTX6cHtElDIHfiXCpD6MJrSxrz2TtxNQaYEi5pzduSKsgK7Vrybxh?= =?us-ascii?Q?nHxldNyd4TyU7CQfH/3VbGStQ4ApWm2H096N2NKesE8kCYc0PZEGfxIJfH7v?= =?us-ascii?Q?QMiU57rICrgeF/AjyTPPezFgic0OdGUW+n0MiXzcTblPyCZdP6jt+c5UOALY?= =?us-ascii?Q?XVmxpKuDadl8Iqhp4gi+3I33Dza4zJ715ko9RZf1g6C8gt1ABfapzLm6xr5F?= =?us-ascii?Q?+teKXcU=3D?= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?bV/Y14qo05dILWCmKAFsDBbKhqxoztVsp7rS2QtuMcGL3DReZYvw5rvB/bji?= =?us-ascii?Q?nRozzlLL6hKGN6tVpz4DxP754k6lfL3ruOEt6IX97oWjAgeK0VWPa68WrIN1?= =?us-ascii?Q?t4DqCuLL8NMquVgmc6vl075t03sfpX5j8IkdX5JJdJ4W752q9NogKgvHEwJS?= =?us-ascii?Q?2J19D7tvRQT/UgBmrhwg/0nEDp/tp88vH/hBFuosJyN3E799k3KlZRpP/3qP?= =?us-ascii?Q?Eut8i+VtQeWQmWSNzkDrs9li77dRpR90+ttlT1U43x8lk2mG5BV/YKFJdUu4?= =?us-ascii?Q?rzGsAh7K1GLfvwhJ0sfWtUmH3k6LMny1pDxS12qLJhUkLqfleKtEx5Pe4rFd?= =?us-ascii?Q?90Mmp+QaZjc2nPMCXqzgjLmqeGN+Y9tK7qHDbtq6rS1KEt0XVWFJ7d/hpnG8?= =?us-ascii?Q?xyD5PlLjTC7IyK/drC9ZGAFvgeXXDwyhY7Zfdfby9yxmJjQYPHtC1SC4+8CF?= =?us-ascii?Q?xjv/rbSXzd63s8IWZyTF7GxgMWqvgzgZMH65yg2u9cAz5VKh483TMESr1nvM?= =?us-ascii?Q?ktWNwesk/psFXorQpcGrOs4L0BdnMQyl5+UNUHvljDcke7Sd5/+0iUYR7XL0?= =?us-ascii?Q?fhNsEUxkubVx632Hjp03Yt7747wGcR6heRUJ/5urobK8cZtbskHJmuig0cbg?= =?us-ascii?Q?CSLBFFXVH7HVXkI32emTW4Qh+E9kQRa6vuwi4l1fIgIhagrmX4zjERFZznWp?= =?us-ascii?Q?iQ4vYsdf5AbQJyWmPSdfHPtn7syeqM1ryLO8uvwp3PFJv+9rCds4XmloWfyK?= =?us-ascii?Q?KTNJYFar1pyH8LoFdmOqJRwk0PeOArl+ygfwc2cFCtTMYqr3Jxd1oXTMvfVW?= =?us-ascii?Q?s+XWENtAVKMj25q2TNbekBE6SEw8nJJJYbegzLDkms/4AlE3QuvHuifn/m7L?= =?us-ascii?Q?zhU5FG18R3BF6oDhjGW17GY+ScxKDse0F47eXB1LrWvs+6VwyjnG/kuNMugN?= =?us-ascii?Q?uRJC79FYrXbX241jwhTFQDoCVPQjCCx6Nguae9G7pL2PbInQb6XXY65LRoeh?= =?us-ascii?Q?Xidazr6iXgZTeO0i+I2p6iasWkMqh+46GpBMAkR366fHmKQiVvawrIUGu7UI?= =?us-ascii?Q?PMlAD4ub2l6Kifsv66l76088h8DqgXHpdIAGM6vVWd4UdFmjni7K5YizjzpR?= =?us-ascii?Q?P3yveJAkhULPpWWsb+6ljriUdTUBDWvy6hJSs8tCPpFbfRzPnV3tOy0b6EJE?= =?us-ascii?Q?ZFkLxsRZ4U+k1u8HsErIGKrcukU5qREyMrSWuSkxp2UbGOZ6FDS3kf4MpIwU?= =?us-ascii?Q?ipMAQodfHHv0u4/FGd+Hv5WhzfcXaw337L3bBiX7ssrSTE/NQ2ofHUzTiSkB?= =?us-ascii?Q?JEMvtc5f9J/swMVmkHJBQi85TVd/CdPtl/eKqprePZGMKBlodLF1WC2AOO2V?= =?us-ascii?Q?y9yABewcbkaOnFfLPZWtrwiv3nQ+VXRQ4k7P3uaOwsP2Jr0t9LGtrOW73nBf?= =?us-ascii?Q?YfZ4hA7YNXaoU+dkP8nPOZewCEhR7jEMKaGU6N3Rsla4efiGwNPrHvQUYMbf?= =?us-ascii?Q?+zE4u1xny8ylGJ/C7U6W6Ku3Llu0UP5EcTSNHrtrD+Jao4EPjuuYPwWUknwy?= =?us-ascii?Q?l1NEv7aLhyvaUkCOVV+B9mMbYrW08o94LM+TCxWq?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4929.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2a1e03e8-614a-4f19-6828-08dca9c8415f X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jul 2024 21:01:13.4756 (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: KqAG6RPOluchX2H3zVa593E4XZVxT1rhtMlLKVeM1iguF99YYc0XCWghXLUs3sHRqIfyv5P5qkw/hUDDVneEJFbMLEOLZR5FngiZp1URZyw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR11MB6886 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: Sun, 21 Jul 2024 14:01:19 -0700 Resent-From: michael.d.kinney@intel.com Reply-To: devel@edk2.groups.io,michael.d.kinney@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: dpf7I896le2oyLhlLtOKbtnFx7686176AA= 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=aUi63Zjg; 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 Reviewed-by: Michael D Kinney > -----Original Message----- > From: Jayaprakash, N > Sent: Saturday, July 20, 2024 8:48 AM > To: devel@edk2.groups.io > Cc: Jayaprakash, N ; Rebecca Cran > ; Kinney, Michael D > Subject: [edk2-libc Patch v2 1/1] edk2-libc: Support for compiling Python > UEFI interpreter with VS2022 >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4811 >=20 > While trying to compile Python UEFI 3.6.8 with VS2022, got several > compiler warnings from other components within the edk2-libc project. > These warnings were leading to compilation failure as they were > treated as errors. All these issues have been fixed througn this > commit. Besides this, updated the year in copy right of these file. >=20 > Summary of the issues is given below for reference: > 1.AppPkg\Applications\Enquire\Enquire.c > Warning C4459: Declaration of 'bugs' hides global declaration. > Warning C4456: Multiple declarations of 'char_max' hide previous > local declarations. > Warning C4456: Declaration of 'char_min' hides previous local > declaration. >=20 > 2.AppPkg\Applications\OrderedCollectionTest\OrderedCollectionTest.c > Warning C4476: Unknown type field character '$' in format > specifier. > Warning C4474: Too many arguments passed for format string. >=20 > 3.StdLib\BsdSocketLib\getnetbyht.c > Warning C4459: Declaration of 'net' hides global declaration. >=20 > 4.StdLib\EfiSocketLib\Socket.c > Warning C4459: Multiple declarations of 'errno' hide global > declaration. >=20 > 5.AppPkg\Applications\Sockets\DataSource\DataSource.c > Warning C4459: Declaration of 'BytesSent' hides global declaration. >=20 > 6.AppPkg\Applications\Sockets\OobRx\OobRx.c > Warning C4475: Length modifier 'L' cannot be used with type field > character 'd' in format specifier. >=20 > 7.AppPkg\Applications\Sockets\RawIp4Rx\RawIp4Rx.c > Warning C4475: Length modifier 'L' cannot be used with type field > character 'd' in format specifier. >=20 > 8.StdLib\BsdSocketLib\ns_print.c > Warning C4456: Multiple declarations of 't' hide previous local > declarations. > Warning C4457: Declaration of 'type' hides function parameter. >=20 > 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 | 6 +- > .../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, 117 insertions(+), 107 deletions(-) >=20 > 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. >=20 > - Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved. > + Copyright (c) 2010 - 2024, Intel Corporation. All rights reserved. > This program and the accompanying materials > are licensed and made available under the terms and conditions of th= e > BSD License > which accompanies this distribution. The full text of the license ma= y be > found at > @@ -918,15 +918,15 @@ memeq( > } >=20 > 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 problems", bugs_local); > printf(" above\n see the section 'TROUBLESHOOTING' in the file "); > printf("%s%s\n", FILENAME, oc); > - exit(bugs); > + exit(bugs_local); > } >=20 > /* The program has received a signal where it wasn't expecting one */ > @@ -1927,51 +1927,51 @@ int cprop( void ) >=20 > 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_loc= al; > + 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, > char_min; > - c1=3D0; char_max=3D0; > +/* Syntax error? Define NO_SC */ Volatile signed char c1, 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). >=20 > Copyright (C) 2014, Red Hat, Inc. > - Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.
> + Copyright (c) 2010 - 2024, Intel Corporation. All rights reserved.
>=20 > SPDX-License-Identifier: BSD-2-Clause-Patent > **/ > @@ -458,10 +458,10 @@ SetupInputOutput ( >=20 > 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); >=20 > diff --git a/AppPkg/Applications/Sockets/DataSource/DataSource.c > b/AppPkg/Applications/Sockets/DataSource/DataSource.c > index 360689e..7f64294 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. >=20 > - 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 >=20 > **/ > @@ -538,7 +538,7 @@ EFI_STATUS > SocketSend ( > ) > { > - size_t BytesSent; > + size_t BytesSentLocal; > EFI_STATUS Status; > EFI_TPL TplPrevious; >=20 > @@ -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; >=20 > // > // Release the TimerCallback routine synchronization > diff --git a/AppPkg/Applications/Sockets/OobRx/OobRx.c > b/AppPkg/Applications/Sockets/OobRx/OobRx.c > index 28e10d8..1eb9497 100644 > --- a/AppPkg/Applications/Sockets/OobRx/OobRx.c > +++ b/AppPkg/Applications/Sockets/OobRx/OobRx.c > @@ -1,7 +1,7 @@ > /** @file > Windows version of the OOB Receive application >=20 > - 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 >=20 > **/ > @@ -150,7 +150,7 @@ OobRx ( > // > // Display the received OOB data > // > - printf ( "%5Ld OOB bytes received\r\n", (UINT64)BytesReceive= d ); > + printf ( "%5llu OOB bytes received\r\n", (UINT64)BytesReceiv= ed > ); >=20 > // > // Account for the bytes received > @@ -183,7 +183,7 @@ OobRx ( > // > // Display the received data > // > - printf ( "%4Ld bytes received\r\n", (UINT64)BytesReceived = ); > + printf ( "%4llu bytes received\r\n", (UINT64)BytesReceived= ); >=20 > // > // Account for the bytes received > diff --git a/AppPkg/Applications/Sockets/RawIp4Rx/RawIp4Rx.c > b/AppPkg/Applications/Sockets/RawIp4Rx/RawIp4Rx.c > index b52cd38..ae856a0 100644 > --- a/AppPkg/Applications/Sockets/RawIp4Rx/RawIp4Rx.c > +++ b/AppPkg/Applications/Sockets/RawIp4Rx/RawIp4Rx.c > @@ -1,7 +1,7 @@ > /** @file > Raw IP4 receive application >=20 > - 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 >=20 > **/ > @@ -157,7 +157,7 @@ RawIp4Rx ( > // Display the bytes received > // > if ( 0 =3D=3D RetVal ) { > - printf ( "Total Bytes Received: %Ld\r\n", TotalBytesReceived = ); > + printf ( "Total Bytes Received: %llu\r\n", TotalBytesReceived= ); > } >=20 > // > diff --git a/StdLib/BsdSocketLib/getnetbyht.c > b/StdLib/BsdSocketLib/getnetbyht.c > index 08b8042..f990c65 100644 > --- a/StdLib/BsdSocketLib/getnetbyht.c > +++ b/StdLib/BsdSocketLib/getnetbyht.c > @@ -41,6 +41,11 @@ > * from getnetent.c 1.1 (Coimbra) 93/06/02 > */ >=20 > +/* > + * Copyright (c) 2023 - 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: > } >=20 > struct netent * > -_getnetbyhtaddr(register unsigned long net, register int type) > +_getnetbyhtaddr(register unsigned long net_local, register int type) > { > register struct netent *p; >=20 > 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 b/StdLib/BsdSocketLib/ns_prin= t.c > index ea29d01..75c28de 100644 > --- a/StdLib/BsdSocketLib/ns_print.c > +++ b/StdLib/BsdSocketLib/ns_print.c > @@ -55,6 +55,11 @@ > * > */ >=20 > +/* > + * Copyright (c) 2023 - 2024, Intel Corporation. All rights reserved. > + * SPDX-License-Identifier: BSD-2-Clause-Patent > + */ > + > /* Import. */ >=20 > #include > @@ -211,7 +216,7 @@ ns_sprintrrf(const u_char *msg, size_t msglen, > break; >=20 > case ns_t_soa: { > - u_long t; > + u_long t_local; >=20 > /* 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; >=20 > /* 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; >=20 > /* 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; >=20 > /* 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; >=20 > /* 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; >=20 > /* 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; >=20 > if (rdlen < NS_INT16SZ) > goto formerr; >=20 > /* 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)); >=20 > /* Target. */ > @@ -294,15 +299,15 @@ ns_sprintrrf(const u_char *msg, size_t msglen, > } >=20 > case ns_t_px: { > - u_int t; > + u_int t_local; >=20 > if (rdlen < NS_INT16SZ) > goto formerr; >=20 > /* 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)); >=20 > /* Name1. */ > @@ -503,33 +508,33 @@ ns_sprintrrf(const u_char *msg, size_t msglen, > } >=20 > 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; >=20 > if (rdlen < 22) > goto formerr; >=20 > /* 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, (unsigned > long)t_local)); > T(addstr(tmp, len, &buf, &buflen)); > if (labels !=3D (u_int)dn_count_labels(name)) > goto formerr; >=20 > /* 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)); >=20 > /* 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)); >=20 > /* Signature Footprint. */ > diff --git a/StdLib/EfiSocketLib/Socket.c 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 >=20 > - Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.
> + Copyright (c) 2010 - 2024, Intel Corporation. All rights reserved.
> SPDX-License-Identifier: BSD-2-Clause-Patent >=20 >=20 > @@ -570,7 +570,7 @@ EslSocket ( > int ApiArraySize; > ESL_SOCKET * pSocket; > EFI_STATUS Status; > - int errno; > + int error_num; >=20 > DBG_ENTER ( ); >=20 > @@ -583,7 +583,7 @@ EslSocket ( > } >=20 > // Assume success > - errno =3D 0; > + error_num =3D 0; > Status =3D EFI_SUCCESS; >=20 > // 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; > } >=20 > @@ -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; > } >=20 > @@ -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; > } >=20 > // The driver does not support this protocol > DEBUG (( DEBUG_ERROR | DEBUG_SOCKET, > "ERROR - The protocol does not support this socket > 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; >=20 > // > @@ -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; > } >=20 > // > @@ -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; >=20 > // > // Synchronize with the socket layer > @@ -1521,7 +1521,7 @@ EslSocketCloseStart ( > DEBUG_CLOSE | DEBUG_LISTEN | > DEBUG_CONNECTION ); > if (( EFI_SUCCESS !=3D Status ) > && ( EFI_NOT_READY !=3D Status )) { > - errno =3D EIO; > + error_num =3D EIO; > break; > } >=20 > @@ -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; > } >=20 > // > @@ -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; >=20 > @@ -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 @@ EslSocketFree ( > } >=20 > // > - // Return the errno value if possible > + // Return the error_num value if possible > // > if ( NULL !=3D pErrno ) { > - *pErrno =3D errno; > + *pErrno =3D error_num; > } >=20 > // > @@ -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; >=20 > // > @@ -2795,7 +2795,7 @@ EslSocketOptionGet ( > OptionName, > (CONST void ** > __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; >=20 > @@ -2825,7 +2825,7 @@ EslSocketOptionGet ( > // Socket option not supported > // > DEBUG (( DEBUG_INFO | DEBUG_OPTION, "ERROR - Invalid socket > option!\r\n" )); > - errno =3D EINVAL; > + error_num =3D EINVAL; > Status =3D EFI_INVALID_PARAMETER; > break; >=20 > @@ -2927,7 +2927,7 @@ EslSocketOptionGet ( > if ( LengthInBytes < MaxBytes ) { > ZeroMem ( &((UINT8 *)pOptionValue)[LengthInBytes], MaxBytes - > 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; >=20 > // > @@ -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; >=20 > @@ -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; >=20 > @@ -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 (#119999): https://edk2.groups.io/g/devel/message/119999 Mute This Topic: https://groups.io/mt/107454081/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-