PERFORCE change 169523 for review

Robert Watson rwatson at FreeBSD.org
Thu Oct 15 15:48:38 UTC 2009


http://p4web.freebsd.org/chv.cgi?CH=169523

Change 169523 by rwatson at 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 <sys/cdefs.h>
 #include <sys/types.h>
 
 /*
@@ -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 */
 


More information about the p4-projects mailing list