xref: /freebsd/lib/libc/gen/scandir_b.c (revision b3e7694832e81d7a904a10f525f8797b753bf0d3)
1*46cdc140SDavid Chisnall /*-
2*46cdc140SDavid Chisnall  * Copyright (c) 2014 David Chisnall
3*46cdc140SDavid Chisnall  * All rights reserved.
4*46cdc140SDavid Chisnall  *
5*46cdc140SDavid Chisnall  * Redistribution and use in source and binary forms, with or without
6*46cdc140SDavid Chisnall  * modification, are permitted provided that the following conditions
7*46cdc140SDavid Chisnall  * are met:
8*46cdc140SDavid Chisnall  * 1. Redistributions of source code must retain the above copyright
9*46cdc140SDavid Chisnall  *    notice, this list of conditions and the following disclaimer.
10*46cdc140SDavid Chisnall  * 2. Redistributions in binary form must reproduce the above copyright
11*46cdc140SDavid Chisnall  *    notice, this list of conditions and the following disclaimer in the
12*46cdc140SDavid Chisnall  *    documentation and/or other materials provided with the distribution.
13*46cdc140SDavid Chisnall  *
14*46cdc140SDavid Chisnall  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15*46cdc140SDavid Chisnall  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16*46cdc140SDavid Chisnall  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17*46cdc140SDavid Chisnall  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18*46cdc140SDavid Chisnall  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19*46cdc140SDavid Chisnall  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20*46cdc140SDavid Chisnall  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21*46cdc140SDavid Chisnall  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22*46cdc140SDavid Chisnall  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23*46cdc140SDavid Chisnall  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24*46cdc140SDavid Chisnall  * SUCH DAMAGE.
25*46cdc140SDavid Chisnall  */
26*46cdc140SDavid Chisnall #define I_AM_SCANDIR_B
27*46cdc140SDavid Chisnall #include "scandir.c"
28