Lines Matching refs:pattern
162 glob(pattern, flags, errfunc, pglob) in glob() argument
163 const char *pattern; in glob()
178 patnext = (u_char *) pattern;
220 globexp1(pattern, pglob) in globexp1() argument
221 const Char *pattern; in globexp1()
224 const Char* ptr = pattern;
228 if (pattern[0] == LBRACE && pattern[1] == RBRACE && pattern[2] == EOS)
229 return glob0(pattern, pglob);
232 if (!globexp2(ptr, pattern, pglob, &rv))
235 return glob0(pattern, pglob);
245 globexp2(ptr, pattern, pglob, rv) in globexp2() argument
246 const Char *ptr, *pattern; in globexp2()
256 for (lm = patbuf, pm = pattern; pm != ptr; *lm++ = *pm++)
353 globtilde(pattern, patbuf, patbuf_len, pglob) in globtilde() argument
354 const Char *pattern; in globtilde()
366 if (*pattern != TILDE || !(pglob->gl_flags & GLOB_TILDE))
367 return pattern;
371 for (p = pattern + 1, h = (char *) patbuf;
390 return pattern;
394 return pattern;
403 return pattern;
407 return pattern;
432 glob0(pattern, pglob) in glob0() argument
433 const Char *pattern; in glob0()
441 qpatnext = globtilde(pattern, patbuf, MAXPATHLEN, pglob);
510 return(globextend(pattern, pglob, &limit));
527 glob1(pattern, pattern_last, pglob, limitp) in glob1() argument
528 Char *pattern, *pattern_last; in glob1()
535 if (*pattern == EOS)
539 pattern, pattern_last, pglob, limitp));
548 glob2(pathbuf, pathbuf_last, pathend, pathend_last, pattern, in glob2() argument
551 Char *pattern, *pattern_last;
564 if (*pattern == EOS) { /* End of pattern? */
585 p = pattern;
596 pattern = p;
597 while (IS_SLASH(*pattern)) {
600 *pathend++ = *pattern++;
605 pathend_last, pattern, pattern_last,
612 glob3(pathbuf, pathbuf_last, pathend, pathend_last, pattern, pattern_last, in glob3() argument
615 Char *pattern, *pattern_last, *restpattern, *restpattern_last;
661 if (dp->d_name[0] == DOT && *pattern != DOT)
673 if (!match(pathend, pattern, restpattern)) {