Lines Matching defs:glob
49 #include <glob.h>
78 int freeglob; /* glob structure needs to be freed */
80 glob_t glob; /* globbing information */
108 arglist.glob.gl_flags = GLOB_ALTDIRFUNC;
109 arglist.glob.gl_opendir = rst_opendir;
110 arglist.glob.gl_readdir = glob_readdir;
111 arglist.glob.gl_closedir = rst_closedir;
112 arglist.glob.gl_lstat = glob_stat;
113 arglist.glob.gl_stat = glob_stat;
120 globfree(&arglist.glob);
369 switch (glob(name, GLOB_ALTDIRFUNC, NULL, &ap->glob)) {
377 if (ap->glob.gl_pathc == 0)
380 ap->argcnt = ap->glob.gl_pathc;
383 strncpy(name, ap->glob.gl_pathv[ap->glob.gl_pathc - ap->argcnt], size);
387 globfree(&ap->glob);