Home
last modified time | relevance | path

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

/original-bsd/usr.bin/ex/
H A Dex_vops2.c167 gcursor = genbuf;
260 gcursor = strend(genbuf);
272 CP(cursor, genbuf);
340 gcursor = genbuf;
343 CP(genbuf, gcursor + 1);
344 gcursor = genbuf;
363 vdoappend(genbuf);
454 iwhite = whitecnt(genbuf);
764 cp = vpastwh(genbuf);
765 c = whitecnt(genbuf);
[all …]
H A Dex_io.c201 CP(genbuf, "echo "); cp = &genbuf[5]; in getargs()
216 if (cp > &genbuf[LBSIZE - 2]) in getargs()
234 if (cp > &genbuf[LBSIZE - 2]) in getargs()
288 if (genbuf) {
289 register char *ccp = genbuf;
343 for (cp = genbuf; *cp; cp++) in gscan()
837 fp = genbuf; in getfile()
887 fp = genbuf;
893 nib = fp - genbuf;
899 fp = genbuf;
[all …]
H A Dex_get.c130 register char *cp = genbuf; in gettty()
199 if (cp > &genbuf[LBSIZE - 2]) in gettty()
212 lastin = c = smunch(lastin, genbuf); in gettty()
218 CP(cp, genbuf); in gettty()
H A Dex_vops.c451 strcpy(genbuf, linebuf);
453 if (strlen(genbuf) + strlen(wcursor) > LBSIZE - 2) {
458 strcat(genbuf, wcursor);
459 if (c == 'd' && *vpastwh(genbuf) == 0) {
528 vdoappend(genbuf);
531 strcLIN(genbuf);
682 vdoappend(genbuf);
747 oglobp = globp; globp = genbuf + 1; in vfilter()
H A Dex_cmdsub.c212 cp = genbuf;
220 if (*cp1 && cp > genbuf && cp[-1] != ' ' && cp[-1] != '\t') {
229 if (cp > &genbuf[LBSIZE-2])
233 strcLIN(genbuf);
381 register char *gp = &genbuf[cursor - linebuf];
391 strcpy(genbuf, linebuf);
401 strcLIN(genbuf);
446 cp = i > 0 ? genindent(i) : genbuf;
457 if (cp + strlen(dp = vpastwh(linebuf)) >= &genbuf[LBSIZE - 2])
460 strcLIN(genbuf);
H A Dex.c350 (void) strcat(strcpy(genbuf, cp), "/.exrc");
351 if (iownit(genbuf))
352 source(genbuf, 1);
H A Dex_subr.c137 i = whitecnt(genbuf);
138 cp = vpastwh(genbuf);
140 genbuf[0] = 0;
163 for (cp = genbuf; indent >= value(TABSTOP); indent -= value(TABSTOP))
324 str = strcpy(genbuf, str);
H A Dex_re.c428 sp = genbuf; in dosub()
482 if (sp >= &genbuf[LBSIZE]) in dosub()
487 loc2 = sp + (linebuf - genbuf); in dosub()
489 if (sp >= &genbuf[LBSIZE]) in dosub()
491 strcLIN(genbuf); in dosub()
517 if (sp >= &genbuf[LBSIZE])
H A Dex_vops3.c368 strcpy(cursor, genbuf);
386 strcpy(scurs, genbuf);
H A Dex_voper.c621 vscandir[0] = genbuf[0];
622 oglobp = globp; CP(vutmp, genbuf); globp = vutmp;
H A Dex_vget.c267 cursor = linebuf; linebuf[0] = 0; genbuf[0] = c;
274 ignore(vgetline(0, genbuf + 1, &waste, c));
H A Dex.h207 var char genbuf[MAXBSIZE]; /* Working buffer when manipulating linebuf */ variable
H A Dex_vmain.c912 oglobp = globp; strcpy(vutmp, genbuf+1); globp = vutmp; in vmain()
H A DREAD_ME549 to be several |'s and a long string in genbuf has been fixed.
889 to be several |'s and a long string in genbuf has been fixed.
/original-bsd/old/sed/
H A Dsed1.c174 p2 = genbuf;
368 sp = genbuf;
381 if (sp >= &genbuf[LBSIZE])
391 sp = genbuf;
507 p2 = genbuf;
508 genbuf[72] = 0;
517 p2 = genbuf;
527 p2 = genbuf;
535 p2 = genbuf;
632 p2 = genbuf;
[all …]
H A Dsed.h44 char genbuf[LBSIZE]; variable
H A Dsed0.c44 lcomend = &genbuf[71];
/original-bsd/usr.bin/unexpand/
H A Dunexpand.c23 char genbuf[BUFSIZ]; variable
50 while (fgets(genbuf, BUFSIZ, stdin) != NULL) {
71 cp = genbuf, dp = linebuf;
/original-bsd/bin/ed/
H A Ded.c73 char genbuf[LBSIZE]; variable
712 fp = genbuf; in getfile()
722 fp = genbuf; in getfile()
746 fp = genbuf; in putfile()
762 fp = genbuf; in putfile()
771 n = fp-genbuf; in putfile()
1087 gp = genbuf; in join()
1095 gp = genbuf; in join()
1197 sp = genbuf; in dosub()
1219 sp = genbuf; in dosub()
[all …]
/original-bsd/lib/libcurses/
H A Dsetterm.c61 static char genbuf[1024]; local
74 if (tgetent(genbuf, type) != 1) {
76 strcpy(genbuf, "xx|dumb:");
130 ttytype = longname(genbuf, __ttytype);
/original-bsd/usr.bin/ex/ex3.7recover/
H A Dex3.7recover.c652 fp = genbuf; in putfile()
658 nib = fp - genbuf; in putfile()
659 if (write(io, genbuf, nib) != nib) in putfile()
663 fp = genbuf; in putfile()
671 nib = fp - genbuf; in putfile()
672 if (write(io, genbuf, nib) != nib) in putfile()