Lines Matching defs:output
32 * replace the original text with the stdout/stderr output of
44 int input[2], output[2], rval;
67 * Input and output are named from the utility's point of view.
69 * input[1]. The parent(s) read from output[0] and the utility
70 * writes to output[1].
78 input[0] = input[1] = output[0] = output[1] = -1;
84 /* Open up utility output pipe. */
85 if (pipe(output) < 0) {
89 if ((ofp = fdopen(output[0], "r")) == NULL) {
104 else if (output[0] != -1)
105 (void)close(output[0]);
106 if (output[1] != -1)
107 (void)close(output[1]);
112 * redirect stdout/stderr to the write end of the output pipe.
122 (void)dup2(output[1], STDOUT_FILENO);
123 (void)dup2(output[1], STDERR_FILENO);
130 (void)close(output[0]);
131 (void)close(output[1]);
147 (void)close(output[1]);
155 * so the parent reads the output from the read end of the output
221 (void)close(output[0]);
229 (void)close(output[0]);
239 * Read the output from the read end of the output
246 * Read the output from the read end of the output
269 * If the filter had no output, we may have just deleted
291 * Display output from a utility.