Home
last modified time | relevance | path

Searched refs:preg (Results 1 – 16 of 16) sorted by relevance

/illumos-gate/usr/src/lib/libc/port/regex/
H A Dregfree.c52 regfree(regex_t *preg) in regfree() argument
57 if (preg->re_magic != MAGIC1) /* oops */ in regfree()
60 g = preg->re_g; in regfree()
63 preg->re_magic = 0; /* mark it invalid */ in regfree()
H A Dregerror.c47 static const char *regatoi(const regex_t *preg, char *localbuf);
90 regerror(int errcode, const regex_t *_RESTRICT_KYWD preg, in regerror() argument
100 s = regatoi(preg, convbuf); in regerror()
136 regatoi(const regex_t *preg, char *localbuf) in regatoi() argument
141 if (strcmp(r->name, preg->re_endp) == 0) in regatoi()
H A Dregexec.c196 regexec(const regex_t *_RESTRICT_KYWD preg, const char *_RESTRICT_KYWD string, in regexec() argument
199 struct re_guts *g = preg->re_g; in regexec()
210 if (preg->re_magic != MAGIC1 || g->magic != MAGIC2) in regexec()
H A Dregcomp.c200 regcomp(regex_t *_RESTRICT_KYWD preg, const char *_RESTRICT_KYWD pattern, in regcomp() argument
234 if (preg->re_endp < pattern) in regcomp()
236 len = preg->re_endp - pattern; in regcomp()
333 preg->re_nsub = g->nsub; in regcomp()
334 preg->re_g = g; in regcomp()
335 preg->re_magic = MAGIC1; in regcomp()
344 regfree(preg); in regcomp()
/illumos-gate/usr/src/test/libc-tests/tests/regex/
H A Dtestregex.c1144 regfree(preg); in catchfree()
1150 regfree(preg); in catchfree()
1158 error(preg, eret); in catchfree()
1256 regex_t preg; in main() local
1955 p = re + preg.re_npat; in main()
1964 if (!cret && *(p += preg.re_npat) && !(preg.re_sub->re_flags & REG_SUB_LAST)) in main()
1980 p = re + preg.re_npat; in main()
2075 error(&preg, cret); in main()
2110 error(&preg, cret); in main()
2171 error(&preg, eret); in main()
[all …]
/illumos-gate/usr/src/cmd/sed/
H A Dmisc.c54 strregerror(int errcode, regex_t *preg) in strregerror() argument
61 s = regerror(errcode, preg, NULL, 0); in strregerror()
64 (void) regerror(errcode, preg, oe, s); in strregerror()
H A Dprocess.c658 regexec_e(regex_t *preg, const char *string, int eflags, int nomatch, in regexec_e() argument
663 if (preg == NULL) { in regexec_e()
667 defpreg = preg; in regexec_e()
/illumos-gate/usr/src/uts/sparc/v9/fpu/
H A Duword.c205 long long *preg; in read_iureg() local
207 preg = &pregs->r_ps; /* globals and outs */ in read_iureg()
208 *pvalue = preg[n]; in read_iureg()
261 long long *preg; in write_iureg() local
267 preg = &pregs->r_ps; /* globals and outs */ in write_iureg()
268 preg[n] = *pvalue; in write_iureg()
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/javelin/common/
H A Djavelin.c139 uint_t *preg; in display_memoryconf() local
158 if (preg) { in display_memoryconf()
159 interlv = preg[4]; in display_memoryconf()
172 preg = (uint_t *)(get_prop_val( in display_memoryconf()
186 if (preg) { in display_memoryconf()
187 interlv = preg[2]; in display_memoryconf()
189 bank_size = (preg[0]<<12) + (preg[1]>>20); in display_memoryconf()
192 preg = (uint_t *)(get_prop_val(find_prop(bank, "reg"))); in display_memoryconf()
193 if (preg) { in display_memoryconf()
194 bank_size = (preg[2]<<12) + (preg[3]>>20); in display_memoryconf()
[all …]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/tazmo/common/
H A Dtazmo.c142 uint_t *preg; in display_memoryconf() local
161 if (preg) { in display_memoryconf()
162 interlv = preg[4]; in display_memoryconf()
175 preg = (uint_t *)(get_prop_val( in display_memoryconf()
189 if (preg) { in display_memoryconf()
190 interlv = preg[2]; in display_memoryconf()
192 bank_size = (preg[0]<<12) + (preg[1]>>20); in display_memoryconf()
195 preg = (uint_t *)(get_prop_val(find_prop(bank, "reg"))); in display_memoryconf()
196 if (preg) { in display_memoryconf()
197 bank_size = (preg[2]<<12) + (preg[3]>>20); in display_memoryconf()
[all …]
/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dsvr_iters.c64 regex_t preg; member
157 match = (regexec(&data->preg, name, 0, NULL, 0) == 0); in get_either_iter()
229 ((regcomp(&data.preg, regexp, REG_NOSUB)) != 0) in kadm5_get_either()
259 regfree(&data.preg); in kadm5_get_either()
/illumos-gate/usr/src/cmd/find/
H A Dfind.c253 static regex_t *preg = NULL; variable
645 if ((preg = realloc(preg, (npreg + 1) * in compile()
648 if ((error = regcomp(&preg[npreg], b, in compile()
651 errlen = regerror(error, &preg[npreg], NULL, 0); in compile()
654 (void) regerror(error, &preg[npreg], errmsg, in compile()
1148 if (regexec(&preg[cnpreg], name, 1, &pmatch, 0) == 0) in execute()
/illumos-gate/usr/src/cmd/stat/kstat/
H A Dkstat.h183 regex_t preg; member
H A Dkstat.c564 regcode = regcomp(&pattern->preg, regstr, in ks_match()
585 return (regexec(&pattern->preg, str, 0, NULL, 0) == 0); in ks_match()
/illumos-gate/usr/src/cmd/man/
H A Dman.c768 regex_t preg; in search_whatis() local
785 if (regcomp(&preg, pkwd, REG_BASIC | REG_ICASE | REG_NOSUB) != 0) in search_whatis()
792 if (regexec(&preg, line, 0, NULL, 0) == 0) { in search_whatis()
/illumos-gate/usr/src/lib/libproc/common/
H A DPcontrol.c2057 Pgetareg(struct ps_prochandle *P, int regno, prgreg_t *preg) in Pgetareg() argument
2074 *preg = P->status.pr_lwp.pr_reg[regno]; in Pgetareg()
3608 Lgetareg(struct ps_lwphandle *L, int regno, prgreg_t *preg) in Lgetareg() argument
3620 *preg = L->lwp_status.pr_reg[regno]; in Lgetareg()