Symbol: pmatch
bin/csh/glob.c
809
gres |= pmatch(string, *p);
bin/csh/glob.c
92
static int pmatch(const Char *, const Char *);
lib/libc/regex/engine.c
113
static int matcher(struct re_guts *g, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags);
lib/libc/regex/engine.c
203
regmatch_t pmatch[],
lib/libc/regex/engine.c
232
_DIAGASSERT(pmatch != NULL);
lib/libc/regex/engine.c
233
start = string + (size_t)pmatch[0].rm_so;
lib/libc/regex/engine.c
234
stop = string + (size_t)pmatch[0].rm_eo;
lib/libc/regex/engine.c
289
m->pmatch = NULL;
lib/libc/regex/engine.c
338
if (m->pmatch == NULL)
lib/libc/regex/engine.c
339
m->pmatch = (regmatch_t *)malloc((m->g->nsub + 1) *
lib/libc/regex/engine.c
341
if (m->pmatch == NULL) {
lib/libc/regex/engine.c
346
m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1;
lib/libc/regex/engine.c
377
assert(m->pmatch[i].rm_so == (regoff_t)-1);
lib/libc/regex/engine.c
378
assert(m->pmatch[i].rm_eo == (regoff_t)-1);
lib/libc/regex/engine.c
398
_DIAGASSERT(pmatch != NULL);
lib/libc/regex/engine.c
399
pmatch[0].rm_so = m->coldp - m->offp;
lib/libc/regex/engine.c
400
pmatch[0].rm_eo = endp - m->offp;
lib/libc/regex/engine.c
403
assert(m->pmatch != NULL);
lib/libc/regex/engine.c
406
pmatch[i] = m->pmatch[i];
lib/libc/regex/engine.c
408
pmatch[i].rm_so = (regoff_t)-1;
lib/libc/regex/engine.c
409
pmatch[i].rm_eo = (regoff_t)-1;
lib/libc/regex/engine.c
414
if (m->pmatch != NULL) {
lib/libc/regex/engine.c
415
free(m->pmatch);
lib/libc/regex/engine.c
416
m->pmatch = NULL;
lib/libc/regex/engine.c
607
m->pmatch[i].rm_so = sp - m->offp;
lib/libc/regex/engine.c
612
m->pmatch[i].rm_eo = sp - m->offp;
lib/libc/regex/engine.c
784
if (m->pmatch[i].rm_eo == -1)
lib/libc/regex/engine.c
786
assert(m->pmatch[i].rm_so != -1);
lib/libc/regex/engine.c
787
len = (size_t)(m->pmatch[i].rm_eo - m->pmatch[i].rm_so);
lib/libc/regex/engine.c
793
ssp = m->offp + (size_t)m->pmatch[i].rm_so;
lib/libc/regex/engine.c
844
offsave = m->pmatch[i].rm_so;
lib/libc/regex/engine.c
845
m->pmatch[i].rm_so = sp - m->offp;
lib/libc/regex/engine.c
849
m->pmatch[i].rm_so = offsave;
lib/libc/regex/engine.c
854
offsave = m->pmatch[i].rm_eo;
lib/libc/regex/engine.c
855
m->pmatch[i].rm_eo = sp - m->offp;
lib/libc/regex/engine.c
859
m->pmatch[i].rm_eo = offsave;
lib/libc/regex/engine.c
93
regmatch_t *pmatch; /* [nsub+1] (0 element unused) */
lib/libc/regex/regexec.c
229
regmatch_t pmatch[__restrict],
lib/libc/regex/regexec.c
249
return(mmatcher(g, string, nmatch, pmatch, eflags));
lib/libc/regex/regexec.c
251
return(smatcher(g, string, nmatch, pmatch, eflags));
lib/libc/regex/regexec.c
253
return(lmatcher(g, string, nmatch, pmatch, eflags));
sys/arch/shark/ofw/if_cs_ofisa_machdep.c
94
sizeof(compatible)) > 0 && pmatch(compatible, "*CS8900*",
sys/dev/acpi/acpi_util.c
856
if (pmatch(ad->HardwareId.String, *ids, NULL) == 2)
sys/dev/acpi/acpi_util.c
868
if (pmatch(id, *ids, NULL) == 2)
sys/dev/ata/wd.c
281
if (pmatch(name, wdq->wdq_match, &estr) == 2)
sys/dev/usb/uftdi.c
282
pmatch(dev->ud_product, q->product_str, NULL) != 2)) {
sys/kern/subr_autoconf.c
3085
return pmatch(s1, s2, NULL) == 2;
sys/lib/libkern/libkern.h
449
int pmatch(const char *, const char *, const char **);
sys/lib/libkern/pmatch.c
38
int pmatch(const char *, const char *, const char **);
sys/lib/libkern/pmatch.c
81
switch (pmatch(string, pattern, estr)) {
sys/lib/libkern/strlist.c
194
return pmatch(s1, s2, NULL) == 2;
sys/lib/libkern/strlist.c
90
extern int pmatch(const char *, const char *, const char **);
usr.bin/grep/fastgrep.c
219
grep_search(fastgrep_t *fg, const unsigned char *data, size_t len, regmatch_t *pmatch)
usr.bin/grep/fastgrep.c
224
if (pmatch->rm_so == (ssize_t)len)
usr.bin/grep/fastgrep.c
227
if (fg->bol && pmatch->rm_so != 0) {
usr.bin/grep/fastgrep.c
228
pmatch->rm_so = len;
usr.bin/grep/fastgrep.c
229
pmatch->rm_eo = len;
usr.bin/grep/fastgrep.c
247
pmatch->rm_so = j;
usr.bin/grep/fastgrep.c
248
pmatch->rm_eo = j + fg->len;
usr.bin/grep/fastgrep.c
258
pmatch->rm_so = j - fg->len;
usr.bin/grep/fastgrep.c
259
pmatch->rm_eo = j;
usr.bin/grep/fastgrep.c
270
j = pmatch->rm_so;
usr.bin/grep/fastgrep.c
273
pmatch->rm_so = j;
usr.bin/grep/fastgrep.c
274
pmatch->rm_eo = j + fg->len;
usr.bin/grep/util.c
290
regmatch_t pmatch;
usr.bin/grep/util.c
297
pmatch.rm_so = st;
usr.bin/grep/util.c
298
pmatch.rm_eo = l->len;
usr.bin/grep/util.c
309
l->len, &pmatch);
usr.bin/grep/util.c
311
st = pmatch.rm_eo;
usr.bin/grep/util.c
314
&pmatch, eflags);
usr.bin/grep/util.c
316
st = pmatch.rm_eo;
usr.bin/grep/util.c
322
(pmatch.rm_so != 0 ||
usr.bin/grep/util.c
323
(size_t)pmatch.rm_eo != l->len))
usr.bin/grep/util.c
326
if (fg_pattern[i].word && pmatch.rm_so != 0) {
usr.bin/grep/util.c
330
if (pmatch.rm_so != 0 &&
usr.bin/grep/util.c
331
sscanf(&l->dat[pmatch.rm_so - 1],
usr.bin/grep/util.c
334
if ((size_t)pmatch.rm_eo != l->len &&
usr.bin/grep/util.c
335
sscanf(&l->dat[pmatch.rm_eo],
usr.bin/grep/util.c
343
matches[m++] = pmatch;
usr.bin/grep/util.c
357
if (st == (size_t)pmatch.rm_so)
usr.bin/m4/gnum4.c
493
regmatch_t *pmatch;
usr.bin/m4/gnum4.c
508
pmatch = xreallocarray(NULL, re.re_nsub+1, sizeof(regmatch_t),
usr.bin/m4/gnum4.c
511
argc > 4 && argv[4] != NULL ? argv[4] : "", pmatch);
usr.bin/m4/gnum4.c
512
free(pmatch);
usr.bin/m4/gnum4.c
523
regmatch_t *pmatch;
usr.bin/m4/gnum4.c
546
pmatch = xreallocarray(NULL, re.re_nsub+1, sizeof(regmatch_t), NULL);
usr.bin/m4/gnum4.c
548
do_regexpindex(argv[2], &re, source, pmatch);
usr.bin/m4/gnum4.c
550
do_regexp(argv[2], &re, source, argv[4], pmatch);
usr.bin/m4/gnum4.c
551
free(pmatch);
usr.bin/mail/list.c
470
regmatch_t pmatch[1];
usr.bin/mail/list.c
486
pmatch[0].rm_so = 0;
usr.bin/mail/list.c
487
pmatch[0].rm_eo = line[len - 1] == '\n' ? len - 1 : len;
usr.bin/mail/list.c
488
pmp = pmatch;