Changeset View
Changeset View
Standalone View
Standalone View
include/glob.h
Context not available. | |||||
size_t gl_offs; /* Reserved at beginning of gl_pathv. */ | size_t gl_offs; /* Reserved at beginning of gl_pathv. */ | ||||
int gl_flags; /* Copy of flags parameter to glob. */ | int gl_flags; /* Copy of flags parameter to glob. */ | ||||
char **gl_pathv; /* List of paths matching pattern. */ | char **gl_pathv; /* List of paths matching pattern. */ | ||||
/* Copy of errfunc parameter to glob. */ | /* Copy of errfunc/errblock parameter to | ||||
int (*gl_errfunc)(const char *, int); | glob/glob_b.*/ | ||||
union { | |||||
int (*gl_errfunc)(const char *, int); | |||||
void *gl_errblk; | |||||
}; | |||||
/* | /* | ||||
* Alternate filesystem access methods for glob; replacement | * Alternate filesystem access methods for glob; replacement | ||||
Context not available. | |||||
#define GLOB_TILDE 0x0800 /* Expand tilde names from the passwd file. */ | #define GLOB_TILDE 0x0800 /* Expand tilde names from the passwd file. */ | ||||
#define GLOB_LIMIT 0x1000 /* limit number of returned paths */ | #define GLOB_LIMIT 0x1000 /* limit number of returned paths */ | ||||
#define _GLOB_ERRBLK 0x80000000 /* (private) err callback is block */ | |||||
/* source compatibility, these are the old names */ | /* source compatibility, these are the old names */ | ||||
#define GLOB_MAXPATH GLOB_LIMIT | #define GLOB_MAXPATH GLOB_LIMIT | ||||
#define GLOB_ABEND GLOB_ABORTED | #define GLOB_ABEND GLOB_ABORTED | ||||
Context not available. | |||||
__BEGIN_DECLS | __BEGIN_DECLS | ||||
int glob(const char * __restrict, int, | int glob(const char * __restrict, int, | ||||
int (*)(const char *, int), glob_t * __restrict); | int (*)(const char *, int), glob_t * __restrict); | ||||
#ifdef __BLOCKS__ | |||||
int glob_b(const char * __restrict, int, | |||||
int (^)(const char *, int), glob_t * __restrict); | |||||
#endif /* __BLOCKS__ */ | |||||
void globfree(glob_t *); | void globfree(glob_t *); | ||||
__END_DECLS | __END_DECLS | ||||
Context not available. |