Lines Matching refs:globbuf
539 glob_t globbuf;
551 memset(&globbuf, 0, sizeof globbuf);
553 glob(s, 0, NULL, &globbuf);
554 if (MAX((int)globbuf.gl_pathc, 1) > maxargs - argc) {
555 maxargs += globbuf.gl_pathc + MAX_ARGS;
561 if (globbuf.gl_pathc == 0)
566 for (i = 0; i < (int)globbuf.gl_pathc; i++) {
567 if (!(argv[argc++] = strdup(globbuf.gl_pathv[i])))
571 globfree(&globbuf);