lib/closeout.c


Log

Author Commit Date CI Message
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 .