add mips64 port
[musl.git] / include / glob.h
blob76f6c1c68a235688789bbf740b2ba7e5f34983a5
1 #ifndef _GLOB_H
2 #define _GLOB_H
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
8 #include <features.h>
10 #define __NEED_size_t
12 #include <bits/alltypes.h>
14 typedef struct {
15 size_t gl_pathc;
16 char **gl_pathv;
17 size_t gl_offs;
18 int __dummy1;
19 void *__dummy2[5];
20 } glob_t;
22 int glob(const char *__restrict, int, int (*)(const char *, int), glob_t *__restrict);
23 void globfree(glob_t *);
25 #define GLOB_ERR 0x01
26 #define GLOB_MARK 0x02
27 #define GLOB_NOSORT 0x04
28 #define GLOB_DOOFFS 0x08
29 #define GLOB_NOCHECK 0x10
30 #define GLOB_APPEND 0x20
31 #define GLOB_NOESCAPE 0x40
32 #define GLOB_PERIOD 0x80
34 #define GLOB_NOSPACE 1
35 #define GLOB_ABORTED 2
36 #define GLOB_NOMATCH 3
37 #define GLOB_NOSYS 4
39 #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
40 #define glob64 glob
41 #define globfree64 globfree
42 #define glob64_t glob_t
43 #endif
45 #ifdef __cplusplus
47 #endif
49 #endif