From nobody Mon Feb 9 19:04:45 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+112862+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+112862+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1703458776; cv=none; d=zohomail.com; s=zohoarc; b=GD+z3h3tHGs+UapwrY9h9rzr1MCPLaZ+VZJEp6D1+QK2gTHGLdmRrG/HgcscoAYhZcdi7hQrjJSaV6GDNV0pvMRMXa978RzhOvfpj+4mY05MG2J7zKYBoePsB9Ok/UL9aIEHosFsyaEVToFT4/c2we9cliTzm4cdSNRO911aL0Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1703458776; 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=m+Yr0fEiSzyvcXbsGlldgavTdRCplyn+txtVPaYsbG0=; b=G/ECrWDyHIrqvrI7inoybhGQlADNbUXtUdesdOYjloB6CFPTIplRwyz5K24oPNoGBcykmh8rifC0jdro2V+a+/T+gCQVz2OB+a5bkiPwveGppsimXSWAqan+ictAmme4Oi87wP8pmpsN4g3ukZjYqWSyAADHiEJlQcNKfa5AvsA= 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+112862+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 1703458776642751.3992105129724; Sun, 24 Dec 2023 14:59:36 -0800 (PST) Return-Path: DKIM-Signature: a=rsa-sha256; bh=82GHOn/nW3jNQBf5bWolGuVoCUjw3SKr38gLWNoNcDs=; 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=1703458776; v=1; b=fbHpr+DguKHtKR0N85WlRk12ufTutqt5Zve/ApJGCzUZSefUWUQr410TGwtB9iy8Pjv5GMTh x90J83uZAdoKIhE1qd/21tzhIbyI41MIoJwkdvrNOVPg/VN3C9pjfh8xVUhsgsQRynyzh8QH+V3 3bIgYRCYKdceRg4axoQSgCuw= X-Received: by 127.0.0.2 with SMTP id rhpKYY1788612xlVBrYjS5fy; Sun, 24 Dec 2023 14:59:36 -0800 X-Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) by mx.groups.io with SMTP id smtpd.web10.35941.1703458775509170236 for ; Sun, 24 Dec 2023 14:59:35 -0800 X-Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-50e73b068beso1086119e87.1 for ; Sun, 24 Dec 2023 14:59:35 -0800 (PST) X-Gm-Message-State: h3e9Rq2kjee3yXlnVkpMH2mpx1787277AA= X-Google-Smtp-Source: AGHT+IEccULp+f69R68kXkgJX45nWDDT+pHf8BCVJ1C9TGARNyhW5dDkRY7gAYJI6Q2ZxrcDfQnD5g== X-Received: by 2002:ac2:548b:0:b0:50e:36bc:747a with SMTP id t11-20020ac2548b000000b0050e36bc747amr1871240lfk.128.1703458773503; Sun, 24 Dec 2023 14:59:33 -0800 (PST) X-Received: from localhost.localdomain ([79.164.221.98]) by smtp.gmail.com with ESMTPSA id be44-20020a056512252c00b0050e78f5178asm326596lfb.262.2023.12.24.14.59.32 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 24 Dec 2023 14:59:32 -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 v3 03/16] RedfishPkg: get rid of unused definitions from RedfishCrtLib.h Date: Mon, 25 Dec 2023 01:59:14 +0300 Message-Id: <20231224225927.9119-4-mike.maslenkin@gmail.com> In-Reply-To: <20231224225927.9119-1-mike.maslenkin@gmail.com> References: <20231224225927.9119-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: 1703458778408100014 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: 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 (#112862): https://edk2.groups.io/g/devel/message/112862 Mute This Topic: https://groups.io/mt/103354122/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-