From nobody Mon Apr 27 00:30:05 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4g3kwt0C2Zz6bKtk for ; Mon, 27 Apr 2026 00:30:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4g3kws6SPqz3RQh for ; Mon, 27 Apr 2026 00:30:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1777249805; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GefgSmGP3W5Uf2uWWeVj9BUTdBAwLSEAQYxoJCtR9xo=; b=U/eY7ltCB8oP96ufyCYzJ6EYZp6h/ieLcwElTEW7defeAJuYJvndyhIsN/cRBR0U9Eh3n4 /TtIFr7xUYilndVejIzAw0VLooZgJIaHfsrKvtRe/iFNaw9cOJpnv7hY9U5fF6gY78QAlQ fN0XXit7z5TnvxaO3CX2VwjsancUM7CcIluMdz2QTmuFL9Z0S1FqcN7k0uu6l36E/CBkS1 Dm5Mx+YRZom1tbD//qMqGmAsnYZCQnhe+pzyv/IHSWgH0to73KXeeykUd3ih7HuLnLy44b 1BdUk12PfGMJJZyDq30IEUai9+D4jYQsbNmTbh/qq85hQN7buaG1Mtn2nTpqIg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1777249805; a=rsa-sha256; cv=none; b=Ah2OKhRSCEutbt5rHIRHD5hUcvaq9G1/9s7mfCRqg73KFCPlH3k1E5XvFHqMfVBvn2n/y0 +TxKqQ5herQWh4nILtZja1eIh9LcAi2DNUBYAMVnWfbhmUNEPIcs6Z9ikuPGWe7+KsPf3E FzmwHetYwPpd3myUpRfO+eQgr0rtKzNrbEu5gymN0nsJhpZ0GNrCjaa0waxZPNRzxyLkMa n62UCfeRonllqc2NMT69mUtXLEcjcy7c4sKVVnhfCeXMMVJGWJhCvzX1YiZ6K21Ps18xA6 9nhCZ8WlW9wgIJArSv5lfxUEI5F68qw/H6hQAEO7GS80ZrFrMo+u+UyDOfaWdg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1777249805; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GefgSmGP3W5Uf2uWWeVj9BUTdBAwLSEAQYxoJCtR9xo=; b=HzvUjBBnzwu24r741vvvH/QKZcEnZiviMB63wbszTB/mhjahFroqakbBDWC8cNKlbv3cCN RJVHGnElx8+Ab5jMKiC/ZF0F5j/jHK02EXnzQhgrwgd0eub0tzx83SMM2iU/KgqifkRbaa PlAZOaRiZucEx251zQ+weQF1oC+GzXPIl7yLAOGj7quYuCAJ1t1G1l7vEBn2mTPJprI8I4 Xfm/QZyPtoW6f+ZCZQd69JApKfxuP2NVyGvS4KkLCk7nKZpaV7aEM6rYsHWtp8LhsXWM5v iMrAicfLsRuvDG7GoO4DhNVGkUHdgu+3nBIA8jMQ1A48RtbPQy1QXy7UaPzy6g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4g3kws5mFHzkw5 for ; Mon, 27 Apr 2026 00:30:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1ee69 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 27 Apr 2026 00:30:05 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Robert Clausecker Subject: git: 16ed84d2b9a1 - stable/15 - include/stdbit.h: declare size_t, (u)int*_t, and (u)int_least*_t List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 16ed84d2b9a1c95b6e0aabd5b7976367b2997d00 Auto-Submitted: auto-generated Date: Mon, 27 Apr 2026 00:30:05 +0000 Message-Id: <69eeae0d.1ee69.664c2129@gitrepo.freebsd.org> The branch stable/15 has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=16ed84d2b9a1c95b6e0aabd5b7976367b2997d00 commit 16ed84d2b9a1c95b6e0aabd5b7976367b2997d00 Author: Robert Clausecker AuthorDate: 2026-04-19 12:36:34 +0000 Commit: Robert Clausecker CommitDate: 2026-04-27 00:29:49 +0000 include/stdbit.h: declare size_t, (u)int*_t, and (u)int_least*_t These are required by ISO/IEC 9899:2024 § 7.18.1 ¶ 1 but were forgotten in my initial work. The current approach leaks intptr_t, uintptr_t, intmax_t, and uintmax_t through . This could be avoided using a more complicated approach if desired. PR: 294131 Fixes: 6296500a85c8474e3ff3fe2f8e4a9d56dd0acd64 Reported by: Collin Funk Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D56515 (cherry picked from commit c8c9324c94dfd4eeecbcfe4a1d3daa047420d3e5) --- include/stdbit.h | 22 +++++++++++++++++++++- sys/sys/stdint.h | 3 +++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/include/stdbit.h b/include/stdbit.h index a529676bed4b..6b9ea02971b0 100644 --- a/include/stdbit.h +++ b/include/stdbit.h @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2025 Robert Clausecker + * Copyright (c) 2025-2026 Robert Clausecker * * SPDX-License-Identifier: BSD-2-Clause */ @@ -8,6 +8,26 @@ #define __STDC_VERSION_STDBIT_H__ 202311L #include +#include +#include + +#ifndef _SIZE_T_DECLARED +typedef __size_t size_t; +#define _SIZE_T_DECLARED +#endif + +#ifndef _INT_LEAST_T_DECLARED +typedef __int_least8_t int_least8_t; +typedef __int_least16_t int_least16_t; +typedef __int_least32_t int_least32_t; +typedef __int_least64_t int_least64_t; + +typedef __uint_least8_t uint_least8_t; +typedef __uint_least16_t uint_least16_t; +typedef __uint_least32_t uint_least32_t; +typedef __uint_least64_t uint_least64_t; +#define _INT_LEAST_T_DECLARED +#endif /* byte order */ #define __STDC_ENDIAN_LITTLE__ __ORDER_LITTLE_ENDIAN__ diff --git a/sys/sys/stdint.h b/sys/sys/stdint.h index 77f469f3c2a3..dccc5a8e6a6d 100644 --- a/sys/sys/stdint.h +++ b/sys/sys/stdint.h @@ -35,6 +35,7 @@ #include #include +#ifndef _INT_LEAST_T_DECLARED typedef __int_least8_t int_least8_t; typedef __int_least16_t int_least16_t; typedef __int_least32_t int_least32_t; @@ -44,6 +45,8 @@ typedef __uint_least8_t uint_least8_t; typedef __uint_least16_t uint_least16_t; typedef __uint_least32_t uint_least32_t; typedef __uint_least64_t uint_least64_t; +#define _INT_LEAST_T_DECLARED +#endif typedef __int_fast8_t int_fast8_t; typedef __int_fast16_t int_fast16_t;