Searched refs:pat (Results 1 – 4 of 4) sorted by relevance
/system/core/toolbox/upstream-netbsd/usr.bin/grep/ |
D | fastgrep.c | 58 fgrepcomp(fastgrep_t *fg, const char *pat) in fgrepcomp() argument 63 fg->len = strlen(pat); in fgrepcomp() 68 fg->pattern = (unsigned char *)grep_strdup(pat); in fgrepcomp() 81 fastcomp(fastgrep_t *fg, const char *pat) in fastcomp() argument 91 fg->len = strlen(pat); in fastcomp() 98 if (fg->len > 0 && pat[fg->len - 1] == '$') { in fastcomp() 104 if (pat[0] == '^') { in fastcomp() 107 pat++; in fastcomp() 111 memcmp(pat, "[[:<:]]", 7) == 0 && in fastcomp() 112 memcmp(pat + fg->len - 7, "[[:>:]]", 7) == 0) { in fastcomp() [all …]
|
D | grep.c | 225 add_pattern(char *pat, size_t len) in add_pattern() argument 236 if (len > 0 && pat[len - 1] == '\n') in add_pattern() 240 memcpy(pattern[patterns], pat, len); in add_pattern() 249 add_fpattern(const char *pat, int mode) in add_fpattern() argument 258 fpattern[fpatterns].pat = grep_strdup(pat); in add_fpattern() 267 add_dpattern(const char *pat, int mode) in add_dpattern() argument 276 dpattern[dpatterns].pat = grep_strdup(pat); in add_dpattern()
|
D | util.c | 75 if (fnmatch(fpattern[i].pat, fname, 0) == 0 || in file_matching() 76 fnmatch(fpattern[i].pat, fname_base, 0) == 0) { in file_matching() 98 fnmatch(dname, dpattern[i].pat, 0) == 0) { in dir_matching()
|
D | grep.h | 98 char *pat; member
|