Lines Matching refs:output
35 * replace the original text with the stdout/stderr output of
47 int input[2], output[2], rval;
70 * Input and output are named from the utility's point of view.
72 * input[1]. The parent(s) read from output[0] and the utility
73 * writes to output[1].
81 input[0] = input[1] = output[0] = output[1] = -1;
87 /* Open up utility output pipe. */
88 if (pipe(output) < 0) {
92 if ((ofp = fdopen(output[0], "r")) == NULL) {
107 else if (output[0] != -1)
108 (void)close(output[0]);
109 if (output[1] != -1)
110 (void)close(output[1]);
115 * redirect stdout/stderr to the write end of the output pipe.
125 (void)dup2(output[1], STDOUT_FILENO);
126 (void)dup2(output[1], STDERR_FILENO);
133 (void)close(output[0]);
134 (void)close(output[1]);
150 (void)close(output[1]);
158 * so the parent reads the output from the read end of the output
223 (void)close(output[0]);
231 (void)close(output[0]);
241 * Read the output from the read end of the output
248 * Read the output from the read end of the output
271 * If the filter had no output, we may have just deleted
293 * Display output from a utility.