Lines Matching refs:pattern
163 glob(pattern, flags, errfunc, pglob) in glob() argument
164 const char *pattern; in glob()
179 patnext = (u_char *) pattern;
221 globexp1(pattern, pglob) in globexp1() argument
222 const Char *pattern; in globexp1()
225 const Char* ptr = pattern;
229 if (pattern[0] == LBRACE && pattern[1] == RBRACE && pattern[2] == EOS)
230 return glob0(pattern, pglob);
233 if (!globexp2(ptr, pattern, pglob, &rv))
236 return glob0(pattern, pglob);
246 globexp2(ptr, pattern, pglob, rv) in globexp2() argument
247 const Char *ptr, *pattern; in globexp2()
257 for (lm = patbuf, pm = pattern; pm != ptr; *lm++ = *pm++)
356 globtilde(pattern, patbuf, patbuf_len, pglob) in globtilde() argument
357 const Char *pattern; in globtilde()
369 if (*pattern != TILDE || !(pglob->gl_flags & GLOB_TILDE))
370 return pattern;
374 for (p = pattern + 1, h = (char *) patbuf;
393 return pattern;
397 return pattern;
406 return pattern;
410 return pattern;
435 glob0(pattern, pglob) in glob0() argument
436 const Char *pattern; in glob0()
444 qpatnext = globtilde(pattern, patbuf, MAXPATHLEN, pglob);
513 return(globextend(pattern, pglob, &limit));
530 glob1(pattern, pattern_last, pglob, limitp) in glob1() argument
531 Char *pattern, *pattern_last; in glob1()
538 if (*pattern == EOS)
542 pattern, pattern_last, pglob, limitp));
551 glob2(pathbuf, pathbuf_last, pathend, pathend_last, pattern, in glob2() argument
554 Char *pattern, *pattern_last;
567 if (*pattern == EOS) { /* End of pattern? */
588 p = pattern;
599 pattern = p;
600 while (IS_SLASH(*pattern)) {
603 *pathend++ = *pattern++;
608 pathend_last, pattern, pattern_last,
615 glob3(pathbuf, pathbuf_last, pathend, pathend_last, pattern, pattern_last, in glob3() argument
618 Char *pattern, *pattern_last, *restpattern, *restpattern_last;
664 if (dp->d_name[0] == DOT && *pattern != DOT)
676 if (!match(pathend, pattern, restpattern)) {