From nobody Wed Oct 02 18:02:16 2024 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 4XJjLx1TDSz5XsJc; Wed, 02 Oct 2024 18:02:17 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XJjLx12yNz4Lw4; Wed, 2 Oct 2024 18:02:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727892137; 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=nAahJSBwUUoJrNznbg/JKWyN1T0zA94fkgsjrfPLOEE=; b=mTPMoV5QkoiFJTLRM+Id1fjrhqZ82pGYPtVBz1uu1ZDDRCvPm3QhUU2GBPyc/D5cd9LY9C QhhAde067d1oKQLuCCnVU/8lxk4UkVpPHadcGVIQhH/oVvFvfZUOtr7tU8MicvbE1YK1Qo j4VNghE6BpQFsFbMIaSKWYG2/r7EHuRVXafOY84um9mxinetZ3D9TsDfCpAzOUaUnwexfR o2r3SlwyqNzIq7nkeiW4W0sSgs1S+sqI+Wi+M4+w1rujd0Q6YseO5guLVQy6zd05xFCxOJ mgcUI0ldaym6UEWAg8jg7sU7hlFih0dezExfbWWzEzf/LGa0ORvhd4yX/wjS7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727892137; 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=nAahJSBwUUoJrNznbg/JKWyN1T0zA94fkgsjrfPLOEE=; b=YvoA9Cm9YRLM7LI9j4P4Rp+aerNHWZndJTWYJ/0Fld7H3N5TBog8aYPzP/SmziCj/q57lr whJRr3DNPsRkZwsH5YmdOUOr3NiXVkDZ8r0kghTL6jNXhFISP7EyNG+oW5mvc3VYmGgGOa lfDX1sObV/6K4AELkiD7hOv0cs69l38i9F9joWpOrDzt034bynkJ1FhMEsEzi6jU4w+Hr4 rN+eX4xhE4wfINcaSZ/GzY5I9zjteGzjb3aNKZqQFJqPiKZOH3MixS614wiEnBYJYU4gB1 50lZ9b+xR/RPUkwpjonfWwexMfLzLDax19PXLc17dh78JD3aqGEbs5AY3Hbarg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727892137; a=rsa-sha256; cv=none; b=KWwETM1z8FwiJiHRxzmYbWHNVRbKhWoSq4SyU7bshznXVSFKWWmG4lRcHyWoRWLCghqYn+ XHl4fGURjpbTSEQJWNzGahfSYs3MMjOa3IGVVOTOX8qX+a/lwKx56yVmHQyyn5eRhMKpZd 7gLrC1XUUdDxhIBqKN70OY1e+yyDz0KOw9Zl/pyM0+Xd9YaYaP+3QKSJcp5n1AigFBC6AO ZKIwRn83y+RH/W2fHI40gvO8BVeOn6UYQi2Ndhrrz5Cka232v8JhivKSAErX/lsEsy37H8 TI6z+bewgtZiRIB1PAchUxBnC1Tgwm7AgsJ6EoYxEiaGK4I2lF1WKw76DV4/PA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XJjLx0XMfzGtw; Wed, 2 Oct 2024 18:02:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 492I2GNe070115; Wed, 2 Oct 2024 18:02:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 492I2GoI070112; Wed, 2 Oct 2024 18:02:16 GMT (envelope-from git) Date: Wed, 2 Oct 2024 18:02:16 GMT Message-Id: <202410021802.492I2GoI070112@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Cy Schubert Subject: git: eb84c129d6d6 - main - stdio.h: don't expose rsize_t unless __EXT1_VISIBLE 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: cy X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: eb84c129d6d6b82238575946ba3552c9310f24f9 Auto-Submitted: auto-generated The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=eb84c129d6d6b82238575946ba3552c9310f24f9 commit eb84c129d6d6b82238575946ba3552c9310f24f9 Author: Graham Percival AuthorDate: 2024-09-30 00:06:29 +0000 Commit: Cy Schubert CommitDate: 2024-10-02 18:01:39 +0000 stdio.h: don't expose rsize_t unless __EXT1_VISIBLE This is how the other typedefs for rsize_t handle it (in , , and ). In particular, we shouldn't have any rsize_t if a C environment earlier C11 was requested. This reapplies b35f0aa4952c, chasing c25e55bcf80b, fixing ports build failures following b35f0aa4952c without c25e55bcf80b. PR: 281768 Sponsored by: Tarsnap Backup Inc. Signed-off-by: Graham Percival --- include/stdio.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/stdio.h b/include/stdio.h index b0190d25eb4f..ee3ab3bfb986 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -48,10 +48,13 @@ typedef __size_t size_t; #define _SIZE_T_DECLARED #endif +#if __EXT1_VISIBLE +/* ISO/IEC 9899:2011 K.3.3.2 */ #ifndef _RSIZE_T_DEFINED #define _RSIZE_T_DEFINED typedef size_t rsize_t; #endif +#endif /* __EXT1_VISIBLE */ #if __POSIX_VISIBLE >= 200809 #ifndef _OFF_T_DECLARED