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 39178825Sdfr#define ROKEN_LIB_FUNCTION _stdcall 40178825Sdfr#else 41178825Sdfr#define ROKEN_LIB_FUNCTION 42178825Sdfr#endif 43178825Sdfr#endif 44178825Sdfr 45178825Sdfr#ifdef __cplusplus 46178825Sdfrextern "C" { 47178825Sdfr#endif 48178825Sdfr 4972445Sassar#define FNM_NOMATCH 1 /* Match failed. */ 5072445Sassar 5172445Sassar#define FNM_NOESCAPE 0x01 /* Disable backslash escaping. */ 5272445Sassar#define FNM_PATHNAME 0x02 /* Slash must be matched by slash. */ 5372445Sassar#define FNM_PERIOD 0x04 /* Period must be matched by period. */ 5472445Sassar 55178825Sdfrint ROKEN_LIB_FUNCTION 56178825Sdfrrk_fnmatch (const char *, const char *, int); 5772445Sassar 58178825Sdfr#define fnmatch(a,b,c) rk_fnmatch(a,b,c) 59178825Sdfr 60178825Sdfr#ifdef __cplusplus 61178825Sdfr} 62178825Sdfr#endif 63178825Sdfr 6472445Sassar#endif /* !_FNMATCH_H_ */ 65