Home
last modified time | relevance | path

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

/freebsd-13.1/usr.bin/grep/
H A Dutil.c419 regmatch_t pmatch[]) in litexec() argument
431 ofs = pmatch[0].rm_so; in litexec()
432 stringlen = pmatch[0].rm_eo; in litexec()
453 pmatch[idx].rm_eo = pmatch[idx].rm_so + pat->len; in litexec()
464 pmatch[n].rm_so = pmatch[n].rm_eo = -1; in litexec()
532 pmatch.rm_so = st; in procline()
550 if (pmatch.rm_so != 0 && in procline()
578 lastmatch = pmatch; in procline()
593 (pmatch.rm_eo - pmatch.rm_so) > in procline()
596 nst = pmatch.rm_eo; in procline()
[all …]
/freebsd-13.1/usr.bin/sort/
H A Dsort.c646 if (pmatch[0].rm_eo <= pmatch[0].rm_so) in parse_pos()
649 if (pmatch[1].rm_eo <= pmatch[1].rm_so) in parse_pos()
652 len = pmatch[1].rm_eo - pmatch[1].rm_so; in parse_pos()
678 if (pmatch[2].rm_eo > pmatch[2].rm_so) { in parse_pos()
707 if (pmatch[3].rm_eo > pmatch[3].rm_so) { in parse_pos()
802 if (pmatch[0].rm_eo <= pmatch[0].rm_so) in parse_pos_obs()
805 if (pmatch[1].rm_eo <= pmatch[1].rm_so) in parse_pos_obs()
808 len = pmatch[1].rm_eo - pmatch[1].rm_so; in parse_pos_obs()
819 if (pmatch[2].rm_eo > pmatch[2].rm_so) { in parse_pos_obs()
832 if (pmatch[3].rm_eo > pmatch[3].rm_so) { in parse_pos_obs()
[all …]
/freebsd-13.1/contrib/nvi/regex/
H A Dengine.c171 m->pmatch = NULL; in matcher()
207 if (m->pmatch == NULL) in matcher()
210 if (m->pmatch == NULL) { in matcher()
215 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1; in matcher()
224 free(m->pmatch); in matcher()
273 pmatch[i] = m->pmatch[i]; in matcher()
275 pmatch[i].rm_so = -1; in matcher()
276 pmatch[i].rm_eo = -1; in matcher()
280 if (m->pmatch != NULL) in matcher()
281 free((char *)m->pmatch); in matcher()
[all …]
H A Dregexec.c153 regmatch_t *pmatch, int eflags) in regexec() argument
170 return(smatcher(g, string, nmatch, pmatch, eflags)); in regexec()
172 return(lmatcher(g, string, nmatch, pmatch, eflags)); in regexec()
/freebsd-13.1/lib/libc/regex/
H A Dengine.c194 regmatch_t pmatch[], in matcher() argument
274 m->pmatch = NULL; in matcher()
302 if (m->pmatch != NULL) in matcher()
327 if (m->pmatch == NULL) in matcher()
335 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1; in matcher()
344 free(m->pmatch); in matcher()
395 pmatch[i] = m->pmatch[i]; in matcher()
397 pmatch[i].rm_so = -1; in matcher()
398 pmatch[i].rm_eo = -1; in matcher()
402 if (m->pmatch != NULL) in matcher()
[all …]
H A Dregexec.c212 regmatch_t pmatch[__restrict], in regexec()
230 return(mmatcher(g, string, nmatch, pmatch, eflags)); in regexec()
232 return(smatcher(g, string, nmatch, pmatch, eflags)); in regexec()
234 return(lmatcher(g, string, nmatch, pmatch, eflags)); in regexec()
/freebsd-13.1/usr.sbin/ofwdump/
H A Dofwdump.c212 const char *pmatch, int raw, int str) in ofw_dump_node() argument
229 if (pmatch) in ofw_dump_node()
230 ofw_dump_property(fd, n, level, pmatch, raw, str); in ofw_dump_node()
236 ofw_dump_node(fd, c, level + 1, rec, prop, pmatch, in ofw_dump_node()
243 ofw_dump(int fd, const char *start, int rec, int prop, const char *pmatch, in ofw_dump() argument
249 ofw_dump_node(fd, n, 0, rec, prop, pmatch, raw, str); in ofw_dump()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/
H A Dregengine.inc171 m->pmatch = NULL;
187 free(m->pmatch);
209 if (m->pmatch == NULL)
212 if (m->pmatch == NULL) {
217 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1;
226 free(m->pmatch);
276 pmatch[i] = m->pmatch[i];
278 pmatch[i].rm_so = -1;
279 pmatch[i].rm_eo = -1;
283 if (m->pmatch != NULL)
[all …]
H A Dregexec.c142 llvm_regmatch_t pmatch[], int eflags) in llvm_regexec() argument
159 return(smatcher(g, string, nmatch, pmatch, eflags)); in llvm_regexec()
161 return(lmatcher(g, string, nmatch, pmatch, eflags)); in llvm_regexec()
/freebsd-13.1/usr.bin/killall/
H A Dkillall.c101 regmatch_t pmatch; in main() local
364 pmatch.rm_so = 0; in main()
365 pmatch.rm_eo = strlen(thiscmd); in main()
366 if (regexec(&rgx, thiscmd, 0, &pmatch, in main()
390 pmatch.rm_so = 0; in main()
391 pmatch.rm_eo = strlen(thiscmd); in main()
392 if (regexec(&rgx, thiscmd, 0, &pmatch, in main()
/freebsd-13.1/usr.bin/m4/
H A Dgnum4.c486 regmatch_t *pmatch; in dopatsubst() local
501 pmatch = xreallocarray(NULL, re.re_nsub+1, sizeof(regmatch_t), in dopatsubst()
504 argc > 4 && argv[4] != NULL ? argv[4] : "", pmatch); in dopatsubst()
505 free(pmatch); in dopatsubst()
516 regmatch_t *pmatch; in doregexp() local
535 pmatch = xreallocarray(NULL, re.re_nsub+1, sizeof(regmatch_t), NULL); in doregexp()
537 do_regexpindex(argv[2], &re, source, pmatch); in doregexp()
539 do_regexp(argv[2], &re, source, argv[4], pmatch); in doregexp()
540 free(pmatch); in doregexp()
/freebsd-13.1/usr.bin/split/
H A Dsplit.c284 regmatch_t pmatch; in split2() local
286 pmatch.rm_so = 0; in split2()
287 pmatch.rm_eo = len - 1; in split2()
288 if (regexec(&rgx, bfr, 0, &pmatch, REG_STARTEND) == 0) in split2()
/freebsd-13.1/contrib/ntp/ntpd/
H A Dntp_restrict.c404 const restrict_u * pmatch, in match_restrict_entry() argument
414 cb = sizeof(pmatch->u.v6); in match_restrict_entry()
417 cb = sizeof(pmatch->u.v4); in match_restrict_entry()
421 if (res->mflags == pmatch->mflags && in match_restrict_entry()
422 !memcmp(&res->u, &pmatch->u, cb)) in match_restrict_entry()
/freebsd-13.1/usr.sbin/setfmac/
H A Dsetfmac.c397 regmatch_t pmatch; in apply_specs() local
419 pmatch.rm_so = 0; in apply_specs()
420 pmatch.rm_eo = ftsent->fts_pathlen; in apply_specs()
422 &pmatch, REG_STARTEND); in apply_specs()
/freebsd-13.1/lib/libpmc/
H A Dlibpmc_pmu_util.c208 regmatch_t pmatch[1]; in pmu_events_map_get() local
227 match = regexec(&re, buf, 1, pmatch, 0); in pmu_events_map_get()
230 if (pmatch[0].rm_so == 0 && (buf[pmatch[0].rm_eo] == 0 in pmu_events_map_get()
231 || buf[pmatch[0].rm_eo] == '-')) in pmu_events_map_get()
/freebsd-13.1/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_crypto.c117 regmatch_t pmatch[2]; in zfs_prop_parse_keylocation() local
119 if (regexec(&hdl->libzfs_urire, str, ARRAY_SIZE(pmatch), in zfs_prop_parse_keylocation()
120 pmatch, 0) == 0) { in zfs_prop_parse_keylocation()
123 if (pmatch[1].rm_so == -1) { in zfs_prop_parse_keylocation()
129 scheme_len = pmatch[1].rm_eo - pmatch[1].rm_so; in zfs_prop_parse_keylocation()
141 (void) memcpy(*schemep, str + pmatch[1].rm_so, scheme_len); in zfs_prop_parse_keylocation()
/freebsd-13.1/contrib/file/src/
H A Dfuncs.c679 regmatch_t* pmatch, int eflags) in file_regexec() argument
684 memset(pmatch, 0, nmatch * sizeof(*pmatch)); in file_regexec()
685 return regexec(&rx->rx, str, nmatch, pmatch, eflags); in file_regexec()
H A Dsoftmagic.c2199 regmatch_t pmatch; in magiccheck() local
2219 1, &pmatch, 0); in magiccheck()
2223 ms->search.s += CAST(int, pmatch.rm_so); in magiccheck()
2224 ms->search.offset += CAST(size_t, pmatch.rm_so); in magiccheck()
2226 pmatch.rm_eo - pmatch.rm_so); in magiccheck()
/freebsd-13.1/usr.bin/find/
H A Dfunction.c1425 regmatch_t pmatch; in f_regex() local
1435 pmatch.rm_so = 0; in f_regex()
1436 pmatch.rm_eo = len; in f_regex()
1438 errcode = regexec(pre, str, 1, &pmatch, REG_STARTEND); in f_regex()
1446 if (errcode == 0 && pmatch.rm_so == 0 && pmatch.rm_eo == len) in f_regex()
/freebsd-13.1/contrib/one-true-awk/
H A Dproto.h55 extern int pmatch(fa *, const char *);
H A Drun.c589 mf = pmatch; in matchop()
2046 if (pmatch(pfa, t)) { in sub()
2109 if (pmatch(pfa, t)) { in gsub()
2166 } while (pmatch(pfa,t)); in gsub()
2231 if (pmatch(pfa, t)) { in gensub()
2311 } while (pmatch(pfa,t)); in gensub()
H A Db.c559 int pmatch(fa *f, const char *p0) /* longest match, for sub */ in pmatch() function
/freebsd-13.1/usr.sbin/ppp/
H A Dcommand.c1038 FindCommand(struct cmdtab const *cmds, const char *str, int *pmatch) in FindCommand() argument
1050 *pmatch = 1; in FindCommand()
1057 *pmatch = 1; in FindCommand()
1065 *pmatch = nmatch; in FindCommand()
/freebsd-13.1/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.1/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc7808 struct __sanitizer_regmatch *pmatch[], int eflags) {
7810 COMMON_INTERCEPTOR_ENTER(ctx, regexec, preg, string, nmatch, pmatch, eflags);
7815 int res = REAL(regexec)(preg, string, nmatch, pmatch, eflags);
7816 if (!res && pmatch)
7817 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, pmatch, nmatch * struct_regmatch_sz);