|| FreeBSD Library Functions Manual
query presence of a kernel feature
Standard C Library (libc, -lc)
#include < unistd.h>
feature_present( const char *feature);
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 specified 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 VALUES If
feature is present then 1 is returned; otherwise 0 is returned.
feature_present() function first appeared in