Home
last modified time | relevance | path

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

/titanic_44/usr/src/cmd/basename/
H A Dbasename.c51 regmatch_t pmatch[2]; in main() local
150 r = regexec(&reg, string, 2, pmatch, 0); in main()
152 if (pmatch[0].rm_so == (regoff_t)-1 || in main()
153 pmatch[1].rm_so == (regoff_t)-1 || in main()
154 pmatch[1].rm_so != 0) { in main()
161 if (pmatch[1].rm_so == pmatch[1].rm_eo) { in main()
166 string[pmatch[1].rm_eo] = '\0'; in main()
/titanic_44/usr/src/lib/libc/port/locale/
H A Dengine.c81 regmatch_t *pmatch; /* [nsub+1] (0 element unused) */ member
153 regmatch_t pmatch[], in matcher() argument
178 start = string + pmatch[0].rm_so; in matcher()
179 stop = string + pmatch[0].rm_eo; in matcher()
237 m->pmatch = NULL; in matcher()
260 if (m->pmatch != NULL) in matcher()
261 free((char *)m->pmatch); in matcher()
285 if (m->pmatch == NULL) in matcher()
286 m->pmatch = (regmatch_t *)malloc((m->g->nsub + 1) * in matcher()
288 if (m->pmatch == NULL) { in matcher()
[all …]
H A Dregexec.c200 regmatch_t pmatch[_RESTRICT_KYWD], int eflags) in regexec()
221 return (mmatcher(g, (char *)string, nmatch, pmatch, eflags)); in regexec()
227 return (smatcher(g, (char *)string, nmatch, pmatch, eflags)); in regexec()
229 return (lmatcher(g, (char *)string, nmatch, pmatch, eflags)); in regexec()
/titanic_44/usr/src/cmd/pgrep/
H A Dpsexp.c115 regmatch_t pmatch; in psexp_match() local
145 if (regexec(&psexp->ps_reg, s, 1, &pmatch, 0) != 0) in psexp_match()
149 (pmatch.rm_so != 0 || s[pmatch.rm_eo] != '\0')) in psexp_match()
/titanic_44/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)));
/titanic_44/usr/src/cmd/awk/
H A Dawk.h270 extern int pmatch(fa *, uchar *);
H A Drun.c555 mf = pmatch; in matchop()
1750 if (pmatch(pfa, t)) { in sub()
1816 if (pmatch(pfa, t)) { in gsub()
1886 } while (pmatch(pfa, t)); in gsub()
H A Db.c447 pmatch(fa *f, uchar *p) in pmatch() function
/titanic_44/usr/src/lib/libzoneinfo/common/
H A Dlibzone.c919 regmatch_t pmatch[N_MATCH]; in _tz_match() local
927 ret = regexec((const regex_t *)&reg, string, N_MATCH, pmatch, 0); in _tz_match()
/titanic_44/usr/src/cmd/devfsadm/
H A Ddevfsadm.c5582 regmatch_t *pmatch; in match_path_component() local
5586 pmatch = in match_path_component()
5589 pmatch = NULL; in match_path_component()
5594 if (pmatch != NULL) { in match_path_component()
5595 free(pmatch); in match_path_component()
5600 if (regexec(&re1, file, nelements, pmatch, 0) == 0) { in match_path_component()
5605 int size = pmatch[subexp].rm_eo - pmatch[subexp].rm_so; in match_path_component()
5607 (void) strncpy(*id, &file[pmatch[subexp].rm_so], size); in match_path_component()
5611 if (pmatch != NULL) { in match_path_component()
5612 free(pmatch); in match_path_component()
/titanic_44/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;
/titanic_44/usr/src/cmd/mdb/common/modules/genunix/
H A Dgenunix.c269 regmatch_t pmatch; in pgrep_cb() local
282 if (regexec(&pgp->pg_reg, prp->p_user.u_comm, 1, &pmatch, 0) != 0) in pgrep_cb()
286 (pmatch.rm_so != 0 || prp->p_user.u_comm[pmatch.rm_eo] != '\0')) in pgrep_cb()
/titanic_44/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);