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