From nobody Sat Jul 25 16:56:21 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 4h6rbn5W8Sz6lkHr for ; Sat, 25 Jul 2026 16:56: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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4h6rbn505Xz3H4l for ; Sat, 25 Jul 2026 16:56:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1784998581; 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=JBzsz6V9V9C/u0+IKoG0VyD4tHAAHxMjtE5N/N2r+E1WVJHjVBUvjSRstL/+58B5SZsAY6 4WT3mR43jbkCmybKEGYDjFtc3onblJwqPcYK1JG3OsDwBmN9znUEMS6dgW6r0IwSPwR4sw NRGxeW/aBfzNvKm1haDVUroEvEkv0Oa/qa3UlNEIEQIHYyxqQ+42i9ilIaErkBmUCSMJme NMkckUb5VXLPXRGM3vOgmmHAjp8kpqrepLD7aHVSK2KdObl3+cGtarcQVS0ra3Gn+us+xx YUFgJWJRLXCE5tiAXGR8x/eL8QjWtQ4q038dffRQyvyhh6GsT0kMoGjLdKg6iA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1784998581; a=rsa-sha256; cv=none; b=C9CnzlYTLNvZpn6gsXtnsIzJiI7d1BKpgSwFboaLLsd8o5vXe4BE7MnKzEy/Q297XFh+IG Ju21s5w26N0x5xGLKiDO+J1uLbIdftk2vIsC/WROv2sOF5au7X12R46+XmFOE5yNz4IpnH KVey5SRwYF3Y54X0bbFbZkx2f3lT0NTslwSVbN0vCOg0J5tY4vNaud6JKb/kyxL7d728D3 1lGS+gttpup0hr7gu72nLRCS89sO3ontiC4SBSqTp6lAbdWmycBDc+8McveVrjmLnJNEN8 DgaUr/ZgQrXpDDgyUIpxKvw7VjedmZfJpG8p7/tSyP4BAex2z20iFrwSImO32w== 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=1784998581; 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=ZP539zP4q1L+SZ9JaJ2bUZOSzXRSgT2BHIsTORyhiPqMChi789aZMfv1kTa/9bJXifwgMo Jeglnlg5ek8xQHvNJsWxaX6Vl3hZp45POLzuBOaZYE5/BpqoqHBsA4+zNeKNPLW/JY9UER zdD+EtwfJA0xwsrcHEXZUSPtCTpJZhrFv0WZekFik8sL59nQwoNUcIiLPooBcuhXSX8yVE uVs2/XwX6kL+iM7fX2Pm6aA78V1vAUqG13OWgP85Ln8+SYHJE7NQdIz24hE8/h08GZ9pEQ 2UTjUL/yZwfsTT9Uq/TEd+C17d3HzWoktljZvQiogVSxNu+xRKB9Xn67zYlizA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4h6rbn41MSzkrZ for ; Sat, 25 Jul 2026 16:56:21 +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 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 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)