aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/_types.h1
-rw-r--r--sys/sys/file.h1
-rw-r--r--sys/sys/types.h2
3 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/_types.h b/sys/sys/_types.h
index d71cdb094e1a..c59afd31cb55 100644
--- a/sys/sys/_types.h
+++ b/sys/sys/_types.h
@@ -38,6 +38,7 @@
typedef __uint32_t __blksize_t; /* file block size */
typedef __int64_t __blkcnt_t; /* file block count */
typedef __int32_t __clockid_t; /* clock_gettime()... */
+typedef __uint64_t __cap_rights_t; /* capability rights */
typedef __uint32_t __fflags_t; /* file flags */
typedef __uint64_t __fsblkcnt_t;
typedef __uint64_t __fsfilcnt_t;
diff --git a/sys/sys/file.h b/sys/sys/file.h
index e4edac9a8165..cc4593b1afae 100644
--- a/sys/sys/file.h
+++ b/sys/sys/file.h
@@ -64,6 +64,7 @@ struct socket;
#define DTYPE_SEM 9 /* posix semaphore */
#define DTYPE_PTS 10 /* pseudo teletype master device */
#define DTYPE_DEV 11 /* Device specific fd type */
+#define DTYPE_CAPABILITY 12 /* capability */
#ifdef _KERNEL
diff --git a/sys/sys/types.h b/sys/sys/types.h
index cb513afeb5ee..1b994d31a01d 100644
--- a/sys/sys/types.h
+++ b/sys/sys/types.h
@@ -89,6 +89,8 @@ typedef __blkcnt_t blkcnt_t;
#define _BLKCNT_T_DECLARED
#endif
+typedef __cap_rights_t cap_rights_t;
+
#ifndef _CLOCK_T_DECLARED
typedef __clock_t clock_t;
#define _CLOCK_T_DECLARED