fnmatch.h revision 19144
1221337Sdim/*-
2221337Sdim * Copyright (c) 1992, 1993
3221337Sdim *	The Regents of the University of California.  All rights reserved.
4221337Sdim *
5221337Sdim * Redistribution and use in source and binary forms, with or without
6221337Sdim * modification, are permitted provided that the following conditions
7221337Sdim * are met:
8221337Sdim * 1. Redistributions of source code must retain the above copyright
9221337Sdim *    notice, this list of conditions and the following disclaimer.
10221337Sdim * 2. Redistributions in binary form must reproduce the above copyright
11221337Sdim *    notice, this list of conditions and the following disclaimer in the
12221337Sdim *    documentation and/or other materials provided with the distribution.
13221337Sdim * 3. All advertising materials mentioning features or use of this software
14221337Sdim *    must display the following acknowledgement:
15221337Sdim *	This product includes software developed by the University of
16221337Sdim *	California, Berkeley and its contributors.
17221337Sdim * 4. Neither the name of the University nor the names of its contributors
18221337Sdim *    may be used to endorse or promote products derived from this software
19221337Sdim *    without specific prior written permission.
20221337Sdim *
21221337Sdim * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22226890Sdim * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23226890Sdim * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24252723Sdim * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25221337Sdim * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26221337Sdim * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27221337Sdim * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28221337Sdim * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29221337Sdim * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30221337Sdim * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31235633Sdim * SUCH DAMAGE.
32226890Sdim *
33235633Sdim *	@(#)fnmatch.h	8.1 (Berkeley) 6/2/93
34221337Sdim */
35221337Sdim
36221337Sdim#ifndef	_FNMATCH_H_
37221337Sdim#define	_FNMATCH_H_
38221337Sdim
39221337Sdim#define	FNM_NOMATCH	1	/* Match failed. */
40221337Sdim
41221337Sdim#define	FNM_NOESCAPE	0x01	/* Disable backslash escaping. */
42221337Sdim#define	FNM_PATHNAME	0x02	/* Slash must be matched by slash. */
43221337Sdim#define	FNM_PERIOD	0x04	/* Period must be matched by period. */
44221337Sdim#ifndef _POSIX_SOURCE
45221337Sdim#define	FNM_LEADING_DIR	0x08	/* Ignore "/*" after match. */
46221337Sdim#define	FNM_CASEFOLD	0x10	/* Case insensitive search. */
47221337Sdim#endif
48221337Sdim
49221337Sdim#include <sys/cdefs.h>
50221337Sdim
51221337Sdim__BEGIN_DECLS
52221337Sdimint	 fnmatch __P((const char *, const char *, int));
53221337Sdim__END_DECLS
54221337Sdim
55221337Sdim#endif /* !_FNMATCH_H_ */
56221337Sdim