Searched refs:pmatch (Results 1 - 25 of 25) sorted by relevance

/freebsd-13-stable/usr.bin/grep/
H A Dutil.c75 size_t nmatch, regmatch_t pmatch[]);
419 regmatch_t pmatch[])
431 ofs = pmatch[0].rm_so;
432 stringlen = pmatch[0].rm_eo;
450 /* Fill in pmatch if necessary */
452 pmatch[idx].rm_so = ofs + (sub - search);
453 pmatch[idx].rm_eo = pmatch[idx].rm_so + pat->len;
456 ofs = pmatch[idx].rm_so + 1;
464 pmatch[
418 litexec(const struct pat *pat, const char *string, size_t nmatch, regmatch_t pmatch[]) argument
482 regmatch_t pmatch, lastmatch, chkmatch; local
[all...]
/freebsd-13-stable/usr.bin/sort/
H A Dsort.c629 regmatch_t pmatch[4]; local
643 if (regexec(&re, s, nmatch, pmatch, 0) != 0)
646 if (pmatch[0].rm_eo <= pmatch[0].rm_so)
649 if (pmatch[1].rm_eo <= pmatch[1].rm_so)
652 len = pmatch[1].rm_eo - pmatch[1].rm_so;
655 strncpy(f, s + pmatch[1].rm_so, len);
678 if (pmatch[
785 regmatch_t pmatch[4]; local
[all...]
/freebsd-13-stable/lib/libc/regex/
H A Dengine.c88 regmatch_t *pmatch; /* [nsub+1] (0 element unused) */ member in struct:match
108 static int matcher(struct re_guts *g, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags);
188 == size_t nmatch, regmatch_t pmatch[], int eflags);
194 regmatch_t pmatch[],
218 start = string + pmatch[0].rm_so;
219 stop = string + pmatch[0].rm_eo;
274 m->pmatch = NULL;
302 if (m->pmatch != NULL)
303 free((char *)m->pmatch);
327 if (m->pmatch
191 matcher(struct re_guts *g, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags) argument
[all...]
H A Dregexec.c212 regmatch_t pmatch[__restrict],
230 return(mmatcher(g, string, nmatch, pmatch, eflags));
232 return(smatcher(g, string, nmatch, pmatch, eflags));
234 return(lmatcher(g, string, nmatch, pmatch, eflags));
209 regexec(const regex_t * __restrict preg, const char * __restrict string, size_t nmatch, regmatch_t pmatch[__restrict], int eflags) argument
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Support/
H A Dregengine.inc74 llvm_regmatch_t *pmatch; /* [nsub+1] (0 element unused) */
132 llvm_regmatch_t pmatch[],
149 start = string + pmatch[0].rm_so;
150 stop = string + pmatch[0].rm_eo;
171 m->pmatch = NULL;
187 free(m->pmatch);
209 if (m->pmatch == NULL)
210 m->pmatch = (llvm_regmatch_t *)malloc((m->g->nsub + 1) *
212 if (m->pmatch == NULL) {
217 m->pmatch[
[all...]
H A Dregexec.c142 llvm_regmatch_t pmatch[], int eflags)
159 return(smatcher(g, string, nmatch, pmatch, eflags));
161 return(lmatcher(g, string, nmatch, pmatch, eflags));
141 llvm_regexec(const llvm_regex_t *preg, const char *string, size_t nmatch, llvm_regmatch_t pmatch[], int eflags) argument
/freebsd-13-stable/contrib/nvi/regex/
H A Dengine.c72 regmatch_t *pmatch; /* [nsub+1] (0 element unused) */ member in struct:match
91 static int matcher(struct re_guts *g, const RCHAR_T *string, size_t nmatch, regmatch_t pmatch[], int eflags);
133 regmatch_t pmatch[], int eflags)
149 start = string + pmatch[0].rm_so;
150 stop = string + pmatch[0].rm_eo;
171 m->pmatch = NULL;
207 if (m->pmatch == NULL)
208 m->pmatch = (regmatch_t *)malloc((m->g->nsub + 1) *
210 if (m->pmatch == NULL) {
215 m->pmatch[
132 matcher(struct re_guts *g, const RCHAR_T *string, size_t nmatch, regmatch_t pmatch[], int eflags) argument
[all...]
H A Dregexec.c153 regmatch_t *pmatch, int eflags)
170 return(smatcher(g, string, nmatch, pmatch, eflags));
172 return(lmatcher(g, string, nmatch, pmatch, eflags));
152 regexec(const regex_t *preg, const RCHAR_T *string, size_t nmatch, regmatch_t *pmatch, int eflags) argument
/freebsd-13-stable/usr.sbin/ofwdump/
H A Dofwdump.c212 const char *pmatch, int raw, int str)
229 if (pmatch)
230 ofw_dump_property(fd, n, level, pmatch, raw, str);
236 ofw_dump_node(fd, c, level + 1, rec, prop, pmatch,
243 ofw_dump(int fd, const char *start, int rec, int prop, const char *pmatch, argument
249 ofw_dump_node(fd, n, 0, rec, prop, pmatch, raw, str);
211 ofw_dump_node(int fd, phandle_t n, int level, int rec, int prop, const char *pmatch, int raw, int str) argument
/freebsd-13-stable/usr.bin/killall/
H A Dkillall.c101 regmatch_t pmatch; local
364 pmatch.rm_so = 0;
365 pmatch.rm_eo = strlen(thiscmd);
366 if (regexec(&rgx, thiscmd, 0, &pmatch,
390 pmatch.rm_so = 0;
391 pmatch.rm_eo = strlen(thiscmd);
392 if (regexec(&rgx, thiscmd, 0, &pmatch,
/freebsd-13-stable/usr.bin/m4/
H A Dgnum4.c486 regmatch_t *pmatch; local
501 pmatch = xreallocarray(NULL, re.re_nsub+1, sizeof(regmatch_t),
504 argc > 4 && argv[4] != NULL ? argv[4] : "", pmatch);
505 free(pmatch);
516 regmatch_t *pmatch; local
535 pmatch = xreallocarray(NULL, re.re_nsub+1, sizeof(regmatch_t), NULL);
537 do_regexpindex(argv[2], &re, source, pmatch);
539 do_regexp(argv[2], &re, source, argv[4], pmatch);
540 free(pmatch);
/freebsd-13-stable/usr.bin/split/
H A Dsplit.c284 regmatch_t pmatch; local
286 pmatch.rm_so = 0;
287 pmatch.rm_eo = len - 1;
288 if (regexec(&rgx, bfr, 0, &pmatch, REG_STARTEND) == 0)
/freebsd-13-stable/usr.sbin/setfmac/
H A Dsetfmac.c397 regmatch_t pmatch; local
419 pmatch.rm_so = 0;
420 pmatch.rm_eo = ftsent->fts_pathlen;
422 &pmatch, REG_STARTEND);
/freebsd-13-stable/lib/libpmc/
H A Dlibpmc_pmu_util.c164 regmatch_t pmatch[1]; local
183 match = regexec(&re, buf, 1, pmatch, 0);
186 if (pmatch[0].rm_so == 0 && (buf[pmatch[0].rm_eo] == 0
187 || buf[pmatch[0].rm_eo] == '-'))
/freebsd-13-stable/contrib/ntp/ntpd/
H A Dntp_restrict.c404 const restrict_u * pmatch,
414 cb = sizeof(pmatch->u.v6);
417 cb = sizeof(pmatch->u.v4);
421 if (res->mflags == pmatch->mflags &&
422 !memcmp(&res->u, &pmatch->u, cb))
403 match_restrict_entry( const restrict_u * pmatch, int v6 ) argument
/freebsd-13-stable/contrib/file/src/
H A Dfuncs.c655 regmatch_t* pmatch, int eflags)
660 memset(pmatch, 0, nmatch * sizeof(*pmatch));
661 return regexec(&rx->rx, str, nmatch, pmatch, eflags);
654 file_regexec(file_regex_t *rx, const char *str, size_t nmatch, regmatch_t* pmatch, int eflags) argument
H A Dsoftmagic.c2186 regmatch_t pmatch; local
2206 1, &pmatch, 0);
2210 ms->search.s += CAST(int, pmatch.rm_so);
2211 ms->search.offset += CAST(size_t, pmatch.rm_so);
2213 pmatch.rm_eo - pmatch.rm_so);
/freebsd-13-stable/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_crypto.c103 regmatch_t pmatch[2]; local
105 if (regexec(&hdl->libzfs_urire, str, ARRAY_SIZE(pmatch),
106 pmatch, 0) == 0) {
109 if (pmatch[1].rm_so == -1) {
115 scheme_len = pmatch[1].rm_eo - pmatch[1].rm_so;
127 (void) memcpy(*schemep, str + pmatch[1].rm_so, scheme_len);
/freebsd-13-stable/usr.bin/find/
H A Dfunction.c1425 regmatch_t pmatch; local
1435 pmatch.rm_so = 0;
1436 pmatch.rm_eo = len;
1438 errcode = regexec(pre, str, 1, &pmatch, REG_STARTEND);
1446 if (errcode == 0 && pmatch.rm_so == 0 && pmatch.rm_eo == len)
/freebsd-13-stable/contrib/one-true-awk/
H A Dproto.h55 extern int pmatch(fa *, const char *);
H A Drun.c601 mf = pmatch;
1924 if (pmatch(pfa, t)) {
1986 if (pmatch(pfa, t)) {
2043 } while (pmatch(pfa,t));
H A Db.c516 int pmatch(fa *f, const char *p0) /* longest match, for sub */ function
563 overflo("out of space in pmatch");
/freebsd-13-stable/usr.sbin/ppp/
H A Dcommand.c1038 FindCommand(struct cmdtab const *cmds, const char *str, int *pmatch) argument
1050 *pmatch = 1;
1057 *pmatch = 1;
1065 *pmatch = nmatch;
/freebsd-13-stable/contrib/sendmail/src/
H A Dmap.c7495 regmatch_t pmatch[MAX_MATCH]; local
7508 name, MAX_MATCH, pmatch, 0);
7563 pmatch[*ip].rm_so < 0 || pmatch[*ip].rm_eo < 0)
7566 sp = name + pmatch[*ip].rm_so;
7567 endp = name + pmatch[*ip].rm_eo;
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc7605 struct __sanitizer_regmatch *pmatch[], int eflags) {
7607 COMMON_INTERCEPTOR_ENTER(ctx, regexec, preg, string, nmatch, pmatch, eflags);
7612 int res = REAL(regexec)(preg, string, nmatch, pmatch, eflags);
7613 if (!res && pmatch)
7614 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, pmatch, nmatch * struct_regmatch_sz);

Completed in 305 milliseconds