Lines Matching refs:output
36 * Shell output routines. We use our own output routines because:
38 * any pending output.
40 * save the output of the command in a region obtained
42 * output of the command via a pipe.
56 #include "output.h"
63 #define MEM_OUT -2 /* output to dynamically allocated memory */
64 #define OUTPUT_ERR 01 /* error occurred on output */
68 struct output output = {NULL, NULL, NULL, OUTBUFSIZ, 1, 0};
69 struct output errout = {NULL, NULL, NULL, 256, 2, 0};
70 struct output memout = {NULL, NULL, NULL, 64, MEM_OUT, 0};
71 struct output *out1 = &output;
72 struct output *out2 = &errout;
75 outcslow(int c, struct output *file)
105 outstr(const char *p, struct output *file)
111 byteseq(int ch, struct output *file)
123 outdqstr(const char *p, struct output *file)
165 outqstr(const char *p, struct output *file)
193 outbin(const void *data, size_t len, struct output *file)
203 emptyoutbuf(struct output *dest)
231 flushout(&output);
237 flushout(struct output *dest)
251 output.nextc = output.buf;
256 outiserror(struct output *file)
263 outclearerror(struct output *file)
270 outfmt(struct output *file, const char *fmt, ...)
316 struct output *o;
318 o = (struct output *)cookie;
325 doformat(struct output *dest, const char *f, va_list ap)