[edk2-devel] [PATCH v3 6/8] CryptoPkg/CrtLibSupport: add off_t

Pedro Falcato pedro.falcato at gmail.com
Mon Apr 11 20:12:40 UTC 2022


Hi Gerd,

According to POSIX, off_t should be a signed integer type, so I suggest we
use INTN there.

On Mon, Apr 11, 2022 at 12:25 PM Gerd Hoffmann <kraxel at redhat.com> wrote:

> Add typedef for off_t.
> Will be needed by openssl 3.0.
>
> Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
> Reviewed-by: Jiewen Yao <Jiewen.yao at intel.com>
> ---
>  CryptoPkg/Library/Include/CrtLibSupport.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h
> b/CryptoPkg/Library/Include/CrtLibSupport.h
> index 9829ec010aee..287d7f76bfb3 100644
> --- a/CryptoPkg/Library/Include/CrtLibSupport.h
> +++ b/CryptoPkg/Library/Include/CrtLibSupport.h
> @@ -104,6 +104,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
>  // Basic types mapping
>  //
>  typedef UINTN   size_t;
> +typedef UINTN   off_t;
>  typedef UINTN   u_int;
>  typedef INTN    ptrdiff_t;
>  typedef INTN    ssize_t;
> --
> 2.35.1
>
>
>
> 
>
>
>

-- 
Pedro Falcato


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#88720): https://edk2.groups.io/g/devel/message/88720
Mute This Topic: https://groups.io/mt/90392498/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20220411/aafd2656/attachment.htm>


More information about the edk2-devel-archive mailing list