New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
[gnulib.git] / lib / glob.in.h
1 /* glob.h -- Find a path matching a pattern.
2
3    Copyright (C) 2005-2007, 2009 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 _GL_GLOB_H
22 #define _GL_GLOB_H
23
24 #if @HAVE_SYS_CDEFS_H@
25 # include <sys/cdefs.h>
26 #endif
27
28 #include <stddef.h>
29
30 /* On some systems, such as AIX 5.1, <sys/stat.h> does a "#define stat stat64".
31    Make sure this definition is seen before glob-libc.h defines types that
32    rely on 'struct stat'.  */
33 #include <sys/stat.h>
34
35 #ifndef __BEGIN_DECLS
36 # define __BEGIN_DECLS
37 # define __END_DECLS
38 #endif
39 #ifndef __THROW
40 # define __THROW
41 #endif
42
43 /* The definition of _GL_ARG_NONNULL is copied here.  */
44
45 #ifndef __size_t
46 # define __size_t       size_t
47 #endif
48 #ifndef __USE_GNU
49 # define __USE_GNU    1
50 #endif
51
52
53 #define glob rpl_glob
54 #define globfree rpl_globfree
55 #define glob_pattern_p rpl_glob_pattern_p
56
57 #define __GLOB_GNULIB 1
58
59 /* Now the standard GNU C Library header should work.  */
60 #include "glob-libc.h"
61
62 #endif /* _GL_GLOB_H */