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