Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Nov 2025 14:56:10 +0000
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 6ebbfe723bd2 - main - sys/_types.h: add __intptr_t to __mbstate_t
Message-ID:  <6928668a.310cf.17119f9a@gitrepo.freebsd.org>

index | next in thread | raw e-mail

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;


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6928668a.310cf.17119f9a>