1ce309a2fSJohn Baldwin.\" Copyright (c) 2008 Yahoo!, Inc. 2ce309a2fSJohn Baldwin.\" All rights reserved. 3ce309a2fSJohn Baldwin.\" Written by: John Baldwin <jhb@FreeBSD.org> 4ce309a2fSJohn Baldwin.\" 5ce309a2fSJohn Baldwin.\" Redistribution and use in source and binary forms, with or without 6ce309a2fSJohn Baldwin.\" modification, are permitted provided that the following conditions 7ce309a2fSJohn Baldwin.\" are met: 8ce309a2fSJohn Baldwin.\" 1. Redistributions of source code must retain the above copyright 9ce309a2fSJohn Baldwin.\" notice, this list of conditions and the following disclaimer. 10ce309a2fSJohn Baldwin.\" 2. Redistributions in binary form must reproduce the above copyright 11ce309a2fSJohn Baldwin.\" notice, this list of conditions and the following disclaimer in the 12ce309a2fSJohn Baldwin.\" documentation and/or other materials provided with the distribution. 13ce309a2fSJohn Baldwin.\" 3. Neither the name of the author nor the names of any co-contributors 14ce309a2fSJohn Baldwin.\" may be used to endorse or promote products derived from this software 15ce309a2fSJohn Baldwin.\" without specific prior written permission. 16ce309a2fSJohn Baldwin.\" 17ce309a2fSJohn Baldwin.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 18ce309a2fSJohn Baldwin.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19ce309a2fSJohn Baldwin.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20ce309a2fSJohn Baldwin.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 21ce309a2fSJohn Baldwin.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22ce309a2fSJohn Baldwin.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23ce309a2fSJohn Baldwin.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24ce309a2fSJohn Baldwin.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25ce309a2fSJohn Baldwin.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26ce309a2fSJohn Baldwin.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27ce309a2fSJohn Baldwin.\" SUCH DAMAGE. 28ce309a2fSJohn Baldwin.\" 29ce309a2fSJohn Baldwin.Dd January 8, 2008 30*a6d11f71SRuslan Ermilov.Dt FEATURE_PRESENT 3 31ce309a2fSJohn Baldwin.Os 32ce309a2fSJohn Baldwin.Sh NAME 33ce309a2fSJohn Baldwin.Nm feature_present 34ce309a2fSJohn Baldwin.Nd query presence of a kernel feature 35ce309a2fSJohn Baldwin.Sh LIBRARY 36ce309a2fSJohn Baldwin.Lb libc 37ce309a2fSJohn Baldwin.Sh SYNOPSIS 38ce309a2fSJohn Baldwin.In unistd.h 39ce309a2fSJohn Baldwin.Ft int 40ce309a2fSJohn Baldwin.Fn feature_present "const char *feature" 41ce309a2fSJohn Baldwin.Sh DESCRIPTION 42ce309a2fSJohn BaldwinThe 43ce309a2fSJohn Baldwin.Fn feature_present 44ce309a2fSJohn Baldwinfunction provides a method for an application to determine if a specific 45ce309a2fSJohn Baldwinkernel feature is present in the currently running kernel. 46ce309a2fSJohn BaldwinThe 47ce309a2fSJohn Baldwin.Fa feature 48ce309a2fSJohn Baldwinargument specifies the name of the feature to check. 49ce309a2fSJohn BaldwinThe 50ce309a2fSJohn Baldwin.Fn feature_present 51ce309a2fSJohn Baldwinfunction will return 1 if the specified feature is present, 52ce309a2fSJohn Baldwinotherwise it will return 0. 53ce309a2fSJohn BaldwinIf the 54ce309a2fSJohn Baldwin.Fn feature_present 55ce309a2fSJohn Baldwinfunction is not able to determine the presence of 56ce309a2fSJohn Baldwin.Fa feature 57ce309a2fSJohn Baldwindue to an internal error it will return 0. 58ce309a2fSJohn Baldwin.Sh RETURN VALUES 59ce309a2fSJohn BaldwinIf 60ce309a2fSJohn Baldwin.Fa feature 61ce309a2fSJohn Baldwinis present then 1 is returned; 62ce309a2fSJohn Baldwinotherwise 0 is returned. 63ce309a2fSJohn Baldwin.Sh SEE ALSO 64ce309a2fSJohn Baldwin.Xr sysconf 3 , 65ce309a2fSJohn Baldwin.Xr sysctl 3 66ce309a2fSJohn Baldwin.Sh HISTORY 67ce309a2fSJohn BaldwinThe 68ce309a2fSJohn Baldwin.Fn feature_present 69ce309a2fSJohn Baldwinfunction first appeared in 70ce309a2fSJohn Baldwin.Fx 8.0 . 71