Home
last modified time | relevance | path

Searched refs:genbuf (Results 1 – 19 of 19) sorted by relevance

/illumos-gate/usr/src/ucbcmd/sed/
H A Dsed1.c43 char genbuf[LBSIZE+1]; variable
273 sp = genbuf; in dosub()
288 if (sp == &genbuf[LBSIZE+1]) { in dosub()
295 loc2 = sp - genbuf + linebuf; in dosub()
297 if (sp == &genbuf[LBSIZE+1]) { in dosub()
304 sp = genbuf; in dosub()
319 if (sp == &genbuf[LBSIZE+1])
429 p2 = genbuf; in command()
430 genbuf[72] = 0; in command()
438 (void) fprintf(stdout, "%s\n", genbuf); in command()
[all …]
H A Dsed.h65 extern char genbuf[];
H A Dsed0.c90 lcomend = &genbuf[71]; in main()
/illumos-gate/usr/src/cmd/vi/port/
H A Dex_re.c588 sp = genbuf; in dosub()
651 if ((sp + len) >= &genbuf[LBSIZE]) in dosub()
661 if (sp >= &genbuf[LBSIZE]) in dosub()
667 loc2 = (char *)(linebuf + (sp - genbuf)); in dosub()
669 if (sp >= &genbuf[LBSIZE]) in dosub()
671 strcLIN(genbuf); in dosub()
697 if (sp >= &genbuf[LBSIZE])
759 gp = genbuf; in vi_compile()
798 gp = genbuf; in vi_compile()
811 if (gp >= &genbuf[LBSIZE - 3]) in vi_compile()
[all …]
H A Dex_vops2.c250 vgotoCL(nqcolumn(lastchr(linebuf, cursor), genbuf)); in vappend()
252 gcursor = genbuf; in vappend()
436 endsrccol = gcursor - genbuf - 1; in vappend()
444 endsrccol = gcursor - genbuf - 1; in vappend()
480 gcursor = strend(genbuf); in vappend()
512 CP(cursor, genbuf); in vappend()
518 viprintf("%s", genbuf); in vappend()
523 cursor += gcursor - genbuf; in vappend()
589 if (gcursor + strlen(linebuf) > &genbuf[LBSIZE - 2]) in vappend()
590 gcursor = genbuf; in vappend()
[all …]
H A Dex_io.c195 CP(genbuf, "echo "); cp = &genbuf[5]; in getargs()
201 if ((cp + len) > &genbuf[LBSIZE - 2]) in getargs()
221 if (cp > &genbuf[LBSIZE - 2]) in getargs()
243 if (cp > &genbuf[LBSIZE - 2]) in getargs()
270 unsigned char *v = genbuf + 5; /* strlen("echo ") */ in glob()
302 execlp((char *)svalue(vi_SHELL), "sh", "-c", genbuf, (char *)0); in glob()
345 for (cp = genbuf; *cp; cp += len) { in gscan()
710 ninbuf = read(io, genbuf, LBSIZE) - 1; in getfile()
721 if(isencrypt(genbuf, ninbuf + 1)) in getfile()
726 if (crflag > 0 && run_crypt(cntch, genbuf, ninbuf+1, perm) == -1) { in getfile()
[all …]
H A Dex_get.c159 unsigned char *cp = genbuf; in gettty()
225 if (cp > &genbuf[LBSIZE - 2]) in gettty()
238 lastin = c = smunch(lastin, genbuf); in gettty()
244 CP(cp, genbuf); in gettty()
H A Dex_vops.c526 strcpy(genbuf, linebuf); in vchange()
528 if (strlen(genbuf) + strlen(wcursor) > LBSIZE - 2) { in vchange()
533 strcat(genbuf, wcursor); in vchange()
534 if (c == 'd' && *vpastwh(genbuf) == 0) { in vchange()
606 vdoappend(genbuf); in vchange()
609 strcLIN(genbuf); in vchange()
761 vdoappend(genbuf); in voOpen()
832 oglobp = globp; globp = genbuf + 1; in vfilter()
H A Dex_cmdsub.c253 cp = genbuf; in join()
261 if (*cp1 && cp > genbuf && cp[-1] != ' ' && cp[-1] != '\t') { in join()
269 if ((pcp = cp - MB_CUR_MAX) < genbuf) in join()
270 pcp = genbuf;; in join()
300 if (cp > &genbuf[LBSIZE-2]) in join()
305 strcLIN(genbuf); in join()
464 unsigned char *gp = &genbuf[cursor - linebuf]; in pragged()
487 strcpy(genbuf, linebuf); in pragged()
538 strcLIN(genbuf); in pragged()
593 cp = i > 0 ? genindent(i) : genbuf; in shift()
[all …]
H A Dexrecover.c705 fp = genbuf; in rputfile()
717 nib = fp - genbuf; in rputfile()
718 if (write(io, genbuf, nib) != nib) in rputfile()
722 fp = genbuf; in rputfile()
730 nib = fp - genbuf; in rputfile()
731 if (write(io, genbuf, nib) != nib) in rputfile()
H A Dex_subr.c189 i = whitecnt(genbuf); in fixindent()
190 cp = vpastwh(genbuf); in fixindent()
192 genbuf[0] = 0; in fixindent()
215 for (cp = genbuf; indent >= value(vi_TABSTOP); indent -= value(vi_TABSTOP))
376 str = (unsigned char *)strcpy(genbuf, str);
H A Dex_vops3.c416 strcpy(cursor, genbuf); in lsmatch()
435 strcpy(scurs, genbuf); in lsmatch()
H A Dex_vget.c276 cursor = linebuf; linebuf[0] = 0; genbuf[0] = c;
286 (void)vgetline(0, genbuf + 1, &waste, c);
H A Dex_voper.c798 vscandir[0] = genbuf[0]; in operate()
799 oglobp = globp; CP(vutmp, genbuf); globp = vutmp; in operate()
H A Dex.h226 var unsigned char genbuf[LBSIZE]; /* Working buffer when manipulating linebuf */ variable
H A Dex_vmain.c1096 oglobp = globp; strcpy(vutmp, genbuf+1); globp = vutmp;
H A Dex.news748 to be several |'s and a long string in genbuf has been fixed.
1088 to be several |'s and a long string in genbuf has been fixed.
/illumos-gate/usr/src/cmd/ed/
H A Ded.c206 static char genbuf[LBSIZE]; variable
1391 if ((ninbuf = read(io, genbuf, LBSIZE)-1) < 0) in getfile()
1394 *genbuf = '\n'; in getfile()
1399 if (isencrypt(genbuf, ninbuf + 1)) in getfile()
1404 fp = genbuf; in getfile()
1406 if (run_crypt(count, genbuf, ninbuf+1, perm) == -1) in getfile()
1449 fp = genbuf; in putfile()
1464 n = fp-genbuf; in putfile()
1466 if (run_crypt(count-n, genbuf, n, perm) == -1) in putfile()
1468 if (write(io, genbuf, n) != n) in putfile()
[all …]
/illumos-gate/usr/src/ucblib/libcurses/
H A Dcr_tty.c94 static char genbuf[1024]; in setterm() local
106 if (tgetent(genbuf, type) != 1) { in setterm()
108 (void) strcpy(genbuf, "xx|dumb:"); in setterm()
155 (void) strncpy(ttytype, longname(genbuf, type), sizeof (ttytype) - 1); in setterm()