From owner-p4-projects@FreeBSD.ORG Thu Oct 15 15:48:38 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id BEF3E1065692; Thu, 15 Oct 2009 15:48:37 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8304B1065672 for ; Thu, 15 Oct 2009 15:48:37 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 6F2028FC17 for ; Thu, 15 Oct 2009 15:48:37 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n9FFmb7d034549 for ; Thu, 15 Oct 2009 15:48:37 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n9FFmbHP034547 for perforce@freebsd.org; Thu, 15 Oct 2009 15:48:37 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Thu, 15 Oct 2009 15:48:37 GMT Message-Id: <200910151548.n9FFmbHP034547@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 169523 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Oct 2009 15:48:38 -0000 http://p4web.freebsd.org/chv.cgi?CH=169523 Change 169523 by rwatson@rwatson_cinnamon on 2009/10/15 15:48:00 Add __BEGIN_DECLS/__END_DECLS to capability.h to make it (more) C++-friendly. Submitted by: Jonathan Anderson Affected files ... .. //depot/projects/trustedbsd/capabilities/src/sys/sys/capability.h#25 edit Differences ... ==== //depot/projects/trustedbsd/capabilities/src/sys/sys/capability.h#25 (text+ko) ==== @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/capabilities/src/sys/sys/capability.h#24 $ + * $P4: //depot/projects/trustedbsd/capabilities/src/sys/sys/capability.h#25 $ */ /* @@ -39,6 +39,7 @@ #ifndef _SYS_CAPABILITY_H_ #define _SYS_CAPABILITY_H_ +#include #include /* @@ -159,6 +160,7 @@ #else /* !_KERNEL */ +__BEGIN_DECLS /* * cap_enter(): Cause the process to enter capability mode, which will * prevent it from directly accessing global namespaces. System calls will @@ -183,6 +185,7 @@ * cap_getrights(): Query the rights on a capability. */ int cap_getrights(int fd, cap_rights_t *rightsp); +__END_DECLS #endif /* !_KERNEL */