Lines Matching defs:output
37 static char sccsid[] = "@(#)output.c 8.2 (Berkeley) 5/4/95";
44 * Shell output routines. We use our own output routines because:
46 * any pending output.
48 * save the output of the command in a region obtained
50 * output of the command via a pipe.
64 #include "output.h"
71 #define MEM_OUT -2 /* output to dynamically allocated memory */
72 #define OUTPUT_ERR 01 /* error occurred on output */
76 struct output output = {NULL, NULL, NULL, OUTBUFSIZ, 1, 0};
77 struct output errout = {NULL, NULL, NULL, 256, 2, 0};
78 struct output memout = {NULL, NULL, NULL, 64, MEM_OUT, 0};
79 struct output *out1 = &output;
80 struct output *out2 = &errout;
83 outcslow(int c, struct output *file)
113 outstr(const char *p, struct output *file)
119 byteseq(int ch, struct output *file)
131 outdqstr(const char *p, struct output *file)
173 outqstr(const char *p, struct output *file)
201 outbin(const void *data, size_t len, struct output *file)
211 emptyoutbuf(struct output *dest)
239 flushout(&output);
245 flushout(struct output *dest)
259 output.nextc = output.buf;
264 outiserror(struct output *file)
271 outclearerror(struct output *file)
278 outfmt(struct output *file, const char *fmt, ...)
324 struct output *o;
326 o = (struct output *)cookie;
333 doformat(struct output *dest, const char *f, va_list ap)