Lines Matching refs:glob
51 #include <glob.h>
80 int freeglob; /* glob structure needs to be freed */
82 glob_t glob; /* globbing information */
110 arglist.glob.gl_flags = GLOB_ALTDIRFUNC;
111 arglist.glob.gl_opendir = (void *)rst_opendir;
112 arglist.glob.gl_readdir = (void *)glob_readdir;
113 arglist.glob.gl_closedir = (void *)rst_closedir;
114 arglist.glob.gl_lstat = glob_stat;
115 arglist.glob.gl_stat = glob_stat;
122 globfree(&arglist.glob);
376 if ((globretval = glob(name, GLOB_ALTDIRFUNC, NULL, &ap->glob)) < 0) {
386 fprintf(stderr, "glob() aborted.\n");
393 if (ap->glob.gl_pathc == 0)
396 ap->argcnt = ap->glob.gl_pathc;
399 strlcpy(name, ap->glob.gl_pathv[ap->glob.gl_pathc - ap->argcnt], size);
402 globfree(&ap->glob);