Bash  5.0-beta2
Bash - Bourne Again shell
glob.h
Go to the documentation of this file.
1 /* File-name wildcard pattern matching for GNU.
2  Copyright (C) 1985, 1988, 1989, 2008,2009 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 
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));
37 
38 extern int extglob_pattern_p __P((const char *));
39 
40 extern char *glob_error_return;
41 extern int noglob_dot_filenames;
42 extern int glob_ignore_case;
43 
44 #endif /* _GLOB_H_ */
int glob_pattern_p __P((const char *))
char * glob_error_return
Definition: glob.c:103
int glob_pattern_p(char *pattern) const
Definition: glob.c:154
int noglob_dot_filenames
Definition: glob.c:96
int glob_ignore_case
Definition: glob.c:100
char ** glob_vector(char *pat, char *dir, int flags)
Definition: glob.c:594
char ** glob_filename(char *pathname, int flags)
Definition: glob.c:1055