Lines Matching refs:pattern
161 glob(pattern, flags, errfunc, pglob) in glob() argument
162 const char *pattern; in glob()
177 patnext = (u_char *) pattern;
219 globexp1(pattern, pglob) in globexp1() argument
220 const Char *pattern; in globexp1()
223 const Char* ptr = pattern;
227 if (pattern[0] == LBRACE && pattern[1] == RBRACE && pattern[2] == EOS)
228 return glob0(pattern, pglob);
231 if (!globexp2(ptr, pattern, pglob, &rv))
234 return glob0(pattern, pglob);
244 globexp2(ptr, pattern, pglob, rv) in globexp2() argument
245 const Char *ptr, *pattern; in globexp2()
255 for (lm = patbuf, pm = pattern; pm != ptr; *lm++ = *pm++)
354 globtilde(pattern, patbuf, patbuf_len, pglob) in globtilde() argument
355 const Char *pattern; in globtilde()
367 if (*pattern != TILDE || !(pglob->gl_flags & GLOB_TILDE))
368 return pattern;
372 for (p = pattern + 1, h = (char *) patbuf;
391 return pattern;
395 return pattern;
404 return pattern;
408 return pattern;
433 glob0(pattern, pglob) in glob0() argument
434 const Char *pattern; in glob0()
442 qpatnext = globtilde(pattern, patbuf, MAXPATHLEN, pglob);
511 return(globextend(pattern, pglob, &limit));
528 glob1(pattern, pattern_last, pglob, limitp) in glob1() argument
529 Char *pattern, *pattern_last; in glob1()
536 if (*pattern == EOS)
540 pattern, pattern_last, pglob, limitp));
549 glob2(pathbuf, pathbuf_last, pathend, pathend_last, pattern, in glob2() argument
552 Char *pattern, *pattern_last;
565 if (*pattern == EOS) { /* End of pattern? */
586 p = pattern;
597 pattern = p;
598 while (IS_SLASH(*pattern)) {
601 *pathend++ = *pattern++;
606 pathend_last, pattern, pattern_last,
613 glob3(pathbuf, pathbuf_last, pathend, pathend_last, pattern, pattern_last, in glob3() argument
616 Char *pattern, *pattern_last, *restpattern, *restpattern_last;
662 if (dp->d_name[0] == DOT && *pattern != DOT)
674 if (!match(pathend, pattern, restpattern)) {