HomeSort by: relevance | last modified time | path
    Searched refs:pmatch (Results 1 - 16 of 16) sorted by relevancy

  /src/usr.bin/grep/
fastgrep.c 219 grep_search(fastgrep_t *fg, const unsigned char *data, size_t len, regmatch_t *pmatch)
224 if (pmatch->rm_so == (ssize_t)len)
227 if (fg->bol && pmatch->rm_so != 0) {
228 pmatch->rm_so = len;
229 pmatch->rm_eo = len;
247 pmatch->rm_so = j;
248 pmatch->rm_eo = j + fg->len;
258 pmatch->rm_so = j - fg->len;
259 pmatch->rm_eo = j;
270 j = pmatch->rm_so
    [all...]
util.c 290 regmatch_t pmatch; local in function:procline
297 pmatch.rm_so = st;
298 pmatch.rm_eo = l->len;
309 l->len, &pmatch);
311 st = pmatch.rm_eo;
314 &pmatch, eflags);
316 st = pmatch.rm_eo;
322 (pmatch.rm_so != 0 ||
323 (size_t)pmatch.rm_eo != l->len))
326 if (fg_pattern[i].word && pmatch.rm_so != 0)
    [all...]
  /src/sys/lib/libkern/
pmatch.c 1 /* $NetBSD: pmatch.c,v 1.9 2024/10/09 23:16:03 gutteridge Exp $ */
38 int pmatch(const char *, const char *, const char **);
42 * pmatch():
50 pmatch(const char *string, const char *pattern, const char **estr) function in typeref:typename:int
81 switch (pmatch(string, pattern, estr)) {
strlist.c 90 extern int pmatch(const char *, const char *, const char **);
194 return pmatch(s1, s2, NULL) == 2;
274 * Like strlist_match(), but uses pmatch(9) to match the
355 * % cc -DSTRLIST_TEST -Os pmatch.c strlist.c
libkern.h 449 int pmatch(const char *, const char *, const char **);
  /src/lib/libc/regex/
engine.c 93 regmatch_t *pmatch; /* [nsub+1] (0 element unused) */ member in struct:match
113 static int matcher(struct re_guts *g, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags);
197 == size_t nmatch, regmatch_t pmatch[], int eflags);
203 regmatch_t pmatch[],
226 /* pmatch checked below */
232 _DIAGASSERT(pmatch != NULL);
233 start = string + (size_t)pmatch[0].rm_so;
234 stop = string + (size_t)pmatch[0].rm_eo;
289 m->pmatch = NULL;
338 if (m->pmatch == NULL
    [all...]
regexec.c 229 regmatch_t pmatch[__restrict],
249 return(mmatcher(g, string, nmatch, pmatch, eflags));
251 return(smatcher(g, string, nmatch, pmatch, eflags));
253 return(lmatcher(g, string, nmatch, pmatch, eflags));
  /src/usr.bin/m4/
gnum4.c 498 regmatch_t *pmatch; local in function:dopatsubst
512 pmatch = xalloc(sizeof(regmatch_t) * (re.re_nsub+1), NULL);
514 argc > 4 && argv[4] != NULL ? argv[4] : "", pmatch);
515 free(pmatch);
526 regmatch_t *pmatch; local in function:doregexp
545 pmatch = xalloc(sizeof(regmatch_t) * (re.re_nsub+1), NULL);
547 do_regexpindex(pat, argv[2], &re, pmatch);
549 do_regexp(pat, argv[2], &re, argv[4], pmatch);
550 free(pmatch);
  /src/sys/arch/shark/ofw/
if_cs_ofisa_machdep.c 94 sizeof(compatible)) > 0 && pmatch(compatible, "*CS8900*",
  /src/bin/csh/
glob.c 92 static int pmatch(const Char *, const Char *);
809 gres |= pmatch(string, *p);
816 pmatch(const Char *name, const Char *pat) function in typeref:typename:int
  /src/sys/dev/acpi/
acpi_util.c 856 if (pmatch(ad->HardwareId.String, *ids, NULL) == 2)
868 if (pmatch(id, *ids, NULL) == 2)
  /src/sys/dev/usb/
uftdi.c 282 pmatch(dev->ud_product, q->product_str, NULL) != 2)) {
  /src/share/man/man9/
Makefile 51 percpu.9 pfil.9 physio.9 pktqueue.9 pmap.9 pmatch.9 pmf.9 pool.9 \
  /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
sanitizer_common_interceptors.inc 7401 struct __sanitizer_regmatch *pmatch[], int eflags) {
7403 COMMON_INTERCEPTOR_ENTER(ctx, regexec, preg, string, nmatch, pmatch, eflags);
7408 int res = REAL(regexec)(preg, string, nmatch, pmatch, eflags);
7409 if (!res && pmatch)
7410 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, pmatch, nmatch * struct_regmatch_sz);
  /src/sys/dev/ata/
wd.c 284 if (pmatch(name, wdq->wdq_match, &estr) == 2)
  /src/sys/kern/
subr_autoconf.c 2994 return pmatch(s1, s2, NULL) == 2;
3089 * Like device_compatible_match(), but uses pmatch(9) to compare

Completed in 31 milliseconds