LibC: Make glob_t a typedef
This commit is contained in:
parent
59fff26a5f
commit
45a73b00de
|
@ -22,12 +22,12 @@ __BEGIN_DECLS
|
||||||
#define GLOB_NOMATCH 2
|
#define GLOB_NOMATCH 2
|
||||||
#define GLOB_NOSPACE 3
|
#define GLOB_NOSPACE 3
|
||||||
|
|
||||||
struct glob_t
|
typedef struct
|
||||||
{
|
{
|
||||||
size_t gl_pathc; /* Count of paths matched by pattern. */
|
size_t gl_pathc; /* Count of paths matched by pattern. */
|
||||||
char** gl_pathv; /* Pointer to a list of matched pathnames. */
|
char** gl_pathv; /* Pointer to a list of matched pathnames. */
|
||||||
size_t gl_offs; /* Slots to reserve at the beginning of gl_pathv. */
|
size_t gl_offs; /* Slots to reserve at the beginning of gl_pathv. */
|
||||||
};
|
} glob_t;
|
||||||
|
|
||||||
int glob(const char* __restrict pattern, int flags, int (*errfunc)(const char* epath, int eerrno), glob_t* __restrict pglob);
|
int glob(const char* __restrict pattern, int flags, int (*errfunc)(const char* epath, int eerrno), glob_t* __restrict pglob);
|
||||||
void globfree(glob_t* pglob);
|
void globfree(glob_t* pglob);
|
||||||
|
|
Loading…
Reference in New Issue