172445Sassar/*	$NetBSD: fnmatch.h,v 1.5 1994/10/26 00:55:53 cgd Exp $	*/
272445Sassar
372445Sassar/*-
472445Sassar * Copyright (c) 1992, 1993
572445Sassar *	The Regents of the University of California.  All rights reserved.
672445Sassar *
772445Sassar * Redistribution and use in source and binary forms, with or without
872445Sassar * modification, are permitted provided that the following conditions
972445Sassar * are met:
1072445Sassar * 1. Redistributions of source code must retain the above copyright
1172445Sassar *    notice, this list of conditions and the following disclaimer.
1272445Sassar * 2. Redistributions in binary form must reproduce the above copyright
1372445Sassar *    notice, this list of conditions and the following disclaimer in the
1472445Sassar *    documentation and/or other materials provided with the distribution.
15178825Sdfr * 3. Neither the name of the University nor the names of its contributors
1672445Sassar *    may be used to endorse or promote products derived from this software
1772445Sassar *    without specific prior written permission.
1872445Sassar *
1972445Sassar * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2072445Sassar * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2172445Sassar * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2272445Sassar * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2372445Sassar * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2472445Sassar * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2572445Sassar * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2672445Sassar * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2772445Sassar * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2872445Sassar * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2972445Sassar * SUCH DAMAGE.
3072445Sassar *
3172445Sassar *	@(#)fnmatch.h	8.1 (Berkeley) 6/2/93
3272445Sassar */
3372445Sassar
3472445Sassar#ifndef	_FNMATCH_H_
3572445Sassar#define	_FNMATCH_H_
3672445Sassar
37178825Sdfr#ifndef ROKEN_LIB_FUNCTION
38178825Sdfr#ifdef _WIN32
39233294Sstas#define ROKEN_LIB_FUNCTION
40233294Sstas#define ROKEN_LIB_CALL __stdcall
41178825Sdfr#else
42178825Sdfr#define ROKEN_LIB_FUNCTION
43233294Sstas#define ROKEN_LIB_CALL
44178825Sdfr#endif
45178825Sdfr#endif
46178825Sdfr
47178825Sdfr#ifdef __cplusplus
48178825Sdfrextern "C" {
49178825Sdfr#endif
50178825Sdfr
5172445Sassar#define	FNM_NOMATCH	1	/* Match failed. */
5272445Sassar
5372445Sassar#define	FNM_NOESCAPE	0x01	/* Disable backslash escaping. */
5472445Sassar#define	FNM_PATHNAME	0x02	/* Slash must be matched by slash. */
5572445Sassar#define	FNM_PERIOD	0x04	/* Period must be matched by period. */
5672445Sassar
57178825Sdfrint ROKEN_LIB_FUNCTION
58178825Sdfrrk_fnmatch (const char *, const char *, int);
5972445Sassar
60178825Sdfr#define fnmatch(a,b,c) rk_fnmatch(a,b,c)
61178825Sdfr
62178825Sdfr#ifdef __cplusplus
63178825Sdfr}
64178825Sdfr#endif
65178825Sdfr
6672445Sassar#endif /* !_FNMATCH_H_ */
67