]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - packages/io/fileio/v2_0/include/fnmatch.h
Initial revision
[karo-tx-redboot.git] / packages / io / fileio / v2_0 / include / fnmatch.h
1 #ifndef CYGONCE_FILEIO_FNMATCH_H
2 #define CYGONCE_FILEIO_FNMATCH_H
3
4 //==========================================================================
5 //
6 //      fnmatch.h
7 //
8 //==========================================================================
9 //####BSDCOPYRIGHTBEGIN####
10 //
11 // -------------------------------------------
12 //
13 // Portions of this software may have been derived from NetBSD, and are
14 // covered by the appropriate copyright disclaimers included herein.
15 //
16 // -------------------------------------------
17 //
18 //####BSDCOPYRIGHTEND####
19
20 /*      $NetBSD: fnmatch.h,v 1.12 2005/02/03 04:39:32 perry Exp $       */
21
22 /*-
23  * Copyright (c) 1992, 1993
24  *      The Regents of the University of California.  All rights reserved.
25  *
26  * Redistribution and use in source and binary forms, with or without
27  * modification, are permitted provided that the following conditions
28  * are met:
29  * 1. Redistributions of source code must retain the above copyright
30  *    notice, this list of conditions and the following disclaimer.
31  * 2. Redistributions in binary form must reproduce the above copyright
32  *    notice, this list of conditions and the following disclaimer in the
33  *    documentation and/or other materials provided with the distribution.
34  * 3. Neither the name of the University nor the names of its contributors
35  *    may be used to endorse or promote products derived from this software
36  *    without specific prior written permission.
37  *
38  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
39  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
40  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
41  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
42  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
43  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
44  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
45  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
46  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
47  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
48  * SUCH DAMAGE.
49  *
50  *      @(#)fnmatch.h   8.1 (Berkeley) 6/2/93
51  */
52
53 #include <cyg/infra/cyg_type.h> // common type definitions and support
54
55 #define FNM_NOMATCH     (1)     /* Match failed. */
56 #define FNM_NOSYS       (2)     /* Function not implemented. */
57
58 #define FNM_NOESCAPE    (0x01)  /* Disable backslash escaping. */
59 #define FNM_PATHNAME    (0x02)  /* Slash must be matched by slash. */
60 #define FNM_PERIOD      (0x04)  /* Period must be matched by period. */
61 #define FNM_CASEFOLD    (0x08)  /* Pattern is matched case-insensitive */
62 #define FNM_LEADING_DIR (0x10)  /* Ignore /<tail> after Imatch. */
63
64 __externC int
65 fnmatch(const char *, const char *, int);
66
67 #endif /* !CYGONCE_FILEIO_FNMATCH_H */