version 1.10, 2005/12/13 00:35:22 |
version 1.11, 2010/09/24 13:32:55 |
|
|
#define _GLOB_H_ |
#define _GLOB_H_ |
|
|
#include <sys/cdefs.h> |
#include <sys/cdefs.h> |
|
#include <sys/stat.h> |
|
|
struct stat; |
struct stat; |
typedef struct { |
typedef struct { |
|
|
int gl_offs; /* Reserved at beginning of gl_pathv. */ |
int 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. */ |
|
struct stat **gl_statv; /* Stat entries corresponding to gl_pathv */ |
/* Copy of errfunc parameter to glob. */ |
/* Copy of errfunc parameter to glob. */ |
int (*gl_errfunc)(const char *, int); |
int (*gl_errfunc)(const char *, int); |
|
|
|
|
#define GLOB_QUOTE 0x0400 /* Quote special chars with \. */ |
#define GLOB_QUOTE 0x0400 /* Quote special chars with \. */ |
#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 0x2000 /* Limit pattern match output to ARG_MAX */ |
#define GLOB_LIMIT 0x2000 /* Limit pattern match output to ARG_MAX */ |
|
#define GLOB_KEEPSTAT 0x4000 /* Retain stat data for paths in gl_statv. */ |
#define GLOB_ABEND GLOB_ABORTED /* backward compatibility */ |
#define GLOB_ABEND GLOB_ABORTED /* backward compatibility */ |
#endif |
#endif |
|
|