From nobody Fri Sep 04 05:55:52 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 4hbm0m5hjsz6r6fj for ; Fri, 04 Sep 2026 05:55:52 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hbm0m59D2z3VgD for ; Fri, 04 Sep 2026 05:55:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1788501352; 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=0FUdshxoEKNkYTRdXjOXOmLuOS+/v06+q1sjPsqqSHQ=; b=S5zrUl1V3reC4Db0QgmAO5UjIk4Mp5y+h+9ENphyzqgxLAm4EKsjQ43LZc+tWNwWNPi9oq IKgbAGnQ42Aj6vLkLOaOUU9Ok1WIFxk2jMjoEKPU9WjTw5tueW7ShVULVsma03z4o4QKwP q1pBxX65ZxZT5P4uvNemymWWJUXIDps8g2BD1RnLT0qykEo22t9usHCVNxpqGBOydb3h4u igtHnVgFTadL7/GxOFWMnEcrNOaC/uhVcwkUYDsVoKUZyDzpKsSExUxzizdJOgZYdGMMbV LShBnl4tdr9ooMXZ7vj8KBQRdmssR54Vp7GRNtTlUvFYO8K7dWztICdvBWRewA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1788501352; a=rsa-sha256; cv=none; b=oTtD6SxOc9o2U+i8y2go7Lzd94b2rgQXtWlhXDsaZ6sD3kOgS42HVNOuq0aI5oSVliS3s9 23yDkZBA1ms5QptbVUih8IWf7FZiWo9t419X0yBNPeFEl7MUJ1nYuoFBRuO8JWbA3SpP5h 02h7pFxLddaXd3I8srMdBUzbVBrdhNXP78QVPuFt+f9Ch+zUZWHr6MwWzsAfiOPSzWUxbc Jq9wThAu7mAhRM9ZfViD9ZJ9eEe6jUvolRmHvqdspY72hgT6IcH0tFqW7RMEVQAhDKh2Rz /RoWh7+oRtKVbA8pG7Wfh+56AJfBsD/TPuIdhlMUX3ihMLmDB43YqfhLV/71Rw== 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=1788501352; 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=0FUdshxoEKNkYTRdXjOXOmLuOS+/v06+q1sjPsqqSHQ=; b=o5i+CZyhj9vi1sw79JjVqvvGW6pFnEq5myOrIvtvf/Xt2thc7ojdBwtA660ylmcu3DbA22 JI8ID7Z6C6if2mvfpD7UoaM2dAWYbgOjOedIQXAKAu1mTrmbSAzOATiAmiVPM3Fkba34We +rOfnQob+pY0Wl1xrYXauKhEWJ0ZCairaUYFAUGvVAZVVku9Yrt2rEYDpGwGzWS6L9UseX 0MpDGGZVjLQ1OczhJvrVpB0FT7eVN6nKW9FuXeUz1kkITV4kICZ3OTFyIbLdR80WSuloOY 7wtX6p2YZSfQYMTDJesNpmkEw5/7jp2EE6ECAs75s7lG9K6X9R2ZMBU3Wgu76g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hbm0m440Czn5Y for ; Fri, 04 Sep 2026 05:55:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 20544 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 04 Sep 2026 05:55:52 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Enji Cooper Subject: git: 10d1f60a2641 - stable/14 - [test] libatexit: leverage __{BEGIN,END}_DECLS 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ngie X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 10d1f60a2641c52bf665214330b224b445260302 Auto-Submitted: auto-generated Date: Fri, 04 Sep 2026 05:55:52 +0000 Message-Id: <6a9a5d68.20544.6db20fc@gitrepo.freebsd.org> The branch stable/14 has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=10d1f60a2641c52bf665214330b224b445260302 commit 10d1f60a2641c52bf665214330b224b445260302 Author: Enji Cooper AuthorDate: 2026-07-25 16:51:53 +0000 Commit: Enji Cooper CommitDate: 2026-09-04 05:55:33 +0000 [test] libatexit: leverage __{BEGIN,END}_DECLS This change converts the longhand form of `extern "C" {` and its corresponding `}` into `__BEGIN_DECLS` and `__END_DECLS`, respectively. The new form is much easier to grep for and is a best practice to use in the FreeBSD tree. This is meant to be a non-functional change. MFC after: 1 week (cherry picked from commit bc81728c00b200297ac556974b5373c804077a17) --- lib/libc/tests/stdlib/libatexit/libatexit.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/libc/tests/stdlib/libatexit/libatexit.cc b/lib/libc/tests/stdlib/libatexit/libatexit.cc index 7c5a7126d178..5dcbe8a33dc0 100644 --- a/lib/libc/tests/stdlib/libatexit/libatexit.cc +++ b/lib/libc/tests/stdlib/libatexit/libatexit.cc @@ -5,15 +5,18 @@ * */ +#include #include static int exit_code = -1; static bool fatal_atexit; -extern "C" { - void set_fatal_atexit(bool); - void set_exit_code(int); -} +__BEGIN_DECLS + +void set_fatal_atexit(bool); +void set_exit_code(int); + +__END_DECLS void set_fatal_atexit(bool fexit)