Octave-Forge - Extra packages for GNU Octave | |
Home · Packages · Developers · Documentation · FAQ · Bugs · Mailing Lists · Links · Code |
00001 /* -*- buffer-read-only: t -*- vi: set ro: */ 00002 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */ 00003 /* Copyright (C) 1991-1993, 1996-1999, 2001-2003, 2005, 2007, 2009-2011 Free 00004 Software Foundation, Inc. 00005 00006 This file is part of the GNU C Library. 00007 00008 This program is free software; you can redistribute it and/or modify 00009 it under the terms of the GNU General Public License as published by 00010 the Free Software Foundation; either version 3, or (at your option) 00011 any later version. 00012 00013 This program 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 00016 GNU General Public License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with this program; if not, write to the Free Software Foundation, 00020 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 00021 00022 #ifndef _FNMATCH_H 00023 #define _FNMATCH_H 1 00024 00025 /* The definition of _GL_ARG_NONNULL is copied here. */ 00026 00027 #ifdef __cplusplus 00028 extern "C" { 00029 #endif 00030 00031 /* We #undef these before defining them because some losing systems 00032 (HP-UX A.08.07 for example) define these in <unistd.h>. */ 00033 #undef FNM_PATHNAME 00034 #undef FNM_NOESCAPE 00035 #undef FNM_PERIOD 00036 00037 /* Bits set in the FLAGS argument to `fnmatch'. */ 00038 #define FNM_PATHNAME (1 << 0) /* No wildcard can ever match `/'. */ 00039 #define FNM_NOESCAPE (1 << 1) /* Backslashes don't quote special chars. */ 00040 #define FNM_PERIOD (1 << 2) /* Leading `.' is matched only explicitly. */ 00041 00042 #if !defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 2 || defined _GNU_SOURCE 00043 # define FNM_FILE_NAME FNM_PATHNAME /* Preferred GNU name. */ 00044 # define FNM_LEADING_DIR (1 << 3) /* Ignore `/...' after a match. */ 00045 # define FNM_CASEFOLD (1 << 4) /* Compare without regard to case. */ 00046 # define FNM_EXTMATCH (1 << 5) /* Use ksh-like extended matching. */ 00047 #endif 00048 00049 /* Value returned by `fnmatch' if STRING does not match PATTERN. */ 00050 #define FNM_NOMATCH 1 00051 00052 /* This value is returned if the implementation does not support 00053 `fnmatch'. Since this is not the case here it will never be 00054 returned but the conformance test suites still require the symbol 00055 to be defined. */ 00056 #ifdef _XOPEN_SOURCE 00057 # define FNM_NOSYS (-1) 00058 #endif 00059 00060 /* Match NAME against the file name pattern PATTERN, 00061 returning zero if it matches, FNM_NOMATCH if not. */ 00062 extern int fnmatch (const char *__pattern, const char *__name, 00063 int __flags) 00064 _GL_ARG_NONNULL ((1, 2)); 00065 00066 #ifdef __cplusplus 00067 } 00068 #endif 00069 00070 #endif /* fnmatch.h */