185912df2c0176907c1a00589508ecc6b58cc031
[musl] / include / glob.h
1 #ifndef _GLOB_H
2 #define _GLOB_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #define __NEED_size_t
9
10 #include <bits/alltypes.h>
11
12 typedef struct {
13         size_t gl_pathc;
14         char **gl_pathv;
15         size_t gl_offs;
16         int __dummy1;
17         void *__dummy2[5];
18 } glob_t;
19
20 int  glob(const char *, int, int (*)(const char *, int), glob_t *);
21 void globfree(glob_t *);
22
23 #define GLOB_ERR      0x01
24 #define GLOB_MARK     0x02
25 #define GLOB_NOSORT   0x04
26 #define GLOB_DOOFFS   0x08
27 #define GLOB_NOCHECK  0x10
28 #define GLOB_APPEND   0x20
29 #define GLOB_NOESCAPE 0x40
30 #define GLOB_PERIOD   0x80
31
32 #define GLOB_NOSPACE 1
33 #define GLOB_ABORTED 2
34 #define GLOB_NOMATCH 3
35 #define GLOB_NOSYS   4
36
37 #ifdef __cplusplus
38 }
39 #endif
40
41 #endif