2011-02-12 05:22:29 +00:00
|
|
|
#ifndef _GLOB_H
|
|
|
|
#define _GLOB_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2012-09-08 03:13:55 +00:00
|
|
|
#include <features.h>
|
2012-09-07 02:44:55 +00:00
|
|
|
|
2011-02-12 05:22:29 +00:00
|
|
|
#define __NEED_size_t
|
|
|
|
|
|
|
|
#include <bits/alltypes.h>
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
size_t gl_pathc;
|
|
|
|
char **gl_pathv;
|
|
|
|
size_t gl_offs;
|
|
|
|
int __dummy1;
|
|
|
|
void *__dummy2[5];
|
|
|
|
} glob_t;
|
|
|
|
|
2012-09-07 02:44:55 +00:00
|
|
|
int glob(const char *__restrict, int, int (*)(const char *, int), glob_t *__restrict);
|
2011-02-12 05:22:29 +00:00
|
|
|
void globfree(glob_t *);
|
|
|
|
|
|
|
|
#define GLOB_ERR 0x01
|
|
|
|
#define GLOB_MARK 0x02
|
|
|
|
#define GLOB_NOSORT 0x04
|
|
|
|
#define GLOB_DOOFFS 0x08
|
|
|
|
#define GLOB_NOCHECK 0x10
|
|
|
|
#define GLOB_APPEND 0x20
|
|
|
|
#define GLOB_NOESCAPE 0x40
|
|
|
|
#define GLOB_PERIOD 0x80
|
|
|
|
|
|
|
|
#define GLOB_NOSPACE 1
|
|
|
|
#define GLOB_ABORTED 2
|
|
|
|
#define GLOB_NOMATCH 3
|
|
|
|
#define GLOB_NOSYS 4
|
|
|
|
|
2012-06-04 12:03:56 +00:00
|
|
|
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
|
2012-05-04 04:13:23 +00:00
|
|
|
#define glob64 glob
|
|
|
|
#define globfree64 globfree
|
|
|
|
#endif
|
|
|
|
|
2011-02-12 05:22:29 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|