Searched refs:pat (Results 1 – 5 of 5) 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 | 229 add_pattern(char *pat, size_t len) in add_pattern() argument 240 if (len > 0 && pat[len - 1] == '\n') in add_pattern() 244 memcpy(pattern[patterns], pat, len); in add_pattern() 253 add_fpattern(const char *pat, int mode) in add_fpattern() argument 262 fpattern[fpatterns].pat = grep_strdup(pat); in add_fpattern() 271 add_dpattern(const char *pat, int mode) in add_dpattern() argument 280 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
|
/system/connectivity/wificond/net/kernel-header-latest/ |
D | nl80211.h | 4392 struct nl80211_pattern_support pat; member
|