cap_sysctl: expose structures and variables
Expose structures and variables that may be used on systems build without Casper support.
This commit is contained in:
parent
8c121177f0
commit
459511895e
@ -38,12 +38,16 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
#ifdef WITH_CASPER
|
||||
#define CAP_SYSCTL_READ 0x01
|
||||
#define CAP_SYSCTL_WRITE 0x02
|
||||
#define CAP_SYSCTL_RDWR (CAP_SYSCTL_READ | CAP_SYSCTL_WRITE)
|
||||
#define CAP_SYSCTL_RECURSIVE 0x04
|
||||
|
||||
struct cap_sysctl_limit;
|
||||
typedef struct cap_sysctl_limit cap_sysctl_limit_t;
|
||||
|
||||
#ifdef WITH_CASPER
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
int cap_sysctl(cap_channel_t *chan, const int *name, u_int namelen, void *oldp,
|
||||
@ -53,9 +57,6 @@ int cap_sysctlbyname(cap_channel_t *chan, const char *name, void *oldp,
|
||||
int cap_sysctlnametomib(cap_channel_t *chan, const char *name, int *mibp,
|
||||
size_t *sizep);
|
||||
|
||||
struct cap_sysctl_limit;
|
||||
typedef struct cap_sysctl_limit cap_sysctl_limit_t;
|
||||
|
||||
cap_sysctl_limit_t *cap_sysctl_limit_init(cap_channel_t *);
|
||||
cap_sysctl_limit_t *cap_sysctl_limit_name(cap_sysctl_limit_t *limit,
|
||||
const char *name, int flags);
|
||||
|
Loading…
Reference in New Issue
Block a user