| 400 | If FILE is null, it represents standard output. */ |
| 401 | |
| 402 | static void |
| 403 | sort_die (char const *message, char const *file) |
| 404 | { |
| 405 | /* If we got EPIPE writing to stdout (from a previous fwrite() or fclose() |
| 406 | and SIGPIPE was originally SIG_DFL, mimic standard SIGPIPE behavior. */ |
| 407 | if (errno == EPIPE && !file && default_SIGPIPE) |
| 408 | sighandler (SIGPIPE); |
| 409 | |
| 410 | error (SORT_FAILURE, errno, "%s: %s", message, |
| 411 | quotef (file ? file : _("standard output"))); |
| 412 | } |
| 413 | |
| 414 | void |
| 415 | usage (int status) |
no test coverage detected