Lines Matching refs:obuf
79 FILE *obuf;
82 if ((obuf = Fopen(mailname, "ref+")) == NULL) {
89 (void)putc(c, obuf);
90 (void)fflush(obuf);
91 if (ferror(obuf)) {
93 (void)Fclose(obuf);
101 if (sendmessage(mp, obuf, NULL, NULL, NULL) < 0) {
103 (void)Fclose(obuf);
110 (void)putc(c, obuf);
112 (void)fflush(obuf);
113 if (!ferror(obuf))
114 trunc(obuf); /* XXX or should we truncate? */
115 if (ferror(obuf)) {
117 (void)Fclose(obuf);
122 (void)Fclose(obuf);
140 FILE *obuf;
179 (obuf = Fdopen(fd, "wef")) == NULL) {
188 (void)Fclose(obuf);
195 (void)putc(c, obuf);
196 (void)fflush(obuf);
197 if (ferror(obuf)) {
199 (void)Fclose(obuf);
206 (void)Fclose(obuf);
217 if ((obuf = Fopen(mailname, "ref+")) == NULL) {
222 trunc(obuf);
228 if (sendmessage(mp, obuf, NULL, NULL, NULL) < 0) {
237 (void)putc(c, obuf);
240 (void)fflush(obuf);
241 if (ferror(obuf)) {
246 (void)Fclose(obuf);
269 FILE *ibuf, *obuf, *fbuf, *rbuf, *readstat, *abuf;
433 (obuf = Fdopen(fd, "wef")) == NULL) {
444 (void)Fclose(obuf);
452 (void)putc(c, obuf);
455 if (ferror(obuf)) {
458 (void)Fclose(obuf);
463 (void)Fclose(obuf);
466 if ((obuf = Fopen(mbox, "ref+")) == NULL) {
475 if ((obuf = Fopen(mbox, "aef")) == NULL) {
481 (void)fchmod(fileno(obuf), 0600);
485 if (sendmessage(mp, obuf, saveignore, NULL, NULL) < 0) {
489 (void)Fclose(obuf);
505 (void)putc(c, obuf);
506 if (ferror(obuf))
512 (void)fflush(obuf);
513 if (!ferror(obuf))
514 trunc(obuf); /* XXX or should we truncate? */
515 if (ferror(obuf)) {
517 (void)Fclose(obuf);
522 (void)Fclose(obuf);