11539Srgrimes/*-
21539Srgrimes * Copyright (c) 1992, 1993
31539Srgrimes *	The Regents of the University of California.  All rights reserved.
41539Srgrimes *
51539Srgrimes * Redistribution and use in source and binary forms, with or without
61539Srgrimes * modification, are permitted provided that the following conditions
71539Srgrimes * are met:
81539Srgrimes * 1. Redistributions of source code must retain the above copyright
91539Srgrimes *    notice, this list of conditions and the following disclaimer.
101539Srgrimes * 2. Redistributions in binary form must reproduce the above copyright
111539Srgrimes *    notice, this list of conditions and the following disclaimer in the
121539Srgrimes *    documentation and/or other materials provided with the distribution.
13203964Simp * 3. Neither the name of the University nor the names of its contributors
141539Srgrimes *    may be used to endorse or promote products derived from this software
151539Srgrimes *    without specific prior written permission.
161539Srgrimes *
171539Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
181539Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
191539Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
201539Srgrimes * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
211539Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
221539Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
231539Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
241539Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
251539Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
261539Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
271539Srgrimes * SUCH DAMAGE.
281539Srgrimes *
2953516Sache * $FreeBSD$
301539Srgrimes *	@(#)fnmatch.h	8.1 (Berkeley) 6/2/93
311539Srgrimes */
321539Srgrimes
331539Srgrimes#ifndef	_FNMATCH_H_
341539Srgrimes#define	_FNMATCH_H_
351539Srgrimes
36103507Smike#include <sys/cdefs.h>
37103507Smike
381539Srgrimes#define	FNM_NOMATCH	1	/* Match failed. */
391539Srgrimes
401539Srgrimes#define	FNM_NOESCAPE	0x01	/* Disable backslash escaping. */
411539Srgrimes#define	FNM_PATHNAME	0x02	/* Slash must be matched by slash. */
421539Srgrimes#define	FNM_PERIOD	0x04	/* Period must be matched by period. */
4353516Sache
44123630Sjkh#if __XSI_VISIBLE
45123636Sjkh#define	FNM_NOSYS	(-1)	/* Reserved. */
46123630Sjkh#endif
47123585Sjkh
48103507Smike#if __BSD_VISIBLE
4920154Sache#define	FNM_LEADING_DIR	0x08	/* Ignore /<tail> after Imatch. */
5019144Sbde#define	FNM_CASEFOLD	0x10	/* Case insensitive search. */
5121227Sache#define	FNM_IGNORECASE	FNM_CASEFOLD
5253516Sache#define	FNM_FILE_NAME	FNM_PATHNAME
5353516Sache#endif
541539Srgrimes
551539Srgrimes__BEGIN_DECLS
5693032Simpint	 fnmatch(const char *, const char *, int);
571539Srgrimes__END_DECLS
581539Srgrimes
591539Srgrimes#endif /* !_FNMATCH_H_ */
60