aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/types.h
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2015-03-16 17:42:53 +0000
committerRobert Watson <rwatson@FreeBSD.org>2015-03-16 17:42:53 +0000
commitd2925cccc146681120aa583180333b1217df0c4d (patch)
treea262b88eebc9ad508b44f6a0a0f22a8dfd24b9f3 /sys/sys/types.h
parentad7ea69dce9beeebc26e0791dc1269a66941ce60 (diff)
downloadsrc-d2925cccc146681120aa583180333b1217df0c4d.tar.gz
src-d2925cccc146681120aa583180333b1217df0c4d.zip
Introduce a cap_ioctl_t used for the 'cmds' arguments to cap_ioctls_limit()
and cap_ioctls_get(). On FreeBSD, these are 'unsigned long', but on Linux, ioctl(2) takes an 'int', making mild abstraction desirable. MFC after: 3 days Sponsored by: Google, Inc.
Notes
Notes: svn path=/head/; revision=280148
Diffstat (limited to 'sys/sys/types.h')
-rw-r--r--sys/sys/types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/sys/types.h b/sys/sys/types.h
index 03eaa6002ef6..c2930f5a2f18 100644
--- a/sys/sys/types.h
+++ b/sys/sys/types.h
@@ -232,6 +232,11 @@ typedef __useconds_t useconds_t; /* microseconds (unsigned) */
#define _USECONDS_T_DECLARED
#endif
+#ifndef _CAP_IOCTL_T_DECLARED
+#define _CAP_IOCTL_T_DECLARED
+typedef unsigned long cap_ioctl_t;
+#endif
+
#ifndef _CAP_RIGHTS_T_DECLARED
#define _CAP_RIGHTS_T_DECLARED
struct cap_rights;