Home
last modified time | relevance | path

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

/illumos-gate/usr/src/cmd/basename/
H A Dbasename.c49 regmatch_t pmatch[2]; in main() local
148 r = regexec(&reg, string, 2, pmatch, 0); in main()
150 if (pmatch[0].rm_so == (regoff_t)-1 || in main()
151 pmatch[1].rm_so == (regoff_t)-1 || in main()
152 pmatch[1].rm_so != 0) { in main()
159 if (pmatch[1].rm_so == pmatch[1].rm_eo) { in main()
164 string[pmatch[1].rm_eo] = '\0'; in main()
/illumos-gate/usr/src/lib/libc/port/regex/
H A Dengine.c269 m->pmatch = NULL; in matcher()
297 if (m->pmatch != NULL) in matcher()
322 if (m->pmatch == NULL) in matcher()
325 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.c197 size_t nmatch, regmatch_t pmatch[_RESTRICT_KYWD], int eflags) in regexec()
218 return (mmatcher(g, string, nmatch, pmatch, eflags)); in regexec()
220 return (smatcher(g, string, nmatch, pmatch, eflags)); in regexec()
222 return (lmatcher(g, string, nmatch, pmatch, eflags)); in regexec()
/illumos-gate/usr/src/cmd/pgrep/
H A Dpsexp.c113 regmatch_t pmatch; in psexp_match() local
143 if (regexec(&psexp->ps_reg, s, 1, &pmatch, 0) != 0) in psexp_match()
147 (pmatch.rm_so != 0 || s[pmatch.rm_eo] != '\0')) in psexp_match()
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_help.c220 regmatch_t pmatch; in print_wdesc()
222 if (regexec(&f->reg, name, 1, &pmatch, 0) == 0 || in print_wdesc()
224 regexec(&f->reg, iwp->iwlk_descr, 1, &pmatch, 0) == 0)) in print_wdesc()
309 regmatch_t pmatch; in print_ddesc()
311 if (regexec(&f->reg, name, 1, &pmatch, 0) == 0 || in print_ddesc()
313 regexec(&f->reg, idcp->idc_descr, 1, &pmatch, 0) == 0)) in print_ddesc()
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_crypto.c98 regmatch_t pmatch[URI_NMATCH]; in zfs_prop_parse_keylocation() local
99 regmatch_t *smatch = &pmatch[URI_SCHEMESUBEXP]; in zfs_prop_parse_keylocation()
101 ret = regexec(&hdl->libzfs_urire, str, ARRAY_SIZE(pmatch), pmatch, 0); in zfs_prop_parse_keylocation()
/illumos-gate/usr/src/cmd/find/
H A Dfind.c1145 regmatch_t pmatch; in execute() local
1148 if (regexec(&preg[cnpreg], name, 1, &pmatch, 0) == 0) in execute()
1149 val = ((pmatch.rm_so == 0) && in execute()
1150 (pmatch.rm_eo == strlen(name))); in execute()
/illumos-gate/usr/src/cmd/awk/
H A Dawk.h333 extern int pmatch(fa *, const char *);
H A Drun.c673 mf = pmatch; in matchop()
2070 if (pmatch(pfa, t)) { in sub()
2139 if (pmatch(pfa, t)) { in gsub()
2219 } while (pmatch(pfa, t)); in gsub()
H A Db.c576 pmatch(fa *f, const char *p0) /* longest match, for sub */ in pmatch() function
/illumos-gate/usr/src/lib/libzoneinfo/common/
H A Dlibzone.c917 regmatch_t pmatch[N_MATCH]; in _tz_match() local
925 ret = regexec((const regex_t *)&reg, string, N_MATCH, pmatch, 0); in _tz_match()
/illumos-gate/usr/src/cmd/devfsadm/
H A Ddevfsadm.c5596 regmatch_t *pmatch; in match_path_component() local
5600 pmatch = in match_path_component()
5603 pmatch = NULL; in match_path_component()
5608 if (pmatch != NULL) { in match_path_component()
5609 free(pmatch); in match_path_component()
5614 if (regexec(&re1, file, nelements, pmatch, 0) == 0) { in match_path_component()
5619 int size = pmatch[subexp].rm_eo - pmatch[subexp].rm_so; in match_path_component()
5621 (void) strncpy(*id, &file[pmatch[subexp].rm_so], size); in match_path_component()
5625 if (pmatch != NULL) { in match_path_component()
5626 free(pmatch); in match_path_component()
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dmap.c7020 regmatch_t pmatch[MAX_MATCH]; local
7033 name, MAX_MATCH, pmatch, 0);
7088 pmatch[*ip].rm_so < 0 || pmatch[*ip].rm_eo < 0)
7091 sp = name + pmatch[*ip].rm_so;
7092 endp = name + pmatch[*ip].rm_eo;
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dgenunix.c470 regmatch_t pmatch; in pgrep_cb() local
486 if (regexec(&pgp->pg_reg, p.p_user.u_comm, 1, &pmatch, 0) != 0) in pgrep_cb()
490 (pmatch.rm_so != 0 || p.p_user.u_comm[pmatch.rm_eo] != '\0')) in pgrep_cb()
/illumos-gate/usr/src/uts/common/inet/ipf/
H A Dip_state.c1078 int pmatch; local
1084 pmatch = fr_match_l4_hdr(is1, is2);
1092 rv = (amatch != 0) && (amatch == pmatch);