From nobody Mon Feb 9 21:37:18 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+112552+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+112552+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1702596307; cv=none; d=zohomail.com; s=zohoarc; b=fcydtdXULzLiHYQnWLfOanb2g8hkBy5lrm/rfY6PnezGaqgJIXYZGdFPiKHeWv1BYXCjMBx8sHEh8P0q1lGS9mMz2JrcPkhIdxp9iaGmiing3IGHoldP6a04Z+eEFUbGsvtX8NDEM1MAtf/4Fjm9VLJy0IND7GGMldoTP+Fj2hg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1702596307; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Sender:Subject:Subject:To:To:Message-Id; bh=6SGmQWS8emM4SUXfviLsYhknuXuKQkkmtB7s5s0sPSc=; b=kYo/XtdRTOcnRcyvk6JdvWLkPCiswNE1GT4BgkvyNBrbJcVf9BbXZxrXquOZnSBJ1swgUe8fz1f6JFX1VLFrRUSlLUnnSSoLmVjG8R6waoEAbwb5awLoPQ4ihSy9mxFNyYmxCkPWRbio657zuXwFuiAaXi/6IY/jwzLQb0Q1omI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+112552+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 170259630705615.509378777372945; Thu, 14 Dec 2023 15:25:07 -0800 (PST) Return-Path: DKIM-Signature: a=rsa-sha256; bh=xkTNuvFNFJ4N4PBYNpOO7WHK/eYg4zOGN57Kz4eKZPM=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1702596306; v=1; b=VPEDT1JoiO8P4mhKcA1FxCrS/nenZ012IkG9X2rRX1DbB+Tr2eamnR7q6E+vJhOvSpIX/lKI Pbc51QhKOJW/VpmRrO/a3tveU905bVxjY/96OSxE2KuGdOesvpFek5e6/grOPUFio0B29V5rx+f Mmh4bzL6Kg/uDVwUPmcSH+mQ= X-Received: by 127.0.0.2 with SMTP id pzi2YY1788612xSXrjmEMkVM; Thu, 14 Dec 2023 15:25:06 -0800 X-Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) by mx.groups.io with SMTP id smtpd.web11.44951.1702596305900671192 for ; Thu, 14 Dec 2023 15:25:06 -0800 X-Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-50e1d61b657so50876e87.0 for ; Thu, 14 Dec 2023 15:25:05 -0800 (PST) X-Gm-Message-State: szYN4nOjd0qL0Rqoa556bguix1787277AA= X-Google-Smtp-Source: AGHT+IEbF2K+mkoT/BOy+XPBmpmuLBaWRIxEXelXGS7BsmduJ8NAoG57nISJUIFCLPhGBBLCiZ6jLQ== X-Received: by 2002:a05:6512:3b21:b0:50c:1bc5:6a71 with SMTP id f33-20020a0565123b2100b0050c1bc56a71mr7002824lfv.3.1702596304069; Thu, 14 Dec 2023 15:25:04 -0800 (PST) X-Received: from localhost.localdomain ([79.164.221.98]) by smtp.gmail.com with ESMTPSA id j24-20020ac24558000000b0050bfe5815e7sm1973119lfm.165.2023.12.14.15.25.03 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 14 Dec 2023 15:25:03 -0800 (PST) From: "Mike Maslenkin" To: devel@edk2.groups.io Cc: abner.chang@amd.com, nicklew@nvidia.com, igork@ami.com, Mike Maslenkin Subject: [edk2-devel] [PATCH v2 03/14] RedfishPkg: get rid of unused definitions from RedfishCrtLib.h Date: Fri, 15 Dec 2023 02:24:47 +0300 Message-Id: <20231214232458.4636-4-mike.maslenkin@gmail.com> In-Reply-To: <20231214232458.4636-1-mike.maslenkin@gmail.com> References: <20231214232458.4636-1-mike.maslenkin@gmail.com> MIME-Version: 1.0 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 Reply-To: devel@edk2.groups.io,mike.maslenkin@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1702596308211100010 Content-Type: text/plain; charset="utf-8" It seems that initial implementation of this header file is based on CrtLibSupport.h from CryptoPkg. But uid, euid, gid, egid and sa_family_t sre not used in RedfishPkg. So remove them. Also take "true" and "false" definition from MdePkg's LibFdtSupport.h header file, that also seems based on a header mentioned above. Cc: Abner Chang Cc: Nickle Wang Cc: Igor Kulchytskyy Signed-off-by: Mike Maslenkin Reviewed-by: Abner Chang --- RedfishPkg/Include/Library/RedfishCrtLib.h | 45 ++++++---------------- 1 file changed, 11 insertions(+), 34 deletions(-) diff --git a/RedfishPkg/Include/Library/RedfishCrtLib.h b/RedfishPkg/Includ= e/Library/RedfishCrtLib.h index ac6c5162ad6a..0c51a03d0e1a 100644 --- a/RedfishPkg/Include/Library/RedfishCrtLib.h +++ b/RedfishPkg/Include/Library/RedfishCrtLib.h @@ -69,20 +69,17 @@ // // Basic types mapping // -typedef UINTN size_t; -typedef INTN ssize_t; -typedef INT32 time_t; -typedef UINT8 __uint8_t; -typedef UINT8 sa_family_t; -typedef UINT32 uid_t; -typedef UINT32 gid_t; -typedef INT32 int32_t; -typedef UINT32 uint32_t; -typedef UINT16 uint16_t; -typedef UINT8 uint8_t; -typedef enum { - false, true -} bool; +typedef UINTN size_t; +typedef INTN ssize_t; +typedef INT32 time_t; +typedef INT32 int32_t; +typedef UINT32 uint32_t; +typedef UINT16 uint16_t; +typedef UINT8 uint8_t; +typedef BOOLEAN bool; + +#define true (1 =3D=3D 1) +#define false (1 =3D=3D 0) =20 // // File operations are not required for EFI building, @@ -343,26 +340,6 @@ fgetc ( FILE *_File ); =20 -uid_t -getuid ( - void - ); - -uid_t -geteuid ( - void - ); - -gid_t -getgid ( - void - ); - -gid_t -getegid ( - void - ); - void qsort ( void *, --=20 2.32.0 (Apple Git-132) -=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 (#112552): https://edk2.groups.io/g/devel/message/112552 Mute This Topic: https://groups.io/mt/103181038/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-