1 /* File-name wildcard pattern matching for GNU.
2 Copyright (C) 1985, 1988, 1989, 2008,2009 Free Software Foundation, Inc.
4 This file is part of GNU Bash, the Bourne-Again SHell.
6 Bash is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 Bash is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with Bash. If not, see <http://www.gnu.org/licenses/>.
25 #define GX_MARKDIRS 0x001 /* mark directory names with trailing `/' */
26 #define GX_NOCASE 0x002 /* ignore case */
27 #define GX_MATCHDOT 0x004 /* match `.' literally */
28 #define GX_MATCHDIRS 0x008 /* match only directory names */
29 #define GX_ALLDIRS 0x010 /* match all directory names, no others */
30 #define GX_NULLDIR 0x100 /* internal -- no directory preceding pattern */
31 #define GX_ADDCURDIR 0x200 /* internal -- add passed directory name */
32 #define GX_GLOBSTAR 0x400 /* turn on special handling of ** */
34 extern int glob_pattern_p
__P((const char *));
35 extern char **glob_vector
__P((char *, char *, int));
36 extern char **glob_filename
__P((char *, int));
38 extern char *glob_error_return
;
39 extern int noglob_dot_filenames
;
40 extern int glob_ignore_case
;