Home
last modified time | relevance | path

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

/freebsd/usr.bin/grep/
H A Dutil.c416 regmatch_t pmatch[]) in litexec() argument
428 ofs = pmatch[0].rm_so; in litexec()
429 stringlen = pmatch[0].rm_eo; in litexec()
450 pmatch[idx].rm_eo = pmatch[idx].rm_so + pat->len; in litexec()
461 pmatch[n].rm_so = pmatch[n].rm_eo = -1; in litexec()
529 pmatch.rm_so = st; in procline()
547 if (pmatch.rm_so != 0 && in procline()
575 lastmatch = pmatch; in procline()
590 (pmatch.rm_eo - pmatch.rm_so) > in procline()
593 nst = pmatch.rm_eo; in procline()
[all …]
/freebsd/usr.bin/sort/
H A Dsort.c638 if (pmatch[0].rm_eo <= pmatch[0].rm_so) in parse_pos()
641 if (pmatch[1].rm_eo <= pmatch[1].rm_so) in parse_pos()
644 len = pmatch[1].rm_eo - pmatch[1].rm_so; in parse_pos()
670 if (pmatch[2].rm_eo > pmatch[2].rm_so) { in parse_pos()
699 if (pmatch[3].rm_eo > pmatch[3].rm_so) { in parse_pos()
794 if (pmatch[0].rm_eo <= pmatch[0].rm_so) in parse_pos_obs()
797 if (pmatch[1].rm_eo <= pmatch[1].rm_so) in parse_pos_obs()
800 len = pmatch[1].rm_eo - pmatch[1].rm_so; in parse_pos_obs()
811 if (pmatch[2].rm_eo > pmatch[2].rm_so) { in parse_pos_obs()
824 if (pmatch[3].rm_eo > pmatch[3].rm_so) { in parse_pos_obs()
[all …]
/freebsd/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/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.c204 regmatch_t pmatch[__restrict], in regexec()
222 return(mmatcher(g, string, nmatch, pmatch, eflags)); in regexec()
224 return(smatcher(g, string, nmatch, pmatch, eflags)); in regexec()
226 return(lmatcher(g, string, nmatch, pmatch, eflags)); in regexec()
/freebsd/usr.sbin/ofwdump/
H A Dofwdump.c211 const char *pmatch, bool raw, bool str) in ofw_dump_node() argument
228 if (pmatch) in ofw_dump_node()
229 ofw_dump_property(fd, n, level, pmatch, raw, str); in ofw_dump_node()
235 ofw_dump_node(fd, c, level + 1, rec, prop, pmatch, in ofw_dump_node()
242 ofw_dump(int fd, const char *start, bool rec, bool prop, const char *pmatch, in ofw_dump() argument
248 ofw_dump_node(fd, n, 0, rec, prop, pmatch, raw, str); in ofw_dump()
/freebsd/usr.bin/killall/
H A Dkillall.c98 regmatch_t pmatch; in main() local
362 pmatch.rm_so = 0; in main()
363 pmatch.rm_eo = strlen(thiscmd); in main()
364 if (regexec(&rgx, thiscmd, 0, &pmatch, in main()
388 pmatch.rm_so = 0; in main()
389 pmatch.rm_eo = strlen(thiscmd); in main()
390 if (regexec(&rgx, thiscmd, 0, &pmatch, in main()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A Dregengine.inc174 m->pmatch = NULL;
190 free(m->pmatch);
212 if (m->pmatch == NULL)
215 if (m->pmatch == NULL) {
220 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1;
229 free(m->pmatch);
279 pmatch[i] = m->pmatch[i];
281 pmatch[i].rm_so = -1;
282 pmatch[i].rm_eo = -1;
286 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/usr.bin/m4/
H A Dgnum4.c484 regmatch_t *pmatch; in dopatsubst() local
499 pmatch = xreallocarray(NULL, re.re_nsub+1, sizeof(regmatch_t), in dopatsubst()
502 argc > 4 && argv[4] != NULL ? argv[4] : "", pmatch); in dopatsubst()
503 free(pmatch); in dopatsubst()
514 regmatch_t *pmatch; in doregexp() local
533 pmatch = xreallocarray(NULL, re.re_nsub+1, sizeof(regmatch_t), NULL); in doregexp()
535 do_regexpindex(argv[2], &re, source, pmatch); in doregexp()
537 do_regexp(argv[2], &re, source, argv[4], pmatch); in doregexp()
538 free(pmatch); in doregexp()
/freebsd/usr.bin/split/
H A Dsplit.c292 regmatch_t pmatch; in split2() local
294 pmatch.rm_so = 0; in split2()
295 pmatch.rm_eo = len - 1; in split2()
296 if (regexec(&rgx, buf, 0, &pmatch, REG_STARTEND) == 0) in split2()
/freebsd/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/lib/libpmc/
H A Dlibpmc_pmu_util.c228 regmatch_t pmatch[1]; in pmu_events_map_get() local
247 match = regexec(&re, buf, 1, pmatch, 0); in pmu_events_map_get()
250 if (pmatch[0].rm_so == 0 && (buf[pmatch[0].rm_eo] == 0 in pmu_events_map_get()
251 || buf[pmatch[0].rm_eo] == '-')) in pmu_events_map_get()
/freebsd/contrib/ntp/ntpd/
H A Dntp_restrict.c392 const restrict_u * pmatch, in match_restrict_entry() argument
402 cb = sizeof(pmatch->u.v6); in match_restrict_entry()
405 cb = sizeof(pmatch->u.v4); in match_restrict_entry()
409 if (res->mflags == pmatch->mflags && in match_restrict_entry()
410 !memcmp(&res->u, &pmatch->u, cb)) { in match_restrict_entry()
/freebsd/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_crypto.c118 regmatch_t pmatch[2]; in zfs_prop_parse_keylocation() local
120 if (regexec(&hdl->libzfs_urire, str, ARRAY_SIZE(pmatch), in zfs_prop_parse_keylocation()
121 pmatch, 0) == 0) { in zfs_prop_parse_keylocation()
124 if (pmatch[1].rm_so == -1) { in zfs_prop_parse_keylocation()
130 scheme_len = pmatch[1].rm_eo - pmatch[1].rm_so; in zfs_prop_parse_keylocation()
142 (void) memcpy(*schemep, str + pmatch[1].rm_so, scheme_len); in zfs_prop_parse_keylocation()
/freebsd/contrib/file/src/
H A Dfuncs.c738 const char *str, size_t nmatch, regmatch_t* pmatch, int eflags) in file_regexec() argument
751 memset(pmatch, 0, nmatch * sizeof(*pmatch)); in file_regexec()
752 rc = regexec(rx, str, nmatch, pmatch, eflags); in file_regexec()
H A Dsoftmagic.c2306 regmatch_t pmatch; in magiccheck() local
2335 1, &pmatch, 0); in magiccheck()
2339 ms->search.s += CAST(int, pmatch.rm_so); in magiccheck()
2340 ms->search.offset += CAST(size_t, pmatch.rm_so); in magiccheck()
2342 pmatch.rm_eo - pmatch.rm_so); in magiccheck()
/freebsd/usr.bin/find/
H A Dfunction.c1418 regmatch_t pmatch; in f_regex() local
1428 pmatch.rm_so = 0; in f_regex()
1429 pmatch.rm_eo = len; in f_regex()
1431 errcode = regexec(pre, str, 1, &pmatch, REG_STARTEND); in f_regex()
1439 if (errcode == 0 && pmatch.rm_so == 0 && pmatch.rm_eo == len) in f_regex()
/freebsd/contrib/one-true-awk/
H A Dproto.h54 extern int pmatch(fa *, const char *);
H A Drun.c806 mf = pmatch; in matchop()
2545 while (pmatch(pfa, start)) { in dosub()
2684 if (pmatch(pfa, t)) { in gensub()
2764 } while (pmatch(pfa,t)); in gensub()
H A Db.c727 int pmatch(fa *f, const char *p0) /* longest match, for sub */ in pmatch() function
/freebsd/usr.sbin/ppp/
H A Dcommand.c1036 FindCommand(struct cmdtab const *cmds, const char *str, int *pmatch) in FindCommand() argument
1048 *pmatch = 1; in FindCommand()
1055 *pmatch = 1; in FindCommand()
1063 *pmatch = nmatch; in FindCommand()
/freebsd/contrib/sendmail/src/
H A Dmap.c7767 regmatch_t pmatch[MAX_MATCH]; local
7781 name, MAX_MATCH, pmatch, 0);
7836 pmatch[*ip].rm_so < 0 || pmatch[*ip].rm_eo < 0)
7839 sp = name + pmatch[*ip].rm_so;
7840 endp = name + pmatch[*ip].rm_eo;
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc7912 struct __sanitizer_regmatch *pmatch[], int eflags) {
7914 COMMON_INTERCEPTOR_ENTER(ctx, regexec, preg, string, nmatch, pmatch, eflags);
7919 int res = REAL(regexec)(preg, string, nmatch, pmatch, eflags);
7920 if (!res && pmatch)
7921 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, pmatch, nmatch * struct_regmatch_sz);