File: glob.h

package info (click to toggle)
glibc 2.41-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 300,376 kB
  • sloc: ansic: 1,050,583; asm: 238,243; makefile: 20,379; python: 13,537; sh: 11,827; cpp: 5,197; awk: 1,795; perl: 317; yacc: 292; pascal: 182; sed: 19
file content (47 lines) | stat: -rw-r--r-- 1,234 bytes parent folder | download | duplicates (10)
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
47
#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);
libc_hidden_proto (__glob64_time64)
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