From nobody Sat Jan 07 01:41:59 2023 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 4NpjcS03S6z2p5Qn; Sat, 7 Jan 2023 01:42:00 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NpjcR6XRZz4Jh2; Sat, 7 Jan 2023 01:41:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673055719; 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=ys5m6M8/mzE7WUxbtDEVJOJsz7mVoDzUgyVbLQQ+uHQ=; b=dqRdzfcs07P71Isp1jpp+MhbsHTeYUgJSt8tDsNcIMdSFNeHx2LEsjFniMv1uf/wjgHOvy JVyRq1Vp1pEjiLU/DVj9+KqBcUPQt5LO3XpcuOX6tuVkFjVzM3UM6TH9pQ5ZT5bxbvRV6R rBKB9yWyFvD/24nHCxKEhwwERDgdk1TmRoJgrNTKZzAJvZUNhFbWE4Smmq0jlhLkRsjaGl Hf/7y+ayYUWQE4tNzSjDPAXYfjJ0ehZvGhWTmCS3nHMG21zJrg3fSmrjvqxCVSypSjGjyN JlItcKpr0DHCsYzBmmBrmDA9cw87Emc30Pb4JlU9ir7OeALE1R4IAftc3JHOoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673055719; 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=ys5m6M8/mzE7WUxbtDEVJOJsz7mVoDzUgyVbLQQ+uHQ=; b=CiKJHI1pid1dSLNfjRe8pwpesgGU8GCNpIg1GrCm+oon40mY7sHbm4/ioqzOnFrCa8Vh/p hiJlJnKE1cMWLytTfP9WAz7xdDazIUIbDS/zhdC1jxYyc9MDir5CbaUoEZS6xJzLCVXz+7 h+p++uNJBA+AJoT90aQx96DUBVhfUfbPdzNXFgR0oDfWT+EJPkq40zpNLRFasjzYDPQj/q YEVANEcdprANS0wbZNVUJ3q86dUg8NNCNoHkTSB5LUqN00j9u1v7T+gCu5GOGgDbJWM4m7 I62J/GdH6D1giNI3ZwdAcmZqMF0LF4Wk2pmKxiyhprh6Zm8mMKR1eibhaQYnCQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673055719; a=rsa-sha256; cv=none; b=avgwpj34169Qv+3mK0jDTg3ad2EmdDudZ3R8W3HIodUIany5fmZ+x1F+n3OXDfAPu5Vmc9 6oYnujRE35gsa5sMNgeijC7+qJOraUBeDUz7sSBH2uAxocw7dBVXwA5wgFehxbp/nlA+x+ z6wOBlWq+2N+6g3NocBt0sydaj3Fb/cbLf9p381mWKtGjiz864h/P6AfEDO5yQbcF2PjWZ dYOmp7Of50N0sg89f3l9ULJEJWEU7Uq/KH1mSEfnuWXko6rJ1aHELmctyOxt7MhGjHMLR8 ITI8if1DvlyZpPa/UZPVpKGFRRcgvIyeDO0cg1ob2cMDk/dJQjD7ltDjrC9Vaw== 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 4NpjcR5cDfzs8G; Sat, 7 Jan 2023 01:41:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 3071fxeo066319; Sat, 7 Jan 2023 01:41:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3071fxXJ066318; Sat, 7 Jan 2023 01:41:59 GMT (envelope-from git) Date: Sat, 7 Jan 2023 01:41:59 GMT Message-Id: <202301070141.3071fxXJ066318@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 5cf20707ba79 - main - stand: Allow stand.h to be included in C++ programs 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5cf20707ba79b5c06b26381da0013c65004b53be Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=5cf20707ba79b5c06b26381da0013c65004b53be commit 5cf20707ba79b5c06b26381da0013c65004b53be Author: Warner Losh AuthorDate: 2023-01-07 01:39:09 +0000 Commit: Warner Losh CommitDate: 2023-01-07 01:40:01 +0000 stand: Allow stand.h to be included in C++ programs Allow stand.h to be included in C++ programs. This is little more than using our stylized __BEGIN_DECL / __END_DECL around the entire file. There's no run-time support for C++, so the C++ that can be used is quite limited. It is enough for libunwind, though. Sponsored by: Netflix Reviewed by: jrtc27, kevans Differential Revision: https://reviews.freebsd.org/D37946 --- stand/libsa/stand.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stand/libsa/stand.h b/stand/libsa/stand.h index c0550104bca0..b5087d17e114 100644 --- a/stand/libsa/stand.h +++ b/stand/libsa/stand.h @@ -61,8 +61,9 @@ #ifndef STAND_H #define STAND_H -#include #include + +#include #include #include #include @@ -90,6 +91,8 @@ /* Partial signal emulation for sig_atomic_t */ #include +__BEGIN_DECLS + struct open_file; /* @@ -509,4 +512,6 @@ void tslog(const char *, const char *, const char *); void tslog_setbuf(void * buf, size_t len); void tslog_getbuf(void ** buf, size_t * len); +__END_DECLS + #endif /* STAND_H */