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