1*f14fb602SLionel Sambuc /* $NetBSD: fnmatch.h,v 1.13 2011/01/31 04:49:46 christos Exp $ */ 27c4cd0e6SBen Gras 37c4cd0e6SBen Gras /*- 47c4cd0e6SBen Gras * Copyright (c) 1992, 1993 57c4cd0e6SBen Gras * The Regents of the University of California. All rights reserved. 67c4cd0e6SBen Gras * 77c4cd0e6SBen Gras * Redistribution and use in source and binary forms, with or without 87c4cd0e6SBen Gras * modification, are permitted provided that the following conditions 97c4cd0e6SBen Gras * are met: 107c4cd0e6SBen Gras * 1. Redistributions of source code must retain the above copyright 117c4cd0e6SBen Gras * notice, this list of conditions and the following disclaimer. 127c4cd0e6SBen Gras * 2. Redistributions in binary form must reproduce the above copyright 137c4cd0e6SBen Gras * notice, this list of conditions and the following disclaimer in the 147c4cd0e6SBen Gras * documentation and/or other materials provided with the distribution. 157c4cd0e6SBen Gras * 3. Neither the name of the University nor the names of its contributors 167c4cd0e6SBen Gras * may be used to endorse or promote products derived from this software 177c4cd0e6SBen Gras * without specific prior written permission. 187c4cd0e6SBen Gras * 197c4cd0e6SBen Gras * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 207c4cd0e6SBen Gras * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 217c4cd0e6SBen Gras * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 227c4cd0e6SBen Gras * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 237c4cd0e6SBen Gras * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 247c4cd0e6SBen Gras * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 257c4cd0e6SBen Gras * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 267c4cd0e6SBen Gras * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 277c4cd0e6SBen Gras * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 287c4cd0e6SBen Gras * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 297c4cd0e6SBen Gras * SUCH DAMAGE. 307c4cd0e6SBen Gras * 317c4cd0e6SBen Gras * @(#)fnmatch.h 8.1 (Berkeley) 6/2/93 327c4cd0e6SBen Gras */ 337c4cd0e6SBen Gras 347c4cd0e6SBen Gras #ifndef _FNMATCH_H_ 357c4cd0e6SBen Gras #define _FNMATCH_H_ 367c4cd0e6SBen Gras 372fe8fb19SBen Gras #include <sys/featuretest.h> 382fe8fb19SBen Gras 397c4cd0e6SBen Gras #define FNM_NOMATCH 1 /* Match failed. */ 402fe8fb19SBen Gras #define FNM_NOSYS 2 /* Function not implemented. */ 41*f14fb602SLionel Sambuc #define FNM_NORES 3 /* Out of resources */ 427c4cd0e6SBen Gras 437c4cd0e6SBen Gras #define FNM_NOESCAPE 0x01 /* Disable backslash escaping. */ 447c4cd0e6SBen Gras #define FNM_PATHNAME 0x02 /* Slash must be matched by slash. */ 457c4cd0e6SBen Gras #define FNM_PERIOD 0x04 /* Period must be matched by period. */ 462fe8fb19SBen Gras #if defined(_NETBSD_SOURCE) 472fe8fb19SBen Gras #define FNM_CASEFOLD 0x08 /* Pattern is matched case-insensitive */ 482fe8fb19SBen Gras #define FNM_LEADING_DIR 0x10 /* Ignore /<tail> after Imatch. */ 492fe8fb19SBen Gras #endif 507c4cd0e6SBen Gras 512fe8fb19SBen Gras #include <sys/cdefs.h> 527c4cd0e6SBen Gras 532fe8fb19SBen Gras __BEGIN_DECLS 547c4cd0e6SBen Gras int fnmatch(const char *, const char *, int); 552fe8fb19SBen Gras __END_DECLS 567c4cd0e6SBen Gras 577c4cd0e6SBen Gras #endif /* !_FNMATCH_H_ */ 58