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