git: 6ebbfe723bd2 - main - sys/_types.h: add __intptr_t to __mbstate_t
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 27 Nov 2025 14:56:10 UTC
The branch main has been updated by brooks:
URL: https://cgit.FreeBSD.org/src/commit/?id=6ebbfe723bd284e197a197b6aefd27870876b7f9
commit 6ebbfe723bd284e197a197b6aefd27870876b7f9
Author: Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2025-11-27 14:54:56 +0000
Commit: Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2025-11-27 14:54:56 +0000
sys/_types.h: add __intptr_t to __mbstate_t
Extend __mbstate_t to include an intptr_t to ensure it can hold a
pointer if required.
Reviewed by: kib, markj
Effort: CHERI upstreaming
Sponsored by: Innovate UK
Differential Revision: https://reviews.freebsd.org/D53822
---
sys/sys/_types.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/sys/_types.h b/sys/sys/_types.h
index 7aa7f7bfeb72..6be3d2c66012 100644
--- a/sys/sys/_types.h
+++ b/sys/sys/_types.h
@@ -229,6 +229,7 @@ typedef __uint32_t __fixpt_t; /* fixed point number */
typedef union {
char __mbstate8[128];
__int64_t _mbstateL; /* for alignment */
+ __intptr_t _mbstateP; /* for alignment */
} __mbstate_t;
typedef __uintmax_t __rman_res_t;