Searched defs:expbuf (Results 1 - 17 of 17) sorted by relevance

/illumos-gate/usr/src/cmd/expr/
H A Dcompile.c34 * Returns expbuf in dhl format (encoding of first two bytes).
103 compile(const char *instr, char *expbuf, char *endbuf) argument
105 return (dhl_compile(instr, expbuf, endbuf));
109 step(const char *instr, const char *expbuf) argument
111 return (dhl_step(instr, expbuf));
115 advance(const char *instr, const char *expbuf) argument
117 return (dhl_advance(instr, expbuf));
124 * that expbuf[] consists of the following format:
130 * vi. apparently expbuf[0] is set to:
134 * and expbuf[
[all...]
H A Dexpr.c397 static char *expbuf; local
412 if (regerrno != 41 || expbuf == NULL)
415 if (expbuf)
416 free(expbuf);
417 expbuf = nexpbuf;
419 if (advance(s, expbuf)) {
/illumos-gate/usr/src/lib/libadm/common/
H A Dckstr.c88 char expbuf[ESIZE]; local
99 if (!__compile(regexp[i], expbuf, &expbuf[ESIZE], '\0'))
101 valid = __step(input, expbuf);
/illumos-gate/usr/src/lib/libgen/common/
H A Dreg_compile.c158 char *expbuf = ep; local
186 expbuf = ep;
430 free(expbuf);
433 reglength = (int)(ep - expbuf);
435 return (expbuf);
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dregex.c117 #define expbuf (_re->_expbuf) macro
147 ep = expbuf;
149 #define comerr(msg) {expbuf[0] = 0; numbra = 0; return(msg); }
163 if (ep >= &expbuf[ESIZE])
213 if (ep >= &expbuf[ESIZE])
219 if (ep >= &expbuf[ESIZE])
271 p2 = expbuf;
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dregexpr.c127 #define expbuf (_re->_expbuf) macro
157 ep = expbuf;
159 #define comerr(msg) {expbuf[0] = 0; return (msg); }
173 if (ep >= &expbuf[ESIZE])
224 if (ep >= &expbuf[ESIZE])
230 if (ep >= &expbuf[ESIZE])
282 p2 = expbuf;
/illumos-gate/usr/src/cmd/csh/
H A Dprintf.c141 char expbuf[MAXESIZ + 1]; local
474 suffix = &expbuf[MAXESIZ];
488 while (suffix > &expbuf[MAXESIZ - 2]) {
/illumos-gate/usr/src/ucbcmd/sed/
H A Dsed1.c98 static int match(char *expbuf, int gf);
229 match(char *expbuf, int gf) argument
234 if(*expbuf) return(0);
241 circf = *expbuf++;
242 return(step(p1, expbuf));
/illumos-gate/usr/src/ucblib/libucb/port/gen/
H A Dregex.c130 #define expbuf (_re->_expbuf) macro
163 ep = expbuf;
165 #define comerr(msg) {expbuf[0] = 0; return (msg); }
179 if (ep >= &expbuf[ESIZE])
229 if (ep >= &expbuf[ESIZE])
235 if (ep >= &expbuf[ESIZE])
287 p2 = expbuf;
/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dsvr_iters.c61 char *expbuf; member in struct:iter_data
154 match = (step(name, data->expbuf) != 0);
226 ((data.expbuf = compile(regexp, NULL, NULL)) == NULL)
/illumos-gate/usr/src/cmd/csplit/
H A Dcsplit.c57 char *expbuf; variable
477 to_line(findline(expbuf, offset));
529 expbuf = compile(string, (char *)0, (char *)0);
532 to_line(findline(expbuf, offset));
/illumos-gate/usr/src/cmd/grep/
H A Dgrep.c112 static char *expbuf; variable
219 expbuf = compile(*argv, (char *)0, (char *)0);
416 if ((step(lbuf, expbuf) ^ vflag) && succeed(file) == 1)
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/
H A Ddoprnt.c149 char expbuf[7]; /* "e+xxxx\0" */ local
744 _fourdigitsquick( (short unsigned) n, &(expbuf[2]) ) ;
745 expbuf[6] = 0 ;
751 { suffix = &(expbuf[4]) ; suffixlength = 4 ; }
753 { suffix = &(expbuf[3]) ; suffixlength = 5 ; }
755 { suffix = &(expbuf[2]) ; suffixlength = 6 ; }
/illumos-gate/usr/src/ucblib/libucb/port/stdio/
H A Ddoprnt.c201 char expbuf[MAXESIZ + 1]; local
756 *(suffix = &expbuf[MAXESIZ]) = '\0';
767 while (suffix > &expbuf[MAXESIZ - 2])
778 (int)(&expbuf[MAXESIZ] - suffix));
/illumos-gate/usr/src/lib/libc/port/print/
H A Ddoprnt.c506 wchar_t expbuf[MAXESIZ + 1]; local
520 char expbuf[MAXESIZ + 1]; local
1376 suffix = &expbuf[MAXESIZ];
1397 suffixlength = &expbuf[MAXESIZ] - suffix;
1474 *(suffix = &expbuf[MAXESIZ]) = '\0';
1485 while (suffix > &expbuf[MAXESIZ - 2])
1495 otherlength += (suffixlength = &expbuf[MAXESIZ] \
/illumos-gate/usr/src/cmd/pg/
H A Dpg.c1245 static char *expbuf; local
1252 if (regerrno != 41 || expbuf == NULL)
1255 if (expbuf)
1256 free(expbuf);
1257 expbuf = nexpbuf;
1273 if (step(Line, expbuf))
/illumos-gate/usr/src/cmd/ed/
H A Ded.c189 static char *expbuf; variable
2184 if (expbuf)
2185 free(expbuf);
2186 expbuf = compile(genbuf, (char *)0, (char *)0);
2287 return (step(p1, expbuf));

Completed in 91 milliseconds