| 206 | Return true if this indicates a reportable error. */ |
| 207 | |
| 208 | static bool |
| 209 | fail_output (int *descriptors, char **files, int i) |
| 210 | { |
| 211 | int w_errno = errno; |
| 212 | bool fail = errno != EPIPE |
| 213 | || output_error == output_error_exit |
| 214 | || output_error == output_error_warn; |
| 215 | if (fail) |
| 216 | { |
| 217 | error (output_error == output_error_exit |
| 218 | || output_error == output_error_exit_nopipe, |
| 219 | w_errno, "%s", quotef (files[i])); |
| 220 | } |
| 221 | descriptors[i] = -1; |
| 222 | return fail; |
| 223 | } |
| 224 | |
| 225 | |
| 226 | /* Copy the standard input into each of the NFILES files in FILES |