Lines Matching refs:glob
42 #include <glob.h>
73 int freeglob; /* glob structure needs to be freed */
75 glob_t glob; /* globbing information */
103 arglist.glob.gl_flags = GLOB_ALTDIRFUNC;
104 arglist.glob.gl_opendir = (void *)rst_opendir;
105 arglist.glob.gl_readdir = (void *)glob_readdir;
106 arglist.glob.gl_closedir = (void *)rst_closedir;
107 arglist.glob.gl_lstat = glob_stat;
108 arglist.glob.gl_stat = glob_stat;
115 globfree(&arglist.glob);
366 if ((globretval = glob(name, GLOB_ALTDIRFUNC | GLOB_NOESCAPE,
367 NULL, &ap->glob)) < 0) {
377 fprintf(stderr, "glob() aborted.\n");
385 if (ap->glob.gl_pathc == 0)
388 ap->argcnt = ap->glob.gl_pathc;
391 strlcpy(name, ap->glob.gl_pathv[ap->glob.gl_pathc - ap->argcnt],
395 globfree(&ap->glob);