/illumos-gate/usr/src/cmd/basename/ |
H A D | basename.c | 49 regmatch_t pmatch[2]; in main() local 148 r = regexec(®, 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 D | engine.c | 85 regmatch_t *pmatch; /* [nsub+1] (0 element unused) */ member 186 regmatch_t pmatch[], int eflags) in matcher() argument 210 start = string + pmatch[0].rm_so; in matcher() 211 stop = string + pmatch[0].rm_eo; in matcher() 269 m->pmatch = NULL; in matcher() 297 if (m->pmatch != NULL) in matcher() 298 free((char *)m->pmatch); in matcher() 322 if (m->pmatch == NULL) in matcher() 323 m->pmatch = (regmatch_t *)malloc((m->g->nsub + 1) * in matcher() 325 if (m->pmatch == NULL) { in matcher() [all …]
|
H A D | regexec.c | 197 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 D | psexp.c | 113 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 D | mdb_help.c | 220 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 D | libzfs_crypto.c | 98 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 D | find.c | 1230 regmatch_t pmatch; in execute() local 1233 if (regexec(&preg[cnpreg], name, 1, &pmatch, 0) == 0) in execute() 1234 val = ((pmatch.rm_so == 0) && in execute() 1235 (pmatch.rm_eo == strlen(name))); in execute()
|
/illumos-gate/usr/src/cmd/awk/ |
H A D | awk.h | 333 extern int pmatch(fa *, const char *);
|
H A D | run.c | 673 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 D | b.c | 576 pmatch(fa *f, const char *p0) /* longest match, for sub */ in pmatch() function
|
/illumos-gate/usr/src/lib/libzoneinfo/common/ |
H A D | libzone.c | 917 regmatch_t pmatch[N_MATCH]; in _tz_match() local 925 ret = regexec((const regex_t *)®, string, N_MATCH, pmatch, 0); in _tz_match()
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | devfsadm.c | 5596 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 D | map.c | 7020 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 D | genunix.c | 471 regmatch_t pmatch; in pgrep_cb() local 487 if (regexec(&pgp->pg_reg, p.p_user.u_comm, 1, &pmatch, 0) != 0) in pgrep_cb() 491 (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 D | ip_state.c | 1078 int pmatch; local 1084 pmatch = fr_match_l4_hdr(is1, is2); 1092 rv = (amatch != 0) && (amatch == pmatch);
|