[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v8 05/10] types.h: Add GRUB_SSIZE_MAX
From: |
Oliver Steffen |
Subject: |
[PATCH v8 05/10] types.h: Add GRUB_SSIZE_MAX |
Date: |
Wed, 24 May 2023 16:55:53 +0200 |
In the same way as GRUB_SIZE_MAX, add GRUB_SSIZE_MAX.
Signed-off-by: Oliver Steffen <osteffen@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
---
include/grub/types.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/grub/types.h b/include/grub/types.h
index c56ce9820..9f43a5580 100644
--- a/include/grub/types.h
+++ b/include/grub/types.h
@@ -122,6 +122,7 @@ typedef grub_uint64_t grub_size_t;
typedef grub_int64_t grub_ssize_t;
# define GRUB_SIZE_MAX 18446744073709551615UL
+# define GRUB_SSIZE_MAX 9223372036854775807L
# if GRUB_CPU_SIZEOF_LONG == 8
# define PRIxGRUB_SIZE "lx"
@@ -140,6 +141,7 @@ typedef grub_uint32_t grub_size_t;
typedef grub_int32_t grub_ssize_t;
# define GRUB_SIZE_MAX 4294967295UL
+# define GRUB_SSIZE_MAX 2147483647L
# define PRIxGRUB_SIZE "x"
# define PRIxGRUB_ADDR "x"
--
2.40.1
- [PATCH v8 00/10] Add basic Boot Loader Interface support, Oliver Steffen, 2023/05/24
- [PATCH v8 04/10] grub-core: Make use of guid printf format specifier, Oliver Steffen, 2023/05/24
- [PATCH v8 03/10] kern/misc: Add a format specifier GUIDs, Oliver Steffen, 2023/05/24
- [PATCH v8 02/10] Unify GUID types, Oliver Steffen, 2023/05/24
- [PATCH v8 01/10] efi: Add grub_efi_set_variable_with_attributes(), Oliver Steffen, 2023/05/24
- [PATCH v8 06/10] kern/misc, kern/efi: Extract UTF-8 to UTF-16 code, Oliver Steffen, 2023/05/24
- [PATCH v8 07/10] efi: Add grub_efi_set_variable_to_string(), Oliver Steffen, 2023/05/24
- [PATCH v8 05/10] types.h: Add GRUB_SSIZE_MAX,
Oliver Steffen <=
- [PATCH v8 08/10] docs: Reword section headings, Oliver Steffen, 2023/05/24
- [PATCH v8 10/10] util/grub.d: Activate bli module on EFI, Oliver Steffen, 2023/05/24
- [PATCH v8 09/10] Add a module for the Boot Loader Interface, Oliver Steffen, 2023/05/24
- Re: [PATCH v8 00/10] Add basic Boot Loader Interface support, Daniel Kiper, 2023/05/25