Lines Matching defs:glob
47 #include <glob.h>
76 int freeglob; /* glob structure needs to be freed */
78 glob_t glob; /* globbing information */
106 arglist.glob.gl_flags = GLOB_ALTDIRFUNC;
107 arglist.glob.gl_opendir = rst_opendir;
108 arglist.glob.gl_readdir = glob_readdir;
109 arglist.glob.gl_closedir = rst_closedir;
110 arglist.glob.gl_lstat = glob_stat;
111 arglist.glob.gl_stat = glob_stat;
118 globfree(&arglist.glob);
367 switch (glob(name, GLOB_ALTDIRFUNC, NULL, &ap->glob)) {
375 if (ap->glob.gl_pathc == 0)
378 ap->argcnt = ap->glob.gl_pathc;
381 strncpy(name, ap->glob.gl_pathv[ap->glob.gl_pathc - ap->argcnt], size);
385 globfree(&ap->glob);