rpm 5.3.12
|
Go to the source code of this file.
Defines | |
#define | __alloca alloca |
#define | __stat stat |
#define | NAMLEN(_d) NLENGTH(_d) |
#define | CONVERT_D_NAMLEN(d64, d32) (d64)->d_namlen = (d32)->d_namlen; |
#define | CONVERT_D_INO(d64, d32) (d64)->d_ino = (d32)->d_ino; |
#define | CONVERT_D_TYPE(d64, d32) |
#define | CONVERT_DIRENT_DIRENT64(d64, d32) |
#define | REAL_DIR_ENTRY(dp) (dp->d_ino != 0) |
#define | __set_errno(val) errno = (val) |
#define | NAME_MAX 255 |
#define | GLOB_INTERFACE_VERSION 1 |
#define | DIRSEP_CHAR '/' |
Functions | |
static const char * | next_brace_sub () |
static int | glob_in_dir () |
static int | prefix_array () |
static int | collated_compare () |
static const char * | next_brace_sub (const char *begin) |
static int | __glob_pattern_p (const char *pattern, int quote) |
int | glob64 (const char *pattern, int flags, int(*errfunc)(), glob64_t *pglob) |
void | globfree64 (glob64_t *pglob) |
static int | collated_compare (const char *a, const char *b) |
static int | prefix_array (const char *dirname, char **array, size_t n) |
static int | glob_in_dir (const char *pattern, const char *directory, int flags, int(*errfunc)(), glob64_t *pglob) |
#define __alloca alloca |
Definition at line 56 of file glob.c.
Referenced by glob64(), and glob_in_dir().
#define __set_errno | ( | val | ) | errno = (val) |
Definition at line 98 of file glob.c.
Referenced by glob64(), and glob_in_dir().
#define __stat stat |
Definition at line 57 of file glob.c.
Referenced by glob64(), and glob_in_dir().
#define CONVERT_D_INO | ( | d64, | |
d32 | |||
) | (d64)->d_ino = (d32)->d_ino; |
#define CONVERT_D_NAMLEN | ( | d64, | |
d32 | |||
) | (d64)->d_namlen = (d32)->d_namlen; |
#define CONVERT_DIRENT_DIRENT64 | ( | d64, | |
d32 | |||
) |
memcpy ((d64)->d_name, (d32)->d_name, NAMLEN (d32) + 1); \ CONVERT_D_NAMLEN (d64, d32) \ CONVERT_D_INO (d64, d32) \ CONVERT_D_TYPE (d64, d32)
Definition at line 82 of file glob.c.
Referenced by glob_in_dir().
#define DIRSEP_CHAR '/' |
Referenced by prefix_array().
#define NAME_MAX 255 |
Definition at line 102 of file glob.c.
Referenced by glob_in_dir().
#define NAMLEN | ( | _d | ) | NLENGTH(_d) |
Definition at line 58 of file glob.c.
Referenced by glob_in_dir().
#define REAL_DIR_ENTRY | ( | dp | ) | (dp->d_ino != 0) |
Definition at line 93 of file glob.c.
Referenced by glob_in_dir().
static int __glob_pattern_p | ( | const char * | pattern, |
int | quote | ||
) | [static] |
Definition at line 977 of file glob.c.
Referenced by glob64(), and glob_in_dir().
static int collated_compare | ( | const char * | a, |
const char * | b | ||
) | [static] |
static int collated_compare | ( | ) | [static] |
Referenced by glob64().
int glob64 | ( | const char * | pattern, |
int | flags, | ||
int(*)() | errfunc, | ||
glob64_t * | pglob | ||
) |
Definition at line 176 of file glob.c.
References __alloca, __GLOB_FLAGS, __glob_pattern_p(), __ptr_t, __set_errno, __stat, collated_compare(), errno, getenv(), glob_t::gl_closedir, glob_t::gl_flags, glob_t::gl_lstat, glob_t::gl_offs, glob_t::gl_opendir, glob_t::gl_pathc, glob_t::gl_pathv, glob_t::gl_readdir, glob_t::gl_stat, glob, GLOB_ABORTED, GLOB_ALTDIRFUNC, GLOB_APPEND, GLOB_BRACE, GLOB_DOOFFS, GLOB_ERR, glob_in_dir(), GLOB_MAGCHAR, GLOB_MARK, GLOB_NOCHECK, GLOB_NOESCAPE, GLOB_NOMAGIC, GLOB_NOMATCH, GLOB_NOSORT, GLOB_NOSPACE, GLOB_ONLYDIR, GLOB_TILDE, GLOB_TILDE_CHECK, globfree, name, next_brace_sub(), prefix_array(), xmalloc(), xrealloc(), and xstrdup().
static int glob_in_dir | ( | ) | [static] |
Referenced by glob64().
static int glob_in_dir | ( | const char * | pattern, |
const char * | directory, | ||
int | flags, | ||
int(*)() | errfunc, | ||
glob64_t * | pglob | ||
) | [static] |
Definition at line 1017 of file glob.c.
References __alloca, __glob_pattern_p(), __ptr_t, __set_errno, __stat, CONVERT_DIRENT_DIRENT64, dirent, errno, FNM_CASEFOLD, FNM_NOESCAPE, FNM_PERIOD, fnmatch(), glob_t::gl_closedir, glob_t::gl_flags, glob_t::gl_offs, glob_t::gl_opendir, glob_t::gl_pathc, glob_t::gl_pathv, glob_t::gl_readdir, glob_t::gl_stat, GLOB_ABORTED, GLOB_ALTDIRFUNC, GLOB_DOOFFS, GLOB_ERR, GLOB_MAGCHAR, GLOB_NOCHECK, GLOB_NOESCAPE, GLOB_NOMAGIC, GLOB_NOMATCH, GLOB_NOSPACE, GLOB_ONLYDIR, GLOB_PERIOD, name, NAME_MAX, NAMLEN, REAL_DIR_ENTRY, xmalloc(), and xrealloc().
void globfree64 | ( | glob64_t * | pglob | ) |
Definition at line 877 of file glob.c.
References __ptr_t, glob_t::gl_pathc, and glob_t::gl_pathv.
static const char* next_brace_sub | ( | ) | [inline, static] |
Referenced by glob64().
static const char* next_brace_sub | ( | const char * | begin | ) | [inline, static] |
static int prefix_array | ( | const char * | dirname, |
char ** | array, | ||
size_t | n | ||
) | [static] |
Definition at line 912 of file glob.c.
References __ptr_t, DIRSEP_CHAR, and xmalloc().
static int prefix_array | ( | ) | [static] |
Referenced by glob64().