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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user