diff options
author | jhb <jhb@FreeBSD.org> | 2008-01-10 22:11:21 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2008-01-10 22:11:21 +0000 |
commit | 34de26d1084ed5c82db694fb4ad5ca112722aa29 (patch) | |
tree | 6186b6f0c2a3d20926552fb47b23634d0326c0ef /include | |
parent | f261f9865b0f750ea6f3b27feebcf093412d9dbf (diff) | |
download | FreeBSD-src-34de26d1084ed5c82db694fb4ad5ca112722aa29.zip FreeBSD-src-34de26d1084ed5c82db694fb4ad5ca112722aa29.tar.gz |
Add a feature_present(3) function which checks to see if a named kernel
feature is present by checking the kern.features sysctl MIB.
MFC after: 1 week
Diffstat (limited to 'include')
-rw-r--r-- | include/unistd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h index 48c925c..51aa088 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -480,6 +480,7 @@ int des_setkey(const char *key); void endusershell(void); int exect(const char *, char * const *, char * const *); int execvP(const char *, const char *, char * const *); +int feature_present(const char *); char *fflagstostr(u_long); int getdomainname(char *, int); int getgrouplist(const char *, gid_t, gid_t *, int *); |