Home
last modified time | relevance | path

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

/titanic_44/usr/src/ucbcmd/sed/
H A Dsed1.c45 char genbuf[LBSIZE+1]; variable
275 sp = genbuf; in dosub()
290 if (sp == &genbuf[LBSIZE+1]) { in dosub()
297 loc2 = sp - genbuf + linebuf; in dosub()
299 if (sp == &genbuf[LBSIZE+1]) { in dosub()
306 sp = genbuf; in dosub()
321 if (sp == &genbuf[LBSIZE+1])
431 p2 = genbuf; in command()
432 genbuf[72] = 0; in command()
440 (void) fprintf(stdout, "%s\n", genbuf); in command()
[all …]
H A Dsed.h68 extern char genbuf[];
H A Dsed0.c91 lcomend = &genbuf[71]; in main()
/titanic_44/usr/src/cmd/vi/port/
H A Dex_re.c587 sp = genbuf; in dosub()
650 if ((sp + len) >= &genbuf[LBSIZE]) in dosub()
660 if (sp >= &genbuf[LBSIZE]) in dosub()
666 loc2 = (char *)(linebuf + (sp - genbuf)); in dosub()
668 if (sp >= &genbuf[LBSIZE]) in dosub()
670 strcLIN(genbuf); in dosub()
696 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.c194 CP(genbuf, "echo "); cp = &genbuf[5]; in getargs()
200 if ((cp + len) > &genbuf[LBSIZE - 2]) in getargs()
220 if (cp > &genbuf[LBSIZE - 2]) in getargs()
242 if (cp > &genbuf[LBSIZE - 2]) in getargs()
269 unsigned char *v = genbuf + 5; /* strlen("echo ") */ in glob()
301 execlp((char *)svalue(vi_SHELL), "sh", "-c", genbuf, (char *)0); in glob()
344 for (cp = genbuf; *cp; cp += len) { in gscan()
707 ninbuf = read(io, genbuf, LBSIZE) - 1; in getfile()
718 if(isencrypt(genbuf, ninbuf + 1)) in getfile()
723 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.c252 cp = genbuf; in join()
260 if (*cp1 && cp > genbuf && cp[-1] != ' ' && cp[-1] != '\t') { in join()
268 if ((pcp = cp - MB_CUR_MAX) < genbuf) in join()
269 pcp = genbuf;; in join()
299 if (cp > &genbuf[LBSIZE-2]) in join()
304 strcLIN(genbuf); in join()
463 unsigned char *gp = &genbuf[cursor - linebuf]; in pragged()
486 strcpy(genbuf, linebuf); in pragged()
537 strcLIN(genbuf); in pragged()
592 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.c182 i = whitecnt(genbuf); in fixindent()
183 cp = vpastwh(genbuf); in fixindent()
185 genbuf[0] = 0; in fixindent()
208 for (cp = genbuf; indent >= value(vi_TABSTOP); indent -= value(vi_TABSTOP))
369 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.c797 vscandir[0] = genbuf[0]; in operate()
798 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.c1099 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.
/titanic_44/usr/src/cmd/ed/
H A Ded.c207 static char genbuf[LBSIZE]; variable
1378 if ((ninbuf = read(io, genbuf, LBSIZE)-1) < 0) in getfile()
1381 *genbuf = '\n'; in getfile()
1386 if (isencrypt(genbuf, ninbuf + 1)) in getfile()
1391 fp = genbuf; in getfile()
1393 if (run_crypt(count, genbuf, ninbuf+1, perm) == -1) in getfile()
1436 fp = genbuf; in putfile()
1451 n = fp-genbuf; in putfile()
1453 if (run_crypt(count-n, genbuf, n, perm) == -1) in putfile()
1455 if (write(io, genbuf, n) != n) in putfile()
[all …]
/titanic_44/usr/src/ucblib/libcurses/
H A Dcr_tty.c96 static char genbuf[1024]; in setterm() local
108 if (tgetent(genbuf, type) != 1) { in setterm()
110 (void) strcpy(genbuf, "xx|dumb:"); in setterm()
157 (void) strncpy(ttytype, longname(genbuf, type), sizeof (ttytype) - 1); in setterm()