Deleted Added
full compact
feature_present.c (175220) feature_present.c (288007)
1/*-
2 * Copyright (c) 2008 Yahoo!, Inc.
3 * All rights reserved.
4 * Written by: John Baldwin <jhb@FreeBSD.org>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 15 unchanged lines hidden (view full) ---

24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 */
30
31#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2008 Yahoo!, Inc.
3 * All rights reserved.
4 * Written by: John Baldwin <jhb@FreeBSD.org>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 15 unchanged lines hidden (view full) ---

24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/lib/libc/gen/feature_present.c 175220 2008-01-10 22:11:21Z jhb $");
32__FBSDID("$FreeBSD: head/lib/libc/gen/feature_present.c 288007 2015-09-20 03:56:57Z rodrigc $");
33
34#include <sys/types.h>
35#include <sys/sysctl.h>
36#include <stdio.h>
37#include <stdlib.h>
33
34#include <sys/types.h>
35#include <sys/sysctl.h>
36#include <stdio.h>
37#include <stdlib.h>
38#include <unistd.h>
38
39/*
40 * Returns true if the named feature is present in the currently
41 * running kernel. A feature's presence is indicated by an integer
42 * sysctl node called kern.feature.<feature> that is non-zero.
43 */
44int
45feature_present(const char *feature)

--- 17 unchanged lines hidden ---
39
40/*
41 * Returns true if the named feature is present in the currently
42 * running kernel. A feature's presence is indicated by an integer
43 * sysctl node called kern.feature.<feature> that is non-zero.
44 */
45int
46feature_present(const char *feature)

--- 17 unchanged lines hidden ---