Age | Commit message (Collapse) | Author |
|
|
|
|
|
asking the user to report the problem.
|
|
closed initially, since some programs don't write to stdout in the
normal course of operation (other than --version and --help), and
we don't want this function to make e.g. `cp 1 2 >&-' fail.
But do fail if it was closed and someone has tried to write to it.
E.g., printf 'foo' >&-
|
|
(close_stdout): Always close stdout. I.e., don't
return early when it seems there's nothing to flush.
Don't include __fpending.h.
|
|
|
|
|
|
|
|
to test that it can stand by itself. Include "exitfail.h".
Clients should set exit_failure instead.
(EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
|
|
* closeout.c: Include gettext.h instead of <libintl.h>.
|
|
not silently exit merely because the output buffer happens to
have nothing pending.
|
|
|
|
(close_stdout_status): Return right away if there's nothing to flush.
|
|
Remove; no longer needed.
"quotearg.h": Add include.
(file_name): Do not bother to explicitly initialize to NULL; it's less
efficient on some hosts.
(close_stdout_status): Remove test as to whether stdout was already
closed; it breaks for the case "echo x | sort >&-".
Quote file name colons.
Do not assume that _("write error") lacks format strings.
|
|
(close_stdout_status): Use new file-scoped global.
Return right away if fstat says the stdout file descriptor is invalid.
|
|
(close_stdout_set_status): New function.
|
|
add FIXME
|
|
|
|
|
|
|