Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

FreeBSD 11.0 - man page for feature_present (freebsd section 3)

FEATURE_PRESENT(3)					   BSD Library Functions Manual 					FEATURE_PRESENT(3)

feature_present -- query presence of a kernel feature
Standard C Library (libc, -lc)
#include <unistd.h> int feature_present(const char *feature);
The 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.
If feature is present then 1 is returned; otherwise 0 is returned.
sysconf(3), sysctl(3)
The feature_present() function first appeared in FreeBSD 8.0.
January 8, 2008 BSD

Ubuntu is a free, open-source Linux distribution based on Debian Linux; and Ubuntu is named after the African philosophy of ubuntu, which Canonical translates as "humanity to others" or "I am what I am because of who we all are". Ubuntu is developed by Canonical and the community under a "meritocratic" governance model. Canonical provides security updates and support for each Ubuntu release, starting from the release date and until the release reaches its designated end-of-life (EOL) date. Canonical generates revenue through the sale of premium services associated with Ubuntu. Ubuntu is generally released to the public in three editions: Desktop, Server, and Core (for IoT devices and robots). Ubuntu is a popular operating system for cloud computing and supports OpenStack. Ubuntu is released every six months with long-term support (LTS) releases every two years.
Please enjoy and help our forum community by "showing your work" and posting your code, even when your code is not working as expected. To help others help you, please wrap your code blocks, sample input, sample output, error messages, and other data in CODE tags and wrap your short commands and short data objects in ICODE tags. We were all beginners in the beginning. If you have any questions about how to register or how to post, please contact us in Live Chat. Thank you and enjoy this "forever free" technical support community for UNIX, Linux and computer information technology in general.