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.\" $FreeBSD$ 30ce309a2fSJohn Baldwin.\" 31ce309a2fSJohn Baldwin.Dd January 8, 2008 32*a6d11f71SRuslan Ermilov.Dt FEATURE_PRESENT 3 33ce309a2fSJohn Baldwin.Os 34ce309a2fSJohn Baldwin.Sh NAME 35ce309a2fSJohn Baldwin.Nm feature_present 36ce309a2fSJohn Baldwin.Nd query presence of a kernel feature 37ce309a2fSJohn Baldwin.Sh LIBRARY 38ce309a2fSJohn Baldwin.Lb libc 39ce309a2fSJohn Baldwin.Sh SYNOPSIS 40ce309a2fSJohn Baldwin.In unistd.h 41ce309a2fSJohn Baldwin.Ft int 42ce309a2fSJohn Baldwin.Fn feature_present "const char *feature" 43ce309a2fSJohn Baldwin.Sh DESCRIPTION 44ce309a2fSJohn BaldwinThe 45ce309a2fSJohn Baldwin.Fn feature_present 46ce309a2fSJohn Baldwinfunction provides a method for an application to determine if a specific 47ce309a2fSJohn Baldwinkernel feature is present in the currently running kernel. 48ce309a2fSJohn BaldwinThe 49ce309a2fSJohn Baldwin.Fa feature 50ce309a2fSJohn Baldwinargument specifies the name of the feature to check. 51ce309a2fSJohn BaldwinThe 52ce309a2fSJohn Baldwin.Fn feature_present 53ce309a2fSJohn Baldwinfunction will return 1 if the specified feature is present, 54ce309a2fSJohn Baldwinotherwise it will return 0. 55ce309a2fSJohn BaldwinIf the 56ce309a2fSJohn Baldwin.Fn feature_present 57ce309a2fSJohn Baldwinfunction is not able to determine the presence of 58ce309a2fSJohn Baldwin.Fa feature 59ce309a2fSJohn Baldwindue to an internal error it will return 0. 60ce309a2fSJohn Baldwin.Sh RETURN VALUES 61ce309a2fSJohn BaldwinIf 62ce309a2fSJohn Baldwin.Fa feature 63ce309a2fSJohn Baldwinis present then 1 is returned; 64ce309a2fSJohn Baldwinotherwise 0 is returned. 65ce309a2fSJohn Baldwin.Sh SEE ALSO 66ce309a2fSJohn Baldwin.Xr sysconf 3 , 67ce309a2fSJohn Baldwin.Xr sysctl 3 68ce309a2fSJohn Baldwin.Sh HISTORY 69ce309a2fSJohn BaldwinThe 70ce309a2fSJohn Baldwin.Fn feature_present 71ce309a2fSJohn Baldwinfunction first appeared in 72ce309a2fSJohn Baldwin.Fx 8.0 . 73