Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 10 of 10) sorted by relevance

/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dfastgrep.c68 fg->pattern = (unsigned char *)grep_strdup(pat); in fgrepcomp()
74 fg->qsBc[fg->pattern[i]] = fg->len - i; in fgrepcomp()
124 fg->pattern = grep_malloc(fg->len + 1); in fastcomp()
125 memcpy(fg->pattern, pat, fg->len); in fastcomp()
126 fg->pattern[fg->len] = '\0'; in fastcomp()
131 if (fg->pattern[i] == '.') { in fastcomp()
145 free(fg->pattern); in fastcomp()
146 fg->pattern = NULL; in fastcomp()
162 grep_revstr(fg->pattern, fg->len); in fastcomp()
191 fg->qsBc[fg->pattern[i]] = fg->len - i; in fastcomp()
[all …]
Dgrep.c85 char **pattern; variable
233 pattern = grep_realloc(pattern, ++pattern_sz * in add_pattern()
234 sizeof(*pattern)); in add_pattern()
239 pattern[patterns] = grep_malloc(len + 1); in add_pattern()
240 memcpy(pattern[patterns], pat, len); in add_pattern()
241 pattern[patterns][len] = '\0'; in add_pattern()
667 fgrepcomp(&fg_pattern[i], pattern[i]); in main()
670 if (fastcomp(&fg_pattern[i], pattern[i])) { in main()
672 c = regcomp(&r_pattern[i], pattern[i], cflags); in main()
Dgrep.h104 unsigned char *pattern; member
130 extern char **pattern;
Dutil.c306 if (fg_pattern[i].pattern) { in procline()
/system/vold/
DDirectVolume.cpp40 pattern = strdup(p); in PathInfo()
42 if (!strchr(pattern, '*')) { in PathInfo()
51 free(pattern); in ~PathInfo()
59 bool ret = (strncmp(path, pattern, strlen(pattern)) == 0); in match()
60 if (!warned && ret && (strlen(pattern) != strlen(path))) { in match()
61 SLOGW("Deprecated implied prefix pattern detected, please use '%s*' instead", pattern); in match()
67 return fnmatch(pattern, path, 0) == 0; in match()
DDirectVolume.h26 PathInfo(const char *pattern);
31 char *pattern; variable
/system/core/adf/libadf/
Dadf.c32 static ssize_t adf_find_nodes(const char *pattern, adf_id_t **ids) in adf_find_nodes() argument
47 int matched = sscanf(dirent->d_name, pattern, &id); in adf_find_nodes()
213 char pattern[64]; in adf_interfaces() local
215 snprintf(pattern, sizeof(pattern), "adf-interface%u.%%u", dev->id); in adf_interfaces()
216 return adf_find_nodes(pattern, interfaces); in adf_interfaces()
450 char pattern[64]; in adf_overlay_engines() local
452 snprintf(pattern, sizeof(pattern), "adf-overlay-engine%u.%%u", dev->id); in adf_overlay_engines()
453 return adf_find_nodes(pattern, overlay_engines); in adf_overlay_engines()
/system/core/toolbox/upstream-netbsd/bin/rm/
Drm.c459 char pattern[8 * 1024]; \ in rm_overwrite()
465 memset(pattern, byte, sizeof(pattern)); \ in rm_overwrite()
470 if(memcmp(buf, pattern, rlen)) \ in rm_overwrite()
/system/extras/ksmutils/
Dksminfo.c52 uint16_t pattern; member
287 kp->pages[kp->len].pattern = in read_pages()
350 if (kp->pages[i].pattern != NO_PATTERN) { in print_pages()
351 printf("0x%02x byte pattern: ", kp->pages[i].pattern); in print_pages()
/system/core/libpixelflinger/codeflinger/
Ddisassem.c110 u_int pattern; member
316 if ((insn & i_ptr->mask) == i_ptr->pattern) { in disasm()