11e72d8d2Sderaadt /* Copyright (C) 1992 Free Software Foundation, Inc. 21e72d8d2Sderaadt This file is part of the GNU C Library. 31e72d8d2Sderaadt 41e72d8d2Sderaadt The GNU C Library is free software; you can redistribute it and/or 51e72d8d2Sderaadt modify it under the terms of the GNU Library General Public License as 61e72d8d2Sderaadt published by the Free Software Foundation; either version 2 of the 71e72d8d2Sderaadt License, or (at your option) any later version. 81e72d8d2Sderaadt 91e72d8d2Sderaadt The GNU C Library is distributed in the hope that it will be useful, 101e72d8d2Sderaadt but WITHOUT ANY WARRANTY; without even the implied warranty of 111e72d8d2Sderaadt MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12*461cc63eStholo Library General Public License for more details. */ 131e72d8d2Sderaadt 141e72d8d2Sderaadt #ifndef _FNMATCH_H 151e72d8d2Sderaadt 161e72d8d2Sderaadt #define _FNMATCH_H 1 171e72d8d2Sderaadt 181e72d8d2Sderaadt /* Bits set in the FLAGS argument to `fnmatch'. */ 191e72d8d2Sderaadt #undef FNM_PATHNAME 201e72d8d2Sderaadt #define FNM_PATHNAME (1 << 0)/* No wildcard can ever match `/'. */ 211e72d8d2Sderaadt #undef FNM_NOESCAPE 221e72d8d2Sderaadt #define FNM_NOESCAPE (1 << 1)/* Backslashes don't quote special chars. */ 231e72d8d2Sderaadt #undef FNM_PERIOD 241e72d8d2Sderaadt #define FNM_PERIOD (1 << 2)/* Leading `.' is matched only explicitly. */ 251e72d8d2Sderaadt #undef __FNM_FLAGS 261e72d8d2Sderaadt #define __FNM_FLAGS (FNM_PATHNAME|FNM_NOESCAPE|FNM_PERIOD) 271e72d8d2Sderaadt 281e72d8d2Sderaadt /* Value returned by `fnmatch' if STRING does not match PATTERN. */ 291e72d8d2Sderaadt #undef FNM_NOMATCH 301e72d8d2Sderaadt #define FNM_NOMATCH 1 311e72d8d2Sderaadt 321e72d8d2Sderaadt /* Match STRING against the filename pattern PATTERN, 331e72d8d2Sderaadt returning zero if it matches, FNM_NOMATCH if not. */ 341e72d8d2Sderaadt #if __STDC__ 351e72d8d2Sderaadt extern int fnmatch (const char *pattern, const char *string, int flags); 361e72d8d2Sderaadt #else 371e72d8d2Sderaadt extern int fnmatch (); 381e72d8d2Sderaadt #endif 391e72d8d2Sderaadt 401e72d8d2Sderaadt #endif /* fnmatch.h */ 41