lib/closeout.c


Log

Author Commit Date CI Message
Jim Meyering f3e93252 2003-07-20T15:49:59 (close_stdout_set_status, close_stdout_status): Remove. Include "closeout.h" right after config.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>.
Bruno Haible f9fa25dc 2002-11-05T21:45:29 Include gettext.h instead of <libintl.h> with #ifdefs.
Jim Meyering 2f7cde77 2001-12-20T10:01:25 (close_stdout_status): If ferror (stdout), do not silently exit merely because the output buffer happens to have nothing pending.
Jim Meyering 92f1833a 2001-11-17T13:29:42 Include unlocked-io.h.
Jim Meyering 8218363e 2000-08-26T12:05:50 Include "__fpending.h". (close_stdout_status): Return right away if there's nothing to flush.
Jim Meyering b6c5ffd2 2000-05-16T14:36:55 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO): 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.
Jim Meyering accac54b 2000-05-15T10:21:25 (close_stdout_set_file_name): New function. (close_stdout_status): Use new file-scoped global. Return right away if fstat says the stdout file descriptor is invalid.
Jim Meyering 97a560dd 2000-05-10T16:39:35 [default_exit_status]: New file-scoped variable. (close_stdout_set_status): New function.
Jim Meyering 9ab56599 1999-04-04T14:30:30 fix comments add FIXME
Jim Meyering 1a247325 1999-01-25T00:13:36 Add comments.
Jim Meyering 67f394c1 1998-03-15T11:09:10 Use #if, not #ifdef with HAVE_ macros
Jim Meyering 23928550 1998-01-04T21:47:31 .