From nobody Sat Jul 25 16:56:21 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 4h6rbv2vKTz6lkKx for ; Sat, 25 Jul 2026 16:56:27 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4h6rbv08t9z3HD9 for ; Sat, 25 Jul 2026 16:56:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1784998587; 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=ZRFIoB3dsrD34kEroFs3tYi6bHGkljYpVwl75pFUQsQ=; b=X6XgnL8qW3oi4vanJqvtXxOu1T24F9Ub89Malr3jMNhETyT/NY0ZsQ5TRI2Lw2c/VXRmKl iKZC0I2aNFgrbzpeN37urYFuIPQ2qrXurFR5HRn2ROvT4ulEtcVPfA+UsUoE9LqJGfOkHv yCHc4id4zkvZfyQSlfbQd71fpdlIy6E1VZQ3qygQ5fmvB2milgYOeg3t6LqW1nDHiXDT3f lOxPh6XoHLVcafoZXMgiYfXD5s3mYj7CCldQ1XaSptTtJNkdJS1YcglSnfgo19W3e+IrEO NLd6pxI04YNOisvMseUExbf9bomeQP4V/GPI4q9R+VPh1uX5Kfoa6WsfWOYQzA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1784998587; a=rsa-sha256; cv=none; b=mWOfLSxFDZIm4xKrohaqeZFFj0J627UDbNH3Z7LCYKL9lZbo5bEhppxW9G0BxjDlBUikGJ Kv3c7a2mQD0ygCxmd0uA9M0IliXhaqiIiQyGee7hIkyDsm0xADZJxABJs5hKT1nwee+FdU D1F+Ln0cJkl6s5bfb5DIaf9IJf21LaZlulhky2MMjJK8FN8Arz9brn+UbY2Dw0TrK+JRob 78qLnbU+/mXYG570/BRN465KgYIfDgntd3mMq0xQoKo5jfsFkl3Zi66dsC+A9ZRY5ZHV36 TtLAH1C7USuCCTAi4IiCKHpvqN7KQpLr/JdHljlvVJPGacCw4Yg8EUeDg7Pf/g== 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=1784998587; 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=ZRFIoB3dsrD34kEroFs3tYi6bHGkljYpVwl75pFUQsQ=; b=uqm9Kez9wzrL0SOPbRmsjsPcJgx7DywsYslnleRR+2dxSEIo2ZM/EhcIDgF6CLQX1H4yv5 nxxgxCRF3dxizkS0tm2lLEiOCNd6fTwSNcwmTisHcdZDpgkG5Pth1UcCALsZGLi46zNcAm jq5T6gb5e9hrmlPt0Pt/ncUcPmPbIRK4SzCdo+6BizBfxZK5OvI+6hvnqqqIAvj1gf3dxT e1KCUShPxnk59VxQUcCDsYmnXK0zugW8lqATKEuep313jFXlB176Fr5ewoJOZGY4LJXHf8 bPG0qbEnQIrRmKr5o7gauoEB80FGlqOXNO69BwZPX5xq/3vLYIUPkqwO0BXUgQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4h6rbt6BW5zlSM for ; Sat, 25 Jul 2026 16:56:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1e32e by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sat, 25 Jul 2026 16:56:21 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Enji Cooper Subject: git: bc81728c00b2 - main - [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/main X-Git-Reftype: branch X-Git-Commit: bc81728c00b200297ac556974b5373c804077a17 Auto-Submitted: auto-generated Date: Sat, 25 Jul 2026 16:56:21 +0000 Message-Id: <6a64eab5.1e32e.13c91658@gitrepo.freebsd.org> The branch main has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=bc81728c00b200297ac556974b5373c804077a17 commit bc81728c00b200297ac556974b5373c804077a17 Author: Enji Cooper AuthorDate: 2026-07-25 16:51:53 +0000 Commit: Enji Cooper CommitDate: 2026-07-25 16:55:38 +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 --- 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)