Define cap_rights_t and DTYPE_CAPABILITY, which are required to

implement Capsicum capabilities.

Approved by: mentor (rwatson), re (bz)
This commit is contained in:
Jonathan Anderson 2011-07-01 12:13:48 +00:00
parent b758bdf8b3
commit 07b1b59405
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223710
3 changed files with 4 additions and 0 deletions

View File

@ -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;

View File

@ -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

View File

@ -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