00001 /* Copyright (C) 2012 Lowell Boggs, Jr. 00002 Trivial comment changes 00003 */ 00004 00005 /* Copyright (C) 1991 Free Software Foundation, Inc. 00006 This file is part of the GNU C Library. 00007 00008 The GNU C Library is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU Library General Public License as 00010 published by the Free Software Foundation; either version 2 of the 00011 License, or (at your option) any later version. 00012 00013 The GNU C Library is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 Library General Public License for more details. 00017 00018 You should have received a copy of the GNU Library General Public 00019 License along with the GNU C Library; see the file COPYING.LIB. If 00020 not, write to the Free Software Foundation, Inc., 675 Mass Ave, 00021 Cambridge, MA 02139, USA. */ 00022 00023 #ifndef _FNMATCH_H 00024 #define _FNMATCH_H 1 00025 00029 00030 00031 /* Bits set in the FLAGS argument to `fnmatch'. */ 00032 #define FNM_PATHNAME (1 << 0)/* No wildcard can ever match `/'. */ 00033 #define FNM_NOESCAPE (1 << 1)/* Backslashes don't quote special chars. */ 00034 #define FNM_PERIOD (1 << 2)/* Leading `.' is matched only explicitly. */ 00035 #define __FNM_FLAGS (FNM_PATHNAME|FNM_NOESCAPE|FNM_PERIOD) 00036 00037 /* Value returned by `fnmatch' if STRING does not match PATTERN. */ 00038 #define FNM_NOMATCH 1 00039 00040 /* Match STRING against the filename pattern PATTERN, 00041 returning zero if it matches, FNM_NOMATCH if not. */ 00042 00043 00044 #if defined(__STDC__) || defined(__cplusplus) 00045 int fnmatch(char *pattern, char *name, int mode); 00046 #endif 00047 00048 00049 #endif /* fnmatch.h */