1 | #ifndef _GLOB_H |
---|---|
2 | #include <posix/glob.h> |
3 | |
4 | #ifndef _ISOMAC |
5 | # include <sys/types.h> |
6 | |
7 | libc_hidden_proto (glob) |
8 | libc_hidden_proto (glob64) |
9 | libc_hidden_proto (globfree) |
10 | libc_hidden_proto (globfree64) |
11 | |
12 | # if __TIMESIZE == 64 |
13 | # define glob64_time64_t glob64_t |
14 | # else |
15 | # include <sys/stat.h> |
16 | |
17 | typedef struct |
18 | { |
19 | size_t gl_pathc; |
20 | char **gl_pathv; |
21 | size_t gl_offs; |
22 | int gl_flags; |
23 | |
24 | void (*gl_closedir) (void *); |
25 | struct dirent64 *(*gl_readdir) (void *); |
26 | void *(*gl_opendir) (const char *); |
27 | int (*gl_lstat) (const char *__restrict, struct __stat64_t64 *__restrict); |
28 | int (*gl_stat) (const char *__restrict, struct __stat64_t64 *__restrict); |
29 | } glob64_time64_t; |
30 | |
31 | extern int __glob64_time64 (const char *pattern, int flags, |
32 | int (*errfunc) (const char *, int), |
33 | glob64_time64_t *pglob); |
34 | libc_hidden_proto (__glob64_time64) |
35 | void __globfree64_time64 (glob64_time64_t *pglob); |
36 | libc_hidden_proto (__globfree64_time64) |
37 | # endif |
38 | |
39 | /* Now define the internal interfaces. */ |
40 | extern int __glob_pattern_p (const char *__pattern, int __quote); |
41 | extern int __glob64 (const char *__pattern, int __flags, |
42 | int (*__errfunc) (const char *, int), |
43 | glob64_t *__pglob); |
44 | libc_hidden_proto (__glob64) |
45 | #endif |
46 | |
47 | #endif |
48 |