From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 56209D811A1 for ; Thu, 14 Dec 2023 23:25:09 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=NaxhbHn1iybG7cDV/l9DeteYD0AJWYe73nItsMNsF68=; 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=1702596308; v=1; b=Ev+COltbEv00SMhSejhv1gBnKf4Ktad++9o5THixTd6sVkI9r+opUyidAQKpg1Ya/Qeszgep E803au027C4fi3PsFWux9KTnHtmi0EjnSaHzJuifrnBqG2r+EvSscTfmDNcFkM9FvMdID8CQt82 KI7XxdeHkuCbafgp4HlwZbRU= X-Received: by 127.0.0.2 with SMTP id 5hSEYY7687511xKr5awwBXbn; Thu, 14 Dec 2023 15:25:08 -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: VkJDaL04F39wMoby1JoXNQcXx7686176AA= 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-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=Ev+COltb; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) 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 --- 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 @@ //=0D // Basic types mapping=0D //=0D -typedef UINTN size_t;=0D -typedef INTN ssize_t;=0D -typedef INT32 time_t;=0D -typedef UINT8 __uint8_t;=0D -typedef UINT8 sa_family_t;=0D -typedef UINT32 uid_t;=0D -typedef UINT32 gid_t;=0D -typedef INT32 int32_t;=0D -typedef UINT32 uint32_t;=0D -typedef UINT16 uint16_t;=0D -typedef UINT8 uint8_t;=0D -typedef enum {=0D - false, true=0D -} bool;=0D +typedef UINTN size_t;=0D +typedef INTN ssize_t;=0D +typedef INT32 time_t;=0D +typedef INT32 int32_t;=0D +typedef UINT32 uint32_t;=0D +typedef UINT16 uint16_t;=0D +typedef UINT8 uint8_t;=0D +typedef BOOLEAN bool;=0D +=0D +#define true (1 =3D=3D 1)=0D +#define false (1 =3D=3D 0)=0D =0D //=0D // File operations are not required for EFI building,=0D @@ -343,26 +340,6 @@ fgetc ( FILE *_File=0D );=0D =0D -uid_t=0D -getuid (=0D - void=0D - );=0D -=0D -uid_t=0D -geteuid (=0D - void=0D - );=0D -=0D -gid_t=0D -getgid (=0D - void=0D - );=0D -=0D -gid_t=0D -getegid (=0D - void=0D - );=0D -=0D void=0D qsort (=0D void *,=0D --=20 2.32.0 (Apple Git-132) -=-=-=-=-=-=-=-=-=-=-=- 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/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-