From nobody Mon Apr 27 00:30:05 2026 X-Original-To: dev-commits-src-all@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 4g3kwz2NBMz6bKmW for ; Mon, 27 Apr 2026 00:30:11 +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 4g3kwy6BTbz3RWX for ; Mon, 27 Apr 2026 00:30:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1777249810; 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=o6GxdO025mfpYTMlFVd3WZa5QOMBfNwWQuMdXbgGUJIdxu/umSgUKJEK+sWK0mGEh5t7B9 bG6z3EMrW9LOOylapkI3sl5RTDrTgPK+WB88hxTaNUrr7zC0ST7iBn+crDi/DfgT0/jBnn Zf3zBQq6h5r9EqKCYlStl++FUCNbbi5yS6A1SK8J+9U4D0Vfq0ji10MhxYiYwuk5zGLgxT uabdcr4H5gena0IPoGMr4lI2N9NnR6/m52SNv01HtsEqm52751CbNG5eFxEh1c4tsXaihq GWNT6cUX9Kw5GfLyJukoKg+vKpewF4wyJGL0zZL640IPng6UN/b3jcJi8JZ1cA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1777249810; a=rsa-sha256; cv=none; b=Jv+4k1PWslXvQJehsZX9mLQem+68x3u2pdJemHM9juSmZorl7Z2X0cSmCdwCtTFbo4O1DZ eQxIdOzPc43vJ7MMNrmQD6dBcK5ePVD3CtYO9PgN+ebYVI3eLGU+eEPp6R1IaOar23IiQE U8L9kKZC++9oQmer08FyPdb6QzbGwvCamqCUs4uKtbC9Vur8awgLNDOvIcFkJmjiXm/sI5 1XFiQXD/Bb4TEBits3eXUGAnuv7P4jPR6O2t7KPDNL5+nBPqo+80gDLkgNj7o57mRju7I6 Y6uT4qFBb27uycezl4PcWnN+6JXWjw7U28X6ehQj6sWKoPqRyy3K5mI9BNNVeA== 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=1777249810; 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=rETk+BGFaFX8Wkl7RkgQVa4bPywCwOiJdIu86cAYnDlhIUrI9BTt1BES96ask7RmRUbB5S GrMWEnJkZojwzvqkWmVzKzfCwxyDkX9ngbOds8h3xi1IWVbKYhfvBZJNbD4nP3JAO465sf J684GIWkJOXQZYFe4KdTFt54inNrOb1W+NaUivFE5DkYUVlCh2w46fnks5bW9y1BOJXynr hPDiaIcIkgkhc1jZzj5eJbddOw7ngZW2563hkpUgO1zB6AX7xu9DNzlE9z/QXLQjwhSHvr jYWa75pOmFv/I7nf1fDAJJM+D7oe3musnirvm2s4c4qwkbBxgnBOSsH2FPZdnA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4g3kwy5mXYzkw6 for ; Mon, 27 Apr 2026 00:30:10 +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: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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;