1156230Smux/*-
2156230Smux * Copyright (c) 1992, 1993
3156230Smux *	The Regents of the University of California.  All rights reserved.
4156230Smux *
5156230Smux * Redistribution and use in source and binary forms, with or without
6156230Smux * modification, are permitted provided that the following conditions
7156230Smux * are met:
8156230Smux * 1. Redistributions of source code must retain the above copyright
9156230Smux *    notice, this list of conditions and the following disclaimer.
10156230Smux * 2. Redistributions in binary form must reproduce the above copyright
11156230Smux *    notice, this list of conditions and the following disclaimer in the
12156230Smux *    documentation and/or other materials provided with the distribution.
13156230Smux * 4. Neither the name of the University nor the names of its contributors
14156230Smux *    may be used to endorse or promote products derived from this software
15156230Smux *    without specific prior written permission.
16156230Smux *
17156230Smux * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
18156230Smux * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19156230Smux * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20156230Smux * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
21156230Smux * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22156230Smux * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23156230Smux * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24156230Smux * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25156230Smux * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26156230Smux * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27156230Smux * SUCH DAMAGE.
28156230Smux *
29216370Sjoel * $FreeBSD$
30216370Sjoel *
31156230Smux *	@(#)fnmatch.h	8.1 (Berkeley) 6/2/93
32156230Smux *
33156230Smux * From FreeBSD fnmatch.h 1.7
34156230Smux * $Id: fnmatch.h,v 1.4 2001/10/04 02:46:21 jdp Exp $
35156230Smux */
36156230Smux
37156230Smux#ifndef	_FNMATCH_H_
38156230Smux#define	_FNMATCH_H_
39156230Smux
40156230Smux#define	FNM_NOMATCH	1	/* Match failed. */
41156230Smux
42156230Smux#define	FNM_NOESCAPE	0x01	/* Disable backslash escaping. */
43156230Smux#define	FNM_PATHNAME	0x02	/* Slash must be matched by slash. */
44156230Smux#define	FNM_PERIOD	0x04	/* Period must be matched by period. */
45156230Smux#define	FNM_LEADING_DIR	0x08	/* Ignore /<tail> after Imatch. */
46156230Smux#define	FNM_CASEFOLD	0x10	/* Case insensitive search. */
47156230Smux#define FNM_PREFIX_DIRS	0x20	/* Directory prefixes of pattern match too. */
48156230Smux
49156230Smux/* Make this compile successfully with "gcc -traditional" */
50156230Smux#ifndef __STDC__
51156230Smux#define const	/* empty */
52156230Smux#endif
53156230Smux
54156230Smuxint	 fnmatch(const char *, const char *, int);
55156230Smux
56156230Smux#endif /* !_FNMATCH_H_ */
57