svn commit: r264683 - head/sys/sys

Jilles Tjoelker jilles at FreeBSD.org
Sat Apr 19 22:18:57 UTC 2014


Author: jilles
Date: Sat Apr 19 22:18:57 2014
New Revision: 264683
URL: http://svnweb.freebsd.org/changeset/base/264683

Log:
  sys/capsicum.h: Remove not very useful visibility guards.
  
  Since <sys/capsicum.h> does not comply to any standards, standards-compliant
  applications do not include it and it is not useful to restrict what is
  exposed depending on the requested standard.
  
  In addition, the use of types like u_int makes the header fail in strict
  standards compliance modes anyway.

Modified:
  head/sys/sys/capsicum.h

Modified: head/sys/sys/capsicum.h
==============================================================================
--- head/sys/sys/capsicum.h	Sat Apr 19 20:55:51 2014	(r264682)
+++ head/sys/sys/capsicum.h	Sat Apr 19 22:18:57 2014	(r264683)
@@ -302,16 +302,10 @@
  */
 #define	CAP_FCNTL_GETFL		(1 << F_GETFL)
 #define	CAP_FCNTL_SETFL		(1 << F_SETFL)
-#if __BSD_VISIBLE || __XSI_VISIBLE || __POSIX_VISIBLE >= 200112
 #define	CAP_FCNTL_GETOWN	(1 << F_GETOWN)
 #define	CAP_FCNTL_SETOWN	(1 << F_SETOWN)
-#endif
-#if __BSD_VISIBLE || __XSI_VISIBLE || __POSIX_VISIBLE >= 200112
 #define	CAP_FCNTL_ALL		(CAP_FCNTL_GETFL | CAP_FCNTL_SETFL | \
 				 CAP_FCNTL_GETOWN | CAP_FCNTL_SETOWN)
-#else
-#define	CAP_FCNTL_ALL		(CAP_FCNTL_GETFL | CAP_FCNTL_SETFL)
-#endif
 
 #define	CAP_IOCTLS_ALL	SSIZE_MAX
 


More information about the svn-src-all mailing list