21 #if defined(hpux) || defined(__hpux)
22 #define _GLOB_INCLUDED
30 #if defined __cplusplus || (defined __STDC__ && __STDC__) || defined WINDOWS32
31 # if !defined __GLIBC__ || !defined __P || !defined __PMT
34 # define __P(protos) protos
35 # define __PMT(protos) protos
36 # if !defined __GNUC__ || __GNUC__ < 2
38 # define __const const
41 # define __ptr_t void *
45 # define __P(protos) ()
46 # define __PMT(protos) ()
49 # define __ptr_t char *
53 #if !defined(__size_t) && !defined(_BSD_SIZE_T_DEFINED_)
54 # if defined __GNUC__ && __GNUC__ >= 2
58 typedef __SIZE_TYPE__ size_t;
69 # define __size_t size_t
73 #define GLOB_ERR (1 << 0)
74 #define GLOB_MARK (1 << 1)
75 #define GLOB_NOSORT (1 << 2)
76 #define GLOB_DOOFFS (1 << 3)
77 #define GLOB_NOCHECK (1 << 4)
78 #define GLOB_APPEND (1 << 5)
79 #define GLOB_NOESCAPE (1 << 6)
80 #define GLOB_PERIOD (1 << 7)
82 #if (!defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 2 || defined _BSD_SOURCE \
83 || defined _GNU_SOURCE)
84 # define GLOB_MAGCHAR (1 << 8)
85 # define GLOB_ALTDIRFUNC (1 << 9)
86 # define GLOB_BRACE (1 << 10)
87 # define GLOB_NOMAGIC (1 << 11)
88 # define GLOB_TILDE (1 << 12)
89 # define GLOB_ONLYDIR (1 << 13)
90 # define GLOB_TILDE_CHECK (1 << 14)
92 # define __GLOB_FLAGS (GLOB_ERR|GLOB_MARK|GLOB_NOSORT|GLOB_DOOFFS| \
93 GLOB_NOESCAPE|GLOB_NOCHECK|GLOB_APPEND| \
94 GLOB_PERIOD|GLOB_ALTDIRFUNC|GLOB_BRACE| \
95 GLOB_NOMAGIC|GLOB_TILDE|GLOB_ONLYDIR|GLOB_TILDE_CHECK)
97 # define __GLOB_FLAGS (GLOB_ERR|GLOB_MARK|GLOB_NOSORT|GLOB_DOOFFS| \
98 GLOB_NOESCAPE|GLOB_NOCHECK|GLOB_APPEND| \
103 #define GLOB_NOSPACE 1
104 #define GLOB_ABORTED 2
105 #define GLOB_NOMATCH 3
110 # define GLOB_ABEND GLOB_ABORTED
114 #if !defined _AMIGA && !defined VMS
138 #ifdef _LARGEFILE64_SOURCE
151 struct dirent64 *(*gl_readdir)
__PMT ((
void *))
155 int (*gl_lstat)
__PMT ((
__const char *, struct stat64 *))
157 int (*gl_stat)
__PMT ((
__const char *, struct stat64 *))
170 #if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS != 64
172 int (*__errfunc) (
__const char *,
int),
180 # if defined(__GNUC__) && __GNUC__ >= 2
182 int (*__errfunc) (
__const char *,
int),
183 glob_t *__pglob)) __asm__ (
"glob64")
191 # define globfree globfree64
192 # define glob_t glob64_t
196 #ifdef _LARGEFILE64_SOURCE
198 extern int glob64
__P ((
__const char *__pattern,
int __flags,
199 int (*__errfunc) (
__const char *,
int),
204 extern void globfree64
__P ((glob64_t *__pglob))
216 extern int glob_pattern_p
__P ((
__const char *__pattern,
int __quote))
unsigned long int __size_t
static void
Print copy of spec file, filling in Group/Description/Summary from specspo.