Query: feature_present
OS: freebsd
Section: 3
Links: freebsd man pages all man pages
Forums: forum home forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
FEATURE_PRESENT(3) BSD Library Functions Manual FEATURE_PRESENT(3)NAMEfeature_present -- query presence of a kernel featureLIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <unistd.h> int feature_present(const char *feature);DESCRIPTIONThe feature_present() function provides a method for an application to determine if a specific kernel feature is present in the currently running kernel. The feature argument specifies the name of the feature to check. The feature_present() function will return 1 if the speci- fied feature is present, otherwise it will return 0. If the feature_present() function is not able to determine the presence of feature due to an internal error it will return 0.RETURN VALUESIf feature is present then 1 is returned; otherwise 0 is returned.SEE ALSOsysconf(3), sysctl(3)HISTORYThe feature_present() function first appeared in FreeBSD 8.0.BSDJanuary 8, 2008 BSD