xref: /freebsd/crypto/heimdal/lib/roken/fnmatch.hin (revision ae77177087c655fc883075af4f425b37e032cd05)
15e9cd1aeSAssar Westerlund/*	$NetBSD: fnmatch.h,v 1.5 1994/10/26 00:55:53 cgd Exp $	*/
25e9cd1aeSAssar Westerlund
35e9cd1aeSAssar Westerlund/*-
45e9cd1aeSAssar Westerlund * Copyright (c) 1992, 1993
55e9cd1aeSAssar Westerlund *	The Regents of the University of California.  All rights reserved.
65e9cd1aeSAssar Westerlund *
75e9cd1aeSAssar Westerlund * Redistribution and use in source and binary forms, with or without
85e9cd1aeSAssar Westerlund * modification, are permitted provided that the following conditions
95e9cd1aeSAssar Westerlund * are met:
105e9cd1aeSAssar Westerlund * 1. Redistributions of source code must retain the above copyright
115e9cd1aeSAssar Westerlund *    notice, this list of conditions and the following disclaimer.
125e9cd1aeSAssar Westerlund * 2. Redistributions in binary form must reproduce the above copyright
135e9cd1aeSAssar Westerlund *    notice, this list of conditions and the following disclaimer in the
145e9cd1aeSAssar Westerlund *    documentation and/or other materials provided with the distribution.
15c19800e8SDoug Rabson * 3. Neither the name of the University nor the names of its contributors
165e9cd1aeSAssar Westerlund *    may be used to endorse or promote products derived from this software
175e9cd1aeSAssar Westerlund *    without specific prior written permission.
185e9cd1aeSAssar Westerlund *
195e9cd1aeSAssar Westerlund * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
205e9cd1aeSAssar Westerlund * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
215e9cd1aeSAssar Westerlund * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
225e9cd1aeSAssar Westerlund * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
235e9cd1aeSAssar Westerlund * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
245e9cd1aeSAssar Westerlund * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
255e9cd1aeSAssar Westerlund * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
265e9cd1aeSAssar Westerlund * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
275e9cd1aeSAssar Westerlund * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
285e9cd1aeSAssar Westerlund * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
295e9cd1aeSAssar Westerlund * SUCH DAMAGE.
305e9cd1aeSAssar Westerlund *
315e9cd1aeSAssar Westerlund *	@(#)fnmatch.h	8.1 (Berkeley) 6/2/93
325e9cd1aeSAssar Westerlund */
335e9cd1aeSAssar Westerlund
345e9cd1aeSAssar Westerlund#ifndef	_FNMATCH_H_
355e9cd1aeSAssar Westerlund#define	_FNMATCH_H_
365e9cd1aeSAssar Westerlund
37c19800e8SDoug Rabson#ifndef ROKEN_LIB_FUNCTION
38c19800e8SDoug Rabson#ifdef _WIN32
39*ae771770SStanislav Sedov#define ROKEN_LIB_FUNCTION
40*ae771770SStanislav Sedov#define ROKEN_LIB_CALL __stdcall
41c19800e8SDoug Rabson#else
42c19800e8SDoug Rabson#define ROKEN_LIB_FUNCTION
43*ae771770SStanislav Sedov#define ROKEN_LIB_CALL
44c19800e8SDoug Rabson#endif
45c19800e8SDoug Rabson#endif
46c19800e8SDoug Rabson
47c19800e8SDoug Rabson#ifdef __cplusplus
48c19800e8SDoug Rabsonextern "C" {
49c19800e8SDoug Rabson#endif
50c19800e8SDoug Rabson
515e9cd1aeSAssar Westerlund#define	FNM_NOMATCH	1	/* Match failed. */
525e9cd1aeSAssar Westerlund
535e9cd1aeSAssar Westerlund#define	FNM_NOESCAPE	0x01	/* Disable backslash escaping. */
545e9cd1aeSAssar Westerlund#define	FNM_PATHNAME	0x02	/* Slash must be matched by slash. */
555e9cd1aeSAssar Westerlund#define	FNM_PERIOD	0x04	/* Period must be matched by period. */
565e9cd1aeSAssar Westerlund
57c19800e8SDoug Rabsonint ROKEN_LIB_FUNCTION
58c19800e8SDoug Rabsonrk_fnmatch (const char *, const char *, int);
59c19800e8SDoug Rabson
60c19800e8SDoug Rabson#define fnmatch(a,b,c) rk_fnmatch(a,b,c)
61c19800e8SDoug Rabson
62c19800e8SDoug Rabson#ifdef __cplusplus
63c19800e8SDoug Rabson}
64c19800e8SDoug Rabson#endif
655e9cd1aeSAssar Westerlund
665e9cd1aeSAssar Westerlund#endif /* !_FNMATCH_H_ */
67