Searched defs:pmatch (Results 1 - 11 of 11) sorted by relevance

/illumos-gate/usr/src/cmd/pgrep/
H A Dpsexp.c115 regmatch_t pmatch; local
145 if (regexec(&psexp->ps_reg, s, 1, &pmatch, 0) != 0)
149 (pmatch.rm_so != 0 || s[pmatch.rm_eo] != '\0'))
/illumos-gate/usr/src/cmd/basename/
H A Dbasename.c51 regmatch_t pmatch[2]; local
150 r = regexec(&reg, string, 2, pmatch, 0);
152 if (pmatch[0].rm_so == (regoff_t)-1 ||
153 pmatch[1].rm_so == (regoff_t)-1 ||
154 pmatch[1].rm_so != 0) {
161 if (pmatch[1].rm_so == pmatch[1].rm_eo) {
166 string[pmatch[1].rm_eo] = '\0';
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dregexec.c200 regmatch_t pmatch[_RESTRICT_KYWD], int eflags)
221 return (mmatcher(g, (char *)string, nmatch, pmatch, eflags));
227 return (smatcher(g, (char *)string, nmatch, pmatch, eflags));
229 return (lmatcher(g, (char *)string, nmatch, pmatch, eflags));
198 regexec(const regex_t *_RESTRICT_KYWD preg, const char *_RESTRICT_KYWD string, size_t nmatch, regmatch_t pmatch[_RESTRICT_KYWD], int eflags) argument
H A Dengine.c81 regmatch_t *pmatch; /* [nsub+1] (0 element unused) */ member in struct:match
153 regmatch_t pmatch[],
178 start = string + pmatch[0].rm_so;
179 stop = string + pmatch[0].rm_eo;
237 m->pmatch = NULL;
260 if (m->pmatch != NULL)
261 free((char *)m->pmatch);
285 if (m->pmatch == NULL)
286 m->pmatch = (regmatch_t *)malloc((m->g->nsub + 1) *
288 if (m->pmatch
150 matcher(struct re_guts *g, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags) argument
[all...]
/illumos-gate/usr/src/cmd/awk/
H A Db.c447 pmatch(fa *f, uchar *p) function
491 overflo("out of space in pmatch");
/illumos-gate/usr/src/lib/libzoneinfo/common/
H A Dlibzone.c919 regmatch_t pmatch[N_MATCH]; local
927 ret = regexec((const regex_t *)&reg, string, N_MATCH, pmatch, 0);
/illumos-gate/usr/src/uts/common/inet/ipf/
H A Dip_state.c1078 int pmatch; local
1084 pmatch = fr_match_l4_hdr(is1, is2);
1088 * must be same for matching entries. If amatch and pmatch
1092 rv = (amatch != 0) && (amatch == pmatch);
/illumos-gate/usr/src/cmd/find/
H A Dfind.c1130 regmatch_t pmatch; local
1133 if (regexec(&preg[cnpreg], name, 1, &pmatch, NULL) == 0)
1134 val = ((pmatch.rm_so == 0) &&
1135 (pmatch.rm_eo == strlen(name)));
/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/devfsadm/
H A Ddevfsadm.c5583 regmatch_t *pmatch; local
5587 pmatch =
5590 pmatch = NULL;
5595 if (pmatch != NULL) {
5596 free(pmatch);
5601 if (regexec(&re1, file, nelements, pmatch, 0) == 0) {
5606 int size = pmatch[subexp].rm_eo - pmatch[subexp].rm_so;
5608 (void) strncpy(*id, &file[pmatch[subexp].rm_so], size);
5612 if (pmatch !
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dgenunix.c352 regmatch_t pmatch; local
365 if (regexec(&pgp->pg_reg, prp->p_user.u_comm, 1, &pmatch, 0) != 0)
369 (pmatch.rm_so != 0 || prp->p_user.u_comm[pmatch.rm_eo] != '\0'))

Completed in 147 milliseconds