Merge branch 'vendor/BZIP'
[dragonfly.git] / contrib / cvs-1.12 / lib / glob_.h
1 /* glob_.h -- Find a path matching a pattern.
2
3    Copyright (C) 2005 Free Software Foundation, Inc.
4
5    Written by Derek Price <derek@ximbiot.com> & Paul Eggert <eggert@CS.UCLA.EDU>
6
7    This program is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 2, or (at your option)
10    any later version.
11
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16
17    You should have received a copy of the GNU General Public License
18    along with this program; if not, write to the Free Software Foundation,
19    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
20
21 #ifndef GLOB_H
22 #define GLOB_H 1
23
24 #ifdef HAVE_SYS_CDEFS_H
25 # include <sys/cdefs.h>
26 #endif
27
28 #include <stddef.h>
29
30 #ifndef __BEGIN_DECLS
31 # define __BEGIN_DECLS
32 # define __END_DECLS
33 #endif
34 #ifndef __THROW
35 # define __THROW
36 #endif
37
38 #ifndef __size_t
39 # define __size_t       size_t
40 #endif
41 #ifndef __const
42 # define __const        const
43 #endif
44 #ifndef __restrict
45 # define __restrict     restrict
46 #endif
47 #ifndef __USE_GNU
48 # define __USE_GNU    1
49 #endif
50
51
52 #ifndef HAVE_DIRENT_H
53 # define dirent direct
54 #endif
55
56 #define glob rpl_glob
57 #define globfree rpl_globfree
58 #define glob_pattern_p rpl_glob_pattern_p
59
60 #define __GLOB_GNULIB 1
61
62 /* Now the standard GNU C Library header should work.  */
63 #include "glob-libc.h"
64
65 #endif /* GLOB_H */