Date: Mon, 18 Jan 2010 21:35:22 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r202594 - projects/capabilities8/sys/sys Message-ID: <201001182135.o0ILZMxl084600@svn.freebsd.org>
index | next in thread | raw e-mail
Author: rwatson Date: Mon Jan 18 21:35:22 2010 New Revision: 202594 URL: http://svn.freebsd.org/changeset/base/202594 Log: Merge P4 changeset 169523 to capabilities8: Add __BEGIN_DECLS/__END_DECLS to capability.h to make it (more) C++-friendly. Submitted by: Jonathan Anderson Modified: projects/capabilities8/sys/sys/capability.h Modified: projects/capabilities8/sys/sys/capability.h ============================================================================== --- projects/capabilities8/sys/sys/capability.h Mon Jan 18 21:28:11 2010 (r202593) +++ projects/capabilities8/sys/sys/capability.h Mon Jan 18 21:35:22 2010 (r202594) @@ -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 <sys/cdefs.h> #include <sys/types.h> /* @@ -159,6 +160,7 @@ cap_rights_t cap_rights(struct file *fp_ #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 @@ int cap_new(int fd, cap_rights_t rights) * cap_getrights(): Query the rights on a capability. */ int cap_getrights(int fd, cap_rights_t *rightsp); +__END_DECLS #endif /* !_KERNEL */help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001182135.o0ILZMxl084600>
