Lines Matching refs:obuf

56 static int	forward(char ms[], FILE *obuf, int f);
58 static int forward(char ms[], FILE *obuf, int f);
59 static FILE *mesedit(FILE *ibuf, FILE *obuf, int c, struct header *hp);
60 static FILE *mespipe(FILE *ibuf, FILE *obuf, char cmd[]);
65 static int tabputs(const char *line, FILE *obuf);
95 FILE *ibuf, *fbuf, *obuf;
107 ibuf = obuf = NULL;
110 (obuf = fdopen(fd, "w")) == NULL) {
114 newo = obuf;
118 fclose(obuf);
204 cpout( cp, obuf);
209 fflush(obuf);
266 if (write(fileno(obuf),linebuf,nread) != nread)
330 if (write(fileno(obuf),linebuf,nread) != nread)
338 if (write(fileno(obuf),linebuf+1,nread-1) != (nread-1))
362 cpout( cp, obuf);
381 cpout(cp, obuf);
500 * then open it and copy the contents to obuf.
540 if (putc(t, obuf) == EOF) {
556 fflush(obuf);
574 fflush(obuf);
598 if (forward(cp, obuf, c) < 0)
600 fflush(obuf);
626 fflush(obuf);
673 obuf = mespipe(ibuf, obuf, &linebuf[2]);
674 newo = obuf;
688 if ((obuf = mesedit(ibuf, obuf, c, hp)) == NULL)
690 newo = obuf;
695 fflush(obuf);
698 fflush(obuf);
700 cpout( cp, obuf);
704 fclose(obuf);
716 fflush(obuf);
737 if (obuf != NULL)
738 fclose(obuf);
827 * Edit the message being collected on ibuf and obuf.
835 mesedit(FILE *ibuf, FILE *obuf, int c, struct header *hp)
859 fflush(obuf);
960 (obuf = fdopen(fd, "w")) == NULL) {
969 fclose(obuf);
974 fputs(hdr, obuf);
975 putc('\n', obuf);
978 putc(t, obuf);
982 newo = obuf;
996 mespipe(FILE *ibuf, FILE *obuf, char cmd[])
1009 return(obuf);
1015 return(obuf);
1018 fflush(obuf);
1062 fclose(obuf);
1068 return(obuf);
1082 forward(char ms[], FILE *obuf, int f)
1105 if (msend(&message[*ip-1], obuf, islower(f) ? M_IGNORE : 0,
1111 fflush(obuf);
1112 if (fferror(obuf)) {
1121 tabputs(const char *line, FILE *obuf)
1125 fputs(indentprefix, obuf);
1128 fputc('\t', obuf);
1129 return (fputs(line, obuf));