From nobody Mon Apr 20 21:01:20 2026 X-Original-To: dev-commits-src-main@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 4fzyZn0H1dz6ZcS0 for ; Mon, 20 Apr 2026 21:01:21 +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 4fzyZm6g8jz43PT for ; Mon, 20 Apr 2026 21:01:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1776718881; 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=Ep0bU4cvphEgteOyxZoGQycoV3mWvsRsGniFAMoseoE=; b=FJnPYzGgWgqbrL3Vw3QLckSbxENwdT7eKRMmyjB8m55/v1dcXvcqQgHJei2rTjBjqaDY/s oTNyVA/Lo7dQqj2djqkHfP2iQrPSaI3DeXow2MEU0sEAYa7mZetBlGfnOcdNRrfFI2PkL4 7jb4RMEh9LtuULuSdiGiZafZ7Q9MDn0PzIsIRVEkS2wFe9zoyMVcyBEC5qMfS4mOGTQpa8 BAW7iGC1SwowdkjhKhW4feRX7SCLxJMfjzsP7XRFXaCdO24bgCaHiGaReWxmXCjgN7RyAP qz30M2DOvPbZFQshM/wicIMfKwcVqp6TXQcaU4TyOPLfw8yXOPsf4BXvDnbpYA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1776718881; a=rsa-sha256; cv=none; b=EreM6VffugrGCKzTuBDog5huWWSfwEpDKcSqsdi5nrr+DgT2TwsaVgd9qlff9Sn82z90KC 4iE20HOEdJ8+4Tmf0dKvgJgy99EWSxRlKsYYXkQH+nps32/UQrO0D1Dn8m01BodZFc/eOr iGDpYggkqZAiilUAHn21OvrDkZkIRIiU9abGHll8kRwmkS/rZApG9eFlN9+5qNA53Nx3Ga L5O1XK3oW3zn9FSaOeKST9W0IIXvMt3GqfvmFLOdTvNMH8G5Ld+aEE4HLYycvgUU5Ss+5f o6FyBYemYNQan4x2gbQHj0gLU0VhwfnOBkbHNSULUH4gCL34UDvMIv4JPruqcQ== 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=1776718881; 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=Ep0bU4cvphEgteOyxZoGQycoV3mWvsRsGniFAMoseoE=; b=byXQ/rAqFVEwx4lATrXtPB4rLtJxWfgxv9BW/QQhv2MkqvyaSyocuzhJOEIu/LlmI8jpy4 cqIXHUHk7bVPcEPlVGxVPR3rGgix0NpJQhITjiBd5JGUGivdVM7g+H5DodLj1McQBfjY0+ 4T3T2yGHaiXXJUNkFKkjR+qt7YepVnmnXaitbJ+Z3+M0qDZfZvLS6OVT1dg/QmjPYL8fri pdjLzs7judpX9TFpgjLvMmb34dvILOV+YlxGX9RYMb5jbSa7NHlo0kF+O313L3iPgNAJRo Ca29PnViXmFvOHyCgN2TmCs1z9iIWOOSCyj2EpZL/ezCQhwSIAebLSMbn1GYVQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fzyZm6Dfkz1BkD for ; Mon, 20 Apr 2026 21:01:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 26fc8 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 20 Apr 2026 21:01:20 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Robert Clausecker Subject: git: c8c9324c94df - main - include/stdbit.h: declare size_t, (u)int*_t, and (u)int_least*_t List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: c8c9324c94dfd4eeecbcfe4a1d3daa047420d3e5 Auto-Submitted: auto-generated Date: Mon, 20 Apr 2026 21:01:20 +0000 Message-Id: <69e69420.26fc8.2e0a62ad@gitrepo.freebsd.org> The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=c8c9324c94dfd4eeecbcfe4a1d3daa047420d3e5 commit c8c9324c94dfd4eeecbcfe4a1d3daa047420d3e5 Author: Robert Clausecker AuthorDate: 2026-04-19 12:36:34 +0000 Commit: Robert Clausecker CommitDate: 2026-04-20 20:59:54 +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 --- 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;