xref: /freebsd/sys/compat/linuxkpi/common/include/linux/bsearch.h (revision f4a145b136ad88f7a9f38e3f7732bc5a8b5cb517)
1*f4a145b1SBjoern A. Zeeb /*-
2*f4a145b1SBjoern A. Zeeb  * SPDX-License-Identifier: BSD-2-Clause
3*f4a145b1SBjoern A. Zeeb  *
4*f4a145b1SBjoern A. Zeeb  * Copyright (c) 2020 The FreeBSD Foundation
5*f4a145b1SBjoern A. Zeeb  *
6*f4a145b1SBjoern A. Zeeb  * This software was developed by Björn Zeeb under sponsorship from
7*f4a145b1SBjoern A. Zeeb  * the FreeBSD Foundation.
8*f4a145b1SBjoern A. Zeeb  *
9*f4a145b1SBjoern A. Zeeb  * Redistribution and use in source and binary forms, with or without
10*f4a145b1SBjoern A. Zeeb  * modification, are permitted provided that the following conditions
11*f4a145b1SBjoern A. Zeeb  * are met:
12*f4a145b1SBjoern A. Zeeb  * 1. Redistributions of source code must retain the above copyright
13*f4a145b1SBjoern A. Zeeb  *    notice, this list of conditions and the following disclaimer.
14*f4a145b1SBjoern A. Zeeb  * 2. Redistributions in binary form must reproduce the above copyright
15*f4a145b1SBjoern A. Zeeb  *    notice, this list of conditions and the following disclaimer in the
16*f4a145b1SBjoern A. Zeeb  *    documentation and/or other materials provided with the distribution.
17*f4a145b1SBjoern A. Zeeb  *
18*f4a145b1SBjoern A. Zeeb  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
19*f4a145b1SBjoern A. Zeeb  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20*f4a145b1SBjoern A. Zeeb  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21*f4a145b1SBjoern A. Zeeb  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
22*f4a145b1SBjoern A. Zeeb  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23*f4a145b1SBjoern A. Zeeb  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24*f4a145b1SBjoern A. Zeeb  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25*f4a145b1SBjoern A. Zeeb  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26*f4a145b1SBjoern A. Zeeb  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27*f4a145b1SBjoern A. Zeeb  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28*f4a145b1SBjoern A. Zeeb  * SUCH DAMAGE.
29*f4a145b1SBjoern A. Zeeb  *
30*f4a145b1SBjoern A. Zeeb  * $FreeBSD$
31*f4a145b1SBjoern A. Zeeb  */
32*f4a145b1SBjoern A. Zeeb 
33*f4a145b1SBjoern A. Zeeb #ifndef	__LKPI_LINUX_BSEARCH_H
34*f4a145b1SBjoern A. Zeeb #define	__LKPI_LINUX_BSEARCH_H
35*f4a145b1SBjoern A. Zeeb 
36*f4a145b1SBjoern A. Zeeb #include <sys/libkern.h>
37*f4a145b1SBjoern A. Zeeb 
38*f4a145b1SBjoern A. Zeeb #endif	/* __LKPI_LINUX_BSEARCH_H */
39