Home
last modified time | relevance | path

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

12

/freebsd-12.1/usr.bin/grep/
H A Dutil.c398 regmatch_t pmatch[]) in litexec() argument
410 ofs = pmatch[0].rm_so; in litexec()
411 stringlen = pmatch[0].rm_eo; in litexec()
432 pmatch[idx].rm_eo = pmatch[idx].rm_so + pat->len; in litexec()
443 pmatch[n].rm_so = pmatch[n].rm_eo = -1; in litexec()
499 pmatch.rm_so = st; in procline()
517 if (pmatch.rm_so != 0 && in procline()
545 lastmatch = pmatch; in procline()
560 (pmatch.rm_eo - pmatch.rm_so) > in procline()
563 nst = pmatch.rm_eo; in procline()
[all …]
/freebsd-12.1/usr.bin/sort/
H A Dsort.c644 if (pmatch[0].rm_eo <= pmatch[0].rm_so) in parse_pos()
647 if (pmatch[1].rm_eo <= pmatch[1].rm_so) in parse_pos()
650 len = pmatch[1].rm_eo - pmatch[1].rm_so; in parse_pos()
676 if (pmatch[2].rm_eo > pmatch[2].rm_so) { in parse_pos()
705 if (pmatch[3].rm_eo > pmatch[3].rm_so) { in parse_pos()
800 if (pmatch[0].rm_eo <= pmatch[0].rm_so) in parse_pos_obs()
803 if (pmatch[1].rm_eo <= pmatch[1].rm_so) in parse_pos_obs()
806 len = pmatch[1].rm_eo - pmatch[1].rm_so; in parse_pos_obs()
817 if (pmatch[2].rm_eo > pmatch[2].rm_so) { in parse_pos_obs()
830 if (pmatch[3].rm_eo > pmatch[3].rm_so) { in parse_pos_obs()
[all …]
/freebsd-12.1/lib/libc/regex/
H A Dengine.c189 regmatch_t pmatch[], in matcher() argument
269 m->pmatch = NULL; in matcher()
297 if (m->pmatch != NULL) in matcher()
322 if (m->pmatch == NULL) in matcher()
330 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1; in matcher()
339 free(m->pmatch); in matcher()
390 pmatch[i] = m->pmatch[i]; in matcher()
392 pmatch[i].rm_so = -1; in matcher()
393 pmatch[i].rm_eo = -1; in matcher()
397 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-12.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-12.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-12.1/contrib/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-12.1/contrib/libgnuregex/
H A Dregexec.c224 regmatch_t pmatch[];
414 regmatch_t *pmatch; local
487 rval = pmatch[0].rm_so;
489 re_free (pmatch);
498 regmatch_t *pmatch;
634 regmatch_t pmatch[];
890 pmatch[reg_idx].rm_so = pmatch[reg_idx].rm_eo = -1;
913 pmatch[reg_idx].rm_so =
917 pmatch[reg_idx].rm_eo =
1457 for (idx = pmatch[0].rm_so; idx <= pmatch[0].rm_eo ;) in set_regs()
[all …]
/freebsd-12.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-12.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-12.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-12.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-12.1/usr.sbin/setfmac/
H A Dsetfmac.c395 regmatch_t pmatch; in apply_specs() local
417 pmatch.rm_so = 0; in apply_specs()
418 pmatch.rm_eo = ftsent->fts_pathlen; in apply_specs()
420 &pmatch, REG_STARTEND); in apply_specs()
/freebsd-12.1/contrib/file/src/
H A Dfuncs.c523 regmatch_t* pmatch, int eflags) in file_regexec() argument
527 memset(pmatch, 0, nmatch * sizeof(*pmatch)); in file_regexec()
528 return regexec(&rx->rx, str, nmatch, pmatch, eflags); in file_regexec()
H A Dsoftmagic.c2024 regmatch_t pmatch; in magiccheck() local
2044 1, &pmatch, 0); in magiccheck()
2048 ms->search.s += (int)pmatch.rm_so; in magiccheck()
2049 ms->search.offset += (size_t)pmatch.rm_so; in magiccheck()
2051 (size_t)(pmatch.rm_eo - pmatch.rm_so); in magiccheck()
/freebsd-12.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-12.1/contrib/one-true-awk/
H A Dproto.h55 extern int pmatch(fa *, const char *);
H A Drun.c584 mf = pmatch; in matchop()
1869 if (pmatch(pfa, t)) { in sub()
1931 if (pmatch(pfa, t)) { in gsub()
1988 } while (pmatch(pfa,t)); in gsub()
H A Db.c506 int pmatch(fa *f, const char *p0) /* longest match, for sub */ in pmatch() function
/freebsd-12.1/contrib/sendmail/src/
H A Dmap.c7032 regmatch_t pmatch[MAX_MATCH]; local
7045 name, MAX_MATCH, pmatch, 0);
7100 pmatch[*ip].rm_so < 0 || pmatch[*ip].rm_eo < 0)
7103 sp = name + pmatch[*ip].rm_so;
7104 endp = name + pmatch[*ip].rm_eo;
/freebsd-12.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-12.1/contrib/gcclibs/libiberty/
H A Dregex.c8003 regmatch_t pmatch[], int eflags)
8044 pmatch[r].rm_so = regs.start[r];
8045 pmatch[r].rm_eo = regs.end[r];
/freebsd-12.1/contrib/binutils/libiberty/
H A Dregex.c8003 regmatch_t pmatch[], int eflags)
8044 pmatch[r].rm_so = regs.start[r];
8045 pmatch[r].rm_eo = regs.end[r];

12