155077Sache/*- 255077Sache * Copyright (c) 1992, 1993 355077Sache * The Regents of the University of California. All rights reserved. 455077Sache * 555077Sache * Redistribution and use in source and binary forms, with or without 655077Sache * modification, are permitted provided that the following conditions 755077Sache * are met: 855077Sache * 1. Redistributions of source code must retain the above copyright 955077Sache * notice, this list of conditions and the following disclaimer. 1055077Sache * 2. Redistributions in binary form must reproduce the above copyright 1155077Sache * notice, this list of conditions and the following disclaimer in the 1255077Sache * documentation and/or other materials provided with the distribution. 1355077Sache * 4. Neither the name of the University nor the names of its contributors 1455077Sache * may be used to endorse or promote products derived from this software 1555077Sache * without specific prior written permission. 1655077Sache * 1755077Sache * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1855077Sache * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1955077Sache * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2055077Sache * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2155077Sache * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2255077Sache * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2355077Sache * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2455077Sache * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2555077Sache * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2655077Sache * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2755077Sache * SUCH DAMAGE. 2855077Sache * 2955077Sache * $FreeBSD: releng/10.2/usr.bin/csup/fnmatch.h 216370 2010-12-11 08:32:16Z joel $ 3055077Sache * 3155077Sache * @(#)fnmatch.h 8.1 (Berkeley) 6/2/93 3255077Sache * 3355077Sache * From FreeBSD fnmatch.h 1.7 3455077Sache * $Id: fnmatch.h,v 1.4 2001/10/04 02:46:21 jdp Exp $ 3555077Sache */ 3655077Sache 3774606Sache#ifndef _FNMATCH_H_ 3874606Sache#define _FNMATCH_H_ 3974606Sache 4074606Sache#define FNM_NOMATCH 1 /* Match failed. */ 4174606Sache 4274606Sache#define FNM_NOESCAPE 0x01 /* Disable backslash escaping. */ 4374606Sache#define FNM_PATHNAME 0x02 /* Slash must be matched by slash. */ 4474606Sache#define FNM_PERIOD 0x04 /* Period must be matched by period. */ 4555077Sache#define FNM_LEADING_DIR 0x08 /* Ignore /<tail> after Imatch. */ 4655077Sache#define FNM_CASEFOLD 0x10 /* Case insensitive search. */ 4755077Sache#define FNM_PREFIX_DIRS 0x20 /* Directory prefixes of pattern match too. */ 4855077Sache 4955077Sache/* Make this compile successfully with "gcc -traditional" */ 5055077Sache#ifndef __STDC__ 5155077Sache#define const /* empty */ 5255077Sache#endif 5355077Sache 5455077Sacheint fnmatch(const char *, const char *, int); 5555077Sache 5655077Sache#endif /* !_FNMATCH_H_ */ 5755077Sache