From nobody Tue Jan 24 22:14:11 2023 X-Original-To: dev-commits-src-branches@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 4P1h8M4df6z3bgqY; Tue, 24 Jan 2023 22:14:11 +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 4P1h8M3rjsz3Ks0; Tue, 24 Jan 2023 22:14:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674598451; 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=nNk1pJgu/Qkq6rpFD4k9PC4cQqLP6ub02bfmkmQNZ7Q=; b=bRuRPA43dAGuPGZhpgYSbaRWjV+Ie5MuUyaUZg8LbgjJKuLG52wUgOZkYFbg5QVjNBZ1Ia bTe03r6tgn9Gpxv+mvikxCDqOchCNr3MfeFVbIAFDnjMt91h8EThAX5ibPJ+2kTg+UQ+aK aNVJ7WnH8CEp0Ames3GA/tzWg2c0gT6sA9M40DZEHenT4hWVztYGNHnb3YL3rcrLEpVrER H1HMD7u7h7htWt7gwoMkIoIODhdbllnNXvGgsACM8WFzfVObaZlhfmGqrCYuBblJBmXrsd vV9l/2kmJTtzzRYwV5wj9+hiUxSgbPqrRYhbDmExoAKBzd18120Kddo6Y1j9UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674598451; 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=nNk1pJgu/Qkq6rpFD4k9PC4cQqLP6ub02bfmkmQNZ7Q=; b=XEmFJknnqsxoB1ParfinqEcZVB4pvDde4f2jPLbIwLtkRPPxc5mdNxLSO0erCRgrTVfJJN P+qWJS+dZl9MetYSSavz5bN7oLAPrzbNy0nFIejv+IFlTTEZm+QaEgHE9DuZttpJIdb+7k dZoyy/Eayjoo53SGVb8oxuDSq1yFsxneKunFn7wiDfY5jusqWfAy8uDKlX1UNH7E3Nptwf wjOy9vyRbWGUGYbHVn1OovjIxBqF5bYfnD76GBYRBjMH+mH/wW8F3iZEdGt9mYi8WkjXYJ QSZTIC5clZAY+6RkYJwZRgFm5P3WXTBBi6wnD0Ehwo+T5Xmo748/yV74f0vi8Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674598451; a=rsa-sha256; cv=none; b=gymzxQ2HW8ATl+FinqZSCsqsIelFC+S1Pr+gTFdI03uSyghJPCPBWvqeIdmxTs0nFcElNr WjUbfrdP25E3M1w2pifyyLXpHNkN3ZspFWa/B3guj284HPOAt40VLk4otcoQmXlMdsSxcr cqosVV5F1WJkG0rPZsbg1qREqQ/QkCK881MrD2zJ+apSRmoyawGaaiGRAaDz4PiFzTe/AY PEigK+mklY1JAemIVVOSzjmP5ASR429oKLd89BNks84/vpH6v+9DXmxOFodkxPNW67sXHI L3nVqU0+42ySXM+c54kI9fyRG7gyIh0hNz5C1pt21oZAQ1ctpVsDwkMlTa2tmQ== 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 4P1h8M2wbZzQmd; Tue, 24 Jan 2023 22:14:11 +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 30OMEBCx089469; Tue, 24 Jan 2023 22:14:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30OMEBiJ089468; Tue, 24 Jan 2023 22:14:11 GMT (envelope-from git) Date: Tue, 24 Jan 2023 22:14:11 GMT Message-Id: <202301242214.30OMEBiJ089468@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: 5e4f201c7ded - stable/13 - stand: Allow stand.h to be included in C++ programs List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: 5e4f201c7dedcb891ed98e3916683184a119079e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=5e4f201c7dedcb891ed98e3916683184a119079e commit 5e4f201c7dedcb891ed98e3916683184a119079e Author: Warner Losh AuthorDate: 2023-01-07 01:39:09 +0000 Commit: Warner Losh CommitDate: 2023-01-24 21:49:44 +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 (cherry picked from commit 5cf20707ba79b5c06b26381da0013c65004b53be) --- 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 */