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 ECDEB78003C for ; Sun, 24 Dec 2023 22:59:37 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=fywvDxurd2W/GU4e9jDMHA5e7XFgZq9ZHBQze1YTOJU=; 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=P8jO98ZackxCUZ9D3kumkeH1J/aU3s2D0qObsu39f9QZtTcwKqgb7O9YLaiR8y8jVc3D4MH4 7fDpiLOi71ATqckT42u8ubi+U7msdHUdccMmlLVJSvOFCFSWjj9iijp+FP2juzdgfMYAF+/wQLC U0fxLOCm2t/su2eHhnpn2BrU= X-Received: by 127.0.0.2 with SMTP id 9E4xYY7687511xSJHuHFpXxd; 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: SFxbfpATbgG8Ls8mizJNemAZx7686176AA= 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-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=P8jO98Za; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io 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 @@ //=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 (#112862): https://edk2.groups.io/g/devel/message/112862 Mute This Topic: https://groups.io/mt/103354122/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-