blob: b94623336438b74b679076ef772b0dbcff75d7c8 [file] [log] [blame]
Jari Aaltoccc6cda1996-12-23 17:02:34 +00001/* File-name wildcard pattern matching for GNU.
Jari Aalto31859422009-01-12 13:36:28 +00002 Copyright (C) 1985, 1988, 1989, 2008,2009 Free Software Foundation, Inc.
Jari Aaltoccc6cda1996-12-23 17:02:34 +00003
Jari Aalto31859422009-01-12 13:36:28 +00004 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 Aaltoccc6cda1996-12-23 17:02:34 +00007 it under the terms of the GNU General Public License as published by
Jari Aalto31859422009-01-12 13:36:28 +00008 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
Jari Aaltoccc6cda1996-12-23 17:02:34 +000010
Jari Aalto31859422009-01-12 13:36:28 +000011 Bash is distributed in the hope that it will be useful,
Jari Aaltoccc6cda1996-12-23 17:02:34 +000012 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 Aalto31859422009-01-12 13:36:28 +000017 along with Bash. If not, see <http://www.gnu.org/licenses/>.
18*/
Jari Aaltoccc6cda1996-12-23 17:02:34 +000019
20#ifndef _GLOB_H_
21#define _GLOB_H_
22
23#include "stdc.h"
24
Jari Aalto31859422009-01-12 13:36:28 +000025#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 Aalto7117c2d2002-07-17 14:10:11 +000033
Jari Aaltof73dda02001-11-13 17:56:06 +000034extern int glob_pattern_p __P((const char *));
Jari Aalto7117c2d2002-07-17 14:10:11 +000035extern char **glob_vector __P((char *, char *, int));
36extern char **glob_filename __P((char *, int));
Jari Aaltoccc6cda1996-12-23 17:02:34 +000037
Chet Rameyac50fba2014-02-26 09:36:43 -050038extern int extglob_pattern_p __P((const char *));
39
Jari Aaltoccc6cda1996-12-23 17:02:34 +000040extern char *glob_error_return;
41extern int noglob_dot_filenames;
Jari Aaltocce855b1998-04-17 19:52:44 +000042extern int glob_ignore_case;
Jari Aaltoccc6cda1996-12-23 17:02:34 +000043
44#endif /* _GLOB_H_ */