]> git.ipfire.org Git - thirdparty/bash.git/blob - lib/glob/glob.h
ca3a66cf1e218b3cff856fd1608c7a4e1241deb7
[thirdparty/bash.git] / lib / glob / glob.h
1 /* File-name wildcard pattern matching for GNU.
2 Copyright (C) 1985-2020 Free Software Foundation, Inc.
3
4 This file is part of GNU Bash, the Bourne-Again SHell.
5
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.
10
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.
15
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/>.
18 */
19
20 #ifndef _GLOB_H_
21 #define _GLOB_H_
22
23 #include "stdc.h"
24
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 ** */
33 #define GX_RECURSE 0x800 /* internal -- glob_filename called recursively */
34 #define GX_SYMLINK 0x1000 /* internal -- symlink to a directory */
35
36 extern int glob_pattern_p PARAMS((const char *));
37 extern char **glob_vector PARAMS((char *, char *, int));
38 extern char **glob_filename PARAMS((char *, int));
39
40 extern int extglob_pattern_p PARAMS((const char *));
41
42 extern char *glob_error_return;
43 extern int noglob_dot_filenames;
44 extern int glob_ignore_case;
45
46 #endif /* _GLOB_H_ */