| 603 | /* Open NAME as standard input. */ |
| 604 | |
| 605 | static void |
| 606 | set_input_file (char const *name) |
| 607 | { |
| 608 | if (! streq (name, "-") && fd_reopen (STDIN_FILENO, name, O_RDONLY, 0) < 0) |
| 609 | error (EXIT_FAILURE, errno, _("cannot open %s for reading"), |
| 610 | quoteaf (name)); |
| 611 | } |
| 612 | |
| 613 | /* Write all lines from the beginning of the buffer up to, but |
| 614 | not including, line LAST_LINE, to the current output file. |