typedefstruct {
size_t gl_pathc; /* Count of total paths so far. */
size_t gl_matchc; /* Count of paths matching pattern. */
size_t gl_offs; /* Reserved at beginning of gl_pathv. */ int gl_flags; /* Copy of flags parameter to glob. */
/** List of paths matching pattern. */ char* _Nullable * _Nullable gl_pathv;
/** Copy of `__error_callback` parameter to glob. */ int (* _Nullable gl_errfunc)(constchar* _Nonnull __failure_path, int __failure_errno);
/** Called instead of closedir() when GLOB_ALTDIRFUNC flag is specified. */ void (* _Nullable gl_closedir)(void* _Nonnull); /** Called instead of readdir() when GLOB_ALTDIRFUNC flag is specified. */ struct dirent* _Nullable (* _Nonnull gl_readdir)(void* _Nonnull); /** Called instead of opendir() when GLOB_ALTDIRFUNC flag is specified. */ void* _Nullable (* _Nonnull gl_opendir)(constchar* _Nonnull); /** Called instead of lstat() when GLOB_ALTDIRFUNC flag is specified. */ int (* _Nullable gl_lstat)(constchar* _Nonnull, struct stat* _Nonnull); /** Called instead of stat() when GLOB_ALTDIRFUNC flag is specified. */ int (* _Nullable gl_stat)(constchar* _Nonnull, struct stat* _Nonnull);
} glob_t;
/* Believed to have been introduced in 1003.2-1992 */ #define GLOB_APPEND 0x0001 /* Append to output from previous call. */ #define GLOB_DOOFFS 0x0002 /* Prepend `gl_offs` null pointers (leaving space for exec, say). */ #define GLOB_ERR 0x0004 /* Return on error. */ #define GLOB_MARK 0x0008 /* Append "/" to the names of returned directories. */ #define GLOB_NOCHECK 0x0010 /* Return pattern itself if nothing matches. */ #define GLOB_NOSORT 0x0020 /* Don't sort. */ #define GLOB_NOESCAPE 0x2000 /* Disable backslash escaping. */
/* Error values returned by glob(3) */ #define GLOB_NOSPACE (-1) /* Malloc call failed. */ #define GLOB_ABORTED (-2) /* Unignored error. */ #define GLOB_NOMATCH (-3) /* No match and GLOB_NOCHECK was not set. */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.