Navigation

Operators and Keywords

Function List:

C++ API

glob.c File Reference

#include <config.h>
#include <glob.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stddef.h>
#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include <unistd.h>
#include <pwd.h>
#include <dirent.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <alloca.h>
#include <fnmatch.h>
Include dependency graph for glob.c:

Defines

#define _GL_ARG_NONNULL(params)
#define __set_errno(val)   errno = (val)
#define _D_EXACT_NAMLEN(dirent)   strlen ((dirent)->d_name)
#define DIRENT_MUST_BE(d, t)   ((d)->d_type == (t))
#define DIRENT_MIGHT_BE_SYMLINK(d)   ((d)->d_type == DT_UNKNOWN || (d)->d_type == DT_LNK)
#define DIRENT_MIGHT_BE_DIR(d)   ((d)->d_type == DT_DIR || DIRENT_MIGHT_BE_SYMLINK (d))
#define REAL_DIR_ENTRY(dp)   (dp->d_ino != 0)
#define NAME_MAX   (sizeof (((struct dirent *) 0)->d_name))
#define __stat64(fname, buf)   stat (fname, buf)
#define __fxstatat64(_, d, f, st, flag)   fstatat (d, f, st, flag)
#define struct_stat64   struct stat
#define __stat(fname, buf)   stat (fname, buf)
#define __alloca   alloca
#define __readdir   readdir
#define __readdir64   readdir64
#define __glob_pattern_p   glob_pattern_p
#define GETPW_R_SIZE_MAX()   (-1)
#define GET_LOGIN_NAME_MAX()   (-1)
#define attribute_hidden
#define __attribute_noinline__
#define __builtin_expect(expr, expected)   (expr)
#define __libc_use_alloca(n)   ((n) < 4032)
#define DIRSEP_CHAR   '/'
#define INITIAL_COUNT   sizeof (init_names.name) / sizeof (init_names.name[0])

Functions

int __glob_pattern_type (const char *pattern, int quote) attribute_hidden
int glob (char *restrict pattern, int flags, int *errfunc, glob_t *restrict pglob) const
void globfree (glob_t *pglob)
int __glob_pattern_type (char *pattern, int quote) const
int __glob_pattern_p (char *pattern, int quote) const

Define Documentation

#define __alloca   alloca
#define __attribute_noinline__
#define __builtin_expect (   expr,
  expected 
)    (expr)
#define __fxstatat64 (   _,
  d,
  f,
  st,
  flag 
)    fstatat (d, f, st, flag)
#define __glob_pattern_p   glob_pattern_p
#define __libc_use_alloca (   n  )     ((n) < 4032)
#define __readdir   readdir
#define __readdir64   readdir64
#define __set_errno (   val  )     errno = (val)
#define __stat (   fname,
  buf 
)    stat (fname, buf)
#define __stat64 (   fname,
  buf 
)    stat (fname, buf)
#define _D_EXACT_NAMLEN (   dirent  )     strlen ((dirent)->d_name)
#define _GL_ARG_NONNULL (   params  ) 
#define attribute_hidden
#define DIRENT_MIGHT_BE_DIR (   d  )     ((d)->d_type == DT_DIR || DIRENT_MIGHT_BE_SYMLINK (d))
#define DIRENT_MIGHT_BE_SYMLINK (   d  )     ((d)->d_type == DT_UNKNOWN || (d)->d_type == DT_LNK)
#define DIRENT_MUST_BE (   d,
  t 
)    ((d)->d_type == (t))
#define DIRSEP_CHAR   '/'
#define GET_LOGIN_NAME_MAX (  )     (-1)
#define GETPW_R_SIZE_MAX (  )     (-1)
#define INITIAL_COUNT   sizeof (init_names.name) / sizeof (init_names.name[0])
#define NAME_MAX   (sizeof (((struct dirent *) 0)->d_name))
#define REAL_DIR_ENTRY (   dp  )     (dp->d_ino != 0)
#define struct_stat64   struct stat

Function Documentation

int __glob_pattern_p ( char *  pattern,
int  quote 
) const
int __glob_pattern_type ( const char *  pattern,
int  quote 
)
int __glob_pattern_type ( char *  pattern,
int  quote 
) const
int glob ( char * restrict  pattern,
int  flags,
int *  errfunc,
glob_t * restrict  pglob 
) const
void globfree ( glob_t pglob  ) 
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines