Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1 | /* File-name wildcard pattern matching for GNU. |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 2 | Copyright (C) 1985, 1988, 1989, 2008,2009 Free Software Foundation, Inc. |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 3 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 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 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 7 | it under the terms of the GNU General Public License as published by |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 8 | the Free Software Foundation, either version 3 of the License, or |
| 9 | (at your option) any later version. |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 10 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 11 | Bash is distributed in the hope that it will be useful, |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 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 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 17 | along with Bash. If not, see <http://www.gnu.org/licenses/>. |
| 18 | */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 19 | |
| 20 | #ifndef _GLOB_H_ |
| 21 | #define _GLOB_H_ |
| 22 | |
| 23 | #include "stdc.h" |
| 24 | |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 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 ** */ |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 33 | |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 34 | extern int glob_pattern_p __P((const char *)); |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 35 | extern char **glob_vector __P((char *, char *, int)); |
| 36 | extern char **glob_filename __P((char *, int)); |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 37 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 38 | extern int extglob_pattern_p __P((const char *)); |
| 39 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 40 | extern char *glob_error_return; |
| 41 | extern int noglob_dot_filenames; |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 42 | extern int glob_ignore_case; |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 43 | |
| 44 | #endif /* _GLOB_H_ */ |